//
// sub_CBE2C from 0xcbe2c to 0xcbe7c (80 bytes)
//
// 6 xrefs:
// > sub_70A34 @ 0x70a9c
// > sub_7FE24 @ 0x7fef0
// > sub_A8048 @ 0xa80ac
// > sub_B40D4 @ 0xb4164
// > sub_B8FA8 @ 0xb90b4
// > FMOD::DSP::setParameterBool @ 0xd3d90
//
// 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_CBE2C(__int64 a1, int a2)
{
__int64 v2; // x8
__int64 (__fastcall *v3)(__int64); // x3
if ( a2 < 0 )
return 31;
v2 = *(_QWORD *)(a1 + 232);
if ( !v2 || *(_DWORD *)(v2 + 96) <= a2 )
return 31;
v3 = *(__int64 (__fastcall **)(__int64))(v2 + 128);
if ( v3 )
{
if ( **(_DWORD **)(*(_QWORD *)(v2 + 104) + 8LL * a2) == 2 )
{
*(_QWORD *)(a1 + 176) = a1;
return v3(a1 + 176);
}
return 31;
}
return 68;
}