//
// sub_1000939A0 from 0x1000939a0 to 0x100093a7e (222 bytes)
//
// 1 xrefs:
// > sub_100093170 @ 0x100093446
//
// 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:20:09 +0000
//
_QWORD *__fastcall sub_1000939A0(_QWORD *a1, __int64 a2, _QWORD *a3)
{
char *v4; // r14
__int64 *v5; // r12
__int64 v6; // r13
char *v7; // rax
__int64 v8; // r8
__int64 *v10; // [rsp+20h] [rbp-30h]
v4 = (char *)operator new(0x40u);
*a1 = v4;
a1[1] = a2;
a1[2] = 0;
*((_QWORD *)v4 + 4) = *a3;
*(_OWORD *)(v4 + 40) = 0;
*((_QWORD *)v4 + 7) = 0;
v5 = (__int64 *)a3[1];
v10 = (__int64 *)a3[2];
v6 = (char *)v10 - (char *)v5;
if ( v10 != v5 )
{
if ( 0xCCCCCCCCCCCCCCCDLL * (v6 >> 3) >= 0x666666666666667LL )
sub_100093990();
v7 = (char *)operator new((char *)v10 - (char *)v5);
*((_QWORD *)v4 + 5) = v7;
*((_QWORD *)v4 + 6) = v7;
*((_QWORD *)v4 + 7) = &v7[v6];
*((_QWORD *)v4 + 6) = sub_100093830(v4 + 40, v5, v10, (__int64)v7, v8);
}
*((_BYTE *)a1 + 16) = 1;
return a1;
}