{"type": "func", "start": 5373193696, "end": 5373193928, "name": "SetupReverbPopup::onPlay", "pseudocode": "// \n// SetupReverbPopup::onPlay from 0x140446de0 to 0x140446ec8 (232 bytes)\n// \n// 2 xrefs:\n// > SetupReverbPopup::init @ 0x140446d09\n// > <???> @ 0x1406da604\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\n// Hidden C++ exception states: #wind=3\nvoid SetupReverbPopup::onPlay(SetupReverbPopup *a1, cocos2d::CCObject *a2)\n{\n  FMODAudioEngine *v3; // rcx\n  SFXTriggerGameObject *m_gameObject; // rbx\n  FMODAudioEngine *v5; // rcx\n  GameManager *v6; // rcx\n  FMODAudioEngine *v7; // [rsp+30h] [rbp+8h]\n  FMODAudioEngine *v8; // [rsp+30h] [rbp+8h]\n  void *v9; // [rsp+30h] [rbp+8h]\n\n  v3 = (FMODAudioEngine *)qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v7 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v3 = (FMODAudioEngine *)qword_1406C2E88;\n  }\n  FMODAudioEngine::stopAllEffects(v3);\n  m_gameObject = (SFXTriggerGameObject *)a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    v5 = (FMODAudioEngine *)qword_1406C2E88;\n    if ( !qword_1406C2E88 )\n    {\n      v8 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v8);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      v5 = (FMODAudioEngine *)qword_1406C2E88;\n    }\n    FMODAudioEngine::updateReverb(v5, m_gameObject->m_reverbPreset, 0);\n    if ( !qword_1406C2ED8 )\n    {\n      v9 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v9);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    }\n    GameManager::playSFXTrigger(v6, m_gameObject);\n  }\n}", "assembly": "; \n; SetupReverbPopup::onPlay from 0x140446de0 to 0x140446ec8 (232 bytes)\n; \n; 2 xrefs:\n; > SetupReverbPopup::init @ 0x140446d09\n; > <???> @ 0x1406da604\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    rbx                                                            ; +0x0, 0x140446de0\nsub     rsp, 20h                                                       ; +0x2, 0x140446de2\nmov     rbx, rcx                                                       ; +0x6, 0x140446de6\nmov     rcx, cs:qword_1406C2E88                                        ; +0x9, 0x140446de9\ntest    rcx, rcx                                                       ; +0x10, 0x140446df0\njnz     short loc_140446E24                                            ; +0x13, 0x140446df3\nmov     ecx, 888h; Size                                                ; +0x15, 0x140446df5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x140446dfa\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x140446dff\nmov     rcx, rax                                                       ; +0x24, 0x140446e04\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x27, 0x140446e07\nnop                                                                    ; +0x2c, 0x140446e0c\nmov     cs:qword_1406C2E88, rax                                        ; +0x2d, 0x140446e0d\nmov     rdx, [rax]                                                     ; +0x34, 0x140446e14\nmov     rcx, rax                                                       ; +0x37, 0x140446e17\ncall    qword ptr [rdx+48h]                                            ; +0x3a, 0x140446e1a\nmov     rcx, cs:qword_1406C2E88                                        ; +0x3d, 0x140446e1d\ncall    FMODAudioEngine__stopAllEffects                                ; +0x44, 0x140446e24\nmov     rbx, [rbx+290h]                                                ; +0x49, 0x140446e29\ntest    rbx, rbx                                                       ; +0x50, 0x140446e30\njz      loc_140446EC2                                                  ; +0x53, 0x140446e33\nmov     rcx, cs:qword_1406C2E88                                        ; +0x59, 0x140446e39\ntest    rcx, rcx                                                       ; +0x60, 0x140446e40\njnz     short loc_140446E74                                            ; +0x63, 0x140446e43\nmov     ecx, 888h; Size                                                ; +0x65, 0x140446e45\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x6a, 0x140446e4a\nmov     [rsp+28h+arg_0], rax                                           ; +0x6f, 0x140446e4f\nmov     rcx, rax                                                       ; +0x74, 0x140446e54\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x77, 0x140446e57\nnop                                                                    ; +0x7c, 0x140446e5c\nmov     cs:qword_1406C2E88, rax                                        ; +0x7d, 0x140446e5d\nmov     rdx, [rax]                                                     ; +0x84, 0x140446e64\nmov     rcx, rax                                                       ; +0x87, 0x140446e67\ncall    qword ptr [rdx+48h]                                            ; +0x8a, 0x140446e6a\nmov     rcx, cs:qword_1406C2E88                                        ; +0x8d, 0x140446e6d\nxor     r8d, r8d                                                       ; +0x94, 0x140446e74\nmov     edx, [rbx+7C4h]                                                ; +0x97, 0x140446e77\ncall    FMODAudioEngine__updateReverb                                  ; +0x9d, 0x140446e7d\ncmp     cs:qword_1406C2ED8, 0                                          ; +0xa2, 0x140446e82\njnz     short loc_140446EB5                                            ; +0xaa, 0x140446e8a\nmov     ecx, 668h; Size                                                ; +0xac, 0x140446e8c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb1, 0x140446e91\nmov     [rsp+28h+arg_0], rax                                           ; +0xb6, 0x140446e96\nmov     rcx, rax                                                       ; +0xbb, 0x140446e9b\ncall    sub_14017AB00                                                  ; +0xbe, 0x140446e9e\nnop                                                                    ; +0xc3, 0x140446ea3\nmov     cs:qword_1406C2ED8, rax                                        ; +0xc4, 0x140446ea4\nmov     r8, [rax]                                                      ; +0xcb, 0x140446eab\nmov     rcx, rax                                                       ; +0xce, 0x140446eae\ncall    qword ptr [r8+48h]                                             ; +0xd1, 0x140446eb1\nmov     rdx, rbx                                                       ; +0xd5, 0x140446eb5\nadd     rsp, 20h                                                       ; +0xd8, 0x140446eb8\npop     rbx                                                            ; +0xdc, 0x140446ebc\njmp     GameManager__playSFXTrigger                                    ; +0xdd, 0x140446ebd\nadd     rsp, 20h                                                       ; +0xe2, 0x140446ec2\npop     rbx                                                            ; +0xe6, 0x140446ec6\nretn                                                                   ; +0xe7, 0x140446ec7", "xrefs": ["SetupReverbPopup::init @ 0x140446d09", "<???> @ 0x1406da604"], "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"}