//
// sub_100584D10 from 0x100584d10 to 0x100584d7c (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ab248
//
// 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:31 +0000
//
__int64 __fastcall sub_100584D10(_QWORD *a1, __int64 a2)
{
__int64 v2; // x8
__int64 result; // x0
v2 = a1[59];
if ( !v2 || !a1[4] )
return 30;
if ( (*(_BYTE *)(v2 + 62) & 1) != 0 )
return 58;
result = sub_10062EB5C(a1);
if ( !(_DWORD)result )
return (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 120LL))(a1, a2);
return result;
}