//
// LevelInfoLayer::onLike from 0x1402fe8a0 to 0x1402fe984 (228 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::init @ 0x1402f8446
// > ??> @ 0x1406d4298
//
// 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
//
// Hidden C++ exception states: #wind=2
void LevelInfoLayer::onLike(LevelInfoLayer *a1, cocos2d::CCObject *a2)
{
__int64 v3; // rdx
GameLevelManager *v4; // rcx
LikeItemLayer *v5; // rax
void *v6; // [rsp+30h] [rbp+8h]
void *v7; // [rsp+30h] [rbp+8h]
if ( !a1->m_isBusy )
{
v3 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v6 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = qword_1406C2ED8;
}
if ( *(_DWORD *)(v3 + 652) == *(_DWORD *)(v3 + 656) )
{
v4 = (GameLevelManager *)qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v7 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v4 = (GameLevelManager *)qword_1406C2EC0;
}
GameLevelManager::updateUserScore(v4);
}
v5 = LikeItemLayer::create((LikeItemType)1, a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed, 0);
v5->m_likeDelegate = &a1->LikeItemDelegate;
v5->show(v5);
}
}