//
// sub_45EA8 from 0x45ea8 to 0x45eee (70 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 11:40:37 +0000
//
int __fastcall sub_45EA8(_DWORD *a1, _DWORD *a2)
{
_DWORD *v2; // r2
int v3; // r4
int result; // r0
if ( !a2 )
return 31;
v2 = (_DWORD *)a1[131];
if ( v2 || (v2 = (_DWORD *)a1[130]) != nullptr )
{
LABEL_4:
v3 = 106;
if ( v2[108] > v2[109] )
v3 = 107;
*a2 = v2[v3];
return 0;
}
if ( a1[115] )
{
v2 = a1 + 20;
goto LABEL_4;
}
result = sub_44D62((int)a1, a2);
if ( !result )
return 0;
return result;
}