//
// LevelListLayer::updateSideButtons from 0x1002451c8 to 0x10024525c (148 bytes)
//
// 2 xrefs:
// > LevelListLayer::init @ 0x100244874
// > LevelListLayer::likedItem @ 0x100246e94
//
// 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 __fastcall LevelListLayer::updateSideButtons(LevelListLayer *a1)
{
GameLevelManager *v2; // x0
int v3; // w4
__int64 v4; // x19
cocos2d::CCSpriteFrameCache *v5; // x0
cocos2d::CCSpriteFrame *v6; // x1
if ( a1->m_likeButton )
{
v2 = GameLevelManager::sharedState();
if ( GameLevelManager::hasLikedItemFullCheck(v2, (LikeItemType)4, a1->m_levelList->m_listID, 0, v3) )
{
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_likeButton->setEnabled)(a1->m_likeButton, 0);
v4 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_likeButton->getNormalImage)(a1->m_likeButton);
v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, "GJ_like2Btn2_001.png");
(*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v4 + 1144LL))(v4, v6);
}
}
}