//
// sub_DC3EA8 from 0xdc3ea8 to 0xdc3f8c (228 bytes)
//
// 2 xrefs:
// > sub_DCBC04 @ 0xdcc65c
// > sub_DCBC04 @ 0xdccc58
//
// 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:49 +0000
//
unsigned __int8 *__fastcall sub_DC3EA8(unsigned __int8 *a1, unsigned __int8 a2)
{
int v3; // w21
int v4; // w1
unsigned __int8 *v5; // x0
void *v7; // [xsp+48h] [xbp+48h] BYREF
__int64 v8; // [xsp+50h] [xbp+50h]
v3 = a2;
v7 = nullptr;
v8 = 0;
while ( 1 )
{
v4 = *a1;
if ( (byte_11AECC0[*a1] & 2) == 0 )
goto LABEL_6;
if ( v4 == v3 )
break;
if ( v4 == 38 )
{
a1 = sub_DC38F4(a1, (const void **)&v7);
}
else
{
if ( !*a1 )
return nullptr;
LABEL_6:
++a1;
}
}
if ( v7 )
{
memmove((char *)v7 - v8, v7, a1 - (_BYTE *)v7);
v5 = &a1[-v8];
}
else
{
v5 = a1;
}
*v5 = 0;
return a1 + 1;
}