//
// sub_1000C4C30 from 0x1000c4c30 to 0x1000c4cff (207 bytes)
//
// 1 xrefs:
// > sub_1000C4380 @ 0x1000c4526
//
// 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
//
void __fastcall sub_1000C4C30(_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_1000C4DD0();
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_1000C4E40(a1, v8, v5);
v5 += 240;
v8 = v9 + 240;
v9 += 240;
}
while ( v5 != a3 );
}
a1[1] = v8;
}
}