{"type": "func", "start": 5373041808, "end": 5373041995, "name": "SetupGradientPopup::onPlusButton", "pseudocode": "// \n// SetupGradientPopup::onPlusButton from 0x140421c90 to 0x140421d4b (187 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405e4a80\n// > <???> @ 0x1406d9578\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 SetupGradientPopup::onPlusButton(SetupGradientPopup *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // r8\n  __int64 v4; // rcx\n  int NextFreeGradientID; // ebx\n  std::unordered_set<int> v6; // [rsp+20h] [rbp-48h] BYREF\n  void *v7; // [rsp+78h] [rbp+10h] BYREF\n\n  if ( a2->getTag(a2) == 209 )\n  {\n    LODWORD(v7) = 0;\n    sub_14005E660((__int64)&v6, &v7, v3);\n    v4 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v7 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v4 = qword_1406C2ED8;\n    }\n    NextFreeGradientID = LevelEditorLayer::getNextFreeGradientID(*(LevelEditorLayer **)(v4 + 528), &v6);\n    sub_14005D100((__int64)&v6._Vec);\n    sub_14005D870((void **)&v6._List._Mypair._Myval2._Myhead);\n    SetupTriggerPopup::updateValue(a1, 209, (float)NextFreeGradientID);\n  }\n}", "assembly": "; \n; SetupGradientPopup::onPlusButton from 0x140421c90 to 0x140421d4b (187 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405e4a80\n; > <???> @ 0x1406d9578\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, 0x140421c90\npush    rdi                                                            ; +0x5, 0x140421c95\nsub     rsp, 60h                                                       ; +0x6, 0x140421c96\nmov     rdi, rcx                                                       ; +0xa, 0x140421c9a\nmov     rax, [rdx]                                                     ; +0xd, 0x140421c9d\nmov     rcx, rdx                                                       ; +0x10, 0x140421ca0\ncall    qword ptr [rax+38h]                                            ; +0x13, 0x140421ca3\ncmp     eax, 0D1h                                                      ; +0x16, 0x140421ca6\njnz     loc_140421D40                                                  ; +0x1b, 0x140421cab\nmov     dword ptr [rsp+68h+arg_8], 0                                   ; +0x21, 0x140421cb1\nlea     rdx, [rsp+68h+arg_8]                                           ; +0x29, 0x140421cb9\nlea     rcx, [rsp+68h+var_48]                                          ; +0x2e, 0x140421cbe\ncall    sub_14005E660                                                  ; +0x33, 0x140421cc3\nnop                                                                    ; +0x38, 0x140421cc8\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x39, 0x140421cc9\ntest    rcx, rcx                                                       ; +0x40, 0x140421cd0\njnz     short loc_140421D05                                            ; +0x43, 0x140421cd3\nmov     ecx, 668h; Size                                                ; +0x45, 0x140421cd5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4a, 0x140421cda\nmov     [rsp+68h+arg_8], rax                                           ; +0x4f, 0x140421cdf\nmov     rcx, rax                                                       ; +0x54, 0x140421ce4\ncall    sub_14017AB00                                                  ; +0x57, 0x140421ce7\nnop                                                                    ; +0x5c, 0x140421cec\nmov     cs:qword_1406C2ED8, rax                                        ; +0x5d, 0x140421ced\nmov     r8, [rax]                                                      ; +0x64, 0x140421cf4\nmov     rcx, rax                                                       ; +0x67, 0x140421cf7\ncall    qword ptr [r8+48h]                                             ; +0x6a, 0x140421cfa\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x6e, 0x140421cfe\nlea     rdx, [rsp+68h+var_48]                                          ; +0x75, 0x140421d05\nmov     rcx, [rcx+210h]                                                ; +0x7a, 0x140421d0a\ncall    LevelEditorLayer__getNextFreeGradientID                        ; +0x81, 0x140421d11\nmov     ebx, eax                                                       ; +0x86, 0x140421d16\nlea     rcx, [rsp+68h+var_30]                                          ; +0x88, 0x140421d18\ncall    sub_14005D100                                                  ; +0x8d, 0x140421d1d\nlea     rcx, [rsp+68h+var_40]                                          ; +0x92, 0x140421d22\ncall    sub_14005D870                                                  ; +0x97, 0x140421d27\nmovd    xmm2, ebx                                                      ; +0x9c, 0x140421d2c\ncvtdq2ps xmm2, xmm2                                                    ; +0xa0, 0x140421d30\nmov     edx, 0D1h                                                      ; +0xa3, 0x140421d33\nmov     rcx, rdi                                                       ; +0xa8, 0x140421d38\ncall    SetupTriggerPopup__updateValue                                 ; +0xab, 0x140421d3b\nmov     rbx, [rsp+68h+arg_0]                                           ; +0xb0, 0x140421d40\nadd     rsp, 60h                                                       ; +0xb5, 0x140421d45\npop     rdi                                                            ; +0xb9, 0x140421d49\nretn                                                                   ; +0xba, 0x140421d4a", "xrefs": ["<???> @ 0x1405e4a80", "<???> @ 0x1406d9578"], "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"}