//
// LevelListLayer::likedItem from 0x100246e70 to 0x100246ec4 (84 bytes)
//
// 2 xrefs:
// > sub_100246EC4 @ 0x100246ec8
// > ??> @ 0x1007cb328
//
// 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 __fastcall LevelListLayer::likedItem(LevelListLayer *a1, LikeItemType a2, int a3, bool a4)
{
_BOOL4 v4; // w20
GJLevelList *m_levelList; // x8
int m_likes; // w9
int v8; // w9
if ( a1->m_levelList->m_listID == a3 )
{
v4 = a4;
LevelListLayer::updateSideButtons(a1);
m_levelList = a1->m_levelList;
m_likes = m_levelList->m_likes;
if ( v4 )
v8 = m_likes + 1;
else
v8 = m_likes - 1;
m_levelList->m_likes = v8;
LevelListLayer::updateStatsArt(a1);
}
}