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