//
// LevelListLayer::onLike from 0x100348fd0 to 0x100349042 (114 bytes)
//
// 1 xrefs:
// > LevelListLayer::init @ 0x100348686
//
// 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 12:28:46 +0000
//
__int64 __fastcall LevelListLayer::onLike(__int64 a1, __int64 a2, __int64 a3)
{
double v3; // xmm0_8
__int64 v4; // rax
__int64 v5; // rax
_QWORD *v6; // rax
__int64 result; // rax
if ( !*(_BYTE *)(a1 + 952) )
{
*(_QWORD *)&v3 = GameManager::sharedState(a1, a2, a3).u64[0];
if ( *(_DWORD *)(v4 + 660) == *(_DWORD *)(v4 + 664) )
{
v5 = GameLevelManager::sharedState(v3);
GameLevelManager::updateUserScore(v5);
}
v6 = (_QWORD *)LikeItemLayer::create(4, *(unsigned int *)(*(_QWORD *)(a1 + 912) + 344LL), 0, v3);
v6[84] = a1 + 856;
return (*(__int64 (__fastcall **)(_QWORD *))(*v6 + 1312LL))(v6);
}
return result;
}