CHAR __fastcall ExpPartitionCreateThreadIfNecessary(INT64 a1, INT64 a2, INT64 a3){
CHAR result;
__int64 v4;
__int64 v5;
result = ExpNewThreadNecessary((UINT64 *)a3);
if( result )
return KeSetEvent((PRKEVENT)(*(_QWORD *)(*(_QWORD *)(v5 + 16) + 8i64 * *(unsigned __int16 *)(v4 + 146)) + 16i64), 0);
return result;
}