//
// FMODAudioEngine::getFMODStatus from 0x5ac1bc to 0x5ac478 (700 bytes)
//
// 2 xrefs:
// > MoreOptionsLayer::onFMODDebug @ 0x7c7574
// > ??> @ 0xbb0f8
//
// 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 __usercall FMODAudioEngine::getFMODStatus@(FMODAudioEngine *this@, __int64 a2@)
{
cocos2d::CCString *v4; // x0
size_t v5; // x0
const char *v6; // x1
cocos2d::CCString *v7; // x0
size_t v8; // x0
float v9; // s8
cocos2d::CCString *v10; // x0
size_t v11; // x0
cocos2d::CCString *v12; // x0
size_t v13; // x0
cocos2d::CCString *v14; // x0
size_t v15; // x0
cocos2d::CCString *v16; // x0
size_t v17; // x0
FMOD::System *m_system; // x0
cocos2d::CCString *v19; // x0
size_t v20; // x0
const char *CString; // [xsp+48h] [xbp+48h]
const char *v23; // [xsp+48h] [xbp+48h]
const char *v24; // [xsp+48h] [xbp+48h]
const char *v25; // [xsp+48h] [xbp+48h]
const char *v26; // [xsp+48h] [xbp+48h]
const char *v27; // [xsp+48h] [xbp+48h]
const char *v28; // [xsp+48h] [xbp+48h]
unsigned int v29; // [xsp+58h] [xbp+58h]
unsigned int v30; // [xsp+5Ch] [xbp+5Ch]
unsigned int v31; // [xsp+60h] [xbp+60h] BYREF
unsigned int v32; // [xsp+64h] [xbp+64h] BYREF
unsigned int v33; // [xsp+68h] [xbp+68h] BYREF
unsigned int v34; // [xsp+6Ch] [xbp+6Ch] BYREF
unsigned int v35; // [xsp+70h] [xbp+70h] BYREF
unsigned int v36; // [xsp+74h] [xbp+74h] BYREF
char *v37; // [xsp+78h] [xbp+78h] BYREF
float v38; // [xsp+80h] [xbp+80h]
float v39; // [xsp+84h] [xbp+84h]
float v40; // [xsp+88h] [xbp+88h]
float v41; // [xsp+8Ch] [xbp+8Ch]
float v42; // [xsp+90h] [xbp+90h]
float v43; // [xsp+94h] [xbp+94h]
sub_D153B8(a2, &byte_F288A0);
FMOD_Memory_GetStats();
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Memory: %i, Max: %i",
(const char *)v29,
v30);
CString = cocos2d::CCString::getCString(v4);
v5 = strlen(CString);
sub_D1798C(a2, CString, v5);
FMOD::System::getCPUUsage();
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"\ndsp: %f, stream: %f\ngeo: %f, update: %f\nconv1: %f, conv2: %f",
v6,
v38,
v39,
v40,
v41,
v42,
v43);
v23 = cocos2d::CCString::getCString(v7);
v8 = strlen(v23);
sub_D15FD4(a2, v23, v8);
FMOD::System::getDSPBufferSize(this->m_system, &v31, (int *)&v32);
FMOD::System::getSoftwareFormat(this->m_system, (int *)&v33, nullptr, nullptr);
v9 = (float)((float)v31 * 1000.0) / (float)(int)v33;
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"\nMixer blocksize = %f ms",
(const char *)v33,
v9);
v24 = cocos2d::CCString::getCString(v10);
v11 = strlen(v24);
sub_D15FD4(a2, v24, v11);
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"\nMixer Total buffersize = %f ms",
(const char *)v32,
(float)((float)(int)v32 * v9));
v25 = cocos2d::CCString::getCString(v12);
v13 = strlen(v25);
sub_D15FD4(a2, v25, v13);
v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"\nMixer Average Latency = %f ms",
(const char *)v32,
(float)((float)((float)(int)v32 - 1.5) * v9));
v26 = cocos2d::CCString::getCString(v14);
v15 = strlen(v26);
sub_D15FD4(a2, v26, v15);
FMOD::System::getSoftwareFormat(this->m_system, (int *)&v34, (FMOD_SPEAKERMODE *)&v35, (int *)&v36);
v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"\nSR: %i, SM: %i, NRS: %i",
(const char *)v34,
v35,
v36);
v27 = cocos2d::CCString::getCString(v16);
v17 = strlen(v27);
sub_D15FD4(a2, v27, v17);
m_system = this->m_system;
v37 = (char *)0x100000000LL;
FMOD::System::getStreamBufferSize(m_system, (unsigned int *)&v37, (unsigned int *)&v37 + 1);
v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"\nstreamBufferSize: %i, Type: %i",
(const char *)(unsigned int)v37,
HIDWORD(v37));
v28 = cocos2d::CCString::getCString(v19);
v20 = strlen(v28);
sub_D15FD4(a2, v28, v20);
return a2;
}