//
// sub_10059F820 from 0x10059f820 to 0x10059f878 (88 bytes)
//
// 0 xrefs:
//
// 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:00 +0000
//
__int64 __fastcall sub_10059F820(__int64 a1, __int64 a2, unsigned int a3)
{
int v5; // w0
v5 = sub_1006135F8(a1, a1 + 376, a3);
if ( (v5 & 0x80000000) == 0 )
return 0;
if ( v5 == -139 )
return 38;
if ( !a3 && !*(_QWORD *)(a1 + 496) )
return 0;
return 14;
}