//
// sub_1004BC448 from 0x1004bc448 to 0x1004bc49c (84 bytes)
//
// 3 xrefs:
// > sub_10043EFF0 @ 0x10043f050
// > sub_10043FA1C @ 0x10043ffcc
// > sub_1004D0C58 @ 0x1004d0c80
//
// 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_1004BC448(__int64 a1, int a2, _DWORD *a3)
{
__int64 *v3; // x8
int v4; // w10
if ( a3 )
{
if ( (a2 & 0x80000000) == 0 )
{
v3 = *(__int64 **)(a1 + 376);
if ( v3 != (__int64 *)(a1 + 376) )
{
if ( a2 )
{
v4 = a2 + 1;
while ( 1 )
{
v3 = (__int64 *)*v3;
if ( v3 == (__int64 *)(a1 + 376) )
break;
if ( --v4 < 2 )
goto LABEL_8;
}
}
else
{
LABEL_8:
if ( v3 )
{
*a3 = *((_DWORD *)v3 + 36);
return 0;
}
}
}
}
}
return 31;
}