// // GameStatsManager::getItemUnlockStateLite from 0x8e7ad0 to 0x8e7cf0 (544 bytes) // // 1 xrefs: // > @ 0x6c3e8 // // 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:56:53 +0000 // __int64 __fastcall GameStatsManager::getItemUnlockStateLite(__int64 a1, unsigned int a2, unsigned int a3) { __int64 v6; // x0 __int64 *v7; // x0 AchievementManager *v8; // x25 _BOOL4 isAchievementAvailable; // w22 unsigned int ItemUnlockState; // w0 cocos2d::CCString *SpecialChestKeyForItem; // x0 size_t v12; // x0 _BOOL4 isSpecialChestLiteUnlockable; // w20 unsigned int v14; // w20 int v15; // w0 size_t v17; // x2 char *CString; // [xsp+58h] [xbp+58h] __int64 v19; // [xsp+60h] [xbp+60h] BYREF size_t v20; // [xsp+68h] [xbp+68h] void *v21; // [xsp+70h] [xbp+70h] __int64 v22; // [xsp+78h] [xbp+78h] BYREF size_t v23; // [xsp+80h] [xbp+80h] void *v24; // [xsp+88h] [xbp+88h] __int64 v25[2]; // [xsp+90h] [xbp+90h] BYREF void *v26; // [xsp+A0h] [xbp+A0h] v6 = AchievementManager::sharedState(_stack_chk_guard); v7 = AchievementManager::achievementForUnlock(v6, a2, a3, &v19); v8 = (AchievementManager *)AchievementManager::sharedState((AchievementManager *)v7); v22 = 0; v23 = 0; v24 = nullptr; if ( (v19 & 1) != 0 ) { std::string::__init(&v22, v21, v20); } else { v24 = v21; v22 = v19; v23 = v20; } isAchievementAvailable = AchievementManager::isAchievementAvailable(v8, (char *)&v22); if ( (v22 & 1) != 0 ) operator delete(v24); if ( !isAchievementAvailable ) std::string::assign(&v19, &byte_11B8890); ItemUnlockState = GameStatsManager::getItemUnlockState(a1, a2, a3); if ( ItemUnlockState == 1 ) { v15 = v19 & 1; v17 = (unsigned __int8)v19 >> 1; if ( v15 ) v17 = v20; v14 = v17 != 0; } else if ( ItemUnlockState > 1 && (SpecialChestKeyForItem = (cocos2d::CCString *)GameStatsManager::getSpecialChestKeyForItem(a1, a2, a3)) != nullptr ) { CString = (char *)cocos2d::CCString::getCString(SpecialChestKeyForItem); v25[0] = 0; v25[1] = 0; v26 = nullptr; v12 = strlen(CString); std::string::__init(v25, CString, v12); isSpecialChestLiteUnlockable = GameStatsManager::isSpecialChestLiteUnlockable(a1, (__int64)v25); if ( (v25[0] & 1) != 0 ) operator delete(v26); if ( isSpecialChestLiteUnlockable ) v14 = 3; else v14 = 0; v15 = v19 & 1; } else { v14 = 0; v15 = v19 & 1; } if ( v15 ) operator delete(v21); return v14; }
GD Web Decomp Icon

GD Web Decomp

Raw Source