//
// sub_1005A0B94 from 0x1005a0b94 to 0x1005a0c7c (232 bytes)
//
// 1 xrefs:
// > sub_10059F900 @ 0x10059fb54
//
// 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:01 +0000
//
__int64 __fastcall sub_1005A0B94(__int64 a1)
{
__int64 result; // x0
int v3; // [xsp+4h] [xbp-22Ch] BYREF
_BYTE v4[512]; // [xsp+8h] [xbp-228h] BYREF
v3 = 0;
result = sub_1005D0A20(*(_QWORD *)(a1 + 368), 0, 0);
if ( !(_DWORD)result )
{
if ( !(unsigned int)sub_1005A11B8(a1) )
{
while ( !(unsigned int)sub_1005A12CC(a1, v4, 512, &v3) )
{
if ( !(unsigned int)sub_1005ECC5C(v4) )
return 19;
sub_100586064(a1, 8, (__int64)"FILE", (__int64)v4, (unsigned int)(v3 + 1), 3, 0);
if ( (unsigned int)sub_1005A11B8(a1) )
return 0;
}
}
return 0;
}
return result;
}