//
// GameLevelManager::removeDelimiterChars from 0x4acc00 to 0x4accd0 (208 bytes)
//
// 13 xrefs:
// > GameLevelManager::updateDescription @ 0x4ba8f8
// > GameLevelManager::uploadComment @ 0x4cce4c
// > GameLevelManager::uploadComment @ 0x4cce66
// > GameLevelManager::uploadLevelList @ 0x4d0350
// > GameLevelManager::uploadLevelList @ 0x4d036a
// > GameLevelManager::uploadLevelList @ 0x4d0384
// > GameLevelManager::uploadEditorSoundConfig @ 0x4d0914
// > GameLevelManager::uploadEditorSoundConfig @ 0x4d0930
// > GameLevelManager::updateUserScore @ 0x4d640c
// > GameLevelManager::uploadLevel @ 0x4d7636
// > GameLevelManager::uploadLevel @ 0x4d7650
// > GameLevelManager::uploadLevel @ 0x4d766a
// > GJMultiplayerManager::uploadComment @ 0x6423c0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:49:59 +0000
//
size_t __fastcall GameLevelManager::removeDelimiterChars(int a1, unsigned __int8 *a2, int a3)
{
size_t v4; // r7
size_t result; // r0
int v6; // r3
unsigned __int8 *v7; // r0
int v8; // r3
unsigned __int8 *v9; // r0
int v10; // r3
unsigned __int8 *v11; // r2
int v12; // r0
unsigned __int8 *v13; // r1
int v14; // r3
unsigned __int8 *v15; // r3
unsigned __int8 *v16; // r1
size_t v17; // r7
int v18; // r3
unsigned __int8 *v19; // r0
int v20; // r3
unsigned __int8 *v21; // r0
int v22; // r3
unsigned __int8 *v23; // r2
int v24; // r0
unsigned __int8 *v25; // r1
int v26; // r3
unsigned __int8 *v27; // r3
unsigned __int8 *v28; // r1
_DWORD v29[3]; // [sp+0h] [bp-Ch] BYREF
v29[0] = a1;
v29[1] = a2;
v29[2] = a3;
if ( a3 )
{
v17 = 0;
v29[0] = 2325630;
while ( 1 )
{
result = strlen((const char *)v29);
if ( v17 >= result )
break;
v18 = *a2;
if ( (v18 & 1) != 0 )
{
v19 = *((unsigned __int8 **)a2 + 2);
v20 = *((_DWORD *)a2 + 1);
}
else
{
v19 = a2 + 1;
v20 = v18 >> 1;
}
v21 = std::remove,char>(v19, &v19[v20], (unsigned __int8 *)v29 + v17);
v22 = *a2;
v23 = v21;
v24 = v22 & 1;
if ( (v22 & 1) != 0 )
{
v25 = *((unsigned __int8 **)a2 + 2);
v26 = *((_DWORD *)a2 + 1);
}
else
{
v25 = a2 + 1;
v26 = v22 >> 1;
}
v27 = &v25[v26];
if ( v24 )
v28 = *((unsigned __int8 **)a2 + 2);
else
v28 = a2 + 1;
++v17;
std::string::erase(a2, v23 - v28, v27 - v23);
}
}
else
{
v4 = 0;
v29[0] = 2325562;
while ( 1 )
{
result = strlen((const char *)v29);
if ( v4 >= result )
break;
v6 = *a2;
if ( (v6 & 1) != 0 )
{
v7 = *((unsigned __int8 **)a2 + 2);
v8 = *((_DWORD *)a2 + 1);
}
else
{
v7 = a2 + 1;
v8 = v6 >> 1;
}
v9 = std::remove,char>(v7, &v7[v8], (unsigned __int8 *)v29 + v4);
v10 = *a2;
v11 = v9;
v12 = v10 & 1;
if ( (v10 & 1) != 0 )
{
v13 = *((unsigned __int8 **)a2 + 2);
v14 = *((_DWORD *)a2 + 1);
}
else
{
v13 = a2 + 1;
v14 = v10 >> 1;
}
v15 = &v13[v14];
if ( v12 )
v16 = *((unsigned __int8 **)a2 + 2);
else
v16 = a2 + 1;
++v4;
std::string::erase(a2, v11 - v16, v15 - v11);
}
}
return result;
}