//
// FMODAudioEngine::getFMODStatus from 0x6cd6e0 to 0x6cd988 (680 bytes)
//
// 2 xrefs:
// > MoreOptionsLayer::onFMODDebug @ 0x8ee3c0
// > ??> @ 0xf3fb8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:51:25 +0000
//
__int64 *__usercall FMODAudioEngine::getFMODStatus@(FMOD::System **this@, __int64 *a2@)
{
__int64 v4; // x3
cocos2d::CCString *v5; // x0
char *CString; // x0
const char *v7; // x1
cocos2d::CCString *v8; // x0
size_t v9; // x0
float v10; // s8
cocos2d::CCString *v11; // x0
size_t v12; // x0
cocos2d::CCString *v13; // x0
size_t v14; // x0
cocos2d::CCString *v15; // x0
size_t v16; // x0
cocos2d::CCString *v17; // x0
size_t v18; // x0
FMOD::System *v19; // x0
cocos2d::CCString *v20; // x0
size_t v21; // x0
char *v23; // [xsp+38h] [xbp+38h]
char *v24; // [xsp+38h] [xbp+38h]
char *v25; // [xsp+38h] [xbp+38h]
char *v26; // [xsp+38h] [xbp+38h]
char *v27; // [xsp+38h] [xbp+38h]
char *v28; // [xsp+38h] [xbp+38h]
unsigned int v29; // [xsp+48h] [xbp+48h]
unsigned int v30; // [xsp+4Ch] [xbp+4Ch]
unsigned int v31; // [xsp+50h] [xbp+50h] BYREF
unsigned int v32; // [xsp+54h] [xbp+54h] BYREF
int v33; // [xsp+58h] [xbp+58h]
unsigned int v34; // [xsp+5Ch] [xbp+5Ch]
unsigned int v35; // [xsp+60h] [xbp+60h]
unsigned int v36; // [xsp+64h] [xbp+64h]
char *v37; // [xsp+68h] [xbp+68h] BYREF
float v38; // [xsp+70h] [xbp+70h]
float v39; // [xsp+74h] [xbp+74h]
float v40; // [xsp+78h] [xbp+78h]
float v41; // [xsp+7Ch] [xbp+7Ch]
float v42; // [xsp+80h] [xbp+80h]
float v43; // [xsp+84h] [xbp+84h]
__int64 v44; // [xsp+88h] [xbp+88h]
a2[1] = 0;
a2[2] = 0;
v4 = _stack_chk_guard;
*a2 = 0;
v44 = v4;
std::string::__init(a2, &byte_11B8890, 0);
FMOD_Memory_GetStats();
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Memory: %i, Max: %i",
(const char *)v29,
v30);
CString = (char *)cocos2d::CCString::getCString(v5);
std::string::assign(a2, CString);
FMOD::System::getCPUUsage();
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"\ndsp: %f, stream: %f\ngeo: %f, update: %f\nconv1: %f, conv2: %f",
v7,
v38,
v39,
v40,
v41,
v42,
v43);
v23 = (char *)cocos2d::CCString::getCString(v8);
v9 = strlen(v23);
std::string::append((__int64)a2, v23, v9);
FMOD::System::getDSPBufferSize(*(this + 61), &v31, (int *)&v32);
FMOD::System::getSoftwareFormat();
v10 = (float)((float)v31 * 1000.0) / (float)v33;
v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"\nMixer blocksize = %f ms",
(const char *)(unsigned int)v33,
v10);
v24 = (char *)cocos2d::CCString::getCString(v11);
v12 = strlen(v24);
std::string::append((__int64)a2, v24, v12);
v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"\nMixer Total buffersize = %f ms",
(const char *)v32,
(float)((float)(int)v32 * v10));
v25 = (char *)cocos2d::CCString::getCString(v13);
v14 = strlen(v25);
std::string::append((__int64)a2, v25, v14);
v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"\nMixer Average Latency = %f ms",
(const char *)v32,
(float)((float)((float)(int)v32 - 1.5) * v10));
v26 = (char *)cocos2d::CCString::getCString(v15);
v16 = strlen(v26);
std::string::append((__int64)a2, v26, v16);
FMOD::System::getSoftwareFormat();
v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"\nSR: %i, SM: %i, NRS: %i",
(const char *)v34,
v35,
v36);
v27 = (char *)cocos2d::CCString::getCString(v17);
v18 = strlen(v27);
std::string::append((__int64)a2, v27, v18);
v19 = *(this + 61);
v37 = (char *)0x100000000LL;
FMOD::System::getStreamBufferSize(v19, (unsigned int *)&v37, (unsigned int *)&v37 + 1);
v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"\nstreamBufferSize: %i, Type: %i",
(const char *)(unsigned int)v37,
HIDWORD(v37));
v28 = (char *)cocos2d::CCString::getCString(v20);
v21 = strlen(v28);
std::string::append((__int64)a2, v28, v21);
return a2;
}