//
// GameManager::finishedLoadingIconAsync from 0x32973c to 0x3297e4 (168 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GameManager::finishedLoadingIconAsync(GameManager *a1, cocos2d::CCObject *a2)
{
unsigned int v3; // r4
int v4; // r0
int v5; // r2
int v6; // r2
int *v7; // r0
int v8; // r2
int v9; // r3
std::map> *p_m_iconDelegates; // r0
SimplePlayer *v11; // r0
_DWORD *v12; // r0
int v13; // r1
int v14; // r2
GameManager *v15; // [sp+0h] [bp-10h] BYREF
int v16; // [sp+4h] [bp-Ch] BYREF
int v17; // [sp+8h] [bp-8h] BYREF
v15 = a1;
v16 = (int)a2;
if ( a2 )
{
v3 = 0;
v4 = a2->getTag(a2);
v16 = 0;
v17 = 0;
v15 = (GameManager *)v4;
GameManager::iconAndTypeForKey(a1, v4, &v16, &v17);
GameManager::loadIcon(a1, v16, v17, -1);
*(_BYTE *)std::map::operator[](&a1->m_isIconBeingLoaded.compare.pad, &v15, v5) = 0;
while ( 1 )
{
v7 = (int *)std::map>::operator[](&a1->m_iconDelegates.compare.pad, &v15, v6);
v8 = *v7;
v9 = v7[1];
p_m_iconDelegates = &a1->m_iconDelegates;
if ( v3 >= (v9 - v8) >> 2 )
break;
v11 = *(SimplePlayer **)(*(_DWORD *)std::map>::operator[](
p_m_iconDelegates,
&v15,
v8)
+ 4 * v3++);
SimplePlayer::iconFinishedLoading(v11, v16, (IconType)v17);
}
v12 = (_DWORD *)std::map>::operator[](p_m_iconDelegates, &v15, v8);
v13 = v16;
v14 = v17;
v12[1] = *v12;
GameManager::unloadIcon(a1, v13, v14, -1);
}
}