//
// sub_100584988 from 0x100584988 to 0x100584a6c (228 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ab2a8
//
// 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_100584988(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)
{
int v6; // w24
__int64 result; // x0
__int64 v13; // x8
__int64 v14; // x24
int v15; // w8
__int64 v16; // [xsp+8h] [xbp-38h] BYREF
v6 = a6;
result = sub_10062EC90(a1, a2, a3, a4, a5, a6);
if ( !(_DWORD)result )
{
v13 = *(_QWORD *)(a1 + 472);
if ( v13 && *(_QWORD *)(a1 + 32) )
{
if ( v6 && (*(_BYTE *)(v13 + 56) & 0x10) != 0 )
{
return 0;
}
else
{
result = (*(__int64 (__fastcall **)(__int64, __int64, __int64 *))(*(_QWORD *)a1 + 288LL))(
a1,
4294967294LL,
&v16);
if ( !(_DWORD)result )
{
v14 = v16;
v15 = *(_DWORD *)(a1 + 72);
if ( (v15 & 0x10000) != 0 )
{
sub_100631CEC(v16);
v15 = *(_DWORD *)(a1 + 72);
}
return sub_100631CE4(
v14,
a2,
a3,
a4,
a5,
(unsigned __int8)((v15 & 0xC0000) == 0) << 6,
(*(_DWORD *)(*(_QWORD *)(a1 + 472) + 60LL) & 0x10000) == 0);
}
}
}
else
{
return 30;
}
}
return result;
}