//
// sub_1000CDED0 from 0x1000cded0 to 0x1000cdf34 (100 bytes)
//
// 2 xrefs:
// > GameLevelManager::removeDelimiterChars @ 0x1000b4e80
// > GameLevelManager::removeDelimiterChars @ 0x1000b4ef4
//
// 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 10:58:52 +0000
//
unsigned __int8 *__fastcall sub_1000CDED0(void *a1, unsigned __int8 *a2, unsigned __int8 *a3)
{
unsigned __int8 *result; // x0
unsigned __int8 *v6; // x8
int v8; // w9
result = (unsigned __int8 *)memchr(a1, (char)*a3, a2 - (_BYTE *)a1);
if ( !result )
result = a2;
v6 = result + 1;
if ( result != a2 && v6 != a2 )
{
do
{
v8 = *v6;
if ( v8 != *a3 )
*result++ = v8;
++v6;
}
while ( v6 != a2 );
}
return result;
}