NTSTATUS __stdcall HalpGenericPolledWorkerRoutine(INT64 a1){
NTSTATUS result;
INT64 *i;
result = _InterlockedCompareExchange((volatile signed __int32 *)(a1 + 244), 1, 0);
if( !result )
{
for( i = (INT64 *)qword_140C49AC0; i != &qword_140C49AC0; i = (INT64 *)*i )
HalpCheckAndReportGhes((INT64)i);
result = _InterlockedExchange((volatile __int32 *)(a1 + 240), 0);
_InterlockedExchange((volatile __int32 *)(a1 + 244), 0);
}
return result;
}