HaliHaltSystem

VOID __stdcall __noreturn HaliHaltSystem(){
  __int16 v0; 
  __int16 Output; 

  while( 1 )
  {
    do
    {
      do
      {
        v0 = 0;
        Output = 0;
      }
      while( !(_DWORD)KiBugCheckData && !InbvCheckDisplayOwnership() );
    }
    while( !dword_140C4AD1C );
    if( *(&CmpDummyThreadEvent + 4992) )
    {
      HalpAcpiPmRegisterRead(PM1A_EVT_REGISTER, 0i64, &Output, 2ui64, 0i64);
      v0 = Output;
      if( *(&CmpDummyThreadEvent + 5136) )
      {
        HalpAcpiPmRegisterRead(PM1B_EVT_REGISTER, 0i64, &Output, 2ui64, 0i64);
        v0 |= Output;
      }
    }
    if( (v0 & 0x8100) == 256 )
      HalpShutdown();
  }
}

Referenced by:

No references.