//
// sub_1004BD638 from 0x1004bd638 to 0x1004bd6a8 (112 bytes)
//
// 2 xrefs:
// > FMOD::Reverb3D::release @ 0x1004bcb1c
// > sub_1004CEE58 @ 0x1004cf134
//
// 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
//
__int64 __fastcall sub_1004BD638(int *a1, int a2)
{
_QWORD *v4; // x9
_QWORD *v5; // x0
v4 = *((_QWORD **)a1 + 1);
*v4 = *(_QWORD *)a1;
*(_QWORD *)(*(_QWORD *)a1 + 8LL) = v4;
*(_QWORD *)a1 = a1;
*((_QWORD *)a1 + 1) = a1;
v5 = *((_QWORD **)a1 + 10);
if ( v5 )
sub_1004431A4(v5);
if ( a2 )
sub_1004B1970(*((_QWORD *)off_1008524C8 + 54), a1);
return 0;
}