//
// sub_140122C60 from 0x140122c60 to 0x140122d12 (178 bytes)
//
// 8 xrefs:
// > sub_140122D60 @ 0x140122e86
// > sub_140122D60 @ 0x140122e95
// > sub_1403CBAC0 @ 0x1403cbccc
// > sub_1403CBAC0 @ 0x1403cbcdc
// > sub_1403CBAC0 @ 0x1403cbd41
// > sub_1403CBAC0 @ 0x1403cbe23
// > sub_1406B03C4 @ 0x1406b040d
// > sub_1406B0479 @ 0x1406b04ae
//
// 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:26:57 +0000
//
_DWORD *__fastcall sub_140122C60(__int64 a1, __int64 a2, _DWORD *a3)
{
__int64 v4; // r8
char *v5; // r10
int v6; // eax
if ( a1 != a2 )
{
v4 = a1 + 32;
v5 = (char *)a3 - a1;
do
{
v6 = *(_DWORD *)(v4 - 32);
v4 += 72;
*a3 = v6;
a3 += 18;
*(_OWORD *)&v5[v4 - 96] = 0;
*(_QWORD *)&v5[v4 - 80] = 0;
*(_QWORD *)&v5[v4 - 72] = 0;
*(_OWORD *)&v5[v4 - 96] = *(_OWORD *)(v4 - 96);
*(_OWORD *)&v5[v4 - 80] = *(_OWORD *)(v4 - 80);
*(_QWORD *)(v4 - 80) = 0;
*(_QWORD *)(v4 - 72) = 15;
*(_BYTE *)(v4 - 96) = 0;
*(_OWORD *)&v5[v4 - 64] = 0;
*(_QWORD *)&v5[v4 - 48] = 0;
*(_QWORD *)&v5[v4 - 40] = 0;
*(_OWORD *)&v5[v4 - 64] = *(_OWORD *)(v4 - 64);
*(_OWORD *)&v5[v4 - 48] = *(_OWORD *)(v4 - 48);
*(_QWORD *)(v4 - 48) = 0;
*(_QWORD *)(v4 - 40) = 15;
*(_BYTE *)(v4 - 64) = 0;
}
while ( v4 - 32 != a2 );
}
return a3;
}