//
// sub_6D1298 from 0x6d1298 to 0x6d144c (436 bytes)
//
// 3 xrefs:
// > sub_6D6548 @ 0x6d6634
// > sub_6D6548 @ 0x6d6638
// > ??> @ 0x6d6834
//
// 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
//
int __fastcall sub_6D1298(
int result,
int *a2,
int a3,
int a4,
int a5,
int a6,
int a7,
int a8,
unsigned __int8 *a9,
unsigned __int8 *a10,
unsigned __int8 *a11,
unsigned __int8 *a12)
{
int v14; // [sp+4h] [bp-28h]
int v16; // [sp+14h] [bp-18h]
int v17; // [sp+18h] [bp-14h]
int v18; // [sp+1Ch] [bp-10h]
int v19; // [sp+20h] [bp-Ch]
int v20; // [sp+24h] [bp-8h]
while ( a6-- != 0 )
{
v14 = a5;
while ( v14-- != 0 )
{
v19 = *a12++;
v20 = *(_DWORD *)(result + 76) + (v19 << 8);
v16 = *(unsigned __int8 *)(v20 + *a9++);
v17 = *(unsigned __int8 *)(v20 + *a10++);
v18 = *(unsigned __int8 *)(v20 + *a11++);
*a2++ = (v17 << 8) | v16 | (v18 << 16) | (v19 << 24);
}
a9 += a7;
a10 += a7;
a11 += a7;
a12 += a7;
a2 += a8;
}
return result;
}