{"type": "func", "start": 4296272692, "end": 4296273228, "name": "FMODAudioEngine::getFMODStatus", "pseudocode": "// \n// FMODAudioEngine::getFMODStatus from 0x10013eb34 to 0x10013ed4c (536 bytes)\n// \n// 1 xrefs:\n// > MoreOptionsLayer::onFMODDebug @ 0x1000eed68\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\nstd::string *__usercall FMODAudioEngine::getFMODStatus@<X0>(__int64 a1@<X0>, std::string *a2@<X8>)\n{\n  cocos2d::CCString *v4; // x0\n  const char *CString; // x0\n  cocos2d::CCString *v6; // x0\n  const char *v7; // x0\n  float v8; // s8\n  cocos2d::CCString *v9; // x0\n  const char *v10; // x0\n  cocos2d::CCString *v11; // x0\n  const char *v12; // x0\n  cocos2d::CCString *v13; // x0\n  const char *v14; // x0\n  cocos2d::CCString *v15; // x0\n  const char *v16; // x0\n  cocos2d::CCString *v17; // x0\n  const char *v18; // x0\n  unsigned int v20; // [xsp+30h] [xbp-60h] BYREF\n  unsigned int v21; // [xsp+34h] [xbp-5Ch] BYREF\n  int v22; // [xsp+38h] [xbp-58h] BYREF\n  int v23; // [xsp+3Ch] [xbp-54h] BYREF\n  int v24; // [xsp+40h] [xbp-50h] BYREF\n  int v25; // [xsp+44h] [xbp-4Ch] BYREF\n  int v26; // [xsp+48h] [xbp-48h] BYREF\n  unsigned int v27; // [xsp+4Ch] [xbp-44h] BYREF\n  float v28[6]; // [xsp+50h] [xbp-40h] BYREF\n  int v29; // [xsp+68h] [xbp-28h] BYREF\n  int v30; // [xsp+6Ch] [xbp-24h] BYREF\n\n  sub_100009900(a2, \"\");\n  sub_1004526E8(&v30, &v29, 1);\n  v4 = (cocos2d::CCString *)sub_100268F4C(\"Memory: %i, Max: %i\", v30, v29);\n  CString = cocos2d::CCString::getCString(v4);\n  std::string::assign(a2, CString);\n  FMOD::System::getCPUUsage(*(_QWORD *)(a1 + 488), v28);\n  v6 = (cocos2d::CCString *)sub_100268F4C(\n                              \"\\ndsp: %f, stream: %f\\ngeo: %f, update: %f\\nconv1: %f, conv2: %f\",\n                              v28[0],\n                              v28[1],\n                              v28[2],\n                              v28[3],\n                              v28[4],\n                              v28[5]);\n  v7 = cocos2d::CCString::getCString(v6);\n  std::string::append(a2, v7);\n  FMOD::System::getDSPBufferSize(*(FMOD::System **)(a1 + 488), &v27, &v26);\n  FMOD::System::getSoftwareFormat(*(FMOD::System **)(a1 + 488), &v25, nullptr, nullptr);\n  v8 = (float)((float)v27 * 1000.0) / (float)v25;\n  v9 = (cocos2d::CCString *)sub_100268F4C(\"\\nMixer blocksize = %f ms\", v8);\n  v10 = cocos2d::CCString::getCString(v9);\n  std::string::append(a2, v10);\n  v11 = (cocos2d::CCString *)sub_100268F4C(\"\\nMixer Total buffersize = %f ms\", (float)(v8 * (float)v26));\n  v12 = cocos2d::CCString::getCString(v11);\n  std::string::append(a2, v12);\n  v13 = (cocos2d::CCString *)sub_100268F4C(\"\\nMixer Average Latency  = %f ms\", (float)(v8 * (float)((float)v26 + -1.5)));\n  v14 = cocos2d::CCString::getCString(v13);\n  std::string::append(a2, v14);\n  FMOD::System::getSoftwareFormat(*(FMOD::System **)(a1 + 488), &v24, (FMOD_SPEAKERMODE *)&v23, &v22);\n  v15 = (cocos2d::CCString *)sub_100268F4C(\"\\nSR: %i, SM: %i, NRS: %i\", v24, v23, v22);\n  v16 = cocos2d::CCString::getCString(v15);\n  std::string::append(a2, v16);\n  v20 = 1;\n  v21 = 0;\n  FMOD::System::getStreamBufferSize(*(FMOD::System **)(a1 + 488), &v21, &v20);\n  v17 = (cocos2d::CCString *)sub_100268F4C(\"\\nstreamBufferSize: %i, Type: %i\", v21, v20);\n  v18 = cocos2d::CCString::getCString(v17);\n  return std::string::append(a2, v18);\n}", "assembly": "; \n; FMODAudioEngine::getFMODStatus from 0x10013eb34 to 0x10013ed4c (536 bytes)\n; \n; 1 xrefs:\n; > MoreOptionsLayer::onFMODDebug @ 0x1000eed68\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\nSUB             SP, SP, #0xA0                                          ; +0x0, 0x10013eb34\nSTP             D9, D8, [SP,#0x90+var_20]                              ; +0x4, 0x10013eb38\nSTP             X20, X19, [SP,#0x90+var_10]                            ; +0x8, 0x10013eb3c\nSTP             X29, X30, [SP,#0x90+var_s0]                            ; +0xc, 0x10013eb40\nADD             X29, SP, #0x90                                         ; +0x10, 0x10013eb44\nMOV             X20, X0                                                ; +0x14, 0x10013eb48\nMOV             X19, X8                                                ; +0x18, 0x10013eb4c\nADRL            X1, asc_100746688; \"\"                                  ; +0x1c, 0x10013eb50\nMOV             X0, X8; int                                            ; +0x24, 0x10013eb58\nBL              sub_100009900                                          ; +0x28, 0x10013eb5c\nSUB             X0, X29, #-var_24                                      ; +0x2c, 0x10013eb60\nSUB             X1, X29, #-var_28                                      ; +0x30, 0x10013eb64\nMOV             W2, #1                                                 ; +0x34, 0x10013eb68\nBL              sub_1004526E8                                          ; +0x38, 0x10013eb6c\nLDP             W9, W8, [X29,#var_28]                                  ; +0x3c, 0x10013eb70\nSTP             X8, X9, [SP,#0x90+var_90]                              ; +0x40, 0x10013eb74\nADRL            X0, aMemoryIMaxI; \"Memory: %i, Max: %i\"                ; +0x44, 0x10013eb78\nBL              sub_100268F4C                                          ; +0x4c, 0x10013eb80\nBL              cocos2d__CCString__getCString                          ; +0x50, 0x10013eb84\nMOV             X1, X0; __s                                            ; +0x54, 0x10013eb88\nMOV             X0, X19; this                                          ; +0x58, 0x10013eb8c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x5c, 0x10013eb90\nLDR             X0, [X20,#0x1E8]                                       ; +0x60, 0x10013eb94\nSUB             X1, X29, #-var_40                                      ; +0x64, 0x10013eb98\nBL              FMOD__System__getCPUUsage                              ; +0x68, 0x10013eb9c\nLDP             S0, S1, [X29,#var_40]                                  ; +0x6c, 0x10013eba0\nFCVT            D0, S0                                                 ; +0x70, 0x10013eba4\nFCVT            D1, S1                                                 ; +0x74, 0x10013eba8\nLDP             S2, S3, [X29,#var_38]                                  ; +0x78, 0x10013ebac\nFCVT            D2, S2                                                 ; +0x7c, 0x10013ebb0\nFCVT            D3, S3                                                 ; +0x80, 0x10013ebb4\nLDP             S4, S5, [X29,#var_30]                                  ; +0x84, 0x10013ebb8\nFCVT            D4, S4                                                 ; +0x88, 0x10013ebbc\nFCVT            D5, S5                                                 ; +0x8c, 0x10013ebc0\nSTP             D4, D5, [SP,#0x90+var_70]                              ; +0x90, 0x10013ebc4\nSTP             D2, D3, [SP,#0x90+var_80]                              ; +0x94, 0x10013ebc8\nSTP             D0, D1, [SP,#0x90+var_90]                              ; +0x98, 0x10013ebcc\nADRL            X0, aDspFStreamFGeo; \"\\ndsp: %f, stream: %f\\ngeo: %f, update:\"... ; +0x9c, 0x10013ebd0\nBL              sub_100268F4C                                          ; +0xa4, 0x10013ebd8\nBL              cocos2d__CCString__getCString                          ; +0xa8, 0x10013ebdc\nMOV             X1, X0; __s                                            ; +0xac, 0x10013ebe0\nMOV             X0, X19; this                                          ; +0xb0, 0x10013ebe4\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0xb4, 0x10013ebe8\nLDR             X0, [X20,#0x1E8]                                       ; +0xb8, 0x10013ebec\nSUB             X1, X29, #-var_44                                      ; +0xbc, 0x10013ebf0\nADD             X2, SP, #0x90+var_48                                   ; +0xc0, 0x10013ebf4\nBL              FMOD__System__getDSPBufferSize                         ; +0xc4, 0x10013ebf8\nLDR             X0, [X20,#0x1E8]                                       ; +0xc8, 0x10013ebfc\nADD             X1, SP, #0x90+var_4C                                   ; +0xcc, 0x10013ec00\nMOV             X2, #0                                                 ; +0xd0, 0x10013ec04\nMOV             X3, #0                                                 ; +0xd4, 0x10013ec08\nBL              FMOD__System__getSoftwareFormat                        ; +0xd8, 0x10013ec0c\nLDUR            S0, [X29,#var_44]                                      ; +0xdc, 0x10013ec10\nUCVTF           S0, S0                                                 ; +0xe0, 0x10013ec14\nMOV             W8, #0x447A0000                                        ; +0xe4, 0x10013ec18\nFMOV            S1, W8                                                 ; +0xe8, 0x10013ec1c\nFMUL            S0, S0, S1                                             ; +0xec, 0x10013ec20\nLDR             S1, [SP,#0x90+var_4C]                                  ; +0xf0, 0x10013ec24\nSCVTF           S1, S1                                                 ; +0xf4, 0x10013ec28\nFDIV            S8, S0, S1                                             ; +0xf8, 0x10013ec2c\nFCVT            D0, S8                                                 ; +0xfc, 0x10013ec30\nSTR             D0, [SP,#0x90+var_90]                                  ; +0x100, 0x10013ec34\nADRL            X0, aMixerBlocksize; \"\\nMixer blocksize = %f ms\"       ; +0x104, 0x10013ec38\nBL              sub_100268F4C                                          ; +0x10c, 0x10013ec40\nBL              cocos2d__CCString__getCString                          ; +0x110, 0x10013ec44\nMOV             X1, X0; __s                                            ; +0x114, 0x10013ec48\nMOV             X0, X19; this                                          ; +0x118, 0x10013ec4c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x11c, 0x10013ec50\nLDR             S0, [SP,#0x90+var_48]                                  ; +0x120, 0x10013ec54\nSCVTF           S0, S0                                                 ; +0x124, 0x10013ec58\nFMUL            S0, S8, S0                                             ; +0x128, 0x10013ec5c\nFCVT            D0, S0                                                 ; +0x12c, 0x10013ec60\nSTR             D0, [SP,#0x90+var_90]                                  ; +0x130, 0x10013ec64\nADRL            X0, aMixerTotalBuff; \"\\nMixer Total buffersize = %f ms\" ; +0x134, 0x10013ec68\nBL              sub_100268F4C                                          ; +0x13c, 0x10013ec70\nBL              cocos2d__CCString__getCString                          ; +0x140, 0x10013ec74\nMOV             X1, X0; __s                                            ; +0x144, 0x10013ec78\nMOV             X0, X19; this                                          ; +0x148, 0x10013ec7c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x14c, 0x10013ec80\nLDR             S0, [SP,#0x90+var_48]                                  ; +0x150, 0x10013ec84\nSCVTF           S0, S0                                                 ; +0x154, 0x10013ec88\nFMOV            S1, #-1.5                                              ; +0x158, 0x10013ec8c\nFADD            S0, S0, S1                                             ; +0x15c, 0x10013ec90\nFMUL            S0, S8, S0                                             ; +0x160, 0x10013ec94\nFCVT            D0, S0                                                 ; +0x164, 0x10013ec98\nSTR             D0, [SP,#0x90+var_90]                                  ; +0x168, 0x10013ec9c\nADRL            X0, aMixerAverageLa; \"\\nMixer Average Latency  = %f ms\" ; +0x16c, 0x10013eca0\nBL              sub_100268F4C                                          ; +0x174, 0x10013eca8\nBL              cocos2d__CCString__getCString                          ; +0x178, 0x10013ecac\nMOV             X1, X0; __s                                            ; +0x17c, 0x10013ecb0\nMOV             X0, X19; this                                          ; +0x180, 0x10013ecb4\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x184, 0x10013ecb8\nLDR             X0, [X20,#0x1E8]                                       ; +0x188, 0x10013ecbc\nADD             X1, SP, #0x90+var_50                                   ; +0x18c, 0x10013ecc0\nADD             X2, SP, #0x90+var_54                                   ; +0x190, 0x10013ecc4\nADD             X3, SP, #0x90+var_58                                   ; +0x194, 0x10013ecc8\nBL              FMOD__System__getSoftwareFormat                        ; +0x198, 0x10013eccc\nLDP             W9, W8, [SP,#0x90+var_54]                              ; +0x19c, 0x10013ecd0\nLDR             W10, [SP,#0x90+var_58]                                 ; +0x1a0, 0x10013ecd4\nSTP             X9, X10, [SP,#0x90+var_88]                             ; +0x1a4, 0x10013ecd8\nSTR             X8, [SP,#0x90+var_90]                                  ; +0x1a8, 0x10013ecdc\nADRL            X0, aSrISmINrsI; \"\\nSR: %i, SM: %i, NRS: %i\"           ; +0x1ac, 0x10013ece0\nBL              sub_100268F4C                                          ; +0x1b4, 0x10013ece8\nBL              cocos2d__CCString__getCString                          ; +0x1b8, 0x10013ecec\nMOV             X1, X0; __s                                            ; +0x1bc, 0x10013ecf0\nMOV             X0, X19; this                                          ; +0x1c0, 0x10013ecf4\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x1c4, 0x10013ecf8\nMOV             W8, #1                                                 ; +0x1c8, 0x10013ecfc\nSTP             W8, WZR, [SP,#0x90+var_60]                             ; +0x1cc, 0x10013ed00\nLDR             X0, [X20,#0x1E8]                                       ; +0x1d0, 0x10013ed04\nADD             X1, SP, #0x90+var_5C                                   ; +0x1d4, 0x10013ed08\nADD             X2, SP, #0x90+var_60                                   ; +0x1d8, 0x10013ed0c\nBL              FMOD__System__getStreamBufferSize                      ; +0x1dc, 0x10013ed10\nLDP             W9, W8, [SP,#0x90+var_60]                              ; +0x1e0, 0x10013ed14\nSTP             X8, X9, [SP,#0x90+var_90]                              ; +0x1e4, 0x10013ed18\nADRL            X0, aStreambuffersi; \"\\nstreamBufferSize: %i, Type: %i\" ; +0x1e8, 0x10013ed1c\nBL              sub_100268F4C                                          ; +0x1f0, 0x10013ed24\nBL              cocos2d__CCString__getCString                          ; +0x1f4, 0x10013ed28\nMOV             X1, X0; __s                                            ; +0x1f8, 0x10013ed2c\nMOV             X0, X19; this                                          ; +0x1fc, 0x10013ed30\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x200, 0x10013ed34\nLDP             X29, X30, [SP,#0x90+var_s0]                            ; +0x204, 0x10013ed38\nLDP             X20, X19, [SP,#0x90+var_10]                            ; +0x208, 0x10013ed3c\nLDP             D9, D8, [SP,#0x90+var_20]                              ; +0x20c, 0x10013ed40\nADD             SP, SP, #0xA0                                          ; +0x210, 0x10013ed44\nRET                                                                    ; +0x214, 0x10013ed48", "xrefs": ["MoreOptionsLayer::onFMODDebug @ 0x1000eed68"], "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"}