int __thiscall VgaModeProgramSeq(int *this)
{
int v1; // edi
unsigned int i; // esi
int v3; // ecx
int v4; // ecx
v1 = *(this + 15);
PciRegWrite(v1, 510525536, 5);
while ( 1 )
{
for ( i = 0; i < 0x4C4B40; ++i )
{
if ( (PciRegRead(v1, 510525536) & 1) == 0 )
break;
}
if ( i != 5000000 && (PciRegRead(v3, 510526208) & 0xA0000) == 0 )
break;
PciRegWrite(v1, 510525536, 0);
MicroSecondDelay(10);
PciRegWrite(v1, 510525536, 5);
}
return PciRegWrite(v4, 510525536, 6);
}