{"type": "func", "start": 4136744, "end": 4137188, "name": "FMODAudioEngine::stopMusicNotInSet", "pseudocode": "// \n// FMODAudioEngine::stopMusicNotInSet from 0x3f1f28 to 0x3f20e4 (444 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x5b3098\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:14 +0000\n// \n\nint __fastcall FMODAudioEngine::stopMusicNotInSet(FMODAudioEngine *a1, _DWORD *a2)\n{\n  _DWORD *v2; // r8\n  unsigned int v5; // r4\n  unsigned int v6; // r7\n  unsigned int v7; // r6\n  int v8; // r5\n  _DWORD *v9; // r3\n  unsigned int v10; // r0\n  int v11; // r1\n  _DWORD *v12; // r0\n  int v13; // r3\n  _DWORD *v14; // r6\n  float v15; // s15\n  bool v16; // r5\n  unsigned int v17; // r5\n  unsigned int v18; // r1\n  _DWORD *v19; // r3\n  unsigned int v20; // r0\n  int v21; // r1\n  _DWORD *i; // r4\n  int v24; // [sp+14h] [bp-20h] BYREF\n  int v25; // [sp+18h] [bp-1Ch] BYREF\n  unsigned int v26; // [sp+1Ch] [bp-18h]\n  _DWORD *v27; // [sp+20h] [bp-14h] BYREF\n  int v28; // [sp+24h] [bp-10h]\n  float v29; // [sp+28h] [bp-Ch]\n\n  v2 = *((_DWORD **)a1 + 68);\n  v29 = 1.0;\n  v25 = 0;\n  v26 = 0;\n  v27 = nullptr;\n  v28 = 0;\n  while ( v2 )\n  {\n    v5 = v26;\n    v6 = v2[2];\n    if ( v26 )\n    {\n      v7 = v26 - 1;\n      if ( ((v26 - 1) & v26) != 0 )\n        v8 = v6 % v26;\n      else\n        v8 = v6 & v7;\n      v9 = *(_DWORD **)(v25 + 4 * v8);\n      if ( v9 )\n      {\n        while ( 1 )\n        {\n          v9 = (_DWORD *)*v9;\n          if ( !v9 )\n            break;\n          v10 = v9[1];\n          v11 = ((v26 - 1) & v26) != 0 ? v10 % v26 : v7 & v10;\n          if ( v11 != v8 )\n            break;\n          if ( v9[2] == v6 )\n            goto LABEL_31;\n        }\n      }\n    }\n    else\n    {\n      v8 = 0;\n    }\n    v12 = (_DWORD *)operator new(0xCu);\n    v13 = v2[2];\n    v12[1] = v6;\n    v14 = v12;\n    v12[2] = v13;\n    *v12 = 0;\n    v15 = (float)(unsigned int)(v28 + 1);\n    if ( v15 > (float)((float)v5 * v29) )\n    {\n      v16 = v5 > 2 && ((v5 - 1) & v5) == 0;\n      goto LABEL_18;\n    }\n    if ( !v5 )\n    {\n      v16 = 0;\nLABEL_18:\n      v17 = 2 * v5 + !v16;\n      v18 = (unsigned int)ceilf(v15 / v29);\n      if ( v18 < v17 )\n        v18 = v17;\n      std::__hash_table<int,std::hash<int>,std::equal_to<int>,std::allocator<int>>::rehash((int)&v25, v18);\n      v5 = v26;\n      if ( ((v26 - 1) & v26) != 0 )\n        v8 = v6 % v26;\n      else\n        v8 = (v26 - 1) & v6;\n    }\n    v19 = *(_DWORD **)(v25 + 4 * v8);\n    if ( v19 )\n    {\n      *v14 = *v19;\n      *v19 = v14;\n    }\n    else\n    {\n      *v14 = v27;\n      v27 = v14;\n      *(_DWORD *)(v25 + 4 * v8) = &v27;\n      if ( *v14 )\n      {\n        v20 = *(_DWORD *)(*v14 + 4);\n        if ( ((v5 - 1) & v5) != 0 )\n          v21 = v20 % v5;\n        else\n          v21 = (v5 - 1) & v20;\n        *(_DWORD *)(v25 + 4 * v21) = v14;\n      }\n    }\n    ++v28;\nLABEL_31:\n    v2 = (_DWORD *)*v2;\n  }\n  for ( i = v27; i; i = (_DWORD *)*i )\n  {\n    v24 = i[2];\n    if ( v24 >= 0\n      && !std::__hash_table<int,std::hash<int>,std::equal_to<int>,std::allocator<int>>::find<int>(\n            a2,\n            (unsigned int *)&v24) )\n    {\n      FMODAudioEngine::stopMusic(a1, v24);\n    }\n  }\n  return std::__hash_table<int,std::hash<int>,std::equal_to<int>,std::allocator<int>>::~__hash_table((int)&v25);\n}", "assembly": "; \n; FMODAudioEngine::stopMusicNotInSet from 0x3f1f28 to 0x3f20e4 (444 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x5b3098\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:14 +0000\n; \nLDR             R2, =(__stack_chk_guard_ptr - 0x3F1F32)                ; +0x0, 0x3f1f28\nPUSH.W          {R4-R11,LR}                                            ; +0x2, 0x3f1f2a\nADD             R2, PC; __stack_chk_guard_ptr                          ; +0x6, 0x3f1f2e\nLDR             R2, [R2]; __stack_chk_guard                            ; +0x8, 0x3f1f30\nLDR.W           R8, [R0,#0x110]                                        ; +0xa, 0x3f1f32\nSUB             SP, SP, #0x34                                          ; +0xe, 0x3f1f36\nLDR             R3, [R2]                                               ; +0x10, 0x3f1f38\nMOV             R9, R0                                                 ; +0x12, 0x3f1f3a\nMOV             R11, R2                                                ; +0x14, 0x3f1f3c\nMOV             R10, R1                                                ; +0x16, 0x3f1f3e\nMOV.W           R1, #0x3F800000                                        ; +0x18, 0x3f1f40\nSTR             R1, [SP,#0x34+var_C]                                   ; +0x1c, 0x3f1f44\nSTR             R3, [SP,#0x34+var_8]                                   ; +0x1e, 0x3f1f46\nMOVS            R3, #0                                                 ; +0x20, 0x3f1f48\nSTR             R3, [SP,#0x34+var_1C]                                  ; +0x22, 0x3f1f4a\nSTR             R3, [SP,#0x34+var_18]                                  ; +0x24, 0x3f1f4c\nSTR             R3, [SP,#0x34+var_14]                                  ; +0x26, 0x3f1f4e\nSTR             R3, [SP,#0x34+var_10]                                  ; +0x28, 0x3f1f50\nSTR             R3, [SP,#0x34+var_30]                                  ; +0x2a, 0x3f1f52\nADD             R3, SP, #0x34+var_14                                   ; +0x2c, 0x3f1f54\nSTR             R3, [SP,#0x34+var_2C]                                  ; +0x2e, 0x3f1f56\nCMP.W           R8, #0                                                 ; +0x30, 0x3f1f58\nBEQ.W           loc_3F207C                                             ; +0x34, 0x3f1f5c\nLDR             R4, [SP,#0x34+var_18]                                  ; +0x38, 0x3f1f60\nLDR.W           R7, [R8,#8]                                            ; +0x3a, 0x3f1f62\nCBZ             R4, loc_3F1FAA                                         ; +0x3e, 0x3f1f66\nSUBS            R6, R4, #1                                             ; +0x40, 0x3f1f68\nANDS.W          R3, R6, R4                                             ; +0x42, 0x3f1f6a\nSTR             R3, [SP,#0x34+var_34]                                  ; +0x46, 0x3f1f6e\nBNE             loc_3F1F78                                             ; +0x48, 0x3f1f70\nAND.W           R5, R7, R6                                             ; +0x4a, 0x3f1f72\nB               loc_3F1F82                                             ; +0x4e, 0x3f1f76\nMOV             R0, R7                                                 ; +0x50, 0x3f1f78\nMOV             R1, R4                                                 ; +0x52, 0x3f1f7a\nBLX             __aeabi_uidivmod                                       ; +0x54, 0x3f1f7c\nMOV             R5, R1                                                 ; +0x58, 0x3f1f80\nLDR             R3, [SP,#0x34+var_1C]                                  ; +0x5a, 0x3f1f82\nLDR.W           R3, [R3,R5,LSL#2]                                      ; +0x5c, 0x3f1f84\nCBZ             R3, loc_3F1FAC                                         ; +0x60, 0x3f1f88\nLDR             R3, [R3]                                               ; +0x62, 0x3f1f8a\nCBZ             R3, loc_3F1FAC                                         ; +0x64, 0x3f1f8c\nLDR             R2, [SP,#0x34+var_34]                                  ; +0x66, 0x3f1f8e\nLDR             R0, [R3,#4]                                            ; +0x68, 0x3f1f90\nCBNZ            R2, loc_3F1F9A                                         ; +0x6a, 0x3f1f92\nAND.W           R1, R6, R0                                             ; +0x6c, 0x3f1f94\nB               loc_3F1FA4                                             ; +0x70, 0x3f1f98\nMOV             R1, R4                                                 ; +0x72, 0x3f1f9a\nSTR             R3, [SP,#0x34+var_28]                                  ; +0x74, 0x3f1f9c\nBLX             __aeabi_uidivmod                                       ; +0x76, 0x3f1f9e\nLDR             R3, [SP,#0x34+var_28]                                  ; +0x7a, 0x3f1fa2\nCMP             R1, R5                                                 ; +0x7c, 0x3f1fa4\nBNE             loc_3F1FAC                                             ; +0x7e, 0x3f1fa6\nB               loc_3F20B6                                             ; +0x80, 0x3f1fa8\nMOVS            R5, #0                                                 ; +0x82, 0x3f1faa\nMOVS            R0, #0xC; unsigned int                                 ; +0x84, 0x3f1fac\nBL              _Znwj; operator new(uint)                              ; +0x86, 0x3f1fae\nLDR.W           R3, [R8,#8]                                            ; +0x8a, 0x3f1fb2\nVMOV            S14, R4                                                ; +0x8e, 0x3f1fb6\nSTR             R7, [R0,#4]                                            ; +0x92, 0x3f1fba\nMOV             R6, R0                                                 ; +0x94, 0x3f1fbc\nVCVT.F32.U32    S14, S14                                               ; +0x96, 0x3f1fbe\nSTR             R3, [R0,#8]                                            ; +0x9a, 0x3f1fc2\nLDR             R3, [SP,#0x34+var_30]                                  ; +0x9c, 0x3f1fc4\nSTR             R3, [R0]                                               ; +0x9e, 0x3f1fc6\nVLDR            S13, [SP,#0x34+var_C]                                  ; +0xa0, 0x3f1fc8\nLDR             R3, [SP,#0x34+var_10]                                  ; +0xa4, 0x3f1fcc\nADDS            R3, #1                                                 ; +0xa6, 0x3f1fce\nVMUL.F32        S14, S14, S13                                          ; +0xa8, 0x3f1fd0\nVMOV            S15, R3                                                ; +0xac, 0x3f1fd4\nVCVT.F32.U32    S15, S15                                               ; +0xb0, 0x3f1fd8\nVCMPE.F32       S15, S14                                               ; +0xb4, 0x3f1fdc\nVMRS            APSR_nzcv, FPSCR                                       ; +0xb8, 0x3f1fe0\nBGT             loc_3F20C0                                             ; +0xbc, 0x3f1fe4\nCBNZ            R4, loc_3F202E                                         ; +0xbe, 0x3f1fe6\nMOV             R5, R4                                                 ; +0xc0, 0x3f1fe8\nVDIV.F32        S15, S15, S13                                          ; +0xc2, 0x3f1fea\nEOR.W           R5, R5, #1                                             ; +0xc6, 0x3f1fee\nLSLS            R4, R4, #1                                             ; +0xca, 0x3f1ff2\nUXTAB.W         R5, R4, R5                                             ; +0xcc, 0x3f1ff4\nVMOV            R0, S15; x                                             ; +0xd0, 0x3f1ff8\nBLX             ceilf                                                  ; +0xd4, 0x3f1ffc\nVMOV            S15, R0                                                ; +0xd8, 0x3f2000\nADD             R0, SP, #0x34+var_1C; int                              ; +0xdc, 0x3f2004\nVCVT.U32.F32    S15, S15                                               ; +0xde, 0x3f2006\nVMOV            R1, S15                                                ; +0xe2, 0x3f200a\nCMP             R1, R5                                                 ; +0xe6, 0x3f200e\nIT CC                                                                  ; +0xe8, 0x3f2010\nMOVCC           R1, R5; unsigned int                                   ; +0xea, 0x3f2012\nBL              _ZNSt6__ndk112__hash_tableIiNS_4hashIiEENS_8equal_toIiEENS_9allocatorIiEEE6rehashEj; std::__hash_table<int,std::hash<int>,std::equal_to<int>,std::allocator<int>>::rehash(uint) ; +0xec, 0x3f2014\nLDR             R4, [SP,#0x34+var_18]                                  ; +0xf0, 0x3f2018\nSUBS            R5, R4, #1                                             ; +0xf2, 0x3f201a\nTST             R5, R4                                                 ; +0xf4, 0x3f201c\nBNE             loc_3F2024                                             ; +0xf6, 0x3f201e\nANDS            R5, R7                                                 ; +0xf8, 0x3f2020\nB               loc_3F202E                                             ; +0xfa, 0x3f2022\nMOV             R0, R7                                                 ; +0xfc, 0x3f2024\nMOV             R1, R4                                                 ; +0xfe, 0x3f2026\nBLX             __aeabi_uidivmod                                       ; +0x100, 0x3f2028\nMOV             R5, R1                                                 ; +0x104, 0x3f202c\nLDR             R3, [SP,#0x34+var_1C]                                  ; +0x106, 0x3f202e\nLDR.W           R3, [R3,R5,LSL#2]                                      ; +0x108, 0x3f2030\nCBNZ            R3, loc_3F2062                                         ; +0x10c, 0x3f2034\nLDR             R3, [SP,#0x34+var_14]                                  ; +0x10e, 0x3f2036\nLDR             R2, [SP,#0x34+var_2C]                                  ; +0x110, 0x3f2038\nSTR             R3, [R6]                                               ; +0x112, 0x3f203a\nLDR             R3, [SP,#0x34+var_1C]                                  ; +0x114, 0x3f203c\nSTR             R6, [SP,#0x34+var_14]                                  ; +0x116, 0x3f203e\nSTR.W           R2, [R3,R5,LSL#2]                                      ; +0x118, 0x3f2040\nLDR             R3, [R6]                                               ; +0x11c, 0x3f2044\nCBZ             R3, loc_3F2068                                         ; +0x11e, 0x3f2046\nSUBS            R1, R4, #1                                             ; +0x120, 0x3f2048\nLDR             R0, [R3,#4]                                            ; +0x122, 0x3f204a\nTST             R1, R4                                                 ; +0x124, 0x3f204c\nBNE             loc_3F2054                                             ; +0x126, 0x3f204e\nANDS            R1, R0                                                 ; +0x128, 0x3f2050\nB               loc_3F205A                                             ; +0x12a, 0x3f2052\nMOV             R1, R4                                                 ; +0x12c, 0x3f2054\nBLX             __aeabi_uidivmod                                       ; +0x12e, 0x3f2056\nLDR             R3, [SP,#0x34+var_1C]                                  ; +0x132, 0x3f205a\nSTR.W           R6, [R3,R1,LSL#2]                                      ; +0x134, 0x3f205c\nB               loc_3F2068                                             ; +0x138, 0x3f2060\nLDR             R2, [R3]                                               ; +0x13a, 0x3f2062\nSTR             R2, [R6]                                               ; +0x13c, 0x3f2064\nSTR             R6, [R3]                                               ; +0x13e, 0x3f2066\nLDR             R3, [SP,#0x34+var_10]                                  ; +0x140, 0x3f2068\nADDS            R3, #1                                                 ; +0x142, 0x3f206a\nSTR             R3, [SP,#0x34+var_10]                                  ; +0x144, 0x3f206c\nLDR.W           R8, [R8]                                               ; +0x146, 0x3f206e\nB               loc_3F1F58                                             ; +0x14a, 0x3f2072\nMOV             R0, R6; void *                                         ; +0x14c, 0x3f2074\nBL              _ZdlPv; operator delete(void *)                        ; +0x14e, 0x3f2076\nB               loc_3F20AC                                             ; +0x152, 0x3f207a\nLDR             R4, [SP,#0x34+var_14]                                  ; +0x154, 0x3f207c\nADD             R5, SP, #0x34+var_20                                   ; +0x156, 0x3f207e\nCBZ             R4, loc_3F2098                                         ; +0x158, 0x3f2080\nLDR             R3, [R4,#8]                                            ; +0x15a, 0x3f2082\nCMP             R3, #0                                                 ; +0x15c, 0x3f2084\nSTR             R3, [SP,#0x34+var_20]                                  ; +0x15e, 0x3f2086\nBLT             loc_3F2094                                             ; +0x160, 0x3f2088\nMOV             R0, R10                                                ; +0x162, 0x3f208a\nMOV             R1, R5                                                 ; +0x164, 0x3f208c\nBL              _ZNKSt6__ndk112__hash_tableIiNS_4hashIiEENS_8equal_toIiEENS_9allocatorIiEEE4findIiEENS_21__hash_const_iteratorIPNS_11__hash_nodeIiPvEEEERKT_; std::__hash_table<int,std::hash<int>,std::equal_to<int>,std::allocator<int>>::find<int>(int const&) ; +0x166, 0x3f208e\nCBZ             R0, loc_3F20D4                                         ; +0x16a, 0x3f2092\nLDR             R4, [R4]                                               ; +0x16c, 0x3f2094\nB               loc_3F2080                                             ; +0x16e, 0x3f2096\nADD             R0, SP, #0x34+var_1C                                   ; +0x170, 0x3f2098\nBL              _ZNSt6__ndk112__hash_tableIiNS_4hashIiEENS_8equal_toIiEENS_9allocatorIiEEED2Ev; std::__hash_table<int,std::hash<int>,std::equal_to<int>,std::allocator<int>>::~__hash_table() ; +0x172, 0x3f209a\nLDR             R2, [SP,#0x34+var_8]                                   ; +0x176, 0x3f209e\nLDR.W           R3, [R11]                                              ; +0x178, 0x3f20a0\nCMP             R2, R3                                                 ; +0x17c, 0x3f20a4\nBEQ             loc_3F20DE                                             ; +0x17e, 0x3f20a6\nBLX             __stack_chk_fail                                       ; +0x180, 0x3f20a8\nADD             R0, SP, #0x34+var_1C                                   ; +0x184, 0x3f20ac\nBL              _ZNSt6__ndk112__hash_tableIiNS_4hashIiEENS_8equal_toIiEENS_9allocatorIiEEED2Ev; std::__hash_table<int,std::hash<int>,std::equal_to<int>,std::allocator<int>>::~__hash_table() ; +0x186, 0x3f20ae\nBL              __cxa_end_cleanup                                      ; +0x18a, 0x3f20b2\nLDR             R1, [R3,#8]                                            ; +0x18e, 0x3f20b6\nCMP             R1, R7                                                 ; +0x190, 0x3f20b8\nBNE.W           loc_3F1F8A                                             ; +0x192, 0x3f20ba\nB               loc_3F206E                                             ; +0x196, 0x3f20be\nCMP             R4, #2                                                 ; +0x198, 0x3f20c0\nBLS             loc_3F20D0                                             ; +0x19a, 0x3f20c2\nSUBS            R3, R4, #1                                             ; +0x19c, 0x3f20c4\nTST             R3, R4                                                 ; +0x19e, 0x3f20c6\nITE EQ                                                                 ; +0x1a0, 0x3f20c8\nMOVEQ           R5, #1                                                 ; +0x1a2, 0x3f20ca\nMOVNE           R5, #0                                                 ; +0x1a4, 0x3f20cc\nB               loc_3F1FEA                                             ; +0x1a6, 0x3f20ce\nMOVS            R5, #0                                                 ; +0x1a8, 0x3f20d0\nB               loc_3F1FEA                                             ; +0x1aa, 0x3f20d2\nMOV             R0, R9; this                                           ; +0x1ac, 0x3f20d4\nLDR             R1, [SP,#0x34+var_20]; int                             ; +0x1ae, 0x3f20d6\nBL              _ZN15FMODAudioEngine9stopMusicEi; FMODAudioEngine::stopMusic(int) ; +0x1b0, 0x3f20d8\nB               loc_3F2094                                             ; +0x1b4, 0x3f20dc\nADD             SP, SP, #0x34 ; '4'                                    ; +0x1b6, 0x3f20de\nPOP.W           {R4-R11,PC}                                            ; +0x1b8, 0x3f20e0", "xrefs": ["GJBaseGameLayer::processActivatedAudioTriggers @ 0x5b3098"], "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"}