x86BiosCall

BOOL __fastcall x86BiosCall(UINT8 a1, INT64 a2){
  bool v2; 
  BOOL result; 
  v2 = 0;
  if( HalpVideoBiosPresent )
  {
    result = _InterlockedIncrement(&HalpBiosCallCount);
    if( result || HalpBugcheckInProgress )
    {
      result = x86BiosExecuteInterruptShadowed(a1, a2);
      v2 = result;
    }
    else
    {
      __int2c();
    }
    _InterlockedDecrement(&HalpBiosCallCount);
    LOBYTE(result) = v2;
  }
  else
  {
    __int2c();
    LOBYTE(result) = 0;
  }
  return result;
}

Referenced by:

HalpBiosDisplayReset