//
// sub_100656A10 from 0x100656a10 to 0x100656a80 (112 bytes)
//
// 1 xrefs:
// > sub_1006573C0 @ 0x100657506
//
// 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
//
char *__fastcall sub_100656A10(_QWORD *a1, _OWORD *a2, __int64 ***a3)
{
char *v4; // r14
char *v5; // rsi
__int64 v6; // r14
unsigned __int64 v7; // r12
char *v8; // rax
v4 = (char *)a1[2];
if ( v4 == (char *)a1[3] )
{
v5 = (char *)a1[1];
v6 = v4 - v5;
v7 = 16 * ((v6 >> 4) + ((unsigned __int64)(v6 >> 4) >> 1));
v8 = sub_100652E90(a3, v5, v6, v7 + 16);
a1[1] = v8;
v4 = &v8[v6];
a1[3] = &v8[v7 + 16];
}
a1[2] = v4 + 16;
*(_OWORD *)v4 = *a2;
return v4 + 16;
}