{"type": "func", "start": 5372943904, "end": 5372944154, "name": "GameObjectCopy::create", "pseudocode": "// \n// GameObjectCopy::create from 0x140409e20 to 0x140409f1a (250 bytes)\n// \n// 9 xrefs:\n// > EditorUI::onDeleteSelected @ 0x1401b0d2d\n// > EditorUI::createUndoObject @ 0x1401b387e\n// > EditorUI::createUndoObject @ 0x1401b38f0\n// > EditorUI::moveObjectCall_1 @ 0x1401fecf0\n// > LevelEditorLayer::createObject @ 0x1403f0af0\n// > LevelEditorLayer::removeObject @ 0x1403f2236\n// > LevelEditorLayer::handleAction @ 0x1403f2863\n// > LevelEditorLayer::handleAction @ 0x1403f298b\n// > <???> @ 0x140925ca0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:59 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n_OWORD *__fastcall GameObjectCopy::create(cocos2d::CCObject *a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rcx\n  _OWORD *v5; // [rsp+38h] [rbp+10h]\n\n  v5 = operator new(0x60u);\n  *v5 = 0;\n  v5[1] = 0;\n  v5[2] = 0;\n  v5[3] = 0;\n  v5[4] = 0;\n  v5[5] = 0;\n  cocos2d::CCObject::CCObject((cocos2d::CCObject *)v5);\n  *(_QWORD *)v5 = &GameObjectCopy::`vftable';\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 4));\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 + 4, v2);\n  *((float *)v5 + 18) = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v5 + 7) + 376LL))(*((_QWORD *)v5 + 7));\n  *((float *)v5 + 19) = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)v5 + 7) + 392LL))(*((_QWORD *)v5 + 7));\n  *((_BYTE *)v5 + 80) = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v5 + 7) + 1272LL))(*((_QWORD *)v5 + 7));\n  *((_BYTE *)v5 + 81) = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v5 + 7) + 1280LL))(*((_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 v5;\n}", "assembly": "; \n; GameObjectCopy::create from 0x140409e20 to 0x140409f1a (250 bytes)\n; \n; 9 xrefs:\n; > EditorUI::onDeleteSelected @ 0x1401b0d2d\n; > EditorUI::createUndoObject @ 0x1401b387e\n; > EditorUI::createUndoObject @ 0x1401b38f0\n; > EditorUI::moveObjectCall_1 @ 0x1401fecf0\n; > LevelEditorLayer::createObject @ 0x1403f0af0\n; > LevelEditorLayer::removeObject @ 0x1403f2236\n; > LevelEditorLayer::handleAction @ 0x1403f2863\n; > LevelEditorLayer::handleAction @ 0x1403f298b\n; > <???> @ 0x140925ca0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:59 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140409e20\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140409e25\npush    rdi                                                            ; +0xa, 0x140409e2a\nsub     rsp, 20h                                                       ; +0xb, 0x140409e2b\nmov     rdi, rcx                                                       ; +0xf, 0x140409e2f\nmov     ecx, 60h ; '`'; Size                                           ; +0x12, 0x140409e32\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x140409e37\nmov     rsi, rax                                                       ; +0x1c, 0x140409e3c\nmov     [rsp+28h+arg_8], rax                                           ; +0x1f, 0x140409e3f\nxorps   xmm0, xmm0                                                     ; +0x24, 0x140409e44\nmovups  xmmword ptr [rax], xmm0                                        ; +0x27, 0x140409e47\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x2a, 0x140409e4a\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x2e, 0x140409e4e\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x32, 0x140409e52\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x36, 0x140409e56\nmovups  xmmword ptr [rax+50h], xmm0                                    ; +0x3a, 0x140409e5a\nmov     rcx, rax                                                       ; +0x3e, 0x140409e5e\ncall    cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x41, 0x140409e61\nnop                                                                    ; +0x47, 0x140409e67\nlea     rax, ??_7GameObjectCopy@@6B@; const GameObjectCopy::`vftable'  ; +0x48, 0x140409e68\nmov     [rsi], rax                                                     ; +0x4f, 0x140409e6f\nlea     rcx, [rsi+40h]                                                 ; +0x52, 0x140409e72\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x56, 0x140409e76\nnop                                                                    ; +0x5c, 0x140409e7c\nmov     [rsi+38h], rdi                                                 ; +0x5d, 0x140409e7d\nmov     rcx, rdi                                                       ; +0x61, 0x140409e81\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x64, 0x140409e84\nmov     rcx, [rsi+38h]                                                 ; +0x6a, 0x140409e8a\nmov     rax, [rcx]                                                     ; +0x6e, 0x140409e8e\ncall    qword ptr [rax+0C8h]                                           ; +0x71, 0x140409e91\nmov     rdx, rax                                                       ; +0x77, 0x140409e97\nlea     rcx, [rsi+40h]                                                 ; +0x7a, 0x140409e9a\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x7e, 0x140409e9e\nmov     rcx, [rsi+38h]                                                 ; +0x84, 0x140409ea4\nmov     rax, [rcx]                                                     ; +0x88, 0x140409ea8\ncall    qword ptr [rax+178h]                                           ; +0x8b, 0x140409eab\nmovss   dword ptr [rsi+48h], xmm0                                      ; +0x91, 0x140409eb1\nmov     rcx, [rsi+38h]                                                 ; +0x96, 0x140409eb6\nmov     rax, [rcx]                                                     ; +0x9a, 0x140409eba\ncall    qword ptr [rax+188h]                                           ; +0x9d, 0x140409ebd\nmovss   dword ptr [rsi+4Ch], xmm0                                      ; +0xa3, 0x140409ec3\nmov     rcx, [rsi+38h]                                                 ; +0xa8, 0x140409ec8\nmov     rax, [rcx]                                                     ; +0xac, 0x140409ecc\ncall    qword ptr [rax+4F8h]                                           ; +0xaf, 0x140409ecf\nmov     [rsi+50h], al                                                  ; +0xb5, 0x140409ed5\nmov     rcx, [rsi+38h]                                                 ; +0xb8, 0x140409ed8\nmov     rax, [rcx]                                                     ; +0xbc, 0x140409edc\ncall    qword ptr [rax+500h]                                           ; +0xbf, 0x140409edf\nmov     [rsi+51h], al                                                  ; +0xc5, 0x140409ee5\nmov     rcx, [rsi+38h]                                                 ; +0xc8, 0x140409ee8\nmov     eax, [rcx+488h]                                                ; +0xcc, 0x140409eec\nmov     [rsi+54h], eax                                                 ; +0xd2, 0x140409ef2\nmov     eax, [rcx+48Ch]                                                ; +0xd5, 0x140409ef5\nmov     [rsi+58h], eax                                                 ; +0xdb, 0x140409efb\nmov     rcx, rsi                                                       ; +0xde, 0x140409efe\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xe1, 0x140409f01\nmov     rax, rsi                                                       ; +0xe7, 0x140409f07\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xea, 0x140409f0a\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xef, 0x140409f0f\nadd     rsp, 20h                                                       ; +0xf4, 0x140409f14\npop     rdi                                                            ; +0xf8, 0x140409f18\nretn                                                                   ; +0xf9, 0x140409f19", "xrefs": ["EditorUI::onDeleteSelected @ 0x1401b0d2d", "EditorUI::createUndoObject @ 0x1401b387e", "EditorUI::createUndoObject @ 0x1401b38f0", "EditorUI::moveObjectCall_1 @ 0x1401fecf0", "LevelEditorLayer::createObject @ 0x1403f0af0", "LevelEditorLayer::removeObject @ 0x1403f2236", "LevelEditorLayer::handleAction @ 0x1403f2863", "LevelEditorLayer::handleAction @ 0x1403f298b", "<???> @ 0x140925ca0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}