//
// GameObject::duplicateValues from 0x44ebea to 0x44ecf0 (262 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::breakApartTextObject @ 0x46edbe
// > EditorUI::onCreateObject @ 0x487712
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:48:36 +0000
//
int __fastcall GameObject::duplicateValues(GameObject *this, GameObject *a2)
{
float v4; // s16
float v5; // r0
int v6; // r3
int v7; // r2
void (__fastcall *v8)(GameObject *, int); // r6
int v9; // r0
void (__fastcall *v10)(GameObject *, int); // r6
int v11; // r0
void (__fastcall *v12)(GameObject *, int); // r6
int v13; // r0
void (__fastcall *v14)(GameObject *, int); // r6
int v15; // r0
signed int v16; // r6
int CustomZLayer; // r0
unsigned int v18; // r1
void (__fastcall *v19)(GameObject *, int); // r7
int GroupID; // r0
v4 = COERCE_FLOAT((*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 192))(a2));
v5 = (*(float (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 200))(a2);
v6 = *(_DWORD *)a2;
v7 = *(_DWORD *)this;
if ( v4 == v5 )
{
v10 = *(void (__fastcall **)(GameObject *, int))(v7 + 180);
v11 = (*(int (__fastcall **)(GameObject *))(v6 + 184))(a2);
}
else
{
v8 = *(void (__fastcall **)(GameObject *, int))(v7 + 188);
v9 = (*(int (__fastcall **)(GameObject *))(v6 + 192))(a2);
v8(this, v9);
v10 = *(void (__fastcall **)(GameObject *, int))(*(_DWORD *)this + 196);
v11 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 200))(a2);
}
v10(this, v11);
v12 = *(void (__fastcall **)(GameObject *, int))(*(_DWORD *)this + 620);
v13 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 712))(a2);
v12(this, v13);
v14 = *(void (__fastcall **)(GameObject *, int))(*(_DWORD *)this + 624);
v15 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 716))(a2);
v14(this, v15);
v16 = 0;
GameObject::duplicateColorMode(this, a2);
*((_DWORD *)this + 246) = *((_DWORD *)a2 + 246);
CustomZLayer = GameObject::getCustomZLayer(a2);
GameObject::setCustomZLayer((int)this, CustomZLayer);
*((_BYTE *)this + 907) = *((_BYTE *)a2 + 907);
*((_BYTE *)this + 906) = *((_BYTE *)a2 + 906);
*((_BYTE *)this + 908) = *((_BYTE *)a2 + 908);
while ( v16 < *((__int16 *)a2 + 510) )
{
v18 = v16++;
v19 = *(void (__fastcall **)(GameObject *, int))(*(_DWORD *)this + 800);
GroupID = GameObject::getGroupID(a2, v18);
v19(this, GroupID);
}
GameObject::updateCustomScaleX(this, *((float *)a2 + 252));
return GameObject::updateCustomScaleY(this, *((float *)a2 + 253));
}