//
// sub_10062EE54 from 0x10062ee54 to 0x10062eef4 (160 bytes)
//
// 3 xrefs:
// > ??> @ 0x1009ab098
// > ??> @ 0x1009ab2c0
// > ??> @ 0x1009adb78
//
// 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:26 +0000
//
__int64 __fastcall sub_10062EE54(__int64 a1, unsigned __int64 a2, unsigned __int64 a3, int a4)
{
__int64 result; // x0
__int64 v8; // [xsp+8h] [xbp-28h] BYREF
if ( *(_QWORD *)(a1 + 296) == a2 && *(_QWORD *)(a1 + 304) == a3 && *(unsigned __int8 *)(a1 + 312) == a4 )
return 0;
*(_QWORD *)(a1 + 296) = a2;
*(_QWORD *)(a1 + 304) = a3;
*(_BYTE *)(a1 + 312) = a4;
result = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64 *))(*(_QWORD *)a1 + 288LL))(a1, 0, &v8);
if ( !(_DWORD)result )
{
if ( v8 )
return sub_1005C7914(v8, a2, a3, a4);
else
return 9;
}
return result;
}