sub_14065E6C8

signed __int64 __fastcall sub_14065E6C8(_EX_PUSH_LOCK *a1, __int64 a2){
  signed __int64 v2; 

  v2 = 0i64;
  if( a2 )
  {
    v2 = _InterlockedDecrement64((volatile signed __int64 *)(a2 + 8));
    if( !v2 )
      sub_14064FA38(a1, (_QWORD *)a2);
  }
  return v2;
}

Referenced by:

WbFreeWarbirdProcess
WbGetWarbirdThread
WbHeapExecuteCall
sub_14064F8DC
sub_14065EC80