// // GameManager::unloadIcon from 0x729028 to 0x729324 (764 bytes) // // 4 xrefs: // > GameManager::unloadIcons @ 0x729400 // > GameManager::loadIcon @ 0x7295e4 // > GameManager::finishedLoadingIconAsync @ 0x72990c // > @ 0x86ff8 // // 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:32 +0000 // __int64 __fastcall GameManager::unloadIcon(__int64 **this, int a2, int a3, int a4) { __int64 v7; // x0 __int64 **v8; // x22 __int64 v9; // x0 __int64 *v10; // x28 __int64 v11; // x27 __int64 v12; // x2 __int64 v13; // x20 __int64 v14; // x0 _QWORD *v15; // x0 cocos2d::CCTextureCache *v17; // x0 cocos2d::CCTextureCache *v18; // x0 char *v19; // x1 int v20[3]; // [xsp+6Ch] [xbp+6Ch] BYREF int v21; // [xsp+7Ch] [xbp+7Ch] BYREF int *v22; // [xsp+80h] [xbp+80h] BYREF __int64 v23; // [xsp+88h] [xbp+88h] BYREF size_t v24; // [xsp+90h] [xbp+90h] void *v25; // [xsp+98h] [xbp+98h] __int64 v26; // [xsp+A0h] [xbp+A0h] BYREF size_t v27; // [xsp+A8h] [xbp+A8h] char *v28; // [xsp+B0h] [xbp+B0h] v20[0] = a4; if ( a2 > 0 ) { v21 = GameManager::keyForIcon((GameManager *)this, a2, a3); v22 = &v21; v7 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>( this + 145, &v21, (__int64)&unk_1122210, &v22); --*(_DWORD *)(v7 + 32); if ( a2 == 1 ) { v22 = &v21; if ( *(int *)(std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>( this + 145, &v21, (__int64)&unk_1122210, &v22) + 32) <= 0 ) { v22 = &v21; *(_DWORD *)(std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>( this + 145, &v21, (__int64)&unk_1122210, &v22) + 32) = 1; } } v22 = &v21; if ( *(int *)(std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>( this + 145, &v21, (__int64)&unk_1122210, &v22) + 32) <= 0 ) { GameManager::sheetNameForIcon(a2, a3, &v23); v26 = 0; v27 = 0; v28 = nullptr; if ( (v23 & 1) != 0 ) { std::string::__init(&v26, v25, v24); } else { v28 = (char *)v25; v26 = v23; v27 = v24; } v17 = (cocos2d::CCTextureCache *)std::string::append((__int64)&v26, ".png", 4u); v18 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v17); v19 = (char *)&v26 + 1; if ( (v26 & 1) != 0 ) v19 = v28; cocos2d::CCTextureCache::removeTextureForKey(v18, v19); if ( (v26 & 1) != 0 ) operator delete(v28); if ( (v23 & 1) != 0 ) operator delete(v25); } v8 = this + 148; v22 = v20; v9 = std::__tree>,std::__map_value_compare>,std::less,true>,std::allocator>>>::__emplace_unique_key_args,std::tuple<>>( v8, v20, (__int64)&unk_1122210, &v22); v10 = *(__int64 **)(v9 + 48); v11 = v9; v12 = v9 + 48; if ( v10 ) { v13 = v9 + 48; v14 = *(_QWORD *)(v9 + 48); do { while ( *(_DWORD *)(v14 + 28) >= a3 ) { v13 = v14; v14 = *(_QWORD *)v14; if ( !v14 ) goto LABEL_8; } v14 = *(_QWORD *)(v14 + 8); } while ( v14 ); LABEL_8: if ( v12 != v13 && *(_DWORD *)(v13 + 28) <= a3 ) { v15 = std::__tree_next *>((_QWORD *)v13); if ( *(_QWORD *)(v11 + 40) == v13 ) *(_QWORD *)(v11 + 40) = v15; --*(_QWORD *)(v11 + 56); std::__tree_remove *>(v10, (__int64 *)v13); operator delete((void *)v13); } } v22 = v20; if ( !*(_QWORD *)(std::__tree>,std::__map_value_compare>,std::less,true>,std::allocator>>>::__emplace_unique_key_args,std::tuple<>>( v8, v20, (__int64)&unk_1122210, &v22) + 56) ) std::__tree>,std::__map_value_compare>,std::less,true>,std::allocator>>>::__erase_unique( v8, v20); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source