//
// sub_7808D8 from 0x7808d8 to 0x7808ea (18 bytes)
//
// 2 xrefs:
// > sub_7805D0 @ 0x7808d4
// > sub_77FAEA @ 0x77fdbc
//
// 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_7808D8(int a1, int a2, int a3, int a4)
{
_DWORD *v4; // r4
_DWORD *v5; // r0
int v6; // r1
int v7; // r2
int v8; // r0
v4[3] = a4 + 1;
v5 = sub_77D3D0(v4, 69);
v8 = sub_77FDC8((int)v5, v6, v7, (int)v5);
return sub_7808EA(v8);
}