//
// sub_10058512C from 0x10058512c to 0x100585184 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ab3d8
//
// 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:32 +0000
//
__int64 __fastcall sub_10058512C(__int64 a1, _DWORD *a2)
{
__int64 v2; // x8
__int64 result; // x0
__int64 v4; // x8
v2 = *(_QWORD *)(a1 + 472);
if ( !v2 || !*(_QWORD *)(a1 + 32) )
return 30;
if ( !*(_QWORD *)(v2 + 40) )
{
v4 = *(_QWORD *)(v2 + 48);
if ( v4 )
{
*a2 = *(unsigned __int16 *)(v4 + 272);
return 0;
}
return 30;
}
result = sub_1005EB2C4();
if ( !(_DWORD)result )
return 0;
return result;
}