//
// GameObject::duplicateAttributes from 0x1005ca330 to 0x1005ca40d (221 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::copyObjectState @ 0x1000f3a3f
// > LevelEditorLayer::pasteAttributeState @ 0x1000f3c4c
// > LevelEditorLayer::pasteAttributeState @ 0x1000f3cd3
// > LevelEditorLayer::applyAttributeState @ 0x1000f3cff
// > EditorUI::createRockEdges @ 0x100614469
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GameObject::duplicateAttributes(GameObject *a1)
{
__int64 v1; // rsi
int v2; // eax
ZLayer v3; // eax
v2 = *(_DWORD *)(v1 + 1128);
if ( v2 )
{
a1->m_zOrder = v2;
v3 = *(_DWORD *)(v1 + 1124);
if ( v3 )
goto LABEL_3;
LABEL_7:
v3 = *(_DWORD *)(v1 + 1116);
if ( a1->m_zFixedZLayer )
goto LABEL_5;
goto LABEL_4;
}
a1->m_zOrder = *(_DWORD *)(v1 + 1048);
v3 = *(_DWORD *)(v1 + 1124);
if ( !v3 )
goto LABEL_7;
LABEL_3:
if ( !a1->m_zFixedZLayer )
LABEL_4:
a1->m_zLayer = v3;
LABEL_5:
*(_DWORD *)&a1->m_editorLayer = *(_DWORD *)(v1 + 1202);
a1->m_isHighDetail = *(_BYTE *)(v1 + 1259);
a1->m_isNoTouch = *(_BYTE *)(v1 + 1214);
a1->m_hasNoGlow = *(_BYTE *)(v1 + 1020);
a1->m_isDontBoostY = *(_BYTE *)(v1 + 1301);
*(_QWORD *)&a1->m_isPassable = *(_QWORD *)(v1 + 1293);
a1->m_isDontBoostX = *(_BYTE *)(v1 + 1302);
*(_DWORD *)&a1->m_isDontEnter = *(_DWORD *)(v1 + 1042);
a1->m_hasNoAudioScale = *(_BYTE *)(v1 + 969);
}