//
// LevelListLayer::likedItem from 0xbabea8 to 0xbabf08 (96 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelListLayer::likedItem @ 0xbabf0c
// > ??> @ 0xc2c98
// > ??> @ 0x14dbee8
//
// This function is hookable on this platform (idp: arm, 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 13:02:52 +0000
//
__int64 __fastcall LevelListLayer::likedItem(__int64 result, __int64 a2, int a3, unsigned __int8 a4)
{
int v4; // w20
LevelListLayer *v5; // x19
int v6; // w1
v4 = a4;
if ( *(_DWORD *)(*(_QWORD *)(result + 912) + 344LL) == a3 )
{
v5 = (LevelListLayer *)result;
LevelListLayer::updateSideButtons(result);
if ( v4 )
v6 = 1;
else
v6 = -1;
*(_DWORD *)(*((_QWORD *)v5 + 114) + 356LL) += v6;
return LevelListLayer::updateStatsArt(v5);
}
return result;
}