//
// LevelInfoLayer::likedItem from 0x140424080 to 0x1404240ec (108 bytes)
//
// 2 xrefs:
// > ??> @ 0x14078c560
// > ??> @ 0x140926924
//
// 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:10 +0000
//
__int64 __fastcall LevelInfoLayer::likedItem(__int64 a1, __int64 a2, int a3, char a4)
{
__int64 result; // rax
__int64 v5; // rbx
__int64 v7; // rax
result = *(_QWORD *)(a1 + 72);
v5 = a1 - 432;
if ( a3 == *(_DWORD *)(result + 328) - *(_DWORD *)(result + 332) )
{
LevelInfoLayer::updateSideButtons(a1 - 432);
v7 = *(_QWORD *)(v5 + 504);
if ( a4 )
{
++*(_DWORD *)(v7 + 964);
return LevelInfoLayer::updateLabelValues(v5);
}
else
{
++*(_DWORD *)(v7 + 968);
return LevelInfoLayer::updateLabelValues(v5);
}
}
return result;
}