//
// sub_DC0B90 from 0xdc0b90 to 0xdc0c9c (268 bytes)
//
// 2 xrefs:
// > sub_DCBC04 @ 0xdcc65c
// > sub_DCBC04 @ 0xdccbd0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:08:47 +0000
//
unsigned __int8 *__fastcall sub_DC0B90(unsigned __int8 *a1, unsigned __int8 a2)
{
unsigned __int8 *v2; // x19
int v3; // w21
__int64 v4; // x23
int v5; // w0
char *v6; // x1
unsigned __int8 v7; // w2
__int64 v9; // x23
char *v10; // x0
unsigned __int8 *v11; // x23
v2 = a1;
v3 = a2;
v4 = 0;
v5 = *a1;
v6 = nullptr;
LABEL_2:
while ( 1 )
{
v7 = byte_11AECC0[v5];
if ( (v7 & 4) != 0 )
break;
LABEL_7:
v5 = *++v2;
}
while ( 1 )
{
if ( v3 == v5 )
{
if ( v6 )
{
v9 = -v4;
v10 = &v6[v9];
v11 = &v2[v9];
memmove(v10, v6, v2 - (unsigned __int8 *)v6);
}
else
{
v11 = v2;
}
*v11 = 0;
return v2 + 1;
}
if ( (v7 & 8) == 0 )
break;
if ( v5 == 13 )
{
v5 = v2[1];
*v2 = 32;
if ( v5 == 10 )
{
if ( v6 )
memmove(&v6[-v4], v6, v2 + 1 - (unsigned __int8 *)v6);
v6 = (char *)(v2 + 2);
v5 = v2[2];
++v4;
v2 += 2;
}
else
{
++v2;
}
goto LABEL_2;
}
*v2++ = 32;
v5 = *v2;
v7 = byte_11AECC0[*v2];
if ( (v7 & 4) == 0 )
goto LABEL_7;
}
if ( v5 )
goto LABEL_7;
return nullptr;
}