//
// sub_C67ED0 from 0xc67ed0 to 0xc67fc0 (240 bytes)
//
// 1 xrefs:
// > sub_C68714 @ 0xc689a0
//
// 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
//
__int64 __fastcall sub_C67ED0(int *a1, __int64 a2)
{
int v3; // w3
__int64 v4; // x21
char *v5; // x19
__int64 v6; // x0
char *v7; // x3
int v8; // w23
int v9; // w24
int v10; // w20
char *v11; // x0
int i; // w19
v3 = a1[2];
v4 = *(_QWORD *)a2 + 16LL;
v5 = *((char **)a1 + 19);
v6 = *(_QWORD *)(*(_QWORD *)a2 + 40LL);
v7 = (char *)(v6 + v3 * *(_DWORD *)(*(_QWORD *)a2 + 60LL));
v8 = a1[3];
v9 = a1[4];
if ( v5 )
{
v10 = 0;
if ( v9 > 0 )
{
do
{
++v10;
v11 = (char *)memcpy(v7, v5, v8);
v5 += *a1;
v7 = &v11[*(int *)(v4 + 44)];
}
while ( v10 != v9 );
}
return 0;
}
if ( !v6 || v9 <= 0 )
return 0;
for ( i = 0; i != v9; ++i )
v7 = (char *)memset(v7, 255, v8) + *(int *)(v4 + 44);
return 0;
}