{"type": "func", "start": 5369405456, "end": 5369405666, "name": "CustomizeObjectLayer::onClose", "pseudocode": "// \n// CustomizeObjectLayer::onClose from 0x1400aa010 to 0x1400aa0e2 (210 bytes)\n// \n// 6 xrefs:\n// > CustomizeObjectLayer::onLiveEdit @ 0x1400a7f35\n// > CustomizeObjectLayer::onBreakApart @ 0x1400a9b35\n// > CustomizeObjectLayer::keyBackClicked @ 0x1400aa0f9\n// > CustomizeObjectSettingsPopup::onClose @ 0x1400aa616\n// > CustomizeObjectLayer::init @ 0x1400a5752\n// > <???> @ 0x1406c7908\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 CustomizeObjectLayer::onClose(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  CCTextInputNode *m_textInput; // rcx\n  __int64 v4; // rcx\n  _BOOL8 v5; // rdx\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  a1->m_customColorInput->m_delegate = nullptr;\n  a1->m_customColorInput->onClickTrackNode(a1->m_customColorInput, 0);\n  m_textInput = a1->m_textInput;\n  if ( m_textInput )\n  {\n    m_textInput->onClickTrackNode(m_textInput, 0);\n    a1->m_textInput->m_delegate = nullptr;\n  }\n  v4 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v6 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v4 = qword_1406C2ED8;\n  }\n  *(_DWORD *)(v4 + 952) = a1->m_customColorChannel;\n  EditorUI::updateObjectInfoLabel(*(EditorUI **)(*(_QWORD *)(v4 + 528) + 14496LL));\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v5) = 1;\n  a1->removeFromParentAndCleanup(a1, v5);\n}", "assembly": "; \n; CustomizeObjectLayer::onClose from 0x1400aa010 to 0x1400aa0e2 (210 bytes)\n; \n; 6 xrefs:\n; > CustomizeObjectLayer::onLiveEdit @ 0x1400a7f35\n; > CustomizeObjectLayer::onBreakApart @ 0x1400a9b35\n; > CustomizeObjectLayer::keyBackClicked @ 0x1400aa0f9\n; > CustomizeObjectSettingsPopup::onClose @ 0x1400aa616\n; > CustomizeObjectLayer::init @ 0x1400a5752\n; > <???> @ 0x1406c7908\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, 0x1400aa010\nsub     rsp, 20h                                                       ; +0x2, 0x1400aa012\nmov     rbx, rcx                                                       ; +0x6, 0x1400aa016\nmov     rax, [rcx+318h]                                                ; +0x9, 0x1400aa019\nmov     qword ptr [rax+230h], 0                                        ; +0x10, 0x1400aa020\nmov     rcx, [rcx+318h]                                                ; +0x1b, 0x1400aa02b\nmov     rax, [rcx]                                                     ; +0x22, 0x1400aa032\nxor     edx, edx                                                       ; +0x25, 0x1400aa035\ncall    qword ptr [rax+3F8h]                                           ; +0x27, 0x1400aa037\nmov     rcx, [rbx+320h]                                                ; +0x2d, 0x1400aa03d\ntest    rcx, rcx                                                       ; +0x34, 0x1400aa044\njz      short loc_1400AA066                                            ; +0x37, 0x1400aa047\nmov     rax, [rcx]                                                     ; +0x39, 0x1400aa049\nxor     edx, edx                                                       ; +0x3c, 0x1400aa04c\ncall    qword ptr [rax+3F8h]                                           ; +0x3e, 0x1400aa04e\nmov     rax, [rbx+320h]                                                ; +0x44, 0x1400aa054\nmov     qword ptr [rax+230h], 0                                        ; +0x4b, 0x1400aa05b\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x56, 0x1400aa066\ntest    rcx, rcx                                                       ; +0x5d, 0x1400aa06d\njnz     short loc_1400AA0A1                                            ; +0x60, 0x1400aa070\nmov     ecx, 668h; Size                                                ; +0x62, 0x1400aa072\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x67, 0x1400aa077\nmov     [rsp+28h+arg_0], rax                                           ; +0x6c, 0x1400aa07c\nmov     rcx, rax                                                       ; +0x71, 0x1400aa081\ncall    sub_14017AB00                                                  ; +0x74, 0x1400aa084\nnop                                                                    ; +0x79, 0x1400aa089\nmov     cs:qword_1406C2ED8, rax                                        ; +0x7a, 0x1400aa08a\nmov     rdx, [rax]                                                     ; +0x81, 0x1400aa091\nmov     rcx, rax                                                       ; +0x84, 0x1400aa094\ncall    qword ptr [rdx+48h]                                            ; +0x87, 0x1400aa097\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x8a, 0x1400aa09a\nmov     eax, [rbx+2D4h]                                                ; +0x91, 0x1400aa0a1\nmov     [rcx+3B8h], eax                                                ; +0x97, 0x1400aa0a7\nmov     rcx, [rcx+210h]                                                ; +0x9d, 0x1400aa0ad\nmov     rcx, [rcx+38A0h]                                               ; +0xa4, 0x1400aa0b4\ncall    EditorUI__updateObjectInfoLabel                                ; +0xab, 0x1400aa0bb\nmov     rax, [rbx]                                                     ; +0xb0, 0x1400aa0c0\nxor     edx, edx                                                       ; +0xb3, 0x1400aa0c3\nmov     rcx, rbx                                                       ; +0xb5, 0x1400aa0c5\ncall    qword ptr [rax+3D0h]                                           ; +0xb8, 0x1400aa0c8\nmov     rax, [rbx]                                                     ; +0xbe, 0x1400aa0ce\nmov     dl, 1                                                          ; +0xc1, 0x1400aa0d1\nmov     rcx, rbx                                                       ; +0xc3, 0x1400aa0d3\nadd     rsp, 20h                                                       ; +0xc6, 0x1400aa0d6\npop     rbx                                                            ; +0xca, 0x1400aa0da\njmp     qword ptr [rax+1F8h]                                           ; +0xcb, 0x1400aa0db", "xrefs": ["CustomizeObjectLayer::onLiveEdit @ 0x1400a7f35", "CustomizeObjectLayer::onBreakApart @ 0x1400a9b35", "CustomizeObjectLayer::keyBackClicked @ 0x1400aa0f9", "CustomizeObjectSettingsPopup::onClose @ 0x1400aa616", "CustomizeObjectLayer::init @ 0x1400a5752", "<???> @ 0x1406c7908"], "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"}