{"type": "func", "start": 4094828, "end": 4095132, "name": "FMODAudioEngine::updateReverb", "pseudocode": "// \n// FMODAudioEngine::updateReverb from 0x3e7b6c to 0x3e7c9c (304 bytes)\n// \n// 6 xrefs:\n// > FMODAudioEngine::setupAudioEngine @ 0x3e7ee2\n// > EditorUI::onPlayback @ 0x482502\n// > GJBaseGameLayer::activateSFXTrigger @ 0x5b197e\n// > GJBaseGameLayer::resetLevelVariables @ 0x5b950e\n// > SetupReverbPopup::onPlay @ 0x6af822\n// > SetupSFXPopup::overridePlaySFX @ 0x6af84e\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:05 +0000\n// \n\nint __fastcall FMODAudioEngine::updateReverb(int result, int a2, int a3)\n{\n  int v4; // r4\n  _DWORD *v5; // r2\n  int v6; // r12\n  int v7; // r3\n  float v8; // r11\n  float v9; // r10\n  float v10; // r9\n  float v11; // r6\n  float v12; // r8\n  FMOD::ChannelControl *v13; // r0\n  float v14; // [sp+4h] [bp-20h]\n  float v15; // [sp+8h] [bp-1Ch]\n  float v16; // [sp+10h] [bp-14h]\n  float v17; // [sp+14h] [bp-10h]\n  FMOD::DSP *v18; // [sp+18h] [bp-Ch] BYREF\n\n  v4 = result;\n  if ( *(_DWORD *)(result + 808) != a2 || a3 )\n  {\n    if ( (unsigned int)(a2 - 1) > 0x15 )\n    {\n      v11 = 100.0;\n      v12 = 14500.0;\n      v9 = 83.0;\n      v8 = 11.0;\n      v10 = 100.0;\n      v7 = 1088421888;\n      v6 = 1153138688;\n      v15 = -8.0;\n      v14 = 96.0;\n    }\n    else\n    {\n      v5 = (_DWORD *)((char *)&unk_BEB0B8 + 4 * a2 - 4);\n      v6 = *v5;\n      v7 = v5[22];\n      v8 = *((float *)v5 + 44);\n      v14 = *((float *)v5 + 154);\n      v9 = *((float *)v5 + 66);\n      v10 = *((float *)v5 + 88);\n      v11 = *((float *)v5 + 110);\n      v12 = *((float *)v5 + 132);\n      v15 = *((float *)v5 + 176);\n    }\n    v13 = *(FMOD::ChannelControl **)(result + 380);\n    v18 = nullptr;\n    v16 = *(float *)&v7;\n    v17 = *(float *)&v6;\n    FMOD::ChannelControl::getDSP(v13, 0, &v18);\n    FMOD::DSP::setParameterFloat(v18, 0, v17);\n    FMOD::DSP::setParameterFloat(v18, 1, v16);\n    FMOD::DSP::setParameterFloat(v18, 2, v8);\n    FMOD::DSP::setParameterFloat(v18, 3, 5000.0);\n    FMOD::DSP::setParameterFloat(v18, 4, v9);\n    FMOD::DSP::setParameterFloat(v18, 5, v10);\n    FMOD::DSP::setParameterFloat(v18, 6, v11);\n    FMOD::DSP::setParameterFloat(v18, 7, 250.0);\n    FMOD::DSP::setParameterFloat(v18, 8, 0.0);\n    FMOD::DSP::setParameterFloat(v18, 9, v12);\n    FMOD::DSP::setParameterFloat(v18, 10, v14);\n    result = FMOD::DSP::setParameterFloat(v18, 11, v15);\n    *(_DWORD *)(v4 + 808) = a2;\n  }\n  return result;\n}", "assembly": "; \n; FMODAudioEngine::updateReverb from 0x3e7b6c to 0x3e7c9c (304 bytes)\n; \n; 6 xrefs:\n; > FMODAudioEngine::setupAudioEngine @ 0x3e7ee2\n; > EditorUI::onPlayback @ 0x482502\n; > GJBaseGameLayer::activateSFXTrigger @ 0x5b197e\n; > GJBaseGameLayer::resetLevelVariables @ 0x5b950e\n; > SetupReverbPopup::onPlay @ 0x6af822\n; > SetupSFXPopup::overridePlaySFX @ 0x6af84e\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:05 +0000\n; \nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x3e7b6c\nMOV             R5, R1                                                 ; +0x4, 0x3e7b70\nLDR             R1, =(__stack_chk_guard_ptr - 0x3E7B7C)                ; +0x6, 0x3e7b72\nSUB             SP, SP, #0x24                                          ; +0x8, 0x3e7b74\nMOV             R4, R0                                                 ; +0xa, 0x3e7b76\nADD             R1, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3e7b78\nLDR             R1, [R1]; __stack_chk_guard                            ; +0xe, 0x3e7b7a\nSTR             R1, [SP,#0x24+var_18]                                  ; +0x10, 0x3e7b7c\nLDR             R3, [R1]                                               ; +0x12, 0x3e7b7e\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x14, 0x3e7b80\nLDR.W           R3, [R0,#0x328]                                        ; +0x16, 0x3e7b82\nCMP             R3, R5                                                 ; +0x1a, 0x3e7b86\nBNE             loc_3E7B8E                                             ; +0x1c, 0x3e7b88\nCMP             R2, #0                                                 ; +0x1e, 0x3e7b8a\nBEQ             loc_3E7C88                                             ; +0x20, 0x3e7b8c\nSUBS            R2, R5, #1                                             ; +0x22, 0x3e7b8e\nCMP             R2, #0x15                                              ; +0x24, 0x3e7b90\nBHI             loc_3E7BC8                                             ; +0x26, 0x3e7b92\nLDR             R3, =(unk_BEB0B8 - 0x3E7B9A)                           ; +0x28, 0x3e7b94\nADD             R3, PC; unk_BEB0B8                                     ; +0x2a, 0x3e7b96\nADD.W           R2, R3, R2,LSL#2                                       ; +0x2c, 0x3e7b98\nVLDR            S15, [R2,#0x268]                                       ; +0x30, 0x3e7b9c\nLDR.W           R12, [R2]                                              ; +0x34, 0x3e7ba0\nLDR             R3, [R2,#0x58]                                         ; +0x38, 0x3e7ba4\nLDR.W           R11, [R2,#0xB0]                                        ; +0x3a, 0x3e7ba6\nVSTR            S15, [SP,#0x24+var_20]                                 ; +0x3e, 0x3e7baa\nLDR.W           R10, [R2,#0x108]                                       ; +0x42, 0x3e7bae\nLDR.W           R9, [R2,#0x160]                                        ; +0x46, 0x3e7bb2\nVLDR            S15, [R2,#0x2C0]                                       ; +0x4a, 0x3e7bb6\nLDR.W           R6, [R2,#0x1B8]                                        ; +0x4e, 0x3e7bba\nLDR.W           R8, [R2,#0x210]                                        ; +0x52, 0x3e7bbe\nVSTR            S15, [SP,#0x24+var_1C]                                 ; +0x56, 0x3e7bc2\nB               loc_3E7BEE                                             ; +0x5a, 0x3e7bc6\nVMOV.F32        S15, #-8.0                                             ; +0x5c, 0x3e7bc8\nLDR             R6, =0x42C80000                                        ; +0x60, 0x3e7bcc\nLDR.W           R8, =0x46629000                                        ; +0x62, 0x3e7bce\nLDR.W           R10, =0x42A60000                                       ; +0x66, 0x3e7bd2\nLDR.W           R11, =0x41300000                                       ; +0x6a, 0x3e7bd6\nMOV             R9, R6                                                 ; +0x6e, 0x3e7bda\nLDR             R3, =0x40E00000                                        ; +0x70, 0x3e7bdc\nLDR.W           R12, =0x44BB8000                                       ; +0x72, 0x3e7bde\nVSTR            S15, [SP,#0x24+var_1C]                                 ; +0x76, 0x3e7be2\nVLDR            S15, =96.0                                             ; +0x7a, 0x3e7be6\nVSTR            S15, [SP,#0x24+var_20]                                 ; +0x7e, 0x3e7bea\nADD             R2, SP, #0x24+var_4                                    ; +0x82, 0x3e7bee\nMOVS            R7, #0                                                 ; +0x84, 0x3e7bf0\nMOV             R1, R7; int                                            ; +0x86, 0x3e7bf2\nLDR.W           R0, [R4,#0x17C]; this                                  ; +0x88, 0x3e7bf4\nSTR.W           R7, [R2,#-8]!; FMOD::DSP **                            ; +0x8c, 0x3e7bf8\nSTR             R3, [SP,#0x24+var_14]                                  ; +0x90, 0x3e7bfc\nSTR.W           R12, [SP,#0x24+var_10]                                 ; +0x92, 0x3e7bfe\nBLX             _ZN4FMOD14ChannelControl6getDSPEiPPNS_3DSPE; FMOD::ChannelControl::getDSP(int,FMOD::DSP **) ; +0x96, 0x3e7c02\nLDR.W           R12, [SP,#0x24+var_10]                                 ; +0x9a, 0x3e7c06\nMOV             R1, R7; int                                            ; +0x9e, 0x3e7c0a\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xa0, 0x3e7c0c\nMOV             R2, R12; float                                         ; +0xa2, 0x3e7c0e\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xa4, 0x3e7c10\nLDR             R3, [SP,#0x24+var_14]                                  ; +0xa8, 0x3e7c14\nMOVS            R1, #1; int                                            ; +0xaa, 0x3e7c16\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xac, 0x3e7c18\nMOV             R2, R3; float                                          ; +0xae, 0x3e7c1a\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xb0, 0x3e7c1c\nMOVS            R1, #2; int                                            ; +0xb4, 0x3e7c20\nMOV             R2, R11; float                                         ; +0xb6, 0x3e7c22\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xb8, 0x3e7c24\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xba, 0x3e7c26\nMOVS            R1, #3; int                                            ; +0xbe, 0x3e7c2a\nLDR             R2, flt_3E7CA8; float                                  ; +0xc0, 0x3e7c2c\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xc2, 0x3e7c2e\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xc4, 0x3e7c30\nMOVS            R1, #4; int                                            ; +0xc8, 0x3e7c34\nMOV             R2, R10; float                                         ; +0xca, 0x3e7c36\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xcc, 0x3e7c38\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xce, 0x3e7c3a\nMOVS            R1, #5; int                                            ; +0xd2, 0x3e7c3e\nMOV             R2, R9; float                                          ; +0xd4, 0x3e7c40\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xd6, 0x3e7c42\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xd8, 0x3e7c44\nMOVS            R1, #6; int                                            ; +0xdc, 0x3e7c48\nMOV             R2, R6; float                                          ; +0xde, 0x3e7c4a\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xe0, 0x3e7c4c\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xe2, 0x3e7c4e\nMOVS            R1, #7; int                                            ; +0xe6, 0x3e7c52\nLDR             R2, flt_3E7CAC; float                                  ; +0xe8, 0x3e7c54\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xea, 0x3e7c56\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xec, 0x3e7c58\nMOVS            R1, #8; int                                            ; +0xf0, 0x3e7c5c\nMOVS            R2, #0; float                                          ; +0xf2, 0x3e7c5e\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xf4, 0x3e7c60\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xf6, 0x3e7c62\nMOVS            R1, #9; int                                            ; +0xfa, 0x3e7c66\nMOV             R2, R8; float                                          ; +0xfc, 0x3e7c68\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xfe, 0x3e7c6a\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x100, 0x3e7c6c\nMOVS            R1, #0xA; int                                          ; +0x104, 0x3e7c70\nLDR             R2, [SP,#0x24+var_20]; float                           ; +0x106, 0x3e7c72\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0x108, 0x3e7c74\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x10a, 0x3e7c76\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0x10e, 0x3e7c7a\nMOVS            R1, #0xB; int                                          ; +0x110, 0x3e7c7c\nLDR             R2, [SP,#0x24+var_1C]; float                           ; +0x112, 0x3e7c7e\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x114, 0x3e7c80\nSTR.W           R5, [R4,#0x328]                                        ; +0x118, 0x3e7c84\nLDR             R3, [SP,#0x24+var_18]                                  ; +0x11c, 0x3e7c88\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x11e, 0x3e7c8a\nLDR             R3, [R3]                                               ; +0x120, 0x3e7c8c\nCMP             R2, R3                                                 ; +0x122, 0x3e7c8e\nBEQ             loc_3E7C96                                             ; +0x124, 0x3e7c90\nBLX             __stack_chk_fail                                       ; +0x126, 0x3e7c92\nADD             SP, SP, #0x24 ; '$'                                    ; +0x12a, 0x3e7c96\nPOP.W           {R4-R11,PC}                                            ; +0x12c, 0x3e7c98", "xrefs": ["FMODAudioEngine::setupAudioEngine @ 0x3e7ee2", "EditorUI::onPlayback @ 0x482502", "GJBaseGameLayer::activateSFXTrigger @ 0x5b197e", "GJBaseGameLayer::resetLevelVariables @ 0x5b950e", "SetupReverbPopup::onPlay @ 0x6af822", "SetupSFXPopup::overridePlaySFX @ 0x6af84e"], "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"}