//
// LevelInfoLayer::updateSideButtons from 0x6d9798 to 0x6d9970 (472 bytes)
//
// 4 xrefs:
// > LevelInfoLayer::rateLevelClosed @ 0x6d9970
// > LevelInfoLayer::init @ 0x6dbd20
// > LevelInfoLayer::likedItem @ 0x6ddd1c
// > ??> @ 0x53d18
//
// 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 LevelInfoLayer::updateSideButtons(LevelInfoLayer *a1)
{
GameLevelManager *v2; // x0
GameLevelManager *v3; // x0
GameManager *v4; // x0
cocos2d::CCNode *v5; // x20
void (__fastcall *v6)(cocos2d::CCNode *__hidden, float); // x21
cocos2d::CCSpriteFrameCache *v7; // x0
cocos2d::CCSpriteFrame *v8; // x0
cocos2d::CCNode *v9; // x20
void (__fastcall *setSkewY)(cocos2d::CCNode *__hidden, float); // x21
cocos2d::CCSpriteFrameCache *v11; // x0
cocos2d::CCSpriteFrame *v12; // x0
GameLevelManager *v13; // x0
cocos2d::CCNode *v14; // x19
void (__fastcall *v15)(cocos2d::CCNode *__hidden, float); // x20
cocos2d::CCSpriteFrameCache *v16; // x0
cocos2d::CCSpriteFrame *v17; // x0
v2 = GameLevelManager::sharedState();
if ( GameLevelManager::hasLikedItemFullCheck(
v2,
(LikeItemType)1,
a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed,
0,
(int)a1->m_level) )
{
a1->m_likeBtn->setEnabled(a1->m_likeBtn, 0);
v9 = a1->m_likeBtn->getNormalImage(a1->m_likeBtn);
setSkewY = v9->__vftable[1].setSkewY;
v11 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v12 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v11, "GJ_like2Btn2_001.png");
((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))setSkewY)(v9, v12);
}
if ( a1->m_starRateBtn )
{
v3 = GameLevelManager::sharedState();
if ( GameLevelManager::hasRatedLevelStars(v3, a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed) )
{
a1->m_starRateBtn->setEnabled(a1->m_starRateBtn, 0);
v5 = a1->m_starRateBtn->getNormalImage(a1->m_starRateBtn);
v6 = v5->__vftable[1].setSkewY;
v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, "GJ_starBtn2_001.png");
((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))v6)(v5, v8);
}
}
if ( a1->m_demonRateBtn )
{
v4 = GameManager::sharedState();
if ( (unsigned int)(v4->m_hasRP.random - v4->m_hasRP.seed - 1) > 1 && !GameManager::sharedState()->m_hasDRP )
{
v13 = GameLevelManager::sharedState();
if ( GameLevelManager::hasRatedDemon(v13, a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed) )
{
a1->m_demonRateBtn->setEnabled(a1->m_demonRateBtn, 0);
v14 = a1->m_demonRateBtn->getNormalImage(a1->m_demonRateBtn);
v15 = v14->__vftable[1].setSkewY;
v16 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v17 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v16, "GJ_rateDiffBtn2_001.png");
((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))v15)(v14, v17);
}
}
}
}