{"type": "func", "start": 3139584, "end": 3139888, "name": "FMODAudioEngine::updateReverb", "pseudocode": "// \n// FMODAudioEngine::updateReverb from 0x2fe800 to 0x2fe930 (304 bytes)\n// \n// 6 xrefs:\n// > FMODAudioEngine::setupAudioEngine @ 0x2feb66\n// > EditorUI::onPlayback @ 0x37db46\n// > GJBaseGameLayer::activateSFXTrigger @ 0x484ba4\n// > GJBaseGameLayer::resetLevelVariables @ 0x491b86\n// > SetupReverbPopup::onPlay @ 0x574ee6\n// > SetupSFXPopup::overridePlaySFX @ 0x574f12\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\nvoid FMODAudioEngine::updateReverb(FMODAudioEngine *a1, FMODReverbPreset a2, bool a3)\n{\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::ChannelGroup *m_reverbChannel; // 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  if ( a1->m_reverbPreset != 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_9A9B78 + 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    m_reverbChannel = a1->m_reverbChannel;\n    v18 = nullptr;\n    v16 = *(float *)&v7;\n    v17 = *(float *)&v6;\n    FMOD::ChannelControl::getDSP(m_reverbChannel, 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    FMOD::DSP::setParameterFloat(v18, 11, v15);\n    a1->m_reverbPreset = a2;\n  }\n}", "assembly": "; \n; FMODAudioEngine::updateReverb from 0x2fe800 to 0x2fe930 (304 bytes)\n; \n; 6 xrefs:\n; > FMODAudioEngine::setupAudioEngine @ 0x2feb66\n; > EditorUI::onPlayback @ 0x37db46\n; > GJBaseGameLayer::activateSFXTrigger @ 0x484ba4\n; > GJBaseGameLayer::resetLevelVariables @ 0x491b86\n; > SetupReverbPopup::onPlay @ 0x574ee6\n; > SetupSFXPopup::overridePlaySFX @ 0x574f12\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\nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x2fe800\nMOV             R5, R1                                                 ; +0x4, 0x2fe804\nLDR             R1, =(__stack_chk_guard_ptr - 0x2FE810)                ; +0x6, 0x2fe806\nSUB             SP, SP, #0x24                                          ; +0x8, 0x2fe808\nMOV             R4, R0                                                 ; +0xa, 0x2fe80a\nADD             R1, PC; __stack_chk_guard_ptr                          ; +0xc, 0x2fe80c\nLDR             R1, [R1]; __stack_chk_guard                            ; +0xe, 0x2fe80e\nSTR             R1, [SP,#0x24+var_18]                                  ; +0x10, 0x2fe810\nLDR             R3, [R1]                                               ; +0x12, 0x2fe812\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x14, 0x2fe814\nLDR.W           R3, [R0,#0x3D8]                                        ; +0x16, 0x2fe816\nCMP             R3, R5                                                 ; +0x1a, 0x2fe81a\nBNE             loc_2FE822                                             ; +0x1c, 0x2fe81c\nCMP             R2, #0                                                 ; +0x1e, 0x2fe81e\nBEQ             loc_2FE91C                                             ; +0x20, 0x2fe820\nSUBS            R2, R5, #1                                             ; +0x22, 0x2fe822\nCMP             R2, #0x15                                              ; +0x24, 0x2fe824\nBHI             loc_2FE85C                                             ; +0x26, 0x2fe826\nLDR             R3, =(unk_9A9B78 - 0x2FE82E)                           ; +0x28, 0x2fe828\nADD             R3, PC; unk_9A9B78                                     ; +0x2a, 0x2fe82a\nADD.W           R2, R3, R2,LSL#2                                       ; +0x2c, 0x2fe82c\nVLDR            S15, [R2,#0x268]                                       ; +0x30, 0x2fe830\nLDR.W           R12, [R2]                                              ; +0x34, 0x2fe834\nLDR             R3, [R2,#0x58]                                         ; +0x38, 0x2fe838\nLDR.W           R11, [R2,#0xB0]                                        ; +0x3a, 0x2fe83a\nVSTR            S15, [SP,#0x24+var_20]                                 ; +0x3e, 0x2fe83e\nLDR.W           R10, [R2,#0x108]                                       ; +0x42, 0x2fe842\nLDR.W           R9, [R2,#0x160]                                        ; +0x46, 0x2fe846\nVLDR            S15, [R2,#0x2C0]                                       ; +0x4a, 0x2fe84a\nLDR.W           R6, [R2,#0x1B8]                                        ; +0x4e, 0x2fe84e\nLDR.W           R8, [R2,#0x210]                                        ; +0x52, 0x2fe852\nVSTR            S15, [SP,#0x24+var_1C]                                 ; +0x56, 0x2fe856\nB               loc_2FE882                                             ; +0x5a, 0x2fe85a\nVMOV.F32        S15, #-8.0                                             ; +0x5c, 0x2fe85c\nLDR             R6, =0x42C80000                                        ; +0x60, 0x2fe860\nLDR.W           R8, =0x46629000                                        ; +0x62, 0x2fe862\nLDR.W           R10, =0x42A60000                                       ; +0x66, 0x2fe866\nLDR.W           R11, =0x41300000                                       ; +0x6a, 0x2fe86a\nMOV             R9, R6                                                 ; +0x6e, 0x2fe86e\nLDR             R3, =0x40E00000                                        ; +0x70, 0x2fe870\nLDR.W           R12, =0x44BB8000                                       ; +0x72, 0x2fe872\nVSTR            S15, [SP,#0x24+var_1C]                                 ; +0x76, 0x2fe876\nVLDR            S15, =96.0                                             ; +0x7a, 0x2fe87a\nVSTR            S15, [SP,#0x24+var_20]                                 ; +0x7e, 0x2fe87e\nADD             R2, SP, #0x24+var_4                                    ; +0x82, 0x2fe882\nMOVS            R7, #0                                                 ; +0x84, 0x2fe884\nMOV             R1, R7; int                                            ; +0x86, 0x2fe886\nLDR.W           R0, [R4,#0x194]; this                                  ; +0x88, 0x2fe888\nSTR.W           R7, [R2,#-8]!; FMOD::DSP **                            ; +0x8c, 0x2fe88c\nSTR             R3, [SP,#0x24+var_14]                                  ; +0x90, 0x2fe890\nSTR.W           R12, [SP,#0x24+var_10]                                 ; +0x92, 0x2fe892\nBLX             _ZN4FMOD14ChannelControl6getDSPEiPPNS_3DSPE; FMOD::ChannelControl::getDSP(int,FMOD::DSP **) ; +0x96, 0x2fe896\nLDR.W           R12, [SP,#0x24+var_10]                                 ; +0x9a, 0x2fe89a\nMOV             R1, R7; int                                            ; +0x9e, 0x2fe89e\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xa0, 0x2fe8a0\nMOV             R2, R12; float                                         ; +0xa2, 0x2fe8a2\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xa4, 0x2fe8a4\nLDR             R3, [SP,#0x24+var_14]                                  ; +0xa8, 0x2fe8a8\nMOVS            R1, #1; int                                            ; +0xaa, 0x2fe8aa\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xac, 0x2fe8ac\nMOV             R2, R3; float                                          ; +0xae, 0x2fe8ae\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xb0, 0x2fe8b0\nMOVS            R1, #2; int                                            ; +0xb4, 0x2fe8b4\nMOV             R2, R11; float                                         ; +0xb6, 0x2fe8b6\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xb8, 0x2fe8b8\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xba, 0x2fe8ba\nMOVS            R1, #3; int                                            ; +0xbe, 0x2fe8be\nLDR             R2, flt_2FE93C; float                                  ; +0xc0, 0x2fe8c0\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xc2, 0x2fe8c2\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xc4, 0x2fe8c4\nMOVS            R1, #4; int                                            ; +0xc8, 0x2fe8c8\nMOV             R2, R10; float                                         ; +0xca, 0x2fe8ca\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xcc, 0x2fe8cc\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xce, 0x2fe8ce\nMOVS            R1, #5; int                                            ; +0xd2, 0x2fe8d2\nMOV             R2, R9; float                                          ; +0xd4, 0x2fe8d4\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xd6, 0x2fe8d6\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xd8, 0x2fe8d8\nMOVS            R1, #6; int                                            ; +0xdc, 0x2fe8dc\nMOV             R2, R6; float                                          ; +0xde, 0x2fe8de\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xe0, 0x2fe8e0\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xe2, 0x2fe8e2\nMOVS            R1, #7; int                                            ; +0xe6, 0x2fe8e6\nLDR             R2, flt_2FE940; float                                  ; +0xe8, 0x2fe8e8\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xea, 0x2fe8ea\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xec, 0x2fe8ec\nMOVS            R1, #8; int                                            ; +0xf0, 0x2fe8f0\nMOVS            R2, #0; float                                          ; +0xf2, 0x2fe8f2\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xf4, 0x2fe8f4\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0xf6, 0x2fe8f6\nMOVS            R1, #9; int                                            ; +0xfa, 0x2fe8fa\nMOV             R2, R8; float                                          ; +0xfc, 0x2fe8fc\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0xfe, 0x2fe8fe\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x100, 0x2fe900\nMOVS            R1, #0xA; int                                          ; +0x104, 0x2fe904\nLDR             R2, [SP,#0x24+var_20]; float                           ; +0x106, 0x2fe906\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0x108, 0x2fe908\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x10a, 0x2fe90a\nLDR             R0, [SP,#0x24+var_C]; this                             ; +0x10e, 0x2fe90e\nMOVS            R1, #0xB; int                                          ; +0x110, 0x2fe910\nLDR             R2, [SP,#0x24+var_1C]; float                           ; +0x112, 0x2fe912\nBLX             _ZN4FMOD3DSP17setParameterFloatEif; FMOD::DSP::setParameterFloat(int,float) ; +0x114, 0x2fe914\nSTR.W           R5, [R4,#0x3D8]                                        ; +0x118, 0x2fe918\nLDR             R3, [SP,#0x24+var_18]                                  ; +0x11c, 0x2fe91c\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x11e, 0x2fe91e\nLDR             R3, [R3]                                               ; +0x120, 0x2fe920\nCMP             R2, R3                                                 ; +0x122, 0x2fe922\nBEQ             loc_2FE92A                                             ; +0x124, 0x2fe924\nBLX             __stack_chk_fail                                       ; +0x126, 0x2fe926\nADD             SP, SP, #0x24 ; '$'                                    ; +0x12a, 0x2fe92a\nPOP.W           {R4-R11,PC}                                            ; +0x12c, 0x2fe92c", "xrefs": ["FMODAudioEngine::setupAudioEngine @ 0x2feb66", "EditorUI::onPlayback @ 0x37db46", "GJBaseGameLayer::activateSFXTrigger @ 0x484ba4", "GJBaseGameLayer::resetLevelVariables @ 0x491b86", "SetupReverbPopup::onPlay @ 0x574ee6", "SetupSFXPopup::overridePlaySFX @ 0x574f12"], "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"}