//
// sub_BF87C from 0xbf87c to 0xbf8c0 (68 bytes)
//
// 1 xrefs:
// > sub_C005C @ 0xc0060
//
// 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
//
int sub_BF87C()
{
int v0; // r4
_DWORD *v1; // r5
int v2; // r0
int v4; // [sp+4h] [bp-Ch] BYREF
v4 = 0;
v0 = sub_BFE7C(&v4);
if ( !v0 )
{
v1 = *(_DWORD **)((char *)&dword_154 + (_DWORD)off_E8000);
if ( v1 )
{
if ( v1[1] )
{
(*(void (__fastcall **)(int))(*(_DWORD *)v4 + 88))(v4);
*v1 = 0;
v1[1] = 0;
}
v2 = v1[2];
if ( v2 )
{
sub_C06BE(v2);
v1[2] = 0;
}
}
}
return v0;
}