//
// sub_1004BC240 from 0x1004bc240 to 0x1004bc290 (80 bytes)
//
// 3 xrefs:
// > sub_1004BD248 @ 0x1004bd29c
// > sub_1004D0ADC @ 0x1004d0b58
// > sub_1004D1090 @ 0x1004d10d8
//
// 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_1004BC240(__int64 a1, _DWORD *a2)
{
_QWORD *v2; // x9
int v3; // w10
if ( !a2 )
return 31;
v2 = *(_QWORD **)(a1 + 320);
if ( v2 == (_QWORD *)(a1 + 320) )
{
v3 = 0;
}
else
{
v3 = 0;
do
{
if ( *(_DWORD *)(v2[2] + 24LL) != 1010 )
++v3;
v2 = (_QWORD *)*v2;
}
while ( v2 != (_QWORD *)(a1 + 320) );
}
*a2 = v3;
return 0;
}