//
// sub_1402F3920 from 0x1402f3920 to 0x1402f39cd (173 bytes)
//
// 7 xrefs:
// > sub_1402F2630 @ 0x1402f272d
// > sub_1402F2630 @ 0x1402f273e
// > sub_1402F2800 @ 0x1402f28c0
// > sub_1402F2800 @ 0x1402f28d4
// > ??> @ 0x140690298
// > ??> @ 0x1406902a8
// > ??> @ 0x1406d3ea8
//
// 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
//
_QWORD *__fastcall sub_1402F3920(__int64 a1, __int64 a2, _QWORD *a3)
{
_QWORD *v3; // r10
char *v5; // r9
__int64 v6; // r8
__int64 v7; // rax
__int64 v8; // rcx
__int64 v9; // rdx
__int64 v10; // rax
v3 = a3;
if ( a1 != a2 )
{
v5 = (char *)a3 - a1;
v6 = a1 + 16;
do
{
v7 = *(_QWORD *)(v6 - 16);
v6 += 64;
*v3 = v7;
v3 += 8;
v8 = *(_QWORD *)(v6 - 64);
v9 = *(_QWORD *)(v6 - 56);
v10 = *(_QWORD *)(v6 - 72);
*(_QWORD *)(v6 - 56) = 0;
*(_QWORD *)(v6 - 64) = 0;
*(_QWORD *)(v6 - 72) = 0;
*(_QWORD *)&v5[v6 - 64] = v8;
*(_QWORD *)&v5[v6 - 72] = v10;
*(_QWORD *)&v5[v6 - 56] = v9;
*(_OWORD *)&v5[v6 - 48] = *(_OWORD *)(v6 - 48);
v5[v6 - 32] = *(_BYTE *)(v6 - 32);
*(_DWORD *)&v5[v6 - 28] = *(_DWORD *)(v6 - 28);
v5[v6 - 24] = *(_BYTE *)(v6 - 24);
v5[v6 - 23] = *(_BYTE *)(v6 - 23);
}
while ( v6 - 16 != a2 );
}
return v3;
}