//
// sub_BF8C4 from 0xbf8c4 to 0xbf900 (60 bytes)
//
// 0 xrefs:
//
// 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 __fastcall sub_BF8C4(int a1, int a2, _DWORD *a3)
{
int v4; // r6
int v6; // r0
v4 = *(int *)((char *)&dword_154 + (_DWORD)off_E8000);
if ( !v4 )
return 18;
if ( !*(_DWORD *)v4 )
return 18;
v6 = (*(int (__fastcall **)(_DWORD, int, _DWORD))(v4 + 12))(*(_DWORD *)v4, a2 + 22, 0);
*(_DWORD *)(a1 + 4) = v6;
if ( !v6 )
return 18;
*a3 = (*(int (**)(void))(v4 + 28))();
return 0;
}