//
// sub_7810EC from 0x7810ec to 0x78111c (48 bytes)
//
// 1 xrefs:
// > sub_77FAEA @ 0x780322
//
// 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_7810EC(int a1, int a2, int a3, int a4)
{
_DWORD *v4; // r4
int v5; // r7
_DWORD *v6; // r9
int v7; // r0
v4[3] = a4 + 2;
v5 = sub_77D87C((int)v4);
v6 = sub_77E8CC((int)v4);
if ( *(_BYTE *)v4[3] == 73 )
JUMPOUT(0x7812E6);
sub_77BD98(v4, 1, v5, (int)v6);
sub_77FDD4();
return sub_78111C(v7);
}