//
// LevelInfoLayer::likedItem from 0x1402fe990 to 0x1402fe9fd (109 bytes)
//
// 5 xrefs:
// > ??> @ 0x140586cb0
// > ??> @ 0x140690f20
// > ??> @ 0x140690f34
// > ??> @ 0x140690f44
// > ??> @ 0x1406d42a4
//
// 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::likedItem(LevelInfoLayer *a1, LikeItemType a2, int a3, bool a4)
{
LevelInfoLayer *v5; // rbx
GJGameLevel *m_level; // rax
if ( a3 == *(_DWORD *)(*(_QWORD *)&a1->m_fScaleX + 328LL) - *(_DWORD *)(*(_QWORD *)&a1->m_fScaleX + 332LL) )
{
v5 = (LevelInfoLayer *)((char *)a1 - 432);
LevelInfoLayer::updateSideButtons((LevelInfoLayer *)((char *)a1 - 432));
m_level = v5->m_level;
if ( a4 )
{
++m_level->m_likes;
LevelInfoLayer::updateLabelValues(v5);
}
else
{
++m_level->m_dislikes;
LevelInfoLayer::updateLabelValues(v5);
}
}
}