//
// LevelListLayer::updateSideButtons from 0xba96b4 to 0xba9758 (164 bytes)
//
// 3 xrefs:
// > LevelListLayer::likedItem @ 0xbabed8
// > LevelListLayer::init @ 0xbaf990
// > ??> @ 0x6f328
//
// 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
//
__int64 __fastcall LevelListLayer::updateSideButtons(__int64 this)
{
__int64 v1; // x19
__int64 v2; // x0
cocos2d::CCSpriteFrameCache **v3; // x19
__int64 (__fastcall *v4)(cocos2d::CCSpriteFrameCache **, __int64); // x20
cocos2d::CCSpriteFrameCache *v5; // x0
__int64 v6; // x0
if ( *(_QWORD *)(this + 944) )
{
v1 = this;
v2 = GameLevelManager::sharedState((GameLevelManager *)this);
this = GameLevelManager::hasLikedItemFullCheck(v2, byte_4, *(unsigned int *)(*(_QWORD *)(v1 + 912) + 344LL));
if ( (_BYTE)this )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v1 + 944) + 1056LL))(*(_QWORD *)(v1 + 944), 0);
v3 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 944) + 1072LL))(*(_QWORD *)(v1 + 944));
v4 = *((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v3 + 145);
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v3);
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, "GJ_like2Btn2_001.png");
return v4(v3, v6);
}
}
return this;
}