//
// sub_98129E from 0x98129e to 0x9812d4 (54 bytes)
//
// 2 xrefs:
// > sub_9812D4 @ 0x9812f6
// > sub_9812D4 @ 0x981310
//
// 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:06:07 +0000
//
int __fastcall sub_98129E(_DWORD *a1, int a2, _DWORD *a3)
{
int v3; // r12
int v4; // lr
v3 = a1[1];
if ( a3 )
{
v4 = v3 >> 8;
if ( (v3 & 1) != 0 )
v4 = *(_DWORD *)(*a3 + v4);
}
else
{
v4 = 0;
}
return (*(int (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*a1 + 28))(*a1, a2, (int)a3 + v4);
}