//
// sub_1005E0114 from 0x1005e0114 to 0x1005e0170 (92 bytes)
//
// 1 xrefs:
// > sub_1005DFE70 @ 0x1005dff20
//
// 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:09:39 +0000
//
__int64 __fastcall sub_1005E0114(__int64 a1, __int64 a2)
{
__int64 v2; // x8
__int64 v3; // x0
__int64 result; // x0
v2 = a1 - 8;
if ( !a1 )
v2 = 0;
v3 = *(unsigned int *)(*(_QWORD *)(v2 + 72) + 69816LL);
if ( (_DWORD)a2 )
{
result = sub_10061F0D8(v3, 1, 0);
if ( !(_DWORD)result )
return 0;
}
else
{
result = sub_10061F0D8(v3, a2, 1);
if ( !(_DWORD)result )
return 0;
}
return result;
}