//
// LevelInfoLayer::onFavorite from 0x14041eab0 to 0x14041eb4d (157 bytes)
//
// 4 xrefs:
// > LevelInfoLayer::init @ 0x14041debd
// > ??> @ 0x1408c8d44
// > ??> @ 0x1408c8d54
// > ??> @ 0x140926750
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:32:08 +0000
//
void __fastcall LevelInfoLayer::onFavorite(__int64 a1, __int64 a2)
{
__int64 v2; // rcx
char v3; // bp
const char *v4; // rbx
__int64 v5; // rdx
__int64 v6; // rcx
__int64 *v7; // rsi
__int64 v8; // rdi
cocos2d::CCSpriteFrameCache *v9; // rax
struct cocos2d::CCSpriteFrame *v10; // rax
if ( !*(_BYTE *)(a1 + 488) )
{
v2 = *(_QWORD *)(a1 + 504);
v3 = *(_BYTE *)(v2 + 984);
*(_BYTE *)(v2 + 984) = v3 == 0;
v4 = "gj_heartOff_001.png";
v7 = (__int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 952LL))(a2);
v8 = *v7;
if ( !v3 )
v4 = "gj_heartOn_001.png";
v9 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6, v5);
v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, v4);
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v8 + 1008))(v7, v10);
}
}