//
// sub_76EB84 from 0x76eb84 to 0x76ebc2 (62 bytes)
//
// 3 xrefs:
// > sub_76ED08 @ 0x76ee60
// > sub_76ED08 @ 0x76ee78
// > sub_76F080 @ 0x76f0da
//
// 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_76EB84(int a1, int a2)
{
if ( (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 84) + 24))(*(_DWORD *)(a1 + 84)) )
return *(_DWORD *)(a1 + 8) - *(_DWORD *)(a1 + 12);
else
return (*(int (__fastcall **)(_DWORD, int, _DWORD, _DWORD, int))(**(_DWORD **)(a1 + 84) + 28))(
*(_DWORD *)(a1 + 84),
a2,
*(_DWORD *)(a1 + 88),
*(_DWORD *)(a1 + 96),
*(_DWORD *)(a1 + 8) - *(_DWORD *)(a1 + 4))
+ *(_DWORD *)(a1 + 88)
- *(_DWORD *)(a1 + 100);
}