//
// sub_10060E818 from 0x10060e818 to 0x10060e928 (272 bytes)
//
// 1 xrefs:
// > sub_1005FFA90 @ 0x100600464
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_10060E818(__int64 a1, __int64 a2)
{
unsigned int **v4; // x21
__int64 result; // x0
int v6; // w22
__int64 v7; // x0
int v8; // w21
__int64 v9; // x0
int v10; // [xsp+0h] [xbp-30h] BYREF
__int64 v11; // [xsp+8h] [xbp-28h]
v4 = (unsigned int **)sub_1005FEF60(a1);
if ( (int)sub_100602710(v4) > 0 )
{
v10 = 4;
v11 = (__int64)v4;
result = sub_10060E928(&v10, a2);
if ( (_DWORD)result )
return result;
v10 = 1;
v6 = -1;
while ( 1 )
{
v6 = sub_100602724(v4, 0x30u, v6);
if ( v6 == -1 )
break;
v7 = sub_1006026BC(v4, v6);
v11 = sub_1006026A8(v7);
if ( *(_DWORD *)(v11 + 4) != 22 )
return 53;
result = sub_10060E928(&v10, a2);
if ( (_DWORD)result )
return result;
}
}
v8 = 0;
if ( (int)sub_1005DEA4C(*(unsigned int **)(a1 + 136)) <= 0 )
return 0;
while ( 1 )
{
v9 = sub_1005DEA60(*(_QWORD *)(a1 + 136), v8);
result = sub_10060E928(v9, a2);
if ( (_DWORD)result )
break;
if ( ++v8 >= (int)sub_1005DEA4C(*(unsigned int **)(a1 + 136)) )
return 0;
}
return result;
}