{"type": "func", "start": 3142720, "end": 3143176, "name": "FMODAudioEngine::getFMODStatus", "pseudocode": "// \n// FMODAudioEngine::getFMODStatus from 0x2ff440 to 0x2ff608 (456 bytes)\n// \n// 1 xrefs:\n// > MoreOptionsLayer::onFMODDebug @ 0x421e50\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nFMODAudioEngine *__fastcall FMODAudioEngine::getFMODStatus(FMODAudioEngine *this, int a2)\n{\n  cocos2d::CCString *v4; // r0\n  char *CString; // r0\n  const char *v6; // r1\n  cocos2d::CCString *v7; // r0\n  char *v8; // r0\n  float v9; // s16\n  const char *v10; // r1\n  cocos2d::CCString *v11; // r0\n  char *v12; // r0\n  const char *v13; // r1\n  cocos2d::CCString *v14; // r0\n  char *v15; // r0\n  const char *v16; // r1\n  cocos2d::CCString *v17; // r0\n  char *v18; // r0\n  cocos2d::CCString *v19; // r0\n  char *v20; // r0\n  FMOD::System *v21; // r0\n  cocos2d::CCString *v22; // r0\n  char *v23; // r0\n  char *v25; // [sp+2Ch] [bp-28h]\n  unsigned int v26; // [sp+34h] [bp-20h] BYREF\n  int v27; // [sp+38h] [bp-1Ch] BYREF\n  int v28; // [sp+3Ch] [bp-18h] BYREF\n  const char *v29; // [sp+40h] [bp-14h] BYREF\n  int v30; // [sp+44h] [bp-10h] BYREF\n  int v31; // [sp+48h] [bp-Ch] BYREF\n  char *v32; // [sp+4Ch] [bp-8h] BYREF\n  unsigned int v33[7]; // [sp+50h] [bp-4h] BYREF\n\n  sub_776584((int)this, (char *)&unk_939830);\n  FMOD_Memory_GetStats();\n  v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"Memory: %i, Max: %i\", v25);\n  CString = (char *)cocos2d::CCString::getCString(v4);\n  sub_7753D4((int)this, CString);\n  FMOD::System::getCPUUsage();\n  v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"\\ndsp: %f, stream: %f\\ngeo: %f, update: %f\\nconv1: %f, conv2: %f\",\n                              v6,\n                              *(float *)&v33[1],\n                              *(float *)&v33[2],\n                              *(float *)&v33[3],\n                              *(float *)&v33[4],\n                              *(float *)&v33[5],\n                              *(float *)&v33[6]);\n  v8 = (char *)cocos2d::CCString::getCString(v7);\n  sub_774544((int)this, v8);\n  FMOD::System::getDSPBufferSize(*(FMOD::System **)(a2 + 388), &v26, &v27);\n  FMOD::System::getSoftwareFormat(*(FMOD::System **)(a2 + 388), &v28, nullptr, nullptr);\n  v9 = (float)((float)v26 * 1000.0) / (float)v28;\n  v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                               (cocos2d::CCString *)\"\\nMixer blocksize = %f ms\",\n                               v10,\n                               v9);\n  v12 = (char *)cocos2d::CCString::getCString(v11);\n  sub_774544((int)this, v12);\n  v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                               (cocos2d::CCString *)\"\\nMixer Total buffersize = %f ms\",\n                               v13,\n                               (float)(v9 * (float)v27));\n  v15 = (char *)cocos2d::CCString::getCString(v14);\n  sub_774544((int)this, v15);\n  v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                               (cocos2d::CCString *)\"\\nMixer Average Latency  = %f ms\",\n                               v16,\n                               (float)(v9 * (float)((float)v27 - 1.5)));\n  v18 = (char *)cocos2d::CCString::getCString(v17);\n  sub_774544((int)this, v18);\n  FMOD::System::getSoftwareFormat(*(FMOD::System **)(a2 + 388), (int *)&v29, (FMOD_SPEAKERMODE *)&v30, &v31);\n  v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                               (cocos2d::CCString *)\"\\nSR: %i, SM: %i, NRS: %i\",\n                               v29,\n                               v30,\n                               v31);\n  v20 = (char *)cocos2d::CCString::getCString(v19);\n  sub_774544((int)this, v20);\n  v21 = *(FMOD::System **)(a2 + 388);\n  v32 = nullptr;\n  v33[0] = 1;\n  FMOD::System::getStreamBufferSize(v21, (unsigned int *)&v32, v33);\n  v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                               (cocos2d::CCString *)\"\\nstreamBufferSize: %i, Type: %i\",\n                               v32,\n                               v33[0]);\n  v23 = (char *)cocos2d::CCString::getCString(v22);\n  sub_774544((int)this, v23);\n  return this;\n}", "assembly": "; \n; FMODAudioEngine::getFMODStatus from 0x2ff440 to 0x2ff608 (456 bytes)\n; \n; 1 xrefs:\n; > MoreOptionsLayer::onFMODDebug @ 0x421e50\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x2ff440\nMOV             R5, R1                                                 ; +0x2, 0x2ff442\nVPUSH           {D8}                                                   ; +0x4, 0x2ff444\nMOV             R4, R0                                                 ; +0x8, 0x2ff448\nLDR             R6, =(__stack_chk_guard_ptr - 0x2FF452)                ; +0xa, 0x2ff44a\nLDR             R1, =(unk_939830 - 0x2FF458)                           ; +0xc, 0x2ff44c\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x2ff44e\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x2ff450\nSUB             SP, SP, #0x74                                          ; +0x12, 0x2ff452\nADD             R1, PC; unk_939830 ; char *                            ; +0x14, 0x2ff454\nLDR             R3, [R6]                                               ; +0x16, 0x2ff456\nADD             R7, SP, #0x54                                          ; +0x18, 0x2ff458\nMOV             R2, R7                                                 ; +0x1a, 0x2ff45a\nSTR             R3, [SP,#0x74+var_8]                                   ; +0x1c, 0x2ff45c\nBL              sub_776584                                             ; +0x1e, 0x2ff45e\nADD             R0, SP, #0x74+var_48                                   ; +0x22, 0x2ff462\nADD             R1, SP, #0x74+var_44                                   ; +0x24, 0x2ff464\nMOVS            R2, #1                                                 ; +0x26, 0x2ff466\nBLX             FMOD_Memory_GetStats                                   ; +0x28, 0x2ff468\nLDR             R0, =(aMemoryIMaxI - 0x2FF474); \"Memory: %i, Max: %i\"  ; +0x2c, 0x2ff46c\nLDR             R1, [SP,#0x74+var_48]; char *                          ; +0x2e, 0x2ff46e\nADD             R0, PC; \"Memory: %i, Max: %i\"                          ; +0x30, 0x2ff470\nLDR             R2, [SP,#0x74+var_44]                                  ; +0x32, 0x2ff472\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x34, 0x2ff474\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x38, 0x2ff478\nMOV             R1, R0; char *                                         ; +0x3c, 0x2ff47c\nMOV             R0, R4; int                                            ; +0x3e, 0x2ff47e\nBL              sub_7753D4                                             ; +0x40, 0x2ff480\nLDR.W           R0, [R5,#0x184]                                        ; +0x44, 0x2ff484\nMOV             R1, R7                                                 ; +0x48, 0x2ff488\nBLX             _ZN4FMOD6System11getCPUUsageEP14FMOD_CPU_USAGE; FMOD::System::getCPUUsage(FMOD_CPU_USAGE *) ; +0x4a, 0x2ff48a\nVLDR            S14, [SP,#0x74+var_1C]                                 ; +0x4e, 0x2ff48e\nLDR             R0, =(aDspFStreamFGeo - 0x2FF498); \"\\ndsp: %f, stream: %f\\ngeo: %f, update:\"... ; +0x52, 0x2ff492\nADD             R0, PC; \"\\ndsp: %f, stream: %f\\ngeo: %f, update:\"...   ; +0x54, 0x2ff494\nVCVT.F64.F32    D7, S14                                                ; +0x56, 0x2ff496\nVSTR            D7, [SP,#0x74+var_74]                                  ; +0x5a, 0x2ff49a\nVLDR            S14, [SP,#0x74+var_18]                                 ; +0x5e, 0x2ff49e\nVCVT.F64.F32    D7, S14                                                ; +0x62, 0x2ff4a2\nVSTR            D7, [SP,#0x74+var_6C]                                  ; +0x66, 0x2ff4a6\nVLDR            S14, [SP,#0x74+var_14]                                 ; +0x6a, 0x2ff4aa\nVCVT.F64.F32    D7, S14                                                ; +0x6e, 0x2ff4ae\nVSTR            D7, [SP,#0x74+var_64]                                  ; +0x72, 0x2ff4b2\nVLDR            S14, [SP,#0x74+var_10]                                 ; +0x76, 0x2ff4b6\nVCVT.F64.F32    D7, S14                                                ; +0x7a, 0x2ff4ba\nVSTR            D7, [SP,#0x74+var_5C]                                  ; +0x7e, 0x2ff4be\nVLDR            S14, [SP,#0x74+var_C]                                  ; +0x82, 0x2ff4c2\nVCVT.F64.F32    D7, S14                                                ; +0x86, 0x2ff4c6\nVSTR            D7, [SP,#0x74+var_54]                                  ; +0x8a, 0x2ff4ca\nVLDR            S15, [SP,#0x74+var_20]                                 ; +0x8e, 0x2ff4ce\nVCVT.F64.F32    D7, S15                                                ; +0x92, 0x2ff4d2\nVMOV            R2, R3, D7                                             ; +0x96, 0x2ff4d6\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x9a, 0x2ff4da\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x9e, 0x2ff4de\nMOV             R1, R0; char *                                         ; +0xa2, 0x2ff4e2\nMOV             R0, R4; int                                            ; +0xa4, 0x2ff4e4\nBL              sub_774544                                             ; +0xa6, 0x2ff4e6\nLDR.W           R0, [R5,#0x184]; this                                  ; +0xaa, 0x2ff4ea\nADD             R1, SP, #0x74+var_40; unsigned int *                   ; +0xae, 0x2ff4ee\nADD             R2, SP, #0x74+var_3C; int *                            ; +0xb0, 0x2ff4f0\nBLX             _ZN4FMOD6System16getDSPBufferSizeEPjPi; FMOD::System::getDSPBufferSize(uint *,int *) ; +0xb2, 0x2ff4f2\nMOVS            R2, #0                                                 ; +0xb6, 0x2ff4f6\nLDR.W           R0, [R5,#0x184]                                        ; +0xb8, 0x2ff4f8\nADD             R1, SP, #0x74+var_38                                   ; +0xbc, 0x2ff4fc\nMOV             R3, R2                                                 ; +0xbe, 0x2ff4fe\nBLX             _ZN4FMOD6System17getSoftwareFormatEPiP16FMOD_SPEAKERMODES1_; FMOD::System::getSoftwareFormat(int *,FMOD_SPEAKERMODE *,int *) ; +0xc0, 0x2ff500\nVLDR            S15, [SP,#0x74+var_40]                                 ; +0xc4, 0x2ff504\nLDR             R0, =(aMixerBlocksize - 0x2FF512); \"\\nMixer blocksize = %f ms\" ; +0xc8, 0x2ff508\nVLDR            S14, =1000.0                                           ; +0xca, 0x2ff50a\nADD             R0, PC; \"\\nMixer blocksize = %f ms\"                    ; +0xce, 0x2ff50e\nVCVT.F32.U32    S15, S15                                               ; +0xd0, 0x2ff510\nVMUL.F32        S15, S15, S14                                          ; +0xd4, 0x2ff514\nVLDR            S14, [SP,#0x74+var_38]                                 ; +0xd8, 0x2ff518\nVCVT.F32.S32    S16, S14                                               ; +0xdc, 0x2ff51c\nVDIV.F32        S16, S15, S16                                          ; +0xe0, 0x2ff520\nVCVT.F64.F32    D7, S16                                                ; +0xe4, 0x2ff524\nVMOV            R2, R3, D7                                             ; +0xe8, 0x2ff528\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xec, 0x2ff52c\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0xf0, 0x2ff530\nMOV             R1, R0; char *                                         ; +0xf4, 0x2ff534\nMOV             R0, R4; int                                            ; +0xf6, 0x2ff536\nBL              sub_774544                                             ; +0xf8, 0x2ff538\nVLDR            S15, [SP,#0x74+var_3C]                                 ; +0xfc, 0x2ff53c\nLDR             R0, =(aMixerTotalBuff - 0x2FF546); \"\\nMixer Total buffersize = %f ms\" ; +0x100, 0x2ff540\nADD             R0, PC; \"\\nMixer Total buffersize = %f ms\"             ; +0x102, 0x2ff542\nVCVT.F32.S32    S15, S15                                               ; +0x104, 0x2ff544\nVMUL.F32        S15, S16, S15                                          ; +0x108, 0x2ff548\nVCVT.F64.F32    D7, S15                                                ; +0x10c, 0x2ff54c\nVMOV            R2, R3, D7                                             ; +0x110, 0x2ff550\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x114, 0x2ff554\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x118, 0x2ff558\nMOV             R1, R0; char *                                         ; +0x11c, 0x2ff55c\nMOV             R0, R4; int                                            ; +0x11e, 0x2ff55e\nBL              sub_774544                                             ; +0x120, 0x2ff560\nVLDR            S15, [SP,#0x74+var_3C]                                 ; +0x124, 0x2ff564\nLDR             R0, =(aMixerAverageLa - 0x2FF572); \"\\nMixer Average Latency  = %f ms\" ; +0x128, 0x2ff568\nVMOV.F32        S14, #1.5                                              ; +0x12a, 0x2ff56a\nADD             R0, PC; \"\\nMixer Average Latency  = %f ms\"             ; +0x12e, 0x2ff56e\nVCVT.F32.S32    S15, S15                                               ; +0x130, 0x2ff570\nVSUB.F32        S15, S15, S14                                          ; +0x134, 0x2ff574\nVMUL.F32        S16, S16, S15                                          ; +0x138, 0x2ff578\nVCVT.F64.F32    D7, S16                                                ; +0x13c, 0x2ff57c\nVMOV            R2, R3, D7                                             ; +0x140, 0x2ff580\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x144, 0x2ff584\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x148, 0x2ff588\nMOV             R1, R0; char *                                         ; +0x14c, 0x2ff58c\nMOV             R0, R4; int                                            ; +0x14e, 0x2ff58e\nBL              sub_774544                                             ; +0x150, 0x2ff590\nLDR.W           R0, [R5,#0x184]                                        ; +0x154, 0x2ff594\nADD             R1, SP, #0x74+var_34                                   ; +0x158, 0x2ff598\nADD             R2, SP, #0x74+var_30                                   ; +0x15a, 0x2ff59a\nADD             R3, SP, #0x74+var_2C                                   ; +0x15c, 0x2ff59c\nBLX             _ZN4FMOD6System17getSoftwareFormatEPiP16FMOD_SPEAKERMODES1_; FMOD::System::getSoftwareFormat(int *,FMOD_SPEAKERMODE *,int *) ; +0x15e, 0x2ff59e\nLDR             R0, =(aSrISmINrsI - 0x2FF5AA); \"\\nSR: %i, SM: %i, NRS: %i\" ; +0x162, 0x2ff5a2\nADD             R1, SP, #0x74+var_34                                   ; +0x164, 0x2ff5a4\nADD             R0, PC; \"\\nSR: %i, SM: %i, NRS: %i\"                    ; +0x166, 0x2ff5a6\nLDM             R1, {R1-R3}; char *                                    ; +0x168, 0x2ff5a8\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x16a, 0x2ff5aa\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x16e, 0x2ff5ae\nMOV             R1, R0; char *                                         ; +0x172, 0x2ff5b2\nMOV             R0, R4; int                                            ; +0x174, 0x2ff5b4\nBL              sub_774544                                             ; +0x176, 0x2ff5b6\nLDR.W           R0, [R5,#0x184]; this                                  ; +0x17a, 0x2ff5ba\nADD             R1, SP, #0x74+var_28; unsigned int *                   ; +0x17e, 0x2ff5be\nADD             R2, SP, #0x74+var_24; unsigned int *                   ; +0x180, 0x2ff5c0\nMOVS            R3, #0                                                 ; +0x182, 0x2ff5c2\nSTR             R3, [SP,#0x74+var_28]                                  ; +0x184, 0x2ff5c4\nMOVS            R3, #1                                                 ; +0x186, 0x2ff5c6\nSTR             R3, [SP,#0x74+var_24]                                  ; +0x188, 0x2ff5c8\nBLX             _ZN4FMOD6System19getStreamBufferSizeEPjS1_; FMOD::System::getStreamBufferSize(uint *,uint *) ; +0x18a, 0x2ff5ca\nLDR             R0, =(aStreambuffersi - 0x2FF5D6); \"\\nstreamBufferSize: %i, Type: %i\" ; +0x18e, 0x2ff5ce\nLDR             R1, [SP,#0x74+var_28]; char *                          ; +0x190, 0x2ff5d0\nADD             R0, PC; \"\\nstreamBufferSize: %i, Type: %i\"             ; +0x192, 0x2ff5d2\nLDR             R2, [SP,#0x74+var_24]                                  ; +0x194, 0x2ff5d4\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x196, 0x2ff5d6\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x19a, 0x2ff5da\nMOV             R1, R0; char *                                         ; +0x19e, 0x2ff5de\nMOV             R0, R4; int                                            ; +0x1a0, 0x2ff5e0\nBL              sub_774544                                             ; +0x1a2, 0x2ff5e2\nB               loc_2FF5F2                                             ; +0x1a6, 0x2ff5e6\nMOV             R0, R4                                                 ; +0x1a8, 0x2ff5e8\nBL              sub_774008                                             ; +0x1aa, 0x2ff5ea\nBL              __cxa_end_cleanup                                      ; +0x1ae, 0x2ff5ee\nLDR             R2, [SP,#0x74+var_8]                                   ; +0x1b2, 0x2ff5f2\nMOV             R0, R4                                                 ; +0x1b4, 0x2ff5f4\nLDR             R3, [R6]                                               ; +0x1b6, 0x2ff5f6\nCMP             R2, R3                                                 ; +0x1b8, 0x2ff5f8\nBEQ             loc_2FF600                                             ; +0x1ba, 0x2ff5fa\nBLX             __stack_chk_fail                                       ; +0x1bc, 0x2ff5fc\nADD             SP, SP, #0x74 ; 't'                                    ; +0x1c0, 0x2ff600\nVPOP            {D8}                                                   ; +0x1c2, 0x2ff602\nPOP             {R4-R7,PC}                                             ; +0x1c6, 0x2ff606", "xrefs": ["MoreOptionsLayer::onFMODDebug @ 0x421e50"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}