//
// sub_72BF8 from 0x72bf8 to 0x72c64 (108 bytes)
//
// 2 xrefs:
// > sub_72CA8 @ 0x72ce2
// > sub_72DF4 @ 0x72e2e
//
// 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_72BF8(int a1, const void **a2)
{
unsigned __int8 *v3; // r0
int v5; // r1
int v6; // r2
size_t v7; // r6
void *v8; // r0
int v9; // r5
v3 = (unsigned __int8 *)*a2;
v5 = *(unsigned __int8 *)*a2;
v6 = v3[1];
*a2 = v3 + 2;
v7 = v5 | (v6 << 8);
v8 = (void *)sub_BD410(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), 2 * v7, "../../src/fmod_codec_it.cpp", 192);
*(_DWORD *)(a1 + 15792) = v8;
if ( !v8 )
return 38;
v9 = a1 + 15792;
qmemcpy(v8, *a2, v7);
*a2 = (char *)*a2 + v7;
*(_BYTE *)(v9 + 8) = 32;
*(_DWORD *)(v9 + 4) = *(_DWORD *)v9;
return 0;
}