//
// GameManager::removeIconDelegate from 0x4179b8 to 0x417a1c (100 bytes)
//
// 1 xrefs:
// > SimplePlayer::~SimplePlayer @ 0x50ad42
//
// 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:47:42 +0000
//
_DWORD *__fastcall GameManager::removeIconDelegate(_DWORD *this, int a2)
{
_DWORD *v2; // r7
_DWORD *i; // r5
unsigned int v5; // r6
int v6; // r4
int v7; // r3
char *v8; // r12
size_t v9; // r4
char *v10; // r4
char *v11; // r3
v2 = this + 244;
for ( i = (_DWORD *)*(this + 243); i != v2; i = this )
{
v5 = 0;
while ( 1 )
{
v6 = i[6];
v7 = i[5];
if ( v5 >= (v6 - v7) >> 2 )
break;
v8 = (char *)(v7 + 4 * v5);
if ( *(_DWORD *)(*(_DWORD *)v8 + 544) == a2 )
{
v9 = v6 - (_DWORD)(v8 + 4);
if ( v9 >> 2 )
v8 = (char *)memmove(v8, v8 + 4, v9);
v10 = &v8[v9];
while ( 1 )
{
v11 = (char *)i[6];
if ( v10 == v11 )
break;
i[6] = v11 - 4;
}
}
else
{
++v5;
}
}
this = std::__tree_next *>(i);
}
return this;
}