//
// LevelInfoLayer::onFavorite from 0x3b161c to 0x3b1668 (76 bytes)
//
// 0 xrefs:
//
// 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::onFavorite(LevelInfoLayer *a1, cocos2d::CCObject *a2)
{
GJGameLevel *m_level; // r3
int v3; // r4
int v4; // r5
void (__fastcall *v5)(int, cocos2d::CCSpriteFrame *); // r6
cocos2d::CCSpriteFrameCache *v6; // r0
const char *v7; // r1
cocos2d::CCSpriteFrame *v8; // r0
if ( !a1->m_isBusy )
{
m_level = a1->m_level;
v3 = !m_level->m_levelFavorited;
m_level->m_levelFavorited = v3;
v4 = ((int (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2);
v5 = *(void (__fastcall **)(int, cocos2d::CCSpriteFrame *))(*(_DWORD *)v4 + 572);
v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
if ( v3 )
v7 = "gj_heartOn_001.png";
else
v7 = "gj_heartOff_001.png";
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v7);
v5(v4, v8);
}
}