//
// sub_539E8 from 0x539e8 to 0x53a44 (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x10c290
//
// 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 12:13:48 +0000
//
__int64 __fastcall sub_539E8(_QWORD *a1, __int64 a2)
{
_QWORD *v2; // x0
__int64 result; // x0
if ( !a2 )
return 31;
if ( a1[93] )
{
v2 = (_QWORD *)a1[93];
}
else if ( a1[5] && a1[83] )
{
v2 = a1 + 14;
}
else
{
v2 = (_QWORD *)a1[92];
if ( !v2 )
return 30;
}
result = sub_C9A64(v2);
if ( !(_DWORD)result )
return 0;
return result;
}