//
// sub_BED90 from 0xbed90 to 0xbee1c (140 bytes)
//
// 0 xrefs:
//
// 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 __fastcall sub_BED90(unsigned __int64 **a1, int a2, int a3, int a4, _DWORD *a5, int *a6, int *a7, unsigned int a8)
{
unsigned __int64 *v9; // r0
unsigned __int64 *v10; // r4
int v11; // r5
unsigned __int64 *v12; // r0
unsigned int v14; // [sp+4h] [bp-1Ch] BYREF
if ( !*a5 )
{
*a5 = 3;
*a6 = 2;
}
v9 = sub_BD580(
*(int *)((char *)&dword_14C + (_DWORD)off_E8000),
8u,
"../../src/fmod_output_nosound_nrt.cpp",
0x39u,
0);
*a1 = v9;
if ( !v9 )
return 38;
v10 = v9;
*(_DWORD *)v9 = a8;
v14 = 0;
v11 = sub_4C6EA(a8, &v14, *a6, *a7);
if ( !v11 )
{
v11 = 0;
v12 = sub_BD580(
*(int *)((char *)&dword_14C + (_DWORD)off_E8000),
v14,
"../../src/fmod_output_nosound_nrt.cpp",
0x46u,
0);
*((_DWORD *)v10 + 1) = v12;
if ( !v12 )
return 38;
}
return v11;
}