{"type": "func", "start": 5371758912, "end": 5371759162, "name": "GameObjectCopy::create", "pseudocode": "// \n// GameObjectCopy::create from 0x1402e8940 to 0x1402e8a3a (250 bytes)\n// \n// 9 xrefs:\n// > EditorUI::onDeleteSelected @ 0x1400e6744\n// > EditorUI::createUndoObject @ 0x140110fce\n// > EditorUI::createUndoObject @ 0x140111040\n// > EditorUI::moveObjectCall_1 @ 0x14011fb4d\n// > LevelEditorLayer::createObject @ 0x1402d4962\n// > LevelEditorLayer::removeObject @ 0x1402d6200\n// > LevelEditorLayer::handleAction @ 0x1402d6807\n// > LevelEditorLayer::handleAction @ 0x1402d691c\n// > <???> @ 0x1406d37f4\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\nGameObjectCopy *GameObjectCopy::create(GameObject *a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rcx\n  char *v5; // [rsp+38h] [rbp+10h]\n\n  v5 = (char *)operator new(0x60u);\n  *(_OWORD *)v5 = 0;\n  *((_OWORD *)v5 + 1) = 0;\n  *((_OWORD *)v5 + 2) = 0;\n  *((_OWORD *)v5 + 3) = 0;\n  *((_OWORD *)v5 + 4) = 0;\n  *((_OWORD *)v5 + 5) = 0;\n  cocos2d::CCObject::CCObject((cocos2d::CCObject *)v5);\n  *(_QWORD *)v5 = &GameObjectCopy::`vftable';\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v5 + 8);\n  *((_QWORD *)v5 + 7) = a1;\n  cocos2d::CCObject::retain(a1);\n  v2 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v5 + 7) + 200LL))(*((_QWORD *)v5 + 7));\n  cocos2d::CCPoint::operator=(v5 + 64, v2);\n  *((float *)v5 + 18) = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v5 + 7) + 360LL))(*((_QWORD *)v5 + 7));\n  *((float *)v5 + 19) = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v5 + 7) + 376LL))(*((_QWORD *)v5 + 7));\n  v5[80] = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v5 + 7) + 1256LL))(*((_QWORD *)v5 + 7));\n  v5[81] = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v5 + 7) + 1264LL))(*((_QWORD *)v5 + 7));\n  v3 = *((_QWORD *)v5 + 7);\n  *((_DWORD *)v5 + 21) = *(_DWORD *)(v3 + 1160);\n  *((_DWORD *)v5 + 22) = *(_DWORD *)(v3 + 1164);\n  cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);\n  return (GameObjectCopy *)v5;\n}", "assembly": "; \n; GameObjectCopy::create from 0x1402e8940 to 0x1402e8a3a (250 bytes)\n; \n; 9 xrefs:\n; > EditorUI::onDeleteSelected @ 0x1400e6744\n; > EditorUI::createUndoObject @ 0x140110fce\n; > EditorUI::createUndoObject @ 0x140111040\n; > EditorUI::moveObjectCall_1 @ 0x14011fb4d\n; > LevelEditorLayer::createObject @ 0x1402d4962\n; > LevelEditorLayer::removeObject @ 0x1402d6200\n; > LevelEditorLayer::handleAction @ 0x1402d6807\n; > LevelEditorLayer::handleAction @ 0x1402d691c\n; > <???> @ 0x1406d37f4\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, 0x1402e8940\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1402e8945\npush    rdi                                                            ; +0xa, 0x1402e894a\nsub     rsp, 20h                                                       ; +0xb, 0x1402e894b\nmov     rdi, rcx                                                       ; +0xf, 0x1402e894f\nmov     ecx, 60h ; '`'; Size                                           ; +0x12, 0x1402e8952\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x1402e8957\nmov     rsi, rax                                                       ; +0x1c, 0x1402e895c\nmov     [rsp+28h+arg_8], rax                                           ; +0x1f, 0x1402e895f\nxorps   xmm0, xmm0                                                     ; +0x24, 0x1402e8964\nmovups  xmmword ptr [rax], xmm0                                        ; +0x27, 0x1402e8967\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x2a, 0x1402e896a\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x2e, 0x1402e896e\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x32, 0x1402e8972\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x36, 0x1402e8976\nmovups  xmmword ptr [rax+50h], xmm0                                    ; +0x3a, 0x1402e897a\nmov     rcx, rax                                                       ; +0x3e, 0x1402e897e\ncall    cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x41, 0x1402e8981\nnop                                                                    ; +0x47, 0x1402e8987\nlea     rax, ??_7GameObjectCopy@@6B@; const GameObjectCopy::`vftable'  ; +0x48, 0x1402e8988\nmov     [rsi], rax                                                     ; +0x4f, 0x1402e898f\nlea     rcx, [rsi+40h]                                                 ; +0x52, 0x1402e8992\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x56, 0x1402e8996\nnop                                                                    ; +0x5c, 0x1402e899c\nmov     [rsi+38h], rdi                                                 ; +0x5d, 0x1402e899d\nmov     rcx, rdi                                                       ; +0x61, 0x1402e89a1\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x64, 0x1402e89a4\nmov     rcx, [rsi+38h]                                                 ; +0x6a, 0x1402e89aa\nmov     rax, [rcx]                                                     ; +0x6e, 0x1402e89ae\ncall    qword ptr [rax+0C8h]                                           ; +0x71, 0x1402e89b1\nmov     rdx, rax                                                       ; +0x77, 0x1402e89b7\nlea     rcx, [rsi+40h]                                                 ; +0x7a, 0x1402e89ba\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x7e, 0x1402e89be\nmov     rcx, [rsi+38h]                                                 ; +0x84, 0x1402e89c4\nmov     rax, [rcx]                                                     ; +0x88, 0x1402e89c8\ncall    qword ptr [rax+168h]                                           ; +0x8b, 0x1402e89cb\nmovss   dword ptr [rsi+48h], xmm0                                      ; +0x91, 0x1402e89d1\nmov     rcx, [rsi+38h]                                                 ; +0x96, 0x1402e89d6\nmov     rax, [rcx]                                                     ; +0x9a, 0x1402e89da\ncall    qword ptr [rax+178h]                                           ; +0x9d, 0x1402e89dd\nmovss   dword ptr [rsi+4Ch], xmm0                                      ; +0xa3, 0x1402e89e3\nmov     rcx, [rsi+38h]                                                 ; +0xa8, 0x1402e89e8\nmov     rax, [rcx]                                                     ; +0xac, 0x1402e89ec\ncall    qword ptr [rax+4E8h]                                           ; +0xaf, 0x1402e89ef\nmov     [rsi+50h], al                                                  ; +0xb5, 0x1402e89f5\nmov     rcx, [rsi+38h]                                                 ; +0xb8, 0x1402e89f8\nmov     rax, [rcx]                                                     ; +0xbc, 0x1402e89fc\ncall    qword ptr [rax+4F0h]                                           ; +0xbf, 0x1402e89ff\nmov     [rsi+51h], al                                                  ; +0xc5, 0x1402e8a05\nmov     rcx, [rsi+38h]                                                 ; +0xc8, 0x1402e8a08\nmov     eax, [rcx+488h]                                                ; +0xcc, 0x1402e8a0c\nmov     [rsi+54h], eax                                                 ; +0xd2, 0x1402e8a12\nmov     eax, [rcx+48Ch]                                                ; +0xd5, 0x1402e8a15\nmov     [rsi+58h], eax                                                 ; +0xdb, 0x1402e8a1b\nmov     rcx, rsi                                                       ; +0xde, 0x1402e8a1e\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xe1, 0x1402e8a21\nmov     rax, rsi                                                       ; +0xe7, 0x1402e8a27\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xea, 0x1402e8a2a\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xef, 0x1402e8a2f\nadd     rsp, 20h                                                       ; +0xf4, 0x1402e8a34\npop     rdi                                                            ; +0xf8, 0x1402e8a38\nretn                                                                   ; +0xf9, 0x1402e8a39", "xrefs": ["EditorUI::onDeleteSelected @ 0x1400e6744", "EditorUI::createUndoObject @ 0x140110fce", "EditorUI::createUndoObject @ 0x140111040", "EditorUI::moveObjectCall_1 @ 0x14011fb4d", "LevelEditorLayer::createObject @ 0x1402d4962", "LevelEditorLayer::removeObject @ 0x1402d6200", "LevelEditorLayer::handleAction @ 0x1402d6807", "LevelEditorLayer::handleAction @ 0x1402d691c", "<???> @ 0x1406d37f4"], "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"}