//
// sub_100581088 from 0x100581088 to 0x100581118 (144 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ab080
//
// 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_100581088(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, int a6)
{
__int64 result; // x0
if ( !a6 )
return sub_100631CE4(*(_QWORD *)(a1 + 112), a2, a3, a4, a5, 64, 1);
result = sub_10062EC90(a1, a2, a3, a4, a5, 1);
if ( !(_DWORD)result )
return sub_100631CE4(*(_QWORD *)(a1 + 112), a2, a3, a4, a5, 64, 1);
return result;
}