//
// sub_BB2E8 from 0xbb2e8 to 0xbb35c (116 bytes)
//
// 2 xrefs:
// > sub_62B54 @ 0x63c6c
// > sub_BB18C @ 0xbb2c4
//
// 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_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;
}