//
// sub_BF87C from 0xbf87c to 0xbf8c0 (68 bytes)
//
// 1 xrefs:
// > sub_C005C @ 0xc0060
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:41:48 +0000
//
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;
}