//
// sub_10014FEE0 from 0x10014fee0 to 0x10014ff4c (108 bytes)
//
// 3 xrefs:
// > sub_10014FD78 @ 0x10014fe08
// > sub_10018EE04 @ 0x10018ee8c
// > sub_1002CBFB8 @ 0x1002cc048
//
// 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 10:59:39 +0000
//
__int64 __fastcall sub_10014FEE0(__int64 a1, __int64 a2)
{
_QWORD *v3; // x1
__int64 *v4; // x9
_QWORD *v5; // x2
v3 = (_QWORD *)(a1 + 8);
v4 = *(__int64 **)(a1 + 8);
if ( v4 )
{
do
{
while ( 1 )
{
v3 = v4;
if ( *(_DWORD *)(a2 + 28) >= *((_DWORD *)v4 + 7) )
break;
v4 = (__int64 *)*v4;
v5 = v3;
if ( !*v3 )
goto LABEL_8;
}
v4 = (__int64 *)v4[1];
}
while ( v4 );
v5 = v3 + 1;
}
else
{
v5 = (_QWORD *)(a1 + 8);
}
LABEL_8:
sub_10000A0F0((__int64 **)a1, (__int64)v3, v5, (_QWORD *)a2);
return a2;
}