{"type": "func", "start": 4296257688, "end": 4296257792, "name": "FMODAudioEngine::countActiveMusic", "pseudocode": "// \n// FMODAudioEngine::countActiveMusic from 0x10013b098 to 0x10013b100 (104 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::updateInfoLabel @ 0x100117e28\n// > FMODAudioEngine::countActiveEffects @ 0x10013b084\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\nint __fastcall FMODAudioEngine::countActiveMusic(FMODAudioEngine *a1)\n{\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, FMODMusic>, void *> *>::__next_pointer next; // x20\n  int v2; // w19\n  _BYTE v4[8]; // [xsp+8h] [xbp-48h] BYREF\n  int v5; // [xsp+10h] [xbp-40h]\n  void *__p; // [xsp+20h] [xbp-30h]\n  char v7; // [xsp+37h] [xbp-19h]\n\n  next = a1->m_fmodMusic.__table_.__p1_.__value_.__next_;\n  if ( !next )\n    return 0;\n  v2 = 0;\n  do\n  {\n    sub_10013F67C(v4, &next[2]);\n    if ( v5 > 0 )\n      ++v2;\n    if ( v7 < 0 )\n      operator delete(__p);\n    next = next->__next_;\n  }\n  while ( next );\n  return v2;\n}", "assembly": "; \n; FMODAudioEngine::countActiveMusic from 0x10013b098 to 0x10013b100 (104 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::updateInfoLabel @ 0x100117e28\n; > FMODAudioEngine::countActiveEffects @ 0x10013b084\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, #0x60                                          ; +0x0, 0x10013b098\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x4, 0x10013b09c\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x8, 0x10013b0a0\nADD             X29, SP, #0x50                                         ; +0xc, 0x10013b0a4\nLDR             X20, [X0,#0x150]                                       ; +0x10, 0x10013b0a8\nCBZ             X20, loc_10013B0E8                                     ; +0x14, 0x10013b0ac\nMOV             W19, #0                                                ; +0x18, 0x10013b0b0\nADD             X0, SP, #0x50+var_48                                   ; +0x1c, 0x10013b0b4\nADD             X1, X20, #0x10                                         ; +0x20, 0x10013b0b8\nBL              sub_10013F67C                                          ; +0x24, 0x10013b0bc\nLDR             W8, [SP,#0x50+var_40]                                  ; +0x28, 0x10013b0c0\nCMP             W8, #0                                                 ; +0x2c, 0x10013b0c4\nCINC            W19, W19, GT                                           ; +0x30, 0x10013b0c8\nLDRSB           W8, [SP,#0x50+var_19]                                  ; +0x34, 0x10013b0cc\nTBZ             W8, #0x1F, loc_10013B0DC                               ; +0x38, 0x10013b0d0\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x3c, 0x10013b0d4\nBL              __ZdlPv; operator delete(void *)                       ; +0x40, 0x10013b0d8\nLDR             X20, [X20]                                             ; +0x44, 0x10013b0dc\nCBNZ            X20, loc_10013B0B4                                     ; +0x48, 0x10013b0e0\nB               loc_10013B0EC                                          ; +0x4c, 0x10013b0e4\nMOV             W19, #0                                                ; +0x50, 0x10013b0e8\nMOV             X0, X19                                                ; +0x54, 0x10013b0ec\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x58, 0x10013b0f0\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x5c, 0x10013b0f4\nADD             SP, SP, #0x60 ; '`'                                    ; +0x60, 0x10013b0f8\nRET                                                                    ; +0x64, 0x10013b0fc", "xrefs": ["PlayLayer::updateInfoLabel @ 0x100117e28", "FMODAudioEngine::countActiveEffects @ 0x10013b084"], "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"}