//
// sub_1000943C0 from 0x1000943c0 to 0x10009448f (207 bytes)
//
// 1 xrefs:
// > sub_100093BB0 @ 0x100093d56
//
// 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
//
void __fastcall sub_1000943C0(_QWORD *a1, __int64 a2, __int64 a3, unsigned __int64 a4)
{
__int64 v5; // r15
__int64 v6; // r13
char *v7; // r12
char *v8; // rsi
char *v9; // [rsp+40h] [rbp-30h]
if ( a4 )
{
if ( a4 >= 0x111111111111112LL )
sub_100094560();
v5 = a2;
v6 = 240 * a4;
v7 = (char *)operator new(240 * a4);
*a1 = v7;
a1[1] = v7;
a1[2] = &v7[v6];
v9 = v7;
if ( a2 == a3 )
{
v8 = v7;
}
else
{
v8 = v7;
do
{
sub_1000945D0(a1, v8, v5);
v5 += 240;
v8 = v9 + 240;
v9 += 240;
}
while ( v5 != a3 );
}
a1[1] = v8;
}
}