//
// sub_DED32C from 0xded32c to 0xded430 (260 bytes)
//
// 6 xrefs:
// > sub_DEE968 @ 0xdeecb0
// > sub_DF0298 @ 0xdf0554
// > sub_DF0298 @ 0xdf0c7c
// > sub_DF0298 @ 0xdf15e8
// > sub_DF0298 @ 0xdf164c
// > sub_E22168 @ 0xe22a08
//
// 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:09:15 +0000
//
char *__fastcall sub_DED32C(char *a1)
{
const char *v1; // x19
int v2; // w0
int v3; // t1
int v4; // w0
int v5; // t1
char *v6; // x20
signed __int64 v7; // x20
size_t v8; // x21
char *v9; // x0
v1 = a1;
v2 = (unsigned __int8)*a1;
if ( v2 != 58 )
{
do
{
if ( !v2 )
break;
v3 = *(unsigned __int8 *)++v1;
v2 = v3;
}
while ( v3 != 58 );
}
if ( v2 )
{
v4 = *(unsigned __int8 *)++v1;
if ( v4 )
{
do
{
if ( !isspace(v4) )
break;
v5 = *(unsigned __int8 *)++v1;
v4 = v5;
}
while ( v5 );
}
}
v6 = strchr(v1, 13);
if ( !v6 )
{
v6 = strchr(v1, 10);
if ( !v6 )
{
v6 = strchr(v1, 0);
if ( !v6 )
return v6;
}
}
if ( v6 > v1 )
{
do
{
if ( !isspace((unsigned __int8)*v6) )
break;
--v6;
}
while ( v6 != v1 );
}
v7 = v6 - v1;
v8 = v7 + 1;
v9 = (char *)off_154A3C0(v7 + 2);
v6 = v9;
if ( !v9 )
return v6;
memcpy(v9, v1, v8);
v6[v8] = 0;
return v6;
}