//
// LevelListLayer::likedItem from 0x10034ba50 to 0x10034bb13 (195 bytes)
//
// 2 xrefs:
// > sub_10034BB20 @ 0x10034bb2c
// > ??> @ 0x100b205d0
//
// 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 12:28:47 +0000
//
__int64 __fastcall LevelListLayer::likedItem(__int64 a1, double a2, __int64 a3, int a4, unsigned __int8 a5)
{
__int64 result; // rax
__int64 v7; // rax
__int64 v8; // r15
__int64 v9; // rax
__int64 v10; // rax
result = *(_QWORD *)(a1 + 912);
if ( *(_DWORD *)(result + 344) == a4 )
{
if ( *(_QWORD *)(a1 + 944) )
{
v7 = GameLevelManager::sharedState(a2);
if ( (unsigned __int8)GameLevelManager::hasLikedItemFullCheck(
v7,
4,
*(unsigned int *)(*(_QWORD *)(a1 + 912) + 344LL),
0) )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 944) + 1056LL))(*(_QWORD *)(a1 + 944), 0);
v8 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 944) + 1072LL))(*(_QWORD *)(a1 + 944));
v9 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, "GJ_like2Btn2_001.png");
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 1160LL))(v8, v10);
}
}
*(_DWORD *)(*(_QWORD *)(a1 + 912) + 356LL) += (a5 - 1) | 1;
return LevelListLayer::updateStatsArt(a1);
}
return result;
}