//
// sub_B87570 from 0xb87570 to 0xb875d0 (96 bytes)
//
// 4 xrefs:
// > sub_B9C364 @ 0xb9c67c
// > sub_B9C364 @ 0xb9caf4
// > sub_B9C364 @ 0xb9cb04
// > sub_B9C364 @ 0xb9ce5c
//
// 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_B87570(__int64 a1, _QWORD **a2)
{
_QWORD *v2; // x2
if ( !a2 )
return 0;
v2 = *a2;
if ( !*a2 )
return (unsigned int)v2;
while ( *v2 != a1 )
{
v2 = (_QWORD *)v2[2];
if ( !v2 )
return (unsigned int)v2;
}
sub_B994E4(a2, v2, 0);
return 1;
}