// // LevelInfoLayer::updateSideButtons from 0x7e6520 to 0x7e66f8 (472 bytes) // // 4 xrefs: // > LevelInfoLayer::rateLevelClosed @ 0x7e66f8 // > LevelInfoLayer::likedItem @ 0x7e9bb4 // > LevelInfoLayer::init @ 0x7eb4ac // > @ 0x74380 // // 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:54:29 +0000 // __int64 __fastcall LevelInfoLayer::updateSideButtons(GameLevelManager **this) { __int64 v2; // x0 GameLevelManager *v3; // x0 GameLevelManager *v4; // x0 __int64 result; // x0 __int64 v6; // x0 cocos2d::CCSpriteFrameCache **v7; // x20 void (__fastcall *v8)(cocos2d::CCSpriteFrameCache **, __int64); // x21 cocos2d::CCSpriteFrameCache *v9; // x0 __int64 v10; // x0 cocos2d::CCSpriteFrameCache **v11; // x20 void (__fastcall *v12)(cocos2d::CCSpriteFrameCache **, __int64); // x21 cocos2d::CCSpriteFrameCache *v13; // x0 __int64 v14; // x0 GameLevelManager *v15; // x0 cocos2d::CCSpriteFrameCache **v16; // x19 __int64 (__fastcall *v17)(cocos2d::CCSpriteFrameCache **, __int64); // x20 cocos2d::CCSpriteFrameCache *v18; // x0 __int64 v19; // x0 v2 = GameLevelManager::sharedState((GameLevelManager *)this); if ( (unsigned __int8)GameLevelManager::hasLikedItemFullCheck( v2, 1, (unsigned int)(*((_DWORD *)*(this + 63) + 82) - *((_DWORD *)*(this + 63) + 83)), 0) ) { (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 65) + 1056LL))(*(this + 65), 0); v11 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 65) + 1072LL))(*(this + 65)); v12 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v11 + 145); v13 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v11); v14 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v13, "GJ_like2Btn2_001.png"); v12(v11, v14); } v3 = *(this + 66); if ( v3 ) { v4 = (GameLevelManager *)GameLevelManager::sharedState(v3); if ( (unsigned __int8)GameLevelManager::hasRatedLevelStars( v4, *((_DWORD *)*(this + 63) + 82) - *((_DWORD *)*(this + 63) + 83)) ) { (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 66) + 1056LL))(*(this + 66), 0); v7 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 66) + 1072LL))(*(this + 66)); v8 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v7 + 145); v9 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v7); v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, "GJ_starBtn2_001.png"); v8(v7, v10); } } result = (__int64)*(this + 67); if ( result ) { v6 = GameManager::sharedState((GameManager *)result); result = (unsigned int)(*(_DWORD *)(v6 + 1032) - *(_DWORD *)(v6 + 1036) - 1); if ( (unsigned int)result > 1 ) { result = *(unsigned __int8 *)(GameManager::sharedState((GameManager *)result) + 1044); if ( !(_DWORD)result ) { v15 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)result); result = (unsigned __int8)GameLevelManager::hasRatedDemon( v15, *((_DWORD *)*(this + 63) + 82) - *((_DWORD *)*(this + 63) + 83)); if ( (_BYTE)result ) { (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 67) + 1056LL))(*(this + 67), 0); v16 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 67) + 1072LL))(*(this + 67)); v17 = *((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v16 + 145); v18 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v16); v19 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v18, "GJ_rateDiffBtn2_001.png"); return v17(v16, v19); } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source