//
// GameManager::addIconDelegate from 0x720d38 to 0x720de0 (168 bytes)
//
// 2 xrefs:
// > GameManager::loadIconAsync @ 0x7299ec
// > ??> @ 0xa3870
//
// 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 12:52:23 +0000
//
__int64 __fastcall GameManager::addIconDelegate(__int64 **this, cocos2d::CCObject *a2, int a3)
{
__int64 v3; // x0
cocos2d::CCObject **v4; // x1
int v6; // [xsp+24h] [xbp+24h] BYREF
cocos2d::CCObject *v7; // [xsp+28h] [xbp+28h] BYREF
int *v8; // [xsp+40h] [xbp+40h] BYREF
v6 = a3;
v7 = a2;
v8 = &v6;
v3 = std::__tree>,std::__map_value_compare>,std::less,true>,std::allocator>>>::__emplace_unique_key_args,std::tuple<>>(
this + 157,
&v6,
(__int64)&unk_1122210,
&v8);
v4 = *(cocos2d::CCObject ***)(v3 + 48);
if ( v4 == *(cocos2d::CCObject ***)(v3 + 56) )
{
std::vector::__push_back_slow_path(v3 + 40, &v7);
}
else
{
if ( v4 )
{
*v4 = v7;
v4 = *(cocos2d::CCObject ***)(v3 + 48);
}
*(_QWORD *)(v3 + 48) = v4 + 1;
}
return _stack_chk_guard;
}