//
// EditorSoundConfigInfoLayer::refreshLikeState from 0xccd704 to 0xccd87c (376 bytes)
//
// 3 xrefs:
// > EditorSoundConfigInfoLayer::likedItem @ 0xccd928
// > EditorSoundConfigInfoLayer::init @ 0xcd1cbc
// > ??> @ 0xb40e8
//
// 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:06:25 +0000
//
__int64 __fastcall EditorSoundConfigInfoLayer::refreshLikeState(EditorSoundConfigInfoLayer *this)
{
__int64 v2; // x0
GameLevelManager *v3; // x0
__int64 v4; // x0
const char *v5; // x1
cocos2d::CCSpriteFrameCache **v6; // x21
void (__fastcall *v7)(cocos2d::CCSpriteFrameCache **, __int64); // x22
cocos2d::CCSpriteFrameCache *v8; // x0
__int64 v9; // x0
__int64 v10; // x21
void (__fastcall *v11)(__int64, char *); // x22
char *v12; // x1
GameLevelManager *v14; // x0
__int64 v15; // x0
__int64 v16; // x0
char *v17; // [xsp+38h] [xbp+38h]
__int64 v18[2]; // [xsp+40h] [xbp+40h] BYREF
void *v19; // [xsp+50h] [xbp+50h]
v2 = *((_QWORD *)this + 136);
if ( !v2 )
return _stack_chk_guard;
v3 = (GameLevelManager *)*(unsigned __int8 *)(v2 + 497);
if ( (_DWORD)v3
|| (v14 = (GameLevelManager *)GameLevelManager::sharedState(v3)) != nullptr
&& (v15 = GameLevelManager::sharedState(v14),
GameLevelManager::hasLikedItemFullCheck(v15, &byte_5, *(unsigned int *)(*((_QWORD *)this + 136) + 316LL))) )
{
v4 = *((_QWORD *)this + 141);
if ( !v4 )
goto LABEL_6;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1056LL))(v4, 0);
v5 = "GJ_like2Btn2_001.png";
goto LABEL_5;
}
v16 = *((_QWORD *)this + 141);
if ( v16 )
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 1056LL))(v16, 1);
v5 = "GJ_like2Btn_001.png";
LABEL_5:
v17 = (char *)v5;
v6 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 141) + 1072LL))(*((_QWORD *)this + 141));
v7 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v6 + 145);
v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v6);
v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v17);
v7(v6, v9);
}
LABEL_6:
v10 = *((_QWORD *)this + 142);
if ( v10 )
{
v11 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v10 + 928LL);
GameToolbox::intToShortString((GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 136) + 348LL), 0, v18);
v12 = (char *)v18 + 1;
if ( (v18[0] & 1) != 0 )
v12 = (char *)v19;
v11(v10, v12);
if ( (v18[0] & 1) != 0 )
operator delete(v19);
}
return _stack_chk_guard;
}