{"type": "func", "start": 5373194416, "end": 5373194517, "name": "SetupReverbPopup::onClose", "pseudocode": "// \n// SetupReverbPopup::onClose from 0x1404470b0 to 0x140447115 (101 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405f0a30\n// > <???> @ 0x1406da628\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=1\nvoid SetupReverbPopup::onClose(SetupReverbPopup *a1, cocos2d::CCObject *a2)\n{\n  FMODAudioEngine *v4; // rcx\n  FMODAudioEngine *v5; // [rsp+40h] [rbp+18h]\n\n  v4 = (FMODAudioEngine *)qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v5 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v4 = (FMODAudioEngine *)qword_1406C2E88;\n  }\n  FMODAudioEngine::stopAllEffects(v4);\n  SetupTriggerPopup::onClose(a1, a2);\n}", "assembly": "; \n; SetupReverbPopup::onClose from 0x1404470b0 to 0x140447115 (101 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405f0a30\n; > <???> @ 0x1406da628\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1404470b0\npush    rdi                                                            ; +0x5, 0x1404470b5\nsub     rsp, 20h                                                       ; +0x6, 0x1404470b6\nmov     rbx, rdx                                                       ; +0xa, 0x1404470ba\nmov     rdi, rcx                                                       ; +0xd, 0x1404470bd\nmov     rcx, cs:qword_1406C2E88                                        ; +0x10, 0x1404470c0\ntest    rcx, rcx                                                       ; +0x17, 0x1404470c7\njnz     short loc_1404470FB                                            ; +0x1a, 0x1404470ca\nmov     ecx, 888h; Size                                                ; +0x1c, 0x1404470cc\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x21, 0x1404470d1\nmov     [rsp+28h+arg_10], rax                                          ; +0x26, 0x1404470d6\nmov     rcx, rax                                                       ; +0x2b, 0x1404470db\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x2e, 0x1404470de\nnop                                                                    ; +0x33, 0x1404470e3\nmov     cs:qword_1406C2E88, rax                                        ; +0x34, 0x1404470e4\nmov     rdx, [rax]                                                     ; +0x3b, 0x1404470eb\nmov     rcx, rax                                                       ; +0x3e, 0x1404470ee\ncall    qword ptr [rdx+48h]                                            ; +0x41, 0x1404470f1\nmov     rcx, cs:qword_1406C2E88                                        ; +0x44, 0x1404470f4\ncall    FMODAudioEngine__stopAllEffects                                ; +0x4b, 0x1404470fb\nmov     rdx, rbx                                                       ; +0x50, 0x140447100\nmov     rcx, rdi                                                       ; +0x53, 0x140447103\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x56, 0x140447106\nadd     rsp, 20h                                                       ; +0x5b, 0x14044710b\npop     rdi                                                            ; +0x5f, 0x14044710f\njmp     SetupTriggerPopup__onClose                                     ; +0x60, 0x140447110", "xrefs": ["<???> @ 0x1405f0a30", "<???> @ 0x1406da628"], "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"}