//
// sub_98E04 from 0x98e04 to 0x98e68 (100 bytes)
//
// 1 xrefs:
// > sub_99108 @ 0x9910a
//
// 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 11:41:29 +0000
//
int __fastcall sub_98E04(_DWORD *a1)
{
unsigned int v2; // r0
int v3; // r5
int v4; // r3
int v5; // r0
_DWORD *v6; // r0
int result; // r0
a1[95] = 1;
v2 = sub_4F410((int *)(a1[32] + 68996));
v3 = 0;
a1[97] = v2;
a1[98] = ~v2;
v4 = -1474208055 * ~v2;
a1[99] = 572572263 * v2;
a1[100] = v4;
while ( 1 )
{
v5 = a1[41];
if ( v3 >= *(_DWORD *)(v5 + 72) )
return 0;
v6 = *(_DWORD **)(*(_DWORD *)(v5 + 76) + 4 * v3);
if ( *v6 == 1 )
{
result = sub_AB28A(a1, v3, v6[12], v4);
}
else
{
if ( *v6 )
goto LABEL_8;
result = sub_AB218(a1, v3, v6[12]);
}
if ( result )
return result;
LABEL_8:
++v3;
}
}