//
// LevelInfoLayer::likedItem from 0x7e9b7c to 0x7e9bd8 (92 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelInfoLayer::likedItem @ 0x7e9bdc
// > ??> @ 0x64f78
// > ??> @ 0x143c120
//
// 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 12:54:30 +0000
//
__int64 __fastcall LevelInfoLayer::likedItem(__int64 result, __int64 a2, int a3, unsigned __int8 a4)
{
int v4; // w20
LevelInfoLayer *v5; // x19
v4 = a4;
if ( a3 == *(_DWORD *)(*(_QWORD *)(result + 504) + 328LL) - *(_DWORD *)(*(_QWORD *)(result + 504) + 332LL) )
{
v5 = (LevelInfoLayer *)result;
LevelInfoLayer::updateSideButtons((GameLevelManager **)result);
if ( v4 )
return LevelInfoLayer::incrementLikes(v5);
else
return LevelInfoLayer::incrementDislikes(v5);
}
return result;
}