//
// sub_BB2E8 from 0xbb2e8 to 0xbb35c (116 bytes)
//
// 2 xrefs:
// > sub_62B54 @ 0x63c6c
// > sub_BB18C @ 0xbb2c4
//
// 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:45 +0000
//
int __fastcall sub_BB2E8(int a1)
{
__int64 v2; // kr00_8
void *v3; // r0
v2 = *(_QWORD *)(a1 + 412);
v3 = (void *)sub_BD580(
*(int *)((char *)&dword_14C + (_DWORD)off_E8000),
*(_DWORD *)(a1 + 316) + 1,
"../../src/fmod_file.cpp",
1744,
0);
*(_DWORD *)(a1 + 416) = v3;
if ( !v3 )
return 38;
*(_DWORD *)(a1 + 412) = v3;
if ( (_DWORD)v2 )
qmemcpy(v3, (const void *)v2, *(_DWORD *)(a1 + 316));
if ( HIDWORD(v2) )
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), HIDWORD(v2), "../../src/fmod_file.cpp", 1759, 1);
return 0;
}