//
// LevelInfoLayer::onFavorite from 0x499de4 to 0x499e30 (76 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:49:44 +0000
//
int __fastcall LevelInfoLayer::onFavorite(int this, cocos2d::CCObject *a2)
{
int v2; // r3
int v3; // r4
cocos2d::CCSpriteFrameCache *v4; // r5
int (__fastcall *v5)(cocos2d::CCSpriteFrameCache *, int); // r6
cocos2d::CCSpriteFrameCache *v6; // r0
const char *v7; // r1
int v8; // r0
if ( !*(_BYTE *)(this + 356) )
{
v2 = *(_DWORD *)(this + 364);
v3 = *(unsigned __int8 *)(v2 + 736) ^ 1;
*(_BYTE *)(v2 + 736) = v3;
v4 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 536))(a2);
v5 = *(int (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v4 + 580);
v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v4);
if ( v3 )
v7 = "gj_heartOn_001.png";
else
v7 = "gj_heartOff_001.png";
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v7);
return v5(v4, v8);
}
return this;
}