//
// sub_100720760 from 0x100720760 to 0x10072080a (170 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
//
__int64 __fastcall sub_100720760(__int64 a1, __int64 a2)
{
char *v3; // r12
char *v4; // r13
__int64 v5; // rdi
_OWORD *v6; // r15
_OWORD *v7; // rax
__int64 v8; // rdi
if ( a1 != a2 )
{
*(_DWORD *)a1 = *(_DWORD *)a2;
v3 = *(char **)(a2 + 24);
v4 = *(char **)(a2 + 32);
if ( v3 > v4 )
sub_1009A80C0(a1);
if ( (unsigned __int64)(v4 - v3) <= 0x10 )
{
v5 = *(_QWORD *)(a1 + 24);
v6 = (_OWORD *)(a1 + 8);
if ( v5 != a1 + 8 )
off_100BE07E0(v5);
if ( v3 != v4 )
*v6 = *(_OWORD *)v3;
LABEL_11:
*(_QWORD *)(a1 + 24) = v6;
*(_QWORD *)(a1 + 32) = (char *)v6 + v4 - v3;
return a1;
}
v7 = (_OWORD *)off_100BE07E8();
if ( v7 )
{
v6 = v7;
memcpy(v7, v3, v4 - v3);
v8 = *(_QWORD *)(a1 + 24);
if ( v8 != a1 + 8 )
off_100BE07E0(v8);
goto LABEL_11;
}
}
return a1;
}