//
// sub_1004BB8BC from 0x1004bb8bc to 0x1004bb900 (68 bytes)
//
// 3 xrefs:
// > sub_10043EFF0 @ 0x10043f064
// > sub_10043FA1C @ 0x10043ffe4
// > sub_1004D0CBC @ 0x1004d0d6c
//
// 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_1004BB8BC(__int64 a1, int a2, __int64 **a3)
{
__int64 *v3; // x9
if ( !a3 )
return 31;
*a3 = nullptr;
v3 = (__int64 *)(a1 + 376);
while ( 1 )
{
v3 = (__int64 *)*v3;
if ( v3 == (__int64 *)(a1 + 376) )
break;
if ( *((_DWORD *)v3 + 36) == a2 )
{
*a3 = v3;
return 0;
}
}
return 54;
}