{"type": "func", "start": 5369397264, "end": 5369397356, "name": "CustomizeObjectLayer::onCopy", "pseudocode": "// \n// CustomizeObjectLayer::onCopy from 0x1400a8010 to 0x1400a806c (92 bytes)\n// \n// 3 xrefs:\n// > CustomizeObjectLayer::init @ 0x1400a79e6\n// > <???> @ 0x1406c7764\n// > <???> @ 0x1406c7770\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::onCopy(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rcx\n  void *v4; // [rsp+30h] [rbp+8h]\n\n  v3 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v4 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = qword_1406C2ED8;\n  }\n  LevelEditorLayer::copyObjectState(*(LevelEditorLayer **)(v3 + 528), a1->m_targetObject);\n}", "assembly": "; \n; CustomizeObjectLayer::onCopy from 0x1400a8010 to 0x1400a806c (92 bytes)\n; \n; 3 xrefs:\n; > CustomizeObjectLayer::init @ 0x1400a79e6\n; > <???> @ 0x1406c7764\n; > <???> @ 0x1406c7770\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, 0x1400a8010\nsub     rsp, 20h                                                       ; +0x2, 0x1400a8012\nmov     rbx, rcx                                                       ; +0x6, 0x1400a8016\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x9, 0x1400a8019\ntest    rcx, rcx                                                       ; +0x10, 0x1400a8020\njnz     short loc_1400A8054                                            ; +0x13, 0x1400a8023\nmov     ecx, 668h; Size                                                ; +0x15, 0x1400a8025\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x1400a802a\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x1400a802f\nmov     rcx, rax                                                       ; +0x24, 0x1400a8034\ncall    sub_14017AB00                                                  ; +0x27, 0x1400a8037\nnop                                                                    ; +0x2c, 0x1400a803c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2d, 0x1400a803d\nmov     rdx, [rax]                                                     ; +0x34, 0x1400a8044\nmov     rcx, rax                                                       ; +0x37, 0x1400a8047\ncall    qword ptr [rdx+48h]                                            ; +0x3a, 0x1400a804a\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x3d, 0x1400a804d\nmov     rdx, [rbx+298h]                                                ; +0x44, 0x1400a8054\nmov     rcx, [rcx+210h]                                                ; +0x4b, 0x1400a805b\nadd     rsp, 20h                                                       ; +0x52, 0x1400a8062\npop     rbx                                                            ; +0x56, 0x1400a8066\njmp     LevelEditorLayer__copyObjectState                              ; +0x57, 0x1400a8067", "xrefs": ["CustomizeObjectLayer::init @ 0x1400a79e6", "<???> @ 0x1406c7764", "<???> @ 0x1406c7770"], "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"}