//
// sub_1007203C0 from 0x1007203c0 to 0x100720463 (163 bytes)
//
// 0 xrefs:
//
// 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 12:36:13 +0000
//
_OWORD *__fastcall sub_1007203C0(_QWORD *a1, char *a2, char *a3)
{
_OWORD *result; // rax
size_t v5; // r14
_QWORD *v6; // rdi
_OWORD *v7; // r15
char *v8; // r13
_QWORD *v9; // rdi
if ( a2 > a3 )
sub_1009A7FD0(a1);
v5 = a3 - a2;
if ( (unsigned __int64)(a3 - a2) > 0x10 )
{
result = (_OWORD *)off_100BE07E8();
if ( !result )
return result;
v7 = result;
memcpy(result, a2, v5);
v9 = (_QWORD *)a1[3];
result = a1 + 1;
if ( v9 != a1 + 1 )
result = (_OWORD *)off_100BE07E0(v9);
}
else
{
v6 = (_QWORD *)a1[3];
v7 = a1 + 1;
if ( v6 != a1 + 1 )
{
v8 = a3;
result = (_OWORD *)off_100BE07E0(v6);
a3 = v8;
}
if ( a2 != a3 )
*v7 = *(_OWORD *)a2;
}
a1[3] = v7;
a1[4] = (char *)v7 + v5;
return result;
}