//
// sub_100612898 from 0x100612898 to 0x1006128e0 (72 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:10:10 +0000
//
__int64 __fastcall sub_100612898(__int64 a1, int a2)
{
int v2; // w9
int v3; // w8
v2 = *(_DWORD *)(a1 + 64);
do
{
do
{
v3 = a2;
a2 = v2 - 1;
}
while ( v2 <= v3 );
if ( v3 < 0 )
break;
a2 = -1;
}
while ( !*(_DWORD *)(a1 + 8) );
if ( v3 < 0 )
return *(unsigned int *)(a1 + 132);
else
return *(unsigned int *)(*(_QWORD *)(a1 + 88) + 4LL * (unsigned int)v3);
}