//
// LevelListLayer::updateSideButtons from 0x1002e2304 to 0x1002e2398 (148 bytes)
//
// 2 xrefs:
// > LevelListLayer::init @ 0x1002e1938
// > LevelListLayer::likedItem @ 0x1002e4020
//
// 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 11:02:48 +0000
//
__int64 __fastcall LevelListLayer::updateSideButtons(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x0
__int64 v3; // x19
__int64 v4; // x0
__int64 v5; // x1
if ( *(_QWORD *)(result + 944) )
{
v1 = result;
v2 = GameLevelManager::sharedState();
result = sub_1000CC360(v2, 4, *(unsigned int *)(*(_QWORD *)(v1 + 912) + 344LL), 0);
if ( (_DWORD)result )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v1 + 944) + 1056LL))(*(_QWORD *)(v1 + 944), 0);
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 944) + 1072LL))(*(_QWORD *)(v1 + 944));
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v3);
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, "GJ_like2Btn2_001.png");
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1160LL))(v3, v5);
}
}
return result;
}