//
// sub_BD2F0 from 0xbd2f0 to 0xbd322 (50 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_BD2F0(_DWORD *a1, int a2)
{
int (__fastcall *v4)(_DWORD, int, _DWORD); // r3
int result; // r0
if ( sub_BD254(a1) )
return 0;
v4 = (int (__fastcall *)(_DWORD, int, _DWORD))a1[109];
if ( !v4 )
{
v4 = *(int (__fastcall **)(_DWORD, int, _DWORD))(a1[92] + 69024);
if ( !v4 )
return 0;
}
result = v4(a1[112], a2, a1[113]);
if ( !result )
return 0;
return result;
}