{"type": "func", "start": 5373051744, "end": 5373051902, "name": "SetupInteractObjectPopup::onPlusButton", "pseudocode": "// \n// SetupInteractObjectPopup::onPlusButton from 0x140424360 to 0x1404243fe (158 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405e58a8\n// > <???> @ 0x1406d96c8\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 SetupInteractObjectPopup::onPlusButton(SetupInteractObjectPopup *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // r8\n  __int64 v4; // rcx\n  int NextFreeItemID; // eax\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  NextFreeItemID = LevelEditorLayer::getNextFreeItemID(*(LevelEditorLayer **)(v4 + 528), &v6);\n  SetupTriggerPopup::updateValue(a1, 80, (float)NextFreeItemID);\n  sub_14005D100((__int64)&v6._Vec);\n  sub_14005D870((void **)&v6._List._Mypair._Myval2._Myhead);\n}", "assembly": "; \n; SetupInteractObjectPopup::onPlusButton from 0x140424360 to 0x1404243fe (158 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405e58a8\n; > <???> @ 0x1406d96c8\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, 0x140424360\npush    rbx                                                            ; +0x3, 0x140424363\nsub     rsp, 60h                                                       ; +0x4, 0x140424364\nmov     rbx, rcx                                                       ; +0x8, 0x140424368\nmov     dword ptr [rax+18h], 0                                         ; +0xb, 0x14042436b\nlea     rdx, [rax+18h]                                                 ; +0x12, 0x140424372\nlea     rcx, [rax-48h]                                                 ; +0x16, 0x140424376\ncall    sub_14005E660                                                  ; +0x1a, 0x14042437a\nnop                                                                    ; +0x1f, 0x14042437f\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x20, 0x140424380\ntest    rcx, rcx                                                       ; +0x27, 0x140424387\njnz     short loc_1404243BE                                            ; +0x2a, 0x14042438a\nmov     ecx, 668h; Size                                                ; +0x2c, 0x14042438c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x140424391\nmov     [rsp+68h+arg_10], rax                                          ; +0x36, 0x140424396\nmov     rcx, rax                                                       ; +0x3e, 0x14042439e\ncall    sub_14017AB00                                                  ; +0x41, 0x1404243a1\nnop                                                                    ; +0x46, 0x1404243a6\nmov     cs:qword_1406C2ED8, rax                                        ; +0x47, 0x1404243a7\nmov     rdx, [rax]                                                     ; +0x4e, 0x1404243ae\nmov     rcx, rax                                                       ; +0x51, 0x1404243b1\ncall    qword ptr [rdx+48h]                                            ; +0x54, 0x1404243b4\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x57, 0x1404243b7\nlea     rdx, [rsp+68h+var_48]                                          ; +0x5e, 0x1404243be\nmov     rcx, [rcx+210h]                                                ; +0x63, 0x1404243c3\ncall    LevelEditorLayer__getNextFreeItemID                            ; +0x6a, 0x1404243ca\nmovd    xmm2, eax                                                      ; +0x6f, 0x1404243cf\ncvtdq2ps xmm2, xmm2                                                    ; +0x73, 0x1404243d3\nmov     edx, 50h ; 'P'                                                 ; +0x76, 0x1404243d6\nmov     rcx, rbx                                                       ; +0x7b, 0x1404243db\ncall    SetupTriggerPopup__updateValue                                 ; +0x7e, 0x1404243de\nnop                                                                    ; +0x83, 0x1404243e3\nlea     rcx, [rsp+68h+var_30]                                          ; +0x84, 0x1404243e4\ncall    sub_14005D100                                                  ; +0x89, 0x1404243e9\nlea     rcx, [rsp+68h+var_40]                                          ; +0x8e, 0x1404243ee\ncall    sub_14005D870                                                  ; +0x93, 0x1404243f3\nadd     rsp, 60h                                                       ; +0x98, 0x1404243f8\npop     rbx                                                            ; +0x9c, 0x1404243fc\nretn                                                                   ; +0x9d, 0x1404243fd", "xrefs": ["<???> @ 0x1405e58a8", "<???> @ 0x1406d96c8"], "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"}