//
// sub_54B04 from 0x54b04 to 0x54b68 (100 bytes)
//
// 2 xrefs:
// > sub_54A38 @ 0x54af0
// > sub_57338 @ 0x5750e
//
// 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_54B04(_DWORD *a1)
{
int v1; // r1
__int64 v3; // r0
v1 = a1[12];
if ( v1 )
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v1, "../../src/fmod_soundgroupi.cpp", 183, 1);
j_FMOD_OS_CriticalSection_Enter(*(int *)((char *)&dword_10C + (_DWORD)off_E8000));
v3 = *(_QWORD *)a1;
*(_DWORD *)HIDWORD(v3) = v3;
*(_DWORD *)(*a1 + 4) = HIDWORD(v3);
*a1 = a1;
a1[1] = a1;
j_FMOD_OS_CriticalSection_Leave(*(int *)((char *)&dword_10C + (_DWORD)off_E8000));
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), a1, "../../src/fmod_soundgroupi.cpp", 190, 1);
return 0;
}