//
// sub_1005E2664 from 0x1005e2664 to 0x1005e26b8 (84 bytes)
//
// 2 xrefs:
// > sub_100563530 @ 0x1005636a4
// > sub_1005F6DC0 @ 0x1005f6e00
//
// 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:41 +0000
//
__int64 __fastcall sub_1005E2664(__int64 a1, int a2, _DWORD *a3)
{
__int64 *v3; // x8
int v4; // w10
if ( a3 )
{
if ( (a2 & 0x80000000) == 0 )
{
v3 = *(__int64 **)(a1 + 640);
if ( v3 != (__int64 *)(a1 + 640) )
{
if ( a2 )
{
v4 = a2 + 1;
while ( 1 )
{
v3 = (__int64 *)*v3;
if ( v3 == (__int64 *)(a1 + 640) )
break;
if ( --v4 < 2 )
goto LABEL_8;
}
}
else
{
LABEL_8:
if ( v3 )
{
*a3 = *((_DWORD *)v3 + 48);
return 0;
}
}
}
}
}
return 31;
}