//
// LevelListLayer::updateSideButtons from 0x14042fa60 to 0x14042fb63 (259 bytes)
//
// 3 xrefs:
// > LevelListLayer::init @ 0x14042ce11
// > LevelListLayer::likedItem @ 0x14042fa2a
// > ??> @ 0x140926c0c
//
// 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 11:32:15 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall LevelListLayer::updateSideButtons(__int64 a1)
{
__int64 v2; // rbx
unsigned int v3; // esi
__int64 *v4; // rdi
__int64 v5; // rbx
__int64 v6; // rdx
__int64 v7; // rcx
cocos2d::CCSpriteFrameCache *v8; // rax
struct cocos2d::CCSpriteFrame *v9; // rax
void *v10; // [rsp+40h] [rbp+8h]
if ( *(_QWORD *)(a1 + 960) )
{
v2 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v10 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v10);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v2 = *(_QWORD *)&qword_14090BFB0;
}
v3 = *(_DWORD *)(*(_QWORD *)(a1 + 920) + 344LL);
if ( GameLevelManager::hasLikedAccountItem(v2, 4, v3, 1u, 0)
|| GameLevelManager::hasLikedAccountItem(v2, 4, v3, 0, 0) )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 960) + 936LL))(*(_QWORD *)(a1 + 960), 0);
v4 = (__int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 960) + 952LL))(*(_QWORD *)(a1 + 960));
v5 = *v4;
v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v7, v6);
v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, "GJ_like2Btn2_001.png");
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v5 + 1008))(v4, v9);
}
}
}