//
// sub_1004BC2C4 from 0x1004bc2c4 to 0x1004bc378 (180 bytes)
//
// 1 xrefs:
// > sub_1004D0B88 @ 0x1004d0bcc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1004BC2C4(_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;
}