//
// sub_45EA8 from 0x45ea8 to 0x45eee (70 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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;
}