//
// sub_669EB4 from 0x669eb4 to 0x669ef0 (60 bytes)
//
// 0 xrefs:
//
// 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
//
char *__fastcall sub_669EB4(char *result, char **a2, _DWORD *a3, int a4, int a5)
{
int v6; // r6
int v7; // r2
int v8; // lr
char *v10; // t1
_BYTE *v11; // r3
_BYTE *v12; // r5
char v13; // r4
v6 = *((_DWORD *)result + 9);
v7 = *((_DWORD *)result + 7);
v8 = 4 * a4 - (_DWORD)a2 - 4;
while ( --a5 >= 0 )
{
while ( 1 )
{
v10 = *a2++;
result = v10;
v11 = *(char **)((char *)a2 + v8 + *a3);
if ( !v7 )
break;
v12 = &v11[v7];
do
{
v13 = *result;
result += v6;
*v11++ = v13;
}
while ( v11 != v12 );
if ( --a5 < 0 )
return result;
}
}
return result;
}