//
// sub_1004BC20C from 0x1004bc20c to 0x1004bc240 (52 bytes)
//
// 2 xrefs:
// > sub_10043FA1C @ 0x10043fdcc
// > sub_1004D0ADC @ 0x1004d0b70
//
// 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_1004BC20C(__int64 a1, int *a2)
{
int v2; // w8
_QWORD *v3; // x10
if ( !a2 )
return 31;
v2 = -1;
v3 = (_QWORD *)(a1 + 376);
do
{
v3 = (_QWORD *)*v3;
++v2;
}
while ( v3 != (_QWORD *)(a1 + 376) );
*a2 = v2;
return 0;
}