//
// sub_100581118 from 0x100581118 to 0x100581178 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ab020
//
// 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:08:30 +0000
//
__int64 __fastcall sub_100581118(_QWORD *a1, __int64 a2)
{
__int64 result; // x0
if ( *(_QWORD **)(a1[1] + 69856LL) == a1 )
return 5;
result = sub_10062EB5C();
if ( !(_DWORD)result )
return (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 120LL))(a1, a2);
return result;
}