{"type": "func", "start": 4301038384, "end": 4301038605, "name": "GameObject::duplicateAttributes", "pseudocode": "// \n// GameObject::duplicateAttributes from 0x1005ca330 to 0x1005ca40d (221 bytes)\n// \n// 5 xrefs:\n// > LevelEditorLayer::copyObjectState @ 0x1000f3a3f\n// > LevelEditorLayer::pasteAttributeState @ 0x1000f3c4c\n// > LevelEditorLayer::pasteAttributeState @ 0x1000f3cd3\n// > LevelEditorLayer::applyAttributeState @ 0x1000f3cff\n// > EditorUI::createRockEdges @ 0x100614469\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\nvoid __fastcall GameObject::duplicateAttributes(GameObject *a1)\n{\n  __int64 v1; // rsi\n  int v2; // eax\n  ZLayer v3; // eax\n\n  v2 = *(_DWORD *)(v1 + 1128);\n  if ( v2 )\n  {\n    a1->m_zOrder = v2;\n    v3 = *(_DWORD *)(v1 + 1124);\n    if ( v3 )\n      goto LABEL_3;\nLABEL_7:\n    v3 = *(_DWORD *)(v1 + 1116);\n    if ( a1->m_zFixedZLayer )\n      goto LABEL_5;\n    goto LABEL_4;\n  }\n  a1->m_zOrder = *(_DWORD *)(v1 + 1048);\n  v3 = *(_DWORD *)(v1 + 1124);\n  if ( !v3 )\n    goto LABEL_7;\nLABEL_3:\n  if ( !a1->m_zFixedZLayer )\nLABEL_4:\n    a1->m_zLayer = v3;\nLABEL_5:\n  *(_DWORD *)&a1->m_editorLayer = *(_DWORD *)(v1 + 1202);\n  a1->m_isHighDetail = *(_BYTE *)(v1 + 1259);\n  a1->m_isNoTouch = *(_BYTE *)(v1 + 1214);\n  a1->m_hasNoGlow = *(_BYTE *)(v1 + 1020);\n  a1->m_isDontBoostY = *(_BYTE *)(v1 + 1301);\n  *(_QWORD *)&a1->m_isPassable = *(_QWORD *)(v1 + 1293);\n  a1->m_isDontBoostX = *(_BYTE *)(v1 + 1302);\n  *(_DWORD *)&a1->m_isDontEnter = *(_DWORD *)(v1 + 1042);\n  a1->m_hasNoAudioScale = *(_BYTE *)(v1 + 969);\n}", "assembly": "; \n; GameObject::duplicateAttributes from 0x1005ca330 to 0x1005ca40d (221 bytes)\n; \n; 5 xrefs:\n; > LevelEditorLayer::copyObjectState @ 0x1000f3a3f\n; > LevelEditorLayer::pasteAttributeState @ 0x1000f3c4c\n; > LevelEditorLayer::pasteAttributeState @ 0x1000f3cd3\n; > LevelEditorLayer::applyAttributeState @ 0x1000f3cff\n; > EditorUI::createRockEdges @ 0x100614469\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    rbp                                                            ; +0x0, 0x1005ca330\nmov     rbp, rsp                                                       ; +0x1, 0x1005ca331\nmov     eax, [rsi+468h]                                                ; +0x4, 0x1005ca334\ntest    eax, eax                                                       ; +0xa, 0x1005ca33a\njz      loc_1005CA3DB                                                  ; +0xc, 0x1005ca33c\nmov     [rdi+468h], eax                                                ; +0x12, 0x1005ca342\nmov     eax, [rsi+464h]                                                ; +0x18, 0x1005ca348\ntest    eax, eax                                                       ; +0x1e, 0x1005ca34e\njz      loc_1005CA3F5                                                  ; +0x20, 0x1005ca350\ncmp     byte ptr [rdi+460h], 0                                         ; +0x26, 0x1005ca356\njnz     short loc_1005CA365                                            ; +0x2d, 0x1005ca35d\nmov     [rdi+464h], eax                                                ; +0x2f, 0x1005ca35f\nmov     eax, [rsi+4B2h]                                                ; +0x35, 0x1005ca365\nmov     [rdi+4B2h], eax                                                ; +0x3b, 0x1005ca36b\nmovzx   eax, byte ptr [rsi+4EBh]                                       ; +0x41, 0x1005ca371\nmov     [rdi+4EBh], al                                                 ; +0x48, 0x1005ca378\nmovzx   eax, byte ptr [rsi+4BEh]                                       ; +0x4e, 0x1005ca37e\nmov     [rdi+4BEh], al                                                 ; +0x55, 0x1005ca385\nmovzx   eax, byte ptr [rsi+3FCh]                                       ; +0x5b, 0x1005ca38b\nmov     [rdi+3FCh], al                                                 ; +0x62, 0x1005ca392\nmovzx   eax, byte ptr [rsi+515h]                                       ; +0x68, 0x1005ca398\nmov     [rdi+515h], al                                                 ; +0x6f, 0x1005ca39f\nmov     rax, [rsi+50Dh]                                                ; +0x75, 0x1005ca3a5\nmov     [rdi+50Dh], rax                                                ; +0x7c, 0x1005ca3ac\nmovzx   eax, byte ptr [rsi+516h]                                       ; +0x83, 0x1005ca3b3\nmov     [rdi+516h], al                                                 ; +0x8a, 0x1005ca3ba\nmov     eax, [rsi+412h]                                                ; +0x90, 0x1005ca3c0\nmov     [rdi+412h], eax                                                ; +0x96, 0x1005ca3c6\nmovzx   eax, byte ptr [rsi+3C9h]                                       ; +0x9c, 0x1005ca3cc\nmov     [rdi+3C9h], al                                                 ; +0xa3, 0x1005ca3d3\npop     rbp                                                            ; +0xa9, 0x1005ca3d9\nretn                                                                   ; +0xaa, 0x1005ca3da\nmov     eax, [rsi+418h]                                                ; +0xab, 0x1005ca3db\nmov     [rdi+468h], eax                                                ; +0xb1, 0x1005ca3e1\nmov     eax, [rsi+464h]                                                ; +0xb7, 0x1005ca3e7\ntest    eax, eax                                                       ; +0xbd, 0x1005ca3ed\njnz     loc_1005CA356                                                  ; +0xbf, 0x1005ca3ef\nmov     eax, [rsi+45Ch]                                                ; +0xc5, 0x1005ca3f5\ncmp     byte ptr [rdi+460h], 0                                         ; +0xcb, 0x1005ca3fb\njz      loc_1005CA35F                                                  ; +0xd2, 0x1005ca402\njmp     loc_1005CA365                                                  ; +0xd8, 0x1005ca408", "xrefs": ["LevelEditorLayer::copyObjectState @ 0x1000f3a3f", "LevelEditorLayer::pasteAttributeState @ 0x1000f3c4c", "LevelEditorLayer::pasteAttributeState @ 0x1000f3cd3", "LevelEditorLayer::applyAttributeState @ 0x1000f3cff", "EditorUI::createRockEdges @ 0x100614469"], "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"}