//
// sub_140354C60 from 0x140354c60 to 0x140354cfc (156 bytes)
//
// 3 xrefs:
// > sub_14030DAE0 @ 0x14030e530
// > sub_14030DAE0 @ 0x14030e543
// > ??> @ 0x1409207c8
//
// This function is hookable on this platform (idp: pc, 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 11:30:48 +0000
//
_QWORD *__fastcall sub_140354C60(_QWORD *a1, _QWORD *a2)
{
__int64 v4; // r8
__int64 v5; // rax
__int64 v6; // rcx
__int64 v7; // rax
__int64 v8; // rcx
__int64 v9; // rax
__int64 v10; // rcx
__int64 v11; // rax
__int64 v12; // rcx
__int64 v13; // rax
__int64 v14; // rcx
__int64 v15; // rax
__int64 v16; // rcx
if ( a1 != a2 )
{
sub_140354A90(a1);
*(_DWORD *)a1 = *(_DWORD *)a2;
v4 = a1[1];
a1[1] = a2[1];
v5 = a2[2];
a2[1] = v4;
v6 = a1[2];
a1[2] = v5;
v7 = a2[3];
a2[2] = v6;
v8 = a1[3];
a1[3] = v7;
v9 = a2[4];
a2[3] = v8;
v10 = a1[4];
a1[4] = v9;
v11 = a2[5];
a2[4] = v10;
v12 = a1[5];
a1[5] = v11;
v13 = a2[6];
a2[5] = v12;
v14 = a1[6];
a1[6] = v13;
v15 = a2[7];
a2[6] = v14;
v16 = a1[7];
a1[7] = v15;
a2[7] = v16;
}
return a1;
}