{"type": "func", "start": 4298942576, "end": 4298943164, "name": "FMODAudioEngine::updateReverb", "pseudocode": "// \n// FMODAudioEngine::updateReverb from 0x1003ca870 to 0x1003caabc (588 bytes)\n// \n// 7 xrefs:\n// > EditorUI::onPlayback @ 0x100008740\n// > GJBaseGameLayer::resetLevelVariables @ 0x100138608\n// > GJBaseGameLayer::activateSFXTrigger @ 0x100139d55\n// > FMODAudioEngine::setupAudioEngine @ 0x1003ca562\n// > SetupReverbPopup::onPlay @ 0x1004b1532\n// > SetupSFXPopup::overridePlaySFX @ 0x1004b36cb\n// > sub_1004B36F0 @ 0x1004b371b\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 12:29:36 +0000\n// \n\nunsigned __int8 __fastcall FMODAudioEngine::updateReverb(__int64 a1, int a2, unsigned __int8 a3)\n{\n  unsigned __int8 result; // al\n  int v4; // eax\n  float v5; // [rsp-44h] [rbp-44h]\n  float v6; // [rsp-40h] [rbp-40h]\n  float v7; // [rsp-3Ch] [rbp-3Ch]\n  float v8; // [rsp-38h] [rbp-38h]\n  float v9; // [rsp-34h] [rbp-34h]\n  float v10; // [rsp-30h] [rbp-30h]\n  float v11; // [rsp-2Ch] [rbp-2Ch]\n  float v12; // [rsp-28h] [rbp-28h]\n  float v13; // [rsp-24h] [rbp-24h]\n  FMOD::DSP *v14; // [rsp-20h] [rbp-20h] BYREF\n\n  result = *(_DWORD *)(a1 + 1336) == a2;\n  if ( ((a3 ^ 1) & result) == 0 )\n  {\n    v4 = a2 - 1;\n    if ( (unsigned int)(a2 - 1) > 0x15 )\n    {\n      v5 = -8.0;\n      v6 = 96.0;\n      v7 = 14500.0;\n      v10 = 83.0;\n      v11 = 11.0;\n      v12 = 7.0;\n      v13 = 1500.0;\n      v8 = 100.0;\n      v9 = 100.0;\n    }\n    else\n    {\n      v13 = flt_100A09644[v4];\n      v12 = flt_100A0969C[v4];\n      v11 = flt_100A096F4[v4];\n      v10 = flt_100A0974C[v4];\n      v8 = flt_100A097A4[v4];\n      v9 = flt_100A097FC[v4];\n      v7 = flt_100A09854[v4];\n      v6 = flt_100A098AC[v4];\n      v5 = flt_100A09904[v4];\n    }\n    v14 = nullptr;\n    FMOD::ChannelControl::getDSP(*(FMOD::ChannelControl **)(a1 + 520), 0, &v14);\n    FMOD::DSP::setParameterFloat(v14, 0, v13);\n    FMOD::DSP::setParameterFloat(v14, 1, v12);\n    FMOD::DSP::setParameterFloat(v14, 2, v11);\n    FMOD::DSP::setParameterFloat(v14, 3, 5000.0);\n    FMOD::DSP::setParameterFloat(v14, 4, v10);\n    FMOD::DSP::setParameterFloat(v14, 5, v8);\n    FMOD::DSP::setParameterFloat(v14, 6, v9);\n    FMOD::DSP::setParameterFloat(v14, 7, 250.0);\n    FMOD::DSP::setParameterFloat(v14, 8, 0.0);\n    FMOD::DSP::setParameterFloat(v14, 9, v7);\n    FMOD::DSP::setParameterFloat(v14, 10, v6);\n    result = FMOD::DSP::setParameterFloat(v14, 11, v5);\n    *(_DWORD *)(a1 + 1336) = a2;\n  }\n  return result;\n}", "assembly": "; \n; FMODAudioEngine::updateReverb from 0x1003ca870 to 0x1003caabc (588 bytes)\n; \n; 7 xrefs:\n; > EditorUI::onPlayback @ 0x100008740\n; > GJBaseGameLayer::resetLevelVariables @ 0x100138608\n; > GJBaseGameLayer::activateSFXTrigger @ 0x100139d55\n; > FMODAudioEngine::setupAudioEngine @ 0x1003ca562\n; > SetupReverbPopup::onPlay @ 0x1004b1532\n; > SetupSFXPopup::overridePlaySFX @ 0x1004b36cb\n; > sub_1004B36F0 @ 0x1004b371b\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 12:29:36 +0000\n; \nxor     dl, 1                                                          ; +0x0, 0x1003ca870\ncmp     [rdi+538h], esi                                                ; +0x3, 0x1003ca873\nsetz    al                                                             ; +0x9, 0x1003ca879\ntest    al, dl                                                         ; +0xc, 0x1003ca87c\njnz     locret_1003CAABB                                               ; +0xe, 0x1003ca87e\npush    rbp                                                            ; +0x14, 0x1003ca884\nmov     rbp, rsp                                                       ; +0x15, 0x1003ca885\npush    r14                                                            ; +0x18, 0x1003ca888\npush    rbx                                                            ; +0x1a, 0x1003ca88a\nsub     rsp, 30h                                                       ; +0x1b, 0x1003ca88b\nmov     ebx, esi                                                       ; +0x1f, 0x1003ca88f\nlea     eax, [rbx-1]                                                   ; +0x21, 0x1003ca891\ncmp     eax, 15h                                                       ; +0x24, 0x1003ca894\nja      loc_1003CA93A                                                  ; +0x27, 0x1003ca897\nmov     eax, eax                                                       ; +0x2d, 0x1003ca89d\nlea     rcx, flt_100A09644                                             ; +0x2f, 0x1003ca89f\nmovss   xmm0, dword ptr [rcx+rax*4]                                    ; +0x36, 0x1003ca8a6\nmovss   dword ptr [rbp-1Ch], xmm0                                      ; +0x3b, 0x1003ca8ab\nlea     rcx, flt_100A0969C                                             ; +0x40, 0x1003ca8b0\nmovss   xmm0, dword ptr [rcx+rax*4]                                    ; +0x47, 0x1003ca8b7\nmovss   dword ptr [rbp-20h], xmm0                                      ; +0x4c, 0x1003ca8bc\nlea     rcx, flt_100A096F4                                             ; +0x51, 0x1003ca8c1\nmovss   xmm0, dword ptr [rcx+rax*4]                                    ; +0x58, 0x1003ca8c8\nmovss   dword ptr [rbp-24h], xmm0                                      ; +0x5d, 0x1003ca8cd\nlea     rcx, flt_100A0974C                                             ; +0x62, 0x1003ca8d2\nmovss   xmm0, dword ptr [rcx+rax*4]                                    ; +0x69, 0x1003ca8d9\nmovss   dword ptr [rbp-28h], xmm0                                      ; +0x6e, 0x1003ca8de\nlea     rcx, flt_100A097A4                                             ; +0x73, 0x1003ca8e3\nmovss   xmm0, dword ptr [rcx+rax*4]                                    ; +0x7a, 0x1003ca8ea\nmovss   dword ptr [rbp-30h], xmm0                                      ; +0x7f, 0x1003ca8ef\nlea     rcx, flt_100A097FC                                             ; +0x84, 0x1003ca8f4\nmovss   xmm0, dword ptr [rcx+rax*4]                                    ; +0x8b, 0x1003ca8fb\nmovss   dword ptr [rbp-2Ch], xmm0                                      ; +0x90, 0x1003ca900\nlea     rcx, flt_100A09854                                             ; +0x95, 0x1003ca905\nmovss   xmm0, dword ptr [rcx+rax*4]                                    ; +0x9c, 0x1003ca90c\nmovss   dword ptr [rbp-34h], xmm0                                      ; +0xa1, 0x1003ca911\nlea     rcx, flt_100A098AC                                             ; +0xa6, 0x1003ca916\nmovss   xmm0, dword ptr [rcx+rax*4]                                    ; +0xad, 0x1003ca91d\nmovss   dword ptr [rbp-38h], xmm0                                      ; +0xb2, 0x1003ca922\nlea     rcx, flt_100A09904                                             ; +0xb7, 0x1003ca927\nmovss   xmm0, dword ptr [rcx+rax*4]                                    ; +0xbe, 0x1003ca92e\nmovss   dword ptr [rbp-3Ch], xmm0                                      ; +0xc3, 0x1003ca933\njmp     short loc_1003CA9A7                                            ; +0xc8, 0x1003ca938\nmovss   xmm0, cs:dword_100A03810                                       ; +0xca, 0x1003ca93a\nmovss   dword ptr [rbp-3Ch], xmm0                                      ; +0xd2, 0x1003ca942\nmovss   xmm0, cs:dword_100A03768                                       ; +0xd7, 0x1003ca947\nmovss   dword ptr [rbp-38h], xmm0                                      ; +0xdf, 0x1003ca94f\nmovss   xmm0, cs:dword_100A095D0                                       ; +0xe4, 0x1003ca954\nmovss   dword ptr [rbp-34h], xmm0                                      ; +0xec, 0x1003ca95c\nmovss   xmm0, cs:dword_100A03584                                       ; +0xf1, 0x1003ca961\nmovss   xmm1, cs:dword_100A095D4                                       ; +0xf9, 0x1003ca969\nmovss   dword ptr [rbp-28h], xmm1                                      ; +0x101, 0x1003ca971\nmovss   xmm1, cs:dword_100A040B8                                       ; +0x106, 0x1003ca976\nmovss   dword ptr [rbp-24h], xmm1                                      ; +0x10e, 0x1003ca97e\nmovss   xmm1, cs:dword_100A05948                                       ; +0x113, 0x1003ca983\nmovss   dword ptr [rbp-20h], xmm1                                      ; +0x11b, 0x1003ca98b\nmovss   xmm1, cs:dword_100A03B0C                                       ; +0x120, 0x1003ca990\nmovss   dword ptr [rbp-1Ch], xmm1                                      ; +0x128, 0x1003ca998\nmovss   dword ptr [rbp-30h], xmm0                                      ; +0x12d, 0x1003ca99d\nmovss   dword ptr [rbp-2Ch], xmm0                                      ; +0x132, 0x1003ca9a2\nmov     qword ptr [rbp-18h], 0                                         ; +0x137, 0x1003ca9a7\nmov     rax, [rdi+208h]                                                ; +0x13f, 0x1003ca9af\nlea     rdx, [rbp-18h]                                                 ; +0x146, 0x1003ca9b6\nmov     r14, rdi                                                       ; +0x14a, 0x1003ca9ba\nmov     rdi, rax                                                       ; +0x14d, 0x1003ca9bd\nxor     esi, esi                                                       ; +0x150, 0x1003ca9c0\ncall    __ZN4FMOD14ChannelControl6getDSPEiPPNS_3DSPE; FMOD::ChannelControl::getDSP(int,FMOD::DSP **) ; +0x152, 0x1003ca9c2\nmov     rdi, [rbp-18h]; this                                           ; +0x157, 0x1003ca9c7\nxor     esi, esi; int                                                  ; +0x15b, 0x1003ca9cb\nmovss   xmm0, dword ptr [rbp-1Ch]; float                               ; +0x15d, 0x1003ca9cd\ncall    __ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x162, 0x1003ca9d2\nmov     rdi, [rbp-18h]; this                                           ; +0x167, 0x1003ca9d7\nmov     esi, 1; int                                                    ; +0x16b, 0x1003ca9db\nmovss   xmm0, dword ptr [rbp-20h]; float                               ; +0x170, 0x1003ca9e0\ncall    __ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x175, 0x1003ca9e5\nmov     rdi, [rbp-18h]; this                                           ; +0x17a, 0x1003ca9ea\nmov     esi, 2; int                                                    ; +0x17e, 0x1003ca9ee\nmovss   xmm0, dword ptr [rbp-24h]; float                               ; +0x183, 0x1003ca9f3\ncall    __ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x188, 0x1003ca9f8\nmov     rdi, [rbp-18h]; this                                           ; +0x18d, 0x1003ca9fd\nmovss   xmm0, cs:flt_100A03B1C; float                                  ; +0x191, 0x1003caa01\nmov     esi, 3; int                                                    ; +0x199, 0x1003caa09\ncall    __ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x19e, 0x1003caa0e\nmov     rdi, [rbp-18h]; this                                           ; +0x1a3, 0x1003caa13\nmov     esi, 4; int                                                    ; +0x1a7, 0x1003caa17\nmovss   xmm0, dword ptr [rbp-28h]; float                               ; +0x1ac, 0x1003caa1c\ncall    __ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x1b1, 0x1003caa21\nmov     rdi, [rbp-18h]; this                                           ; +0x1b6, 0x1003caa26\nmov     esi, 5; int                                                    ; +0x1ba, 0x1003caa2a\nmovss   xmm0, dword ptr [rbp-30h]; float                               ; +0x1bf, 0x1003caa2f\ncall    __ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x1c4, 0x1003caa34\nmov     rdi, [rbp-18h]; this                                           ; +0x1c9, 0x1003caa39\nmov     esi, 6; int                                                    ; +0x1cd, 0x1003caa3d\nmovss   xmm0, dword ptr [rbp-2Ch]; float                               ; +0x1d2, 0x1003caa42\ncall    __ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x1d7, 0x1003caa47\nmov     rdi, [rbp-18h]; this                                           ; +0x1dc, 0x1003caa4c\nmovss   xmm0, cs:flt_100A039D8; float                                  ; +0x1e0, 0x1003caa50\nmov     esi, 7; int                                                    ; +0x1e8, 0x1003caa58\ncall    __ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x1ed, 0x1003caa5d\nmov     rdi, [rbp-18h]; this                                           ; +0x1f2, 0x1003caa62\nxorps   xmm0, xmm0; float                                              ; +0x1f6, 0x1003caa66\nmov     esi, 8; int                                                    ; +0x1f9, 0x1003caa69\ncall    __ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x1fe, 0x1003caa6e\nmov     rdi, [rbp-18h]; this                                           ; +0x203, 0x1003caa73\nmov     esi, 9; int                                                    ; +0x207, 0x1003caa77\nmovss   xmm0, dword ptr [rbp-34h]; float                               ; +0x20c, 0x1003caa7c\ncall    __ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x211, 0x1003caa81\nmov     rdi, [rbp-18h]; this                                           ; +0x216, 0x1003caa86\nmov     esi, 0Ah; int                                                  ; +0x21a, 0x1003caa8a\nmovss   xmm0, dword ptr [rbp-38h]; float                               ; +0x21f, 0x1003caa8f\ncall    __ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x224, 0x1003caa94\nmov     rdi, [rbp-18h]; this                                           ; +0x229, 0x1003caa99\nmov     esi, 0Bh; int                                                  ; +0x22d, 0x1003caa9d\nmovss   xmm0, dword ptr [rbp-3Ch]; float                               ; +0x232, 0x1003caaa2\ncall    __ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x237, 0x1003caaa7\nmov     [r14+538h], ebx                                                ; +0x23c, 0x1003caaac\nadd     rsp, 30h                                                       ; +0x243, 0x1003caab3\npop     rbx                                                            ; +0x247, 0x1003caab7\npop     r14                                                            ; +0x248, 0x1003caab8\npop     rbp                                                            ; +0x24a, 0x1003caaba\nretn                                                                   ; +0x24b, 0x1003caabb", "xrefs": ["EditorUI::onPlayback @ 0x100008740", "GJBaseGameLayer::resetLevelVariables @ 0x100138608", "GJBaseGameLayer::activateSFXTrigger @ 0x100139d55", "FMODAudioEngine::setupAudioEngine @ 0x1003ca562", "SetupReverbPopup::onPlay @ 0x1004b1532", "SetupSFXPopup::overridePlaySFX @ 0x1004b36cb", "sub_1004B36F0 @ 0x1004b371b"], "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"}