//
// sub_10062FC4C from 0x10062fc4c to 0x10062fcc0 (116 bytes)
//
// 3 xrefs:
// > ??> @ 0x1009ab0f0
// > ??> @ 0x1009ab318
// > ??> @ 0x1009adbd0
//
// 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:10:27 +0000
//
__int64 __fastcall sub_10062FC4C(__int64 a1, __int64 a2, _DWORD *a3)
{
__int64 v3; // x8
__int64 v4; // x9
__int64 v5; // x10
__int64 result; // x0
if ( !a2 )
return 31;
if ( a3 )
*a3 = 0;
v3 = *(_QWORD *)(a1 + 16);
if ( !v3 )
{
if ( *(_QWORD *)(a1 + 96) == a2 )
return 0;
return 9;
}
v4 = *(unsigned int *)(a1 + 24);
if ( (int)v4 < 1 )
return 9;
v5 = 0;
while ( *(_QWORD *)(v3 + 8 * v5) != a2 )
{
if ( v4 == ++v5 )
return 9;
}
result = 0;
if ( a3 )
*a3 = v5;
return result;
}