//
// sub_88BA64 from 0x88ba64 to 0x88bac6 (98 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:03:17 +0000
//
int __fastcall sub_88BA64(_DWORD *a1, int a2, int a3, int a4)
{
int v5; // r4
int v9; // r6
int result; // r0
int v11; // r1
unsigned int v12; // r6
v5 = a1[112];
v9 = v5 + 8;
if ( !*(_DWORD *)(v5 + 48) )
{
v9 = v5 + 8;
result = (*(int (**)(void))(a1[113] + 12))();
if ( !result )
return result;
*(_DWORD *)(v5 + 48) = 1;
}
v11 = v9;
v12 = a1[82];
result = (*(int (__fastcall **)(_DWORD *, int, int, unsigned int, int, int, int))(a1[114] + 4))(
a1,
v11,
v5 + 52,
v12,
a2,
a3,
a4);
if ( v12 <= *(_DWORD *)(v5 + 52) )
{
*(_DWORD *)(v5 + 48) = 0;
*(_DWORD *)(v5 + 52) = 0;
}
return result;
}