{"type": "func", "start": 5369397008, "end": 5369397264, "name": "CustomizeObjectLayer::onLiveEdit", "pseudocode": "// \n// CustomizeObjectLayer::onLiveEdit from 0x1400a7f10 to 0x1400a8010 (256 bytes)\n// \n// 2 xrefs:\n// > CustomizeObjectLayer::init @ 0x1400a6cb5\n// > <???> @ 0x1406c7764\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=1\nvoid CustomizeObjectLayer::onLiveEdit(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  int ActiveMode; // ebp\n  __int64 v4; // rax\n  EditorUI *v5; // rsi\n  GameObject *m_selectedObject; // rcx\n  cocos2d::CCArray *m_selectedObjects; // rax\n  cocos2d::ccArray *data; // rbx\n  __int64 num; // rax\n  GameObject **arr; // rbx\n  GameObject **i; // rdi\n  GameObject *v12; // rcx\n  void *v13; // [rsp+40h] [rbp+18h]\n\n  ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);\n  CustomizeObjectLayer::onClose(a1, nullptr);\n  v4 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v13 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v13);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v4 = qword_1406C2ED8;\n  }\n  v5 = *(EditorUI **)(*(_QWORD *)(v4 + 528) + 14496LL);\n  m_selectedObject = v5->m_selectedObject;\n  if ( m_selectedObject )\n  {\n    m_selectedObject->m_isSelected = 0;\n    GameObject::updateObjectEditorColor(m_selectedObject);\n  }\n  else if ( cocos2d::CCArray::count(v5->m_selectedObjects) )\n  {\n    m_selectedObjects = v5->m_selectedObjects;\n    if ( m_selectedObjects )\n    {\n      data = m_selectedObjects->data;\n      num = data->num;\n      if ( (_DWORD)num )\n      {\n        arr = (GameObject **)data->arr;\n        for ( i = &arr[num - 1]; arr <= i; ++arr )\n        {\n          v12 = *arr;\n          if ( !*arr )\n            break;\n          v12->m_isSelected = 0;\n          GameObject::updateObjectEditorColor(v12);\n        }\n      }\n    }\n  }\n  EditorUI::showLiveColorSelectForMode(v5, ActiveMode);\n}", "assembly": "; \n; CustomizeObjectLayer::onLiveEdit from 0x1400a7f10 to 0x1400a8010 (256 bytes)\n; \n; 2 xrefs:\n; > CustomizeObjectLayer::init @ 0x1400a6cb5\n; > <???> @ 0x1406c7764\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, 0x1400a7f10\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1400a7f15\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1400a7f1a\npush    rdi                                                            ; +0xf, 0x1400a7f1f\nsub     rsp, 20h                                                       ; +0x10, 0x1400a7f20\nmov     rbx, rcx                                                       ; +0x14, 0x1400a7f24\nmov     dl, 1                                                          ; +0x17, 0x1400a7f27\ncall    CustomizeObjectLayer__getActiveMode                            ; +0x19, 0x1400a7f29\nmov     ebp, eax                                                       ; +0x1e, 0x1400a7f2e\nxor     edx, edx                                                       ; +0x20, 0x1400a7f30\nmov     rcx, rbx                                                       ; +0x22, 0x1400a7f32\ncall    CustomizeObjectLayer__onClose                                  ; +0x25, 0x1400a7f35\nmov     rax, cs:qword_1406C2ED8                                        ; +0x2a, 0x1400a7f3a\ntest    rax, rax                                                       ; +0x31, 0x1400a7f41\njnz     short loc_1400A7F75                                            ; +0x34, 0x1400a7f44\nmov     ecx, 668h; Size                                                ; +0x36, 0x1400a7f46\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3b, 0x1400a7f4b\nmov     [rsp+28h+arg_10], rax                                          ; +0x40, 0x1400a7f50\nmov     rcx, rax                                                       ; +0x45, 0x1400a7f55\ncall    sub_14017AB00                                                  ; +0x48, 0x1400a7f58\nnop                                                                    ; +0x4d, 0x1400a7f5d\nmov     cs:qword_1406C2ED8, rax                                        ; +0x4e, 0x1400a7f5e\nmov     rdx, [rax]                                                     ; +0x55, 0x1400a7f65\nmov     rcx, rax                                                       ; +0x58, 0x1400a7f68\ncall    qword ptr [rdx+48h]                                            ; +0x5b, 0x1400a7f6b\nmov     rax, cs:qword_1406C2ED8                                        ; +0x5e, 0x1400a7f6e\nmov     rax, [rax+210h]                                                ; +0x65, 0x1400a7f75\nmov     rsi, [rax+38A0h]                                               ; +0x6c, 0x1400a7f7c\nmov     rcx, [rsi+538h]                                                ; +0x73, 0x1400a7f83\ntest    rcx, rcx                                                       ; +0x7a, 0x1400a7f8a\njz      short loc_1400A7F9D                                            ; +0x7d, 0x1400a7f8d\nmov     byte ptr [rcx+475h], 0                                         ; +0x7f, 0x1400a7f8f\ncall    GameObject__updateObjectEditorColor                            ; +0x86, 0x1400a7f96\njmp     short loc_1400A7FF2                                            ; +0x8b, 0x1400a7f9b\nmov     rcx, [rsi+340h]                                                ; +0x8d, 0x1400a7f9d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x94, 0x1400a7fa4\ntest    eax, eax                                                       ; +0x9a, 0x1400a7faa\njz      short loc_1400A7FF2                                            ; +0x9c, 0x1400a7fac\nmov     rax, [rsi+340h]                                                ; +0x9e, 0x1400a7fae\ntest    rax, rax                                                       ; +0xa5, 0x1400a7fb5\njz      short loc_1400A7FF2                                            ; +0xa8, 0x1400a7fb8\nmov     rbx, [rax+38h]                                                 ; +0xaa, 0x1400a7fba\nmov     eax, [rbx]                                                     ; +0xae, 0x1400a7fbe\ntest    eax, eax                                                       ; +0xb0, 0x1400a7fc0\njz      short loc_1400A7FF2                                            ; +0xb2, 0x1400a7fc2\nmov     rbx, [rbx+10h]                                                 ; +0xb4, 0x1400a7fc4\nlea     rdi, [rax-1]                                                   ; +0xb8, 0x1400a7fc8\nlea     rdi, [rbx+rdi*8]                                               ; +0xbc, 0x1400a7fcc\ncmp     rbx, rdi                                                       ; +0xc0, 0x1400a7fd0\nja      short loc_1400A7FF2                                            ; +0xc3, 0x1400a7fd3\nmov     rcx, [rbx]                                                     ; +0xc5, 0x1400a7fd5\ntest    rcx, rcx                                                       ; +0xc8, 0x1400a7fd8\njz      short loc_1400A7FF2                                            ; +0xcb, 0x1400a7fdb\nmov     byte ptr [rcx+475h], 0                                         ; +0xcd, 0x1400a7fdd\ncall    GameObject__updateObjectEditorColor                            ; +0xd4, 0x1400a7fe4\nadd     rbx, 8                                                         ; +0xd9, 0x1400a7fe9\ncmp     rbx, rdi                                                       ; +0xdd, 0x1400a7fed\njbe     short loc_1400A7FD5                                            ; +0xe0, 0x1400a7ff0\nmov     edx, ebp                                                       ; +0xe2, 0x1400a7ff2\nmov     rcx, rsi                                                       ; +0xe4, 0x1400a7ff4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xe7, 0x1400a7ff7\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xec, 0x1400a7ffc\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xf1, 0x1400a8001\nadd     rsp, 20h                                                       ; +0xf6, 0x1400a8006\npop     rdi                                                            ; +0xfa, 0x1400a800a\njmp     EditorUI__showLiveColorSelectForMode                           ; +0xfb, 0x1400a800b", "xrefs": ["CustomizeObjectLayer::init @ 0x1400a6cb5", "<???> @ 0x1406c7764"], "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"}