//
// sub_1005FA278 from 0x1005fa278 to 0x1005fa31c (164 bytes)
//
// 1 xrefs:
// > sub_1005DDBA4 @ 0x1005dddb4
//
// 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:53 +0000
//
__int64 __fastcall sub_1005FA278(__int64 a1)
{
int v2; // w8
__int64 v3; // x21
__int64 v4; // x22
__int64 v5; // x1
__int64 v6; // x0
__int64 v7; // x20
if ( a1 )
sub_100568CC4(a1, 0x11u);
v2 = *(_DWORD *)(a1 + 1684);
if ( v2 < 1 )
{
v7 = 0;
LABEL_13:
sub_100568CE4(a1, 0x11u);
}
else
{
v3 = 0;
v4 = 48;
do
{
v5 = *(_QWORD *)(*(_QWORD *)(a1 + 1696) + v4);
if ( v5 )
{
v6 = sub_1005DC74C(*(_QWORD *)(a1 + 1648), v5);
if ( (_DWORD)v6 )
{
v7 = v6;
goto LABEL_13;
}
v2 = *(_DWORD *)(a1 + 1684);
}
++v3;
v4 += 56;
}
while ( v3 < v2 );
v7 = 0;
if ( a1 )
goto LABEL_13;
}
return v7;
}