//
// sub_61F2C from 0x61f2c to 0x61fd4 (168 bytes)
//
// 3 xrefs:
// > sub_62978 @ 0x62998
// > sub_63520 @ 0x63528
// > sub_6BF34 @ 0x6bf6c
//
// 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 12:13:54 +0000
//
__int64 __fastcall sub_61F2C(__int64 a1, unsigned int a2, char a3)
{
int *v6; // x0
int *v7; // x19
__int64 i; // x22
__int64 v9; // x1
__int64 result; // x0
__int64 v11; // x0
v6 = (int *)sub_629A8();
if ( v6 )
{
v7 = v6;
if ( **((_DWORD **)v6 + 1) == a2 )
{
for ( i = *v6 - 1LL; i + 1 >= 1; --i )
{
v9 = *(unsigned int *)(*((_QWORD *)v7 + 1) + 4 * i);
if ( (_DWORD)v9 )
{
result = sub_62A2C(a1, v9, a3 & 1);
if ( (_DWORD)result )
return result;
*(_DWORD *)(*((_QWORD *)v7 + 1) + 4 * i) = 0;
}
}
v11 = sub_63478();
sub_6352C(v11);
}
}
else
{
result = sub_62A2C(a1, a2, a3 & 1);
if ( (_DWORD)result )
return result;
}
return 0;
}