{"type": "func", "start": 5373201472, "end": 5373201643, "name": "SetupSFXPopup::overridePlaySFX", "pseudocode": "// \n// SetupSFXPopup::overridePlaySFX from 0x140448c40 to 0x140448ceb (171 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405f04a8\n// > <???> @ 0x1406da67c\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=2\nbool SetupSFXPopup::overridePlaySFX(SetupSFXPopup *a1, SFXInfoObject *a2)\n{\n  SFXTriggerGameObject *m_multiTriggerContainer; // rbx\n  FMODAudioEngine *v3; // rcx\n  FMODAudioEngine *v5; // [rsp+30h] [rbp+8h]\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  m_multiTriggerContainer = (SFXTriggerGameObject *)a1[-1].m_multiTriggerContainer;\n  if ( m_multiTriggerContainer )\n  {\n    if ( m_multiTriggerContainer->m_reverbEnabled )\n    {\n      v3 = (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        v3 = (FMODAudioEngine *)qword_1406C2E88;\n      }\n      FMODAudioEngine::updateReverb(v3, m_multiTriggerContainer->m_reverbPreset, 0);\n    }\n    if ( !qword_1406C2ED8 )\n    {\n      v6 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v6);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    }\n    GameManager::playSFXTrigger((GameManager *)a1, m_multiTriggerContainer);\n  }\n  return 1;\n}", "assembly": "; \n; SetupSFXPopup::overridePlaySFX from 0x140448c40 to 0x140448ceb (171 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405f04a8\n; > <???> @ 0x1406da67c\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, 0x140448c40\nsub     rsp, 20h                                                       ; +0x2, 0x140448c42\nmov     rbx, [rcx-120h]                                                ; +0x6, 0x140448c46\ntest    rbx, rbx                                                       ; +0xd, 0x140448c4d\njz      loc_140448CE3                                                  ; +0x10, 0x140448c50\ncmp     byte ptr [rbx+7C8h], 0                                         ; +0x16, 0x140448c56\njz      short loc_140448CA8                                            ; +0x1d, 0x140448c5d\nmov     rcx, cs:qword_1406C2E88                                        ; +0x1f, 0x140448c5f\ntest    rcx, rcx                                                       ; +0x26, 0x140448c66\njnz     short loc_140448C9A                                            ; +0x29, 0x140448c69\nmov     ecx, 888h; Size                                                ; +0x2b, 0x140448c6b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x30, 0x140448c70\nmov     [rsp+28h+arg_0], rax                                           ; +0x35, 0x140448c75\nmov     rcx, rax                                                       ; +0x3a, 0x140448c7a\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x3d, 0x140448c7d\nnop                                                                    ; +0x42, 0x140448c82\nmov     cs:qword_1406C2E88, rax                                        ; +0x43, 0x140448c83\nmov     rdx, [rax]                                                     ; +0x4a, 0x140448c8a\nmov     rcx, rax                                                       ; +0x4d, 0x140448c8d\ncall    qword ptr [rdx+48h]                                            ; +0x50, 0x140448c90\nmov     rcx, cs:qword_1406C2E88                                        ; +0x53, 0x140448c93\nxor     r8d, r8d                                                       ; +0x5a, 0x140448c9a\nmov     edx, [rbx+7C4h]                                                ; +0x5d, 0x140448c9d\ncall    FMODAudioEngine__updateReverb                                  ; +0x63, 0x140448ca3\ncmp     cs:qword_1406C2ED8, 0                                          ; +0x68, 0x140448ca8\njnz     short loc_140448CDB                                            ; +0x70, 0x140448cb0\nmov     ecx, 668h; Size                                                ; +0x72, 0x140448cb2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x77, 0x140448cb7\nmov     [rsp+28h+arg_0], rax                                           ; +0x7c, 0x140448cbc\nmov     rcx, rax                                                       ; +0x81, 0x140448cc1\ncall    sub_14017AB00                                                  ; +0x84, 0x140448cc4\nnop                                                                    ; +0x89, 0x140448cc9\nmov     cs:qword_1406C2ED8, rax                                        ; +0x8a, 0x140448cca\nmov     r8, [rax]                                                      ; +0x91, 0x140448cd1\nmov     rcx, rax                                                       ; +0x94, 0x140448cd4\ncall    qword ptr [r8+48h]                                             ; +0x97, 0x140448cd7\nmov     rdx, rbx                                                       ; +0x9b, 0x140448cdb\ncall    GameManager__playSFXTrigger                                    ; +0x9e, 0x140448cde\nmov     al, 1                                                          ; +0xa3, 0x140448ce3\nadd     rsp, 20h                                                       ; +0xa5, 0x140448ce5\npop     rbx                                                            ; +0xa9, 0x140448ce9\nretn                                                                   ; +0xaa, 0x140448cea", "xrefs": ["<???> @ 0x1405f04a8", "<???> @ 0x1406da67c"], "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"}