{"type": "func", "start": 5369112496, "end": 5369112875, "name": "FMODAudioEngine::unloadAllEffects", "pseudocode": "// \n// FMODAudioEngine::unloadAllEffects from 0x1400627b0 to 0x14006292b (379 bytes)\n// \n// 6 xrefs:\n// > EditorPauseLayer::playStep2 @ 0x14018267e\n// > EditorPauseLayer::onExitEditor @ 0x140182bf2\n// > PlayLayer::onQuit @ 0x14051b293\n// > <???> @ 0x1408882f0\n// > <???> @ 0x140888300\n// > <???> @ 0x140910bbc\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:25:44 +0000\n// \n\nvoid __fastcall FMODAudioEngine::unloadAllEffects(_QWORD *a1)\n{\n  _QWORD **v2; // rax\n  _QWORD *v3; // rbx\n  _QWORD *v4; // rdx\n  _QWORD *v5; // r8\n  _QWORD *v6; // r8\n  unsigned __int64 v7; // r9\n  unsigned __int64 v8; // rax\n  __int64 i; // rdx\n  __int64 v10; // rcx\n  _QWORD *v11; // rdx\n  _QWORD *v12; // rax\n  __int64 v13; // rax\n  _QWORD *v14; // rdi\n\n  FMODAudioEngine::stopAllEffects(a1);\n  v2 = (_QWORD **)a1[49];\n  v3 = *v2;\n  if ( *v2 != v2 )\n  {\n    do\n    {\n      if ( *((_BYTE *)v3 + 100) )\n      {\n        v3 = (_QWORD *)*v3;\n      }\n      else\n      {\n        v4 = (_QWORD *)a1[195];\n        v5 = v3 + 6;\n        if ( v4 == (_QWORD *)a1[196] )\n        {\n          sub_1400699B0(a1 + 194, v4, v5);\n        }\n        else\n        {\n          *v4 = *v5;\n          a1[195] += 8LL;\n        }\n        sub_140066C60(a1 + 56, v3 + 2);\n        v6 = v3 + 2;\n        if ( v3[5] > 0xFu )\n          v6 = (_QWORD *)v3[2];\n        v7 = v3[4];\n        v8 = 0;\n        for ( i = 0xCBF29CE484222325uLL; v8 < v7; i = 0x100000001B3LL * (v10 ^ i) )\n          v10 = *((unsigned __int8 *)v6 + v8++);\n        v11 = (_QWORD *)(a1[51] + 16 * (a1[54] & i));\n        v12 = (_QWORD *)*v11;\n        if ( (_QWORD *)v11[1] == v3 )\n        {\n          if ( v12 == v3 )\n          {\n            v13 = a1[49];\n            *v11 = v13;\n          }\n          else\n          {\n            v13 = v3[1];\n          }\n          v11[1] = v13;\n        }\n        else if ( v12 == v3 )\n        {\n          *v11 = *v3;\n        }\n        v14 = (_QWORD *)*v3;\n        --a1[50];\n        *(_QWORD *)v3[1] = v14;\n        v14[1] = v3[1];\n        sub_14003D310((__int64)(v3 + 7));\n        sub_14003D310((__int64)(v3 + 2));\n        j_j_free(v3);\n        v3 = v14;\n      }\n    }\n    while ( v3 != (_QWORD *)a1[49] );\n  }\n  dword_14090BF4C = 0;\n}", "assembly": "; \n; FMODAudioEngine::unloadAllEffects from 0x1400627b0 to 0x14006292b (379 bytes)\n; \n; 6 xrefs:\n; > EditorPauseLayer::playStep2 @ 0x14018267e\n; > EditorPauseLayer::onExitEditor @ 0x140182bf2\n; > PlayLayer::onQuit @ 0x14051b293\n; > <???> @ 0x1408882f0\n; > <???> @ 0x140888300\n; > <???> @ 0x140910bbc\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:25:44 +0000\n; \npush    rbx                                                            ; +0x0, 0x1400627b0\npush    rsi                                                            ; +0x2, 0x1400627b2\nsub     rsp, 28h                                                       ; +0x3, 0x1400627b3\nmov     rsi, rcx                                                       ; +0x7, 0x1400627b7\ncall    FMODAudioEngine__stopAllEffects                                ; +0xa, 0x1400627ba\nmov     rax, [rsi+188h]                                                ; +0xf, 0x1400627bf\nmov     rbx, [rax]                                                     ; +0x16, 0x1400627c6\ncmp     rbx, rax                                                       ; +0x19, 0x1400627c9\njz      loc_14006291A                                                  ; +0x1c, 0x1400627cc\nmov     [rsp+38h+arg_0], rbp                                           ; +0x22, 0x1400627d2\nmov     rbp, 100000001B3h                                              ; +0x27, 0x1400627d7\nmov     [rsp+38h+var_18], r15                                          ; +0x31, 0x1400627e1\nmov     r15, 0CBF29CE484222325h                                        ; +0x36, 0x1400627e6\nmov     [rsp+38h+arg_8], rdi                                           ; +0x40, 0x1400627f0\nmov     [rsp+38h+arg_10], r14                                          ; +0x45, 0x1400627f5\nnop     word ptr [rax+rax+00h]                                         ; +0x4a, 0x1400627fa\ncmp     byte ptr [rbx+64h], 0                                          ; +0x50, 0x140062800\njnz     loc_1400628F6                                                  ; +0x54, 0x140062804\nlea     rcx, [rsi+610h]                                                ; +0x5a, 0x14006280a\nmov     rdx, [rcx+8]                                                   ; +0x61, 0x140062811\nlea     r8, [rbx+30h]                                                  ; +0x65, 0x140062815\ncmp     rdx, [rcx+10h]                                                 ; +0x69, 0x140062819\njz      short loc_14006282C                                            ; +0x6d, 0x14006281d\nmov     rax, [r8]                                                      ; +0x6f, 0x14006281f\nmov     [rdx], rax                                                     ; +0x72, 0x140062822\nadd     qword ptr [rcx+8], 8                                           ; +0x75, 0x140062825\njmp     short loc_140062831                                            ; +0x7a, 0x14006282a\ncall    sub_1400699B0                                                  ; +0x7c, 0x14006282c\nlea     rcx, [rsi+1C0h]                                                ; +0x81, 0x140062831\nlea     rdx, [rbx+10h]                                                 ; +0x88, 0x140062838\ncall    sub_140066C60                                                  ; +0x8c, 0x14006283c\ncmp     qword ptr [rbx+28h], 0Fh                                       ; +0x91, 0x140062841\nlea     r8, [rbx+10h]                                                  ; +0x96, 0x140062846\njbe     short loc_140062850                                            ; +0x9a, 0x14006284a\nmov     r8, [rbx+10h]                                                  ; +0x9c, 0x14006284c\nmov     r9, [rbx+20h]                                                  ; +0xa0, 0x140062850\nxor     eax, eax                                                       ; +0xa4, 0x140062854\nmov     rdx, r15                                                       ; +0xa6, 0x140062856\ntest    r9, r9                                                         ; +0xa9, 0x140062859\njz      short loc_140062874                                            ; +0xac, 0x14006285c\nxchg    ax, ax                                                         ; +0xae, 0x14006285e\nmovzx   ecx, byte ptr [r8+rax]                                         ; +0xb0, 0x140062860\ninc     rax                                                            ; +0xb5, 0x140062865\nxor     rdx, rcx                                                       ; +0xb8, 0x140062868\nimul    rdx, rbp                                                       ; +0xbb, 0x14006286b\ncmp     rax, r9                                                        ; +0xbf, 0x14006286f\njb      short loc_140062860                                            ; +0xc2, 0x140062872\nand     rdx, [rsi+1B0h]                                                ; +0xc4, 0x140062874\nshl     rdx, 4                                                         ; +0xcb, 0x14006287b\nadd     rdx, [rsi+198h]                                                ; +0xcf, 0x14006287f\nmov     rax, [rdx]                                                     ; +0xd6, 0x140062886\ncmp     [rdx+8], rbx                                                   ; +0xd9, 0x140062889\njnz     short loc_1400628AE                                            ; +0xdd, 0x14006288d\ncmp     rax, rbx                                                       ; +0xdf, 0x14006288f\njnz     short loc_1400628A4                                            ; +0xe2, 0x140062892\nmov     rax, [rsi+188h]                                                ; +0xe4, 0x140062894\nmov     [rdx], rax                                                     ; +0xeb, 0x14006289b\nmov     [rdx+8], rax                                                   ; +0xee, 0x14006289e\njmp     short loc_1400628B9                                            ; +0xf2, 0x1400628a2\nmov     rax, [rbx+8]                                                   ; +0xf4, 0x1400628a4\nmov     [rdx+8], rax                                                   ; +0xf8, 0x1400628a8\njmp     short loc_1400628B9                                            ; +0xfc, 0x1400628ac\ncmp     rax, rbx                                                       ; +0xfe, 0x1400628ae\njnz     short loc_1400628B9                                            ; +0x101, 0x1400628b1\nmov     rax, [rbx]                                                     ; +0x103, 0x1400628b3\nmov     [rdx], rax                                                     ; +0x106, 0x1400628b6\nmov     rdi, [rbx]                                                     ; +0x109, 0x1400628b9\nlea     rcx, [rbx+38h]                                                 ; +0x10c, 0x1400628bc\ndec     qword ptr [rsi+190h]                                           ; +0x110, 0x1400628c0\nmov     rax, [rbx+8]                                                   ; +0x117, 0x1400628c7\nmov     [rax], rdi                                                     ; +0x11b, 0x1400628cb\nmov     rax, [rbx+8]                                                   ; +0x11e, 0x1400628ce\nmov     [rdi+8], rax                                                   ; +0x122, 0x1400628d2\ncall    sub_14003D310                                                  ; +0x126, 0x1400628d6\nlea     rcx, [rbx+10h]                                                 ; +0x12b, 0x1400628db\ncall    sub_14003D310                                                  ; +0x12f, 0x1400628df\nmov     edx, 68h ; 'h'                                                 ; +0x134, 0x1400628e4\nmov     rcx, rbx; Block                                                ; +0x139, 0x1400628e9\ncall    j_j_free                                                       ; +0x13c, 0x1400628ec\nmov     rbx, rdi                                                       ; +0x141, 0x1400628f1\njmp     short loc_1400628F9                                            ; +0x144, 0x1400628f4\nmov     rbx, [rbx]                                                     ; +0x146, 0x1400628f6\ncmp     rbx, [rsi+188h]                                                ; +0x149, 0x1400628f9\njnz     loc_140062800                                                  ; +0x150, 0x140062900\nmov     r15, [rsp+38h+var_18]                                          ; +0x156, 0x140062906\nmov     r14, [rsp+38h+arg_10]                                          ; +0x15b, 0x14006290b\nmov     rdi, [rsp+38h+arg_8]                                           ; +0x160, 0x140062910\nmov     rbp, [rsp+38h+arg_0]                                           ; +0x165, 0x140062915\nmov     cs:dword_14090BF4C, 0                                          ; +0x16a, 0x14006291a\nadd     rsp, 28h                                                       ; +0x174, 0x140062924\npop     rsi                                                            ; +0x178, 0x140062928\npop     rbx                                                            ; +0x179, 0x140062929\nretn                                                                   ; +0x17a, 0x14006292a", "xrefs": ["EditorPauseLayer::playStep2 @ 0x14018267e", "EditorPauseLayer::onExitEditor @ 0x140182bf2", "PlayLayer::onQuit @ 0x14051b293", "<???> @ 0x1408882f0", "<???> @ 0x140888300", "<???> @ 0x140910bbc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}