CmpCreateGlobalKeyLockEntry

_QWORD *__fastcall CmpCreateGlobalKeyLockEntry(volatile INT64 *a1){
  _QWORD *TransientPoolWithTag; 
  _QWORD *v3; 

  CmpReferenceKeyControlBlockUnsafe(a1);
  TransientPoolWithTag = CmpAllocateTransientPoolWithTag(1ui64, 0x20ui64);
  v3 = TransientPoolWithTag;
  if( TransientPoolWithTag )
  {
    *TransientPoolWithTag = 0i64;
    TransientPoolWithTag[1] = 0i64;
    TransientPoolWithTag[2] = 1i64;
    TransientPoolWithTag[3] = a1;
  }
  else
  {
    CmpDereferenceKeyControlBlockUnsafe(a1);
  }
  return v3;
}

Referenced by:

CmpGlobalLockKeyForWrite