HalpReadRtcStdPCAT

INT64 __fastcall HalpReadRtcStdPCAT(INT64 a1, INT64 a2, INT64 a3){
  unsigned int v4; 
  unsigned int v5; 
  char v6; 
  __int64 v7; 
  unsigned __int8 v8; 
  v4 = a1 + a3;
  v5 = a1;
  HalpAcquireCmosSpinLock(a1, a2, a3);
  do
  {
    __outbyte(0x70u, 0xAu);
    v6 = __inbyte(0x71u);
  }
  while( v6 < 0 );
  v7 = 0i64;
  while( v5 < v4 )
  {
    __outbyte(0x70u, v5);
    v8 = __inbyte(0x71u);
    ++v5;
    *(_BYTE *)(v7 + a2) = v8;
    v7 = (unsigned int)(v7 + 1);
  }
  _InterlockedExchange(&HalpSystemHardwareLock, -1);
  if( (_BYTE)HalpSystemHardwareLockInterruptsEnabled )
    _enable();
  return(unsigned int)v7;
}

Referenced by:

No references.