//
// LevelListLayer::onLike from 0xba9188 to 0xba9200 (120 bytes)
//
// 3 xrefs:
// > ??> @ 0x76708
// > LevelListLayer::init @ 0xbaf50c
// > ??> @ 0x1543018
//
// 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:51 +0000
//
_BYTE *__fastcall LevelListLayer::onLike(_BYTE *this, cocos2d::CCObject *a2)
{
_BYTE *v2; // x19
__int64 v3; // x0
int v4; // w1
GameLevelManager *v5; // x0
__int64 *v6; // x0
__int64 v7; // x2
GameLevelManager *v8; // x0
if ( !*(this + 952) )
{
v2 = this;
v3 = GameManager::sharedState((GameManager *)this);
v4 = *(_DWORD *)(v3 + 660);
v5 = (GameLevelManager *)*(unsigned int *)(v3 + 664);
if ( v4 == (_DWORD)v5 )
{
v8 = (GameLevelManager *)GameLevelManager::sharedState(v5);
GameLevelManager::updateUserScore(v8);
}
v6 = (__int64 *)LikeItemLayer::create(4, *(_DWORD *)(*((_QWORD *)v2 + 114) + 344LL), 0);
v7 = *v6;
v6[84] = (__int64)(v2 + 856);
return (_BYTE *)(*(__int64 (**)(void))(v7 + 1312))();
}
return this;
}