//
// LevelInfoLayer::onFavorite from 0x1002c26b0 to 0x1002c2723 (115 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::init @ 0x1002becf8
//
// 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 LevelInfoLayer::onFavorite(LevelInfoLayer *a1, cocos2d::CCObject *a2)
{
GJGameLevel *m_level; // rax
bool m_levelFavorited; // r14
__int64 v4; // rbx
cocos2d::CCSpriteFrameCache *v5; // rax
const char *v6; // rsi
cocos2d::CCSpriteFrame *v7; // rax
if ( !a1->m_isBusy )
{
m_level = a1->m_level;
m_levelFavorited = m_level->m_levelFavorited;
m_level->m_levelFavorited = !m_levelFavorited;
v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2);
v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v6 = "gj_heartOn_001.png";
if ( m_levelFavorited )
v6 = "gj_heartOff_001.png";
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v6);
(*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v4 + 1144LL))(v4, v7);
}
}