{"type": "func", "start": 5372907456, "end": 5372907623, "name": "SetupObjectOptions2Popup::onPlusButton", "pseudocode": "// \n// SetupObjectOptions2Popup::onPlusButton from 0x140400fc0 to 0x140401067 (167 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405d6b18\n// > <???> @ 0x1406d8834\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 SetupObjectOptions2Popup::onPlusButton(SetupObjectOptions2Popup *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // r8\n  __int64 v4; // rcx\n  int NextFreeEnterChannel; // ebx\n  std::unordered_set<int> v6; // [rsp+20h] [rbp-48h] BYREF\n  void *v7; // [rsp+80h] [rbp+18h] BYREF\n\n  LODWORD(v7) = 0;\n  sub_14005E660((__int64)&v6, &v7, v2);\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  NextFreeEnterChannel = LevelEditorLayer::getNextFreeEnterChannel(*(LevelEditorLayer **)(v4 + 528), &v6);\n  sub_14005D100((__int64)&v6._Vec);\n  sub_14005D870((void **)&v6._List._Mypair._Myval2._Myhead);\n  SetupTriggerPopup::updateValue(a1, 343, (float)NextFreeEnterChannel);\n}", "assembly": "; \n; SetupObjectOptions2Popup::onPlusButton from 0x140400fc0 to 0x140401067 (167 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405d6b18\n; > <???> @ 0x1406d8834\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     rax, rsp                                                       ; +0x0, 0x140400fc0\nmov     [rax+8], rbx                                                   ; +0x3, 0x140400fc3\npush    rdi                                                            ; +0x7, 0x140400fc7\nsub     rsp, 60h                                                       ; +0x8, 0x140400fc8\nmov     rdi, rcx                                                       ; +0xc, 0x140400fcc\nmov     dword ptr [rax+18h], 0                                         ; +0xf, 0x140400fcf\nlea     rdx, [rax+18h]                                                 ; +0x16, 0x140400fd6\nlea     rcx, [rax-48h]                                                 ; +0x1a, 0x140400fda\ncall    sub_14005E660                                                  ; +0x1e, 0x140400fde\nnop                                                                    ; +0x23, 0x140400fe3\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x24, 0x140400fe4\ntest    rcx, rcx                                                       ; +0x2b, 0x140400feb\njnz     short loc_140401022                                            ; +0x2e, 0x140400fee\nmov     ecx, 668h; Size                                                ; +0x30, 0x140400ff0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x35, 0x140400ff5\nmov     [rsp+68h+arg_10], rax                                          ; +0x3a, 0x140400ffa\nmov     rcx, rax                                                       ; +0x42, 0x140401002\ncall    sub_14017AB00                                                  ; +0x45, 0x140401005\nnop                                                                    ; +0x4a, 0x14040100a\nmov     cs:qword_1406C2ED8, rax                                        ; +0x4b, 0x14040100b\nmov     rdx, [rax]                                                     ; +0x52, 0x140401012\nmov     rcx, rax                                                       ; +0x55, 0x140401015\ncall    qword ptr [rdx+48h]                                            ; +0x58, 0x140401018\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x5b, 0x14040101b\nlea     rdx, [rsp+68h+var_48]                                          ; +0x62, 0x140401022\nmov     rcx, [rcx+210h]                                                ; +0x67, 0x140401027\ncall    LevelEditorLayer__getNextFreeEnterChannel                      ; +0x6e, 0x14040102e\nmov     ebx, eax                                                       ; +0x73, 0x140401033\nlea     rcx, [rsp+68h+var_30]                                          ; +0x75, 0x140401035\ncall    sub_14005D100                                                  ; +0x7a, 0x14040103a\nlea     rcx, [rsp+68h+var_40]                                          ; +0x7f, 0x14040103f\ncall    sub_14005D870                                                  ; +0x84, 0x140401044\nmovd    xmm2, ebx                                                      ; +0x89, 0x140401049\ncvtdq2ps xmm2, xmm2                                                    ; +0x8d, 0x14040104d\nmov     edx, 157h                                                      ; +0x90, 0x140401050\nmov     rcx, rdi                                                       ; +0x95, 0x140401055\nmov     rbx, [rsp+68h+arg_0]                                           ; +0x98, 0x140401058\nadd     rsp, 60h                                                       ; +0x9d, 0x14040105d\npop     rdi                                                            ; +0xa1, 0x140401061\njmp     SetupTriggerPopup__updateValue                                 ; +0xa2, 0x140401062", "xrefs": ["<???> @ 0x1405d6b18", "<???> @ 0x1406d8834"], "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"}