//
// sub_1005A5308 from 0x1005a5308 to 0x1005a5390 (136 bytes)
//
// 1 xrefs:
// > sub_1005A5178 @ 0x1005a51e8
//
// 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:09:04 +0000
//
__int64 __fastcall sub_1005A5308(__int64 a1)
{
unsigned __int16 *v1; // x8
int v2; // w9
__int64 result; // x0
v1 = *(unsigned __int16 **)(a1 + 552);
if ( !v1 )
return 39;
v2 = *v1;
result = 39;
if ( v2 == 1 || v2 == 3 )
goto LABEL_7;
if ( v2 != 65534 )
return result;
if ( *((_QWORD *)v1 + 3) ^ 0x10000000000001LL | *((_QWORD *)v1 + 4) ^ 0x719B3800AA000080LL
&& *((_QWORD *)v1 + 3) ^ 0x10000000000003LL | *((_QWORD *)v1 + 4) ^ 0x719B3800AA000080LL )
{
return 39;
}
LABEL_7:
if ( v1[7] == 8 )
return 39;
return 0;
}