{"type": "func", "start": 5373287264, "end": 5373287592, "name": "SetupSongTriggerPopup::valueDidChange", "pseudocode": "// \n// SetupSongTriggerPopup::valueDidChange from 0x14045db60 to 0x14045dca8 (328 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405f6cd8\n// > <???> @ 0x1406dacb8\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\nvoid SetupSongTriggerPopup::valueDidChange(SetupSongTriggerPopup *a1, int a2, float a3)\n{\n  __int64 v5; // rdi\n  _BOOL8 v6; // r8\n  FMODAudioEngine *v7; // [rsp+68h] [rbp+20h]\n\n  SetupAudioTriggerPopup::valueDidChange(a1, a2, a3);\n  if ( a2 == 400 )\n  {\n    v5 = 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      v5 = qword_1406C2E88;\n    }\n    if ( *(_QWORD *)(v5 + 552) )\n      FMOD::ChannelControl::stop(*(FMOD::ChannelControl **)(v5 + 552));\n    sub_14005E0D0((_QWORD *)(v5 + 1064));\n    sub_14005E0D0((_QWORD *)(v5 + 1128));\n    sub_14005E0D0((_QWORD *)(v5 + 1192));\n    SetupTriggerPopup::goToPage(a1, 0, a3 != 0.0);\n    LOBYTE(v6) = 1;\n    a1->toggleGroup(a1, 2, v6);\n    if ( a3 != 0.0 )\n    {\n      if ( cocos2d::CCDictionary::objectForKey(a1->m_valueToggles, 399) )\n        a1->updateToggleItem(a1, 399, 0);\n      else\n        SetupTriggerPopup::updateValueControls(a1, 399, 0.0);\n      SetupTriggerPopup::valueChanged(a1, 399, 0.0);\n    }\n  }\n  else if ( a2 == 404 )\n  {\n    SetupSongTriggerPopup::updateLength(a1);\n  }\n}", "assembly": "; \n; SetupSongTriggerPopup::valueDidChange from 0x14045db60 to 0x14045dca8 (328 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405f6cd8\n; > <???> @ 0x1406dacb8\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, 0x14045db60\npush    rdi                                                            ; +0x5, 0x14045db65\nsub     rsp, 40h                                                       ; +0x6, 0x14045db66\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xa, 0x14045db6a\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0xf, 0x14045db6f\nmovaps  xmm7, xmm2                                                     ; +0x14, 0x14045db74\nmov     edi, edx                                                       ; +0x17, 0x14045db77\nmov     rbx, rcx                                                       ; +0x19, 0x14045db79\ncall    SetupAudioTriggerPopup__valueDidChange                         ; +0x1c, 0x14045db7c\ncmp     edi, 190h                                                      ; +0x21, 0x14045db81\njnz     loc_14045DC83                                                  ; +0x27, 0x14045db87\nmov     rdi, cs:qword_1406C2E88                                        ; +0x2d, 0x14045db8d\ntest    rdi, rdi                                                       ; +0x34, 0x14045db94\njnz     short loc_14045DBC8                                            ; +0x37, 0x14045db97\nmov     ecx, 888h; Size                                                ; +0x39, 0x14045db99\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3e, 0x14045db9e\nmov     [rsp+48h+arg_18], rax                                          ; +0x43, 0x14045dba3\nmov     rcx, rax                                                       ; +0x48, 0x14045dba8\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x4b, 0x14045dbab\nnop                                                                    ; +0x50, 0x14045dbb0\nmov     cs:qword_1406C2E88, rax                                        ; +0x51, 0x14045dbb1\nmov     rdx, [rax]                                                     ; +0x58, 0x14045dbb8\nmov     rcx, rax                                                       ; +0x5b, 0x14045dbbb\ncall    qword ptr [rdx+48h]                                            ; +0x5e, 0x14045dbbe\nmov     rdi, cs:qword_1406C2E88                                        ; +0x61, 0x14045dbc1\ncmp     qword ptr [rdi+228h], 0                                        ; +0x68, 0x14045dbc8\njz      short loc_14045DBDF                                            ; +0x70, 0x14045dbd0\nmov     rcx, [rdi+228h]                                                ; +0x72, 0x14045dbd2\ncall    cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x79, 0x14045dbd9\nlea     rcx, [rdi+428h]                                                ; +0x7f, 0x14045dbdf\ncall    sub_14005E0D0                                                  ; +0x86, 0x14045dbe6\nlea     rcx, [rdi+468h]                                                ; +0x8b, 0x14045dbeb\ncall    sub_14005E0D0                                                  ; +0x92, 0x14045dbf2\nlea     rcx, [rdi+4A8h]                                                ; +0x97, 0x14045dbf7\ncall    sub_14005E0D0                                                  ; +0x9e, 0x14045dbfe\nxorps   xmm6, xmm6                                                     ; +0xa3, 0x14045dc03\nucomiss xmm7, xmm6                                                     ; +0xa6, 0x14045dc06\njp      short loc_14045DC14                                            ; +0xa9, 0x14045dc09\njnz     short loc_14045DC14                                            ; +0xab, 0x14045dc0b\nxor     edx, edx                                                       ; +0xad, 0x14045dc0d\nxor     r8b, r8b                                                       ; +0xaf, 0x14045dc0f\njmp     short loc_14045DC19                                            ; +0xb2, 0x14045dc12\nxor     edx, edx                                                       ; +0xb4, 0x14045dc14\nmov     r8b, 1                                                         ; +0xb6, 0x14045dc16\nmov     rcx, rbx                                                       ; +0xb9, 0x14045dc19\ncall    SetupTriggerPopup__goToPage                                    ; +0xbc, 0x14045dc1c\nmov     rax, [rbx]                                                     ; +0xc1, 0x14045dc21\nmov     r8b, 1                                                         ; +0xc4, 0x14045dc24\nmov     edx, 2                                                         ; +0xc7, 0x14045dc27\nmov     rcx, rbx                                                       ; +0xcc, 0x14045dc2c\ncall    qword ptr [rax+420h]                                           ; +0xcf, 0x14045dc2f\nucomiss xmm7, xmm6                                                     ; +0xd5, 0x14045dc35\njp      short loc_14045DC3C                                            ; +0xd8, 0x14045dc38\njz      short loc_14045DC93                                            ; +0xda, 0x14045dc3a\nmov     edx, 18Fh                                                      ; +0xdc, 0x14045dc3c\nmov     rcx, [rbx+2D0h]                                                ; +0xe1, 0x14045dc41\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0xe8, 0x14045dc48\nmov     edx, 18Fh                                                      ; +0xee, 0x14045dc4e\nmov     rcx, rbx                                                       ; +0xf3, 0x14045dc53\ntest    rax, rax                                                       ; +0xf6, 0x14045dc56\njz      short loc_14045DC69                                            ; +0xf9, 0x14045dc59\nmov     rax, [rbx]                                                     ; +0xfb, 0x14045dc5b\nxor     r8d, r8d                                                       ; +0xfe, 0x14045dc5e\ncall    qword ptr [rax+460h]                                           ; +0x101, 0x14045dc61\njmp     short loc_14045DC71                                            ; +0x107, 0x14045dc67\nxorps   xmm2, xmm2                                                     ; +0x109, 0x14045dc69\ncall    SetupTriggerPopup__updateValueControls                         ; +0x10c, 0x14045dc6c\nxorps   xmm2, xmm2                                                     ; +0x111, 0x14045dc71\nmov     edx, 18Fh                                                      ; +0x114, 0x14045dc74\nmov     rcx, rbx                                                       ; +0x119, 0x14045dc79\ncall    SetupTriggerPopup__valueChanged                                ; +0x11c, 0x14045dc7c\njmp     short loc_14045DC93                                            ; +0x121, 0x14045dc81\ncmp     edi, 194h                                                      ; +0x123, 0x14045dc83\njnz     short loc_14045DC93                                            ; +0x129, 0x14045dc89\nmov     rcx, rbx                                                       ; +0x12b, 0x14045dc8b\ncall    SetupSongTriggerPopup__updateLength                            ; +0x12e, 0x14045dc8e\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x133, 0x14045dc93\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x138, 0x14045dc98\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x13d, 0x14045dc9d\nadd     rsp, 40h                                                       ; +0x142, 0x14045dca2\npop     rdi                                                            ; +0x146, 0x14045dca6\nretn                                                                   ; +0x147, 0x14045dca7", "xrefs": ["<???> @ 0x1405f6cd8", "<???> @ 0x1406dacb8"], "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"}