//
// LevelInfoLayer::onLike from 0x7e5458 to 0x7e54d8 (128 bytes)
//
// 3 xrefs:
// > ??> @ 0x753d0
// > LevelInfoLayer::init @ 0x7eb400
// > ??> @ 0x1542f78
//
// 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:28 +0000
//
_BYTE *__fastcall LevelInfoLayer::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 + 488) )
{
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(
1,
(unsigned int)(*(_DWORD *)(*((_QWORD *)v2 + 63) + 328LL)
- *(_DWORD *)(*((_QWORD *)v2 + 63) + 332LL)),
0);
v7 = *v6;
v6[84] = (__int64)(v2 + 432);
return (_BYTE *)(*(__int64 (**)(void))(v7 + 1312))();
}
return this;
}