//
// sub_742448 from 0x742448 to 0x7424ec (164 bytes)
//
// 2 xrefs:
// > sub_7424F0 @ 0x742562
// > sub_7424F0 @ 0x74257e
//
// 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
//
unsigned __int8 *__fastcall sub_742448(unsigned __int8 *result, char *a2, int a3)
{
char *v3; // r7
unsigned __int8 *v4; // r9
char *i; // r4
char *v6; // r0
unsigned int v7; // r5
int v8; // r2
unsigned int v9; // r3
bool v10; // cc
unsigned __int8 *v11; // [sp+4h] [bp-10h] BYREF
unsigned __int8 *v12; // [sp+8h] [bp-Ch] BYREF
v3 = &a2[a3];
v4 = result;
for ( i = a2; i < v3 && *i != 10; i = (char *)v7 )
{
v6 = (char *)memchr(i, 44, v3 - i);
v7 = (unsigned int)(v6 ? v6 : v3);
result = sub_74222C((unsigned __int8 *)i, v7, 10, &v11);
if ( !result )
break;
v12 = v11;
if ( (unsigned int)result < v7 && *result == 45 )
{
result = sub_74222C(result + 1, v7, 10, &v12);
if ( !result )
break;
}
v9 = (unsigned int)v11;
result = v12;
while ( (int)v9 <= (int)result )
{
v10 = v9 > 0x1F;
if ( v9 <= 0x1F )
v8 = 1 << v9;
++v9;
if ( !v10 )
{
v8 |= *(_DWORD *)v4;
*(_DWORD *)v4 = v8;
}
}
if ( v7 < (unsigned int)v3 )
++v7;
}
return result;
}