//
// GameObject::duplicateValues from 0x771790 to 0x771920 (400 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::breakApartTextObject @ 0x7a187c
// > EditorUI::onCreateObject @ 0x7ca2f0
// > ??> @ 0xe6c50
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:53:13 +0000
//
__int64 __fastcall GameObject::duplicateValues(GameObject *this, GameObject *a2)
{
float v4; // s8
float v5; // s0
__int64 v6; // x1
__int64 v7; // x2
void (__fastcall *v8)(GameObject *); // x19
void (__fastcall *v9)(GameObject *); // x19
signed int v10; // w19
void (__fastcall *v11)(GameObject *, _QWORD); // x22
unsigned int v12; // w0
void (__fastcall *v13)(GameObject *, _QWORD); // x22
unsigned int v14; // w0
int CustomZLayer; // w0
unsigned int v16; // w1
void (__fastcall *v17)(GameObject *, _QWORD); // x22
unsigned int GroupID; // w0
v4 = (*(float (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 384LL))(a2);
v5 = (*(float (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 400LL))(a2);
v6 = *(_QWORD *)a2;
v7 = *(_QWORD *)this;
if ( v4 == v5 )
{
v9 = *(void (__fastcall **)(GameObject *))(v7 + 360);
(*(void (__fastcall **)(GameObject *))(v6 + 368))(a2);
}
else
{
v8 = *(void (__fastcall **)(GameObject *))(v7 + 376);
(*(void (__fastcall **)(GameObject *))(v6 + 384))(a2);
v8(this);
v9 = *(void (__fastcall **)(GameObject *))(*(_QWORD *)this + 392LL);
(*(void (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 400LL))(a2);
}
v9(this);
v10 = 0;
v11 = *(void (__fastcall **)(GameObject *, _QWORD))(*(_QWORD *)this + 1240LL);
v12 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 1424LL))(a2);
v11(this, v12);
v13 = *(void (__fastcall **)(GameObject *, _QWORD))(*(_QWORD *)this + 1248LL);
v14 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 1432LL))(a2);
v13(this, v14);
GameObject::duplicateColorMode((__int64)this, a2);
*((_DWORD *)this + 282) = *((_DWORD *)a2 + 282);
CustomZLayer = GameObject::getCustomZLayer(a2);
GameObject::setCustomZLayer((__int64)this, CustomZLayer);
*((_BYTE *)this + 1043) = *((_BYTE *)a2 + 1043);
*((_BYTE *)this + 1042) = *((_BYTE *)a2 + 1042);
*((_BYTE *)this + 1044) = *((_BYTE *)a2 + 1044);
if ( *((__int16 *)a2 + 584) > 0 )
{
do
{
v16 = v10++;
v17 = *(void (__fastcall **)(GameObject *, _QWORD))(*(_QWORD *)this + 1600LL);
GroupID = GameObject::getGroupID(a2, v16);
v17(this, GroupID);
}
while ( *((__int16 *)a2 + 584) > v10 );
}
GameObject::updateCustomScaleX(this, *((float *)a2 + 288));
return GameObject::updateCustomScaleY(this, *((float *)a2 + 289));
}