//
// sub_10063615C from 0x10063615c to 0x100636200 (164 bytes)
//
// 0 xrefs:
//
// 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:30 +0000
//
__int64 __fastcall sub_10063615C(__int64 a1, int a2)
{
__int64 v2; // x8
int v3; // w8
int *v4; // x9
int v5; // w12
__int64 v6; // x11
__int64 i; // x10
__int64 v8; // x9
int v9; // t1
__int64 v10; // x10
int v11; // w11
v2 = *(unsigned int *)(a1 + 52);
if ( !(_DWORD)v2 )
return v2;
v3 = *(_DWORD *)(a1 + 24);
if ( !v3 )
return 28;
v4 = (int *)(*(_QWORD *)(a1 + 16) + 4LL * ((v3 - 1) & a2));
v5 = *v4;
if ( *v4 != -1 )
{
v6 = v5;
for ( i = *(_QWORD *)(a1 + 32); *(_DWORD *)(i + 16LL * v5) != a2; v6 = v5 )
{
v8 = i + 16 * v6;
v9 = *(_DWORD *)(v8 + 4);
v4 = (int *)(v8 + 4);
v5 = v9;
if ( v9 == -1 )
return 0;
}
v2 = 0;
v10 = i + 16 * v6;
*(_QWORD *)(v10 + 8) = 0;
*v4 = *(_DWORD *)(v10 + 4);
v11 = *(_DWORD *)(a1 + 52);
*(_DWORD *)(v10 + 4) = *(_DWORD *)(a1 + 48);
*(_DWORD *)(a1 + 48) = v5;
*(_DWORD *)(a1 + 52) = v11 - 1;
return v2;
}
return 0;
}