//
// sub_76F2C8 from 0x76f2c8 to 0x76f2f6 (46 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_76F2C8(int result)
{
int v1; // r4
int v2; // r3
int v3; // r2
int v4; // r2
int v5; // r3
int v6; // r3
if ( *(_BYTE *)(result + 84) )
{
v1 = *(_DWORD *)(result + 60);
v2 = *(_DWORD *)(result + 8);
v3 = *(_DWORD *)(result + 4);
*(_DWORD *)(result + 12) = *(_DWORD *)(result + 80);
*(_DWORD *)(result + 4) = v1;
v4 = v2 - v3;
v5 = *(_DWORD *)(result + 76);
*(_BYTE *)(result + 84) = 0;
v6 = v5 + 4 * (v4 != 0);
*(_DWORD *)(result + 76) = v6;
*(_DWORD *)(result + 8) = v6;
}
return result;
}