{"type": "func", "start": 4301896240, "end": 4301896461, "name": "GameObject::duplicateAttributes", "pseudocode": "// \n// GameObject::duplicateAttributes from 0x10069ba30 to 0x10069bb0d (221 bytes)\n// \n// 5 xrefs:\n// > LevelEditorLayer::copyObjectState @ 0x1000c79ff\n// > LevelEditorLayer::pasteAttributeState @ 0x1000c7c0c\n// > LevelEditorLayer::pasteAttributeState @ 0x1000c7c93\n// > LevelEditorLayer::applyAttributeState @ 0x1000c7cbf\n// > EditorUI::createRockEdges @ 0x1006f0ef9\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 12:35:16 +0000\n// \n\n__int64 __fastcall GameObject::duplicateAttributes(__int64 a1, __int64 a2)\n{\n  int v2; // eax\n  int v3; // eax\n  __int64 result; // rax\n\n  v2 = *(_DWORD *)(a2 + 1128);\n  if ( v2 )\n  {\n    *(_DWORD *)(a1 + 1128) = v2;\n    v3 = *(_DWORD *)(a2 + 1124);\n    if ( v3 )\n      goto LABEL_3;\nLABEL_7:\n    v3 = *(_DWORD *)(a2 + 1116);\n    if ( *(_BYTE *)(a1 + 1120) )\n      goto LABEL_5;\n    goto LABEL_4;\n  }\n  *(_DWORD *)(a1 + 1128) = *(_DWORD *)(a2 + 1048);\n  v3 = *(_DWORD *)(a2 + 1124);\n  if ( !v3 )\n    goto LABEL_7;\nLABEL_3:\n  if ( !*(_BYTE *)(a1 + 1120) )\nLABEL_4:\n    *(_DWORD *)(a1 + 1124) = v3;\nLABEL_5:\n  *(_DWORD *)(a1 + 1202) = *(_DWORD *)(a2 + 1202);\n  *(_BYTE *)(a1 + 1259) = *(_BYTE *)(a2 + 1259);\n  *(_BYTE *)(a1 + 1214) = *(_BYTE *)(a2 + 1214);\n  *(_BYTE *)(a1 + 1020) = *(_BYTE *)(a2 + 1020);\n  *(_BYTE *)(a1 + 1301) = *(_BYTE *)(a2 + 1301);\n  *(_QWORD *)(a1 + 1293) = *(_QWORD *)(a2 + 1293);\n  *(_BYTE *)(a1 + 1302) = *(_BYTE *)(a2 + 1302);\n  *(_DWORD *)(a1 + 1042) = *(_DWORD *)(a2 + 1042);\n  result = *(unsigned __int8 *)(a2 + 969);\n  *(_BYTE *)(a1 + 969) = result;\n  return result;\n}", "assembly": "; \n; GameObject::duplicateAttributes from 0x10069ba30 to 0x10069bb0d (221 bytes)\n; \n; 5 xrefs:\n; > LevelEditorLayer::copyObjectState @ 0x1000c79ff\n; > LevelEditorLayer::pasteAttributeState @ 0x1000c7c0c\n; > LevelEditorLayer::pasteAttributeState @ 0x1000c7c93\n; > LevelEditorLayer::applyAttributeState @ 0x1000c7cbf\n; > EditorUI::createRockEdges @ 0x1006f0ef9\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 12:35:16 +0000\n; \npush    rbp                                                            ; +0x0, 0x10069ba30\nmov     rbp, rsp                                                       ; +0x1, 0x10069ba31\nmov     eax, [rsi+468h]                                                ; +0x4, 0x10069ba34\ntest    eax, eax                                                       ; +0xa, 0x10069ba3a\njz      loc_10069BADB                                                  ; +0xc, 0x10069ba3c\nmov     [rdi+468h], eax                                                ; +0x12, 0x10069ba42\nmov     eax, [rsi+464h]                                                ; +0x18, 0x10069ba48\ntest    eax, eax                                                       ; +0x1e, 0x10069ba4e\njz      loc_10069BAF5                                                  ; +0x20, 0x10069ba50\ncmp     byte ptr [rdi+460h], 0                                         ; +0x26, 0x10069ba56\njnz     short loc_10069BA65                                            ; +0x2d, 0x10069ba5d\nmov     [rdi+464h], eax                                                ; +0x2f, 0x10069ba5f\nmov     eax, [rsi+4B2h]                                                ; +0x35, 0x10069ba65\nmov     [rdi+4B2h], eax                                                ; +0x3b, 0x10069ba6b\nmovzx   eax, byte ptr [rsi+4EBh]                                       ; +0x41, 0x10069ba71\nmov     [rdi+4EBh], al                                                 ; +0x48, 0x10069ba78\nmovzx   eax, byte ptr [rsi+4BEh]                                       ; +0x4e, 0x10069ba7e\nmov     [rdi+4BEh], al                                                 ; +0x55, 0x10069ba85\nmovzx   eax, byte ptr [rsi+3FCh]                                       ; +0x5b, 0x10069ba8b\nmov     [rdi+3FCh], al                                                 ; +0x62, 0x10069ba92\nmovzx   eax, byte ptr [rsi+515h]                                       ; +0x68, 0x10069ba98\nmov     [rdi+515h], al                                                 ; +0x6f, 0x10069ba9f\nmov     rax, [rsi+50Dh]                                                ; +0x75, 0x10069baa5\nmov     [rdi+50Dh], rax                                                ; +0x7c, 0x10069baac\nmovzx   eax, byte ptr [rsi+516h]                                       ; +0x83, 0x10069bab3\nmov     [rdi+516h], al                                                 ; +0x8a, 0x10069baba\nmov     eax, [rsi+412h]                                                ; +0x90, 0x10069bac0\nmov     [rdi+412h], eax                                                ; +0x96, 0x10069bac6\nmovzx   eax, byte ptr [rsi+3C9h]                                       ; +0x9c, 0x10069bacc\nmov     [rdi+3C9h], al                                                 ; +0xa3, 0x10069bad3\npop     rbp                                                            ; +0xa9, 0x10069bad9\nretn                                                                   ; +0xaa, 0x10069bada\nmov     eax, [rsi+418h]                                                ; +0xab, 0x10069badb\nmov     [rdi+468h], eax                                                ; +0xb1, 0x10069bae1\nmov     eax, [rsi+464h]                                                ; +0xb7, 0x10069bae7\ntest    eax, eax                                                       ; +0xbd, 0x10069baed\njnz     loc_10069BA56                                                  ; +0xbf, 0x10069baef\nmov     eax, [rsi+45Ch]                                                ; +0xc5, 0x10069baf5\ncmp     byte ptr [rdi+460h], 0                                         ; +0xcb, 0x10069bafb\njz      loc_10069BA5F                                                  ; +0xd2, 0x10069bb02\njmp     loc_10069BA65                                                  ; +0xd8, 0x10069bb08", "xrefs": ["LevelEditorLayer::copyObjectState @ 0x1000c79ff", "LevelEditorLayer::pasteAttributeState @ 0x1000c7c0c", "LevelEditorLayer::pasteAttributeState @ 0x1000c7c93", "LevelEditorLayer::applyAttributeState @ 0x1000c7cbf", "EditorUI::createRockEdges @ 0x1006f0ef9"], "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"}