//
// sub_1005E242C from 0x1005e242c to 0x1005e24e0 (180 bytes)
//
// 1 xrefs:
// > sub_1005F6CF0 @ 0x1005f6d34
//
// 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_1005E242C(_QWORD *a1, int a2, int *a3)
{
_QWORD *v3; // x9
__int64 v4; // x10
int *v5; // x8
__int64 *v7; // x9
__int64 *v8; // x9
int v9; // w8
if ( !a3 )
return 31;
v3 = a1 + 40;
do
{
v3 = (_QWORD *)*v3;
if ( v3 == a1 + 40 )
{
v7 = a1 + 80;
do
{
v7 = (__int64 *)*v7;
if ( v7 == a1 + 80 )
{
v8 = a1 + 47;
while ( 1 )
{
v8 = (__int64 *)*v8;
if ( v8 == a1 + 47 )
goto LABEL_18;
if ( *((_DWORD *)v8 + 36) == a2 )
{
v5 = (int *)v8[32];
if ( !v5 )
goto LABEL_18;
goto LABEL_17;
}
}
}
}
while ( *((_DWORD *)v7 + 48) != a2 );
v5 = (int *)v7[34];
if ( v5 )
goto LABEL_17;
goto LABEL_18;
}
v4 = v3[2];
}
while ( *(_DWORD *)(v4 + 20) != a2 );
v5 = *(int **)(v4 + 112);
if ( v5 )
{
LABEL_17:
v9 = *v5;
goto LABEL_19;
}
LABEL_18:
v9 = 1;
LABEL_19:
*a3 = v9;
return 0;
}