{"type": "func", "start": 4097952, "end": 4098052, "name": "FMODAudioEngine::countActiveMusic", "pseudocode": "// \n// FMODAudioEngine::countActiveMusic from 0x3e87a0 to 0x3e8804 (100 bytes)\n// \n// 2 xrefs:\n// > FMODAudioEngine::countActiveEffects @ 0x3e880e\n// > PlayLayer::updateInfoLabel @ 0x409bec\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:47:06 +0000\n// \n\nint __fastcall FMODAudioEngine::countActiveMusic(FMODAudioEngine *this)\n{\n  int *v1; // r4\n  int v2; // r6\n  int v4; // [sp+4h] [bp-8h]\n  int v5[3]; // [sp+Ch] [bp+0h] BYREF\n  char v6; // [sp+18h] [bp+Ch]\n  char v7; // [sp+19h] [bp+Dh]\n\n  v1 = *((int **)this + 68);\n  v2 = 0;\n  while ( v1 )\n  {\n    v4 = v1[3];\n    std::string::basic_string(v5, (int)(v1 + 5));\n    v6 = *((_BYTE *)v1 + 32);\n    v7 = *((_BYTE *)v1 + 33);\n    if ( v4 > 0 )\n      ++v2;\n    std::string::~string((int)v5);\n    v1 = (int *)*v1;\n  }\n  return v2;\n}", "assembly": "; \n; FMODAudioEngine::countActiveMusic from 0x3e87a0 to 0x3e8804 (100 bytes)\n; \n; 2 xrefs:\n; > FMODAudioEngine::countActiveEffects @ 0x3e880e\n; > PlayLayer::updateInfoLabel @ 0x409bec\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:47:06 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x3E87A8)                ; +0x0, 0x3e87a0\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x3e87a2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x3e87a4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x3e87a6\nSUB             SP, SP, #0x24                                          ; +0x8, 0x3e87a8\nLDR.W           R4, [R0,#0x110]                                        ; +0xa, 0x3e87aa\nLDR             R2, [R3]                                               ; +0xe, 0x3e87ae\nADD             R7, SP, #0xC                                           ; +0x10, 0x3e87b0\nMOVS            R6, #0                                                 ; +0x12, 0x3e87b2\nMOV             R5, R3                                                 ; +0x14, 0x3e87b4\nSTR             R2, [SP,#0x24+var_8]                                   ; +0x16, 0x3e87b6\nCBZ             R4, loc_3E87F2                                         ; +0x18, 0x3e87b8\nLDR             R3, [R4,#8]                                            ; +0x1a, 0x3e87ba\nADD.W           R1, R4, #0x14                                          ; +0x1c, 0x3e87bc\nMOV             R0, R7                                                 ; +0x20, 0x3e87c0\nSTR             R3, [SP,#0x24+var_24]                                  ; +0x22, 0x3e87c2\nLDR             R3, [R4,#0xC]                                          ; +0x24, 0x3e87c4\nSTR             R3, [SP,#0x24+var_20]                                  ; +0x26, 0x3e87c6\nLDR             R3, [R4,#0x10]                                         ; +0x28, 0x3e87c8\nSTR             R3, [SP,#0x24+var_1C]                                  ; +0x2a, 0x3e87ca\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x2c, 0x3e87cc\nLDRB.W          R3, [R4,#0x20]                                         ; +0x30, 0x3e87d0\nMOV             R0, R7                                                 ; +0x34, 0x3e87d4\nSTRB.W          R3, [SP,#0x24+var_C]                                   ; +0x36, 0x3e87d6\nLDRB.W          R3, [R4,#0x21]                                         ; +0x3a, 0x3e87da\nSTRB.W          R3, [SP,#0x24+var_B]                                   ; +0x3e, 0x3e87de\nLDR             R3, [SP,#0x24+var_20]                                  ; +0x42, 0x3e87e2\nCMP             R3, #0                                                 ; +0x44, 0x3e87e4\nIT GT                                                                  ; +0x46, 0x3e87e6\nADDGT           R6, #1                                                 ; +0x48, 0x3e87e8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x4a, 0x3e87ea\nLDR             R4, [R4]                                               ; +0x4e, 0x3e87ee\nB               loc_3E87B8                                             ; +0x50, 0x3e87f0\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x52, 0x3e87f2\nMOV             R0, R6                                                 ; +0x54, 0x3e87f4\nLDR             R3, [R5]                                               ; +0x56, 0x3e87f6\nCMP             R2, R3                                                 ; +0x58, 0x3e87f8\nBEQ             loc_3E8800                                             ; +0x5a, 0x3e87fa\nBLX             __stack_chk_fail                                       ; +0x5c, 0x3e87fc\nADD             SP, SP, #0x24 ; '$'                                    ; +0x60, 0x3e8800\nPOP             {R4-R7,PC}                                             ; +0x62, 0x3e8802", "xrefs": ["FMODAudioEngine::countActiveEffects @ 0x3e880e", "PlayLayer::updateInfoLabel @ 0x409bec"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}