//
// sub_BFB63C from 0xbfb63c to 0xbfb694 (88 bytes)
//
// 1 xrefs:
// > jinit_c_main_controller @ 0xbfb6c8
//
// 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 *__fastcall sub_BFB63C(
__int64 (__fastcall *result)(__int64 result, __int64 a2, _DWORD *a3, unsigned int a4),
int a2))(__int64 result, __int64 a2, _DWORD *a3, unsigned int a4)
{
__int64 v2; // x2
__int64 (__fastcall *v3)(__int64 (__fastcall *)(__int64, __int64, _DWORD *, unsigned int)); // x2
v2 = *((_QWORD *)result + 63);
if ( !*((_DWORD *)result + 72) )
{
*(_DWORD *)(v2 + 16) = 0;
*(_DWORD *)(v2 + 20) = 0;
*(_DWORD *)(v2 + 24) = 0;
*(_DWORD *)(v2 + 28) = a2;
if ( a2 )
{
v3 = **(__int64 (__fastcall ***)(__int64 (__fastcall *)(__int64, __int64, _DWORD *, unsigned int)))result;
*(_DWORD *)(*(_QWORD *)result + 40LL) = 3;
return (__int64 (__fastcall *)(__int64, __int64, _DWORD *, unsigned int))v3(result);
}
else
{
result = sub_BFB504;
*(_QWORD *)(v2 + 8) = sub_BFB504;
}
}
return result;
}