//
// sub_87DD14 from 0x87dd14 to 0x87dd46 (50 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:08 +0000
//
int __fastcall sub_87DD14(int result, char a2)
{
int v2; // r4
int v3; // r3
_BYTE *v4; // r2
int v5; // r2
v2 = result;
v3 = *(_DWORD *)(result + 24);
v4 = (_BYTE *)(*(_DWORD *)v3)++;
*v4 = a2;
v5 = *(_DWORD *)(v3 + 4) - 1;
*(_DWORD *)(v3 + 4) = v5;
if ( !v5 )
{
result = (*(int (**)(void))(v3 + 12))();
if ( !result )
{
*(_DWORD *)(*(_DWORD *)v2 + 20) = 25;
return (**(int (__fastcall ***)(int))v2)(v2);
}
}
return result;
}