//
// EditorSoundConfigInfoLayer::refreshActionButtons from 0x784ce4 to 0x784e58 (372 bytes)
//
// 8 xrefs:
// > EditorSoundConfigInfoLayer::startDownload @ 0x784e98
// > EditorSoundConfigInfoLayer::onFavorite @ 0x785220
// > EditorSoundConfigInfoLayer::onFavorite @ 0x7852ae
// > EditorSoundConfigInfoLayer::downloadEditorSoundFailed @ 0x78578a
// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x7862c6
// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x786312
// > EditorSoundConfigInfoLayer::init @ 0x788182
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x7888b0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:31 +0000
//
int __fastcall EditorSoundConfigInfoLayer::refreshActionButtons(EditorSoundConfigInfoLayer *this)
{
int v2; // r5
EditorSFXManager *v3; // r0
cocos2d::CCArray **v4; // r0
_BOOL4 v5; // r6
int v6; // r0
int v7; // r1
int v8; // r0
int v9; // r1
int v10; // r0
int v11; // r1
const char *v12; // r7
cocos2d::CCSpriteFrameCache *v13; // r0
cocos2d::CCSpriteFrameCache *v14; // r6
void (__fastcall *v15)(cocos2d::CCSpriteFrameCache *, int); // r8
cocos2d::CCSpriteFrameCache *v16; // r0
int v17; // r0
int v18; // r0
int v19; // r1
int v20; // r0
int v21; // r0
int v22; // r0
int v23; // r6
int v24; // r3
int v25; // r0
int result; // r0
int v27; // r1
v2 = *((_DWORD *)this + 187);
if ( v2 )
{
v2 = *(unsigned __int8 *)(v2 + 384);
v3 = (EditorSFXManager *)EditorSFXManager::sharedState(this);
if ( v3 )
{
v4 = (cocos2d::CCArray **)EditorSFXManager::sharedState(v3);
v5 = EditorSFXManager::getFavoriteConfig(v4, *(_DWORD *)(*((_DWORD *)this + 187) + 264)) != 0;
}
else
{
v5 = 0;
}
}
else
{
v5 = 0;
}
v6 = *((_DWORD *)this + 194);
if ( v6 )
{
if ( v2 )
v7 = *((unsigned __int8 *)this + 764) ^ 1;
else
v7 = 0;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 528))(v6, v7);
}
v8 = *((_DWORD *)this + 195);
if ( v8 )
{
if ( v2 )
v9 = *((unsigned __int8 *)this + 764) ^ 1;
else
v9 = 0;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 528))(v8, v9);
}
v10 = *((_DWORD *)this + 196);
if ( v10 )
{
v11 = v2 || v5 ? *((unsigned __int8 *)this + 764) ^ 1 : 0;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 528))(v10, v11);
v12 = v5 ? "gj_heartOn_001.png" : "gj_heartOff_001.png";
v13 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 196) + 536))(*((_DWORD *)this + 196));
v14 = v13;
if ( v13 )
{
v15 = *(void (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v13 + 580);
v16 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v13);
v17 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v16, v12);
v15(v14, v17);
}
}
v18 = *((_DWORD *)this + 199);
if ( v18 )
{
if ( v2 )
v19 = *((unsigned __int8 *)this + 764) ^ 1;
else
v19 = 0;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v18 + 528))(v18, v19);
}
v20 = *((_DWORD *)this + 197);
if ( v20 )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v20 + 528))(v20, *((unsigned __int8 *)this + 764) ^ 1);
v21 = *((_DWORD *)this + 198);
if ( v21 )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v21 + 528))(v21, *((unsigned __int8 *)this + 764) ^ 1);
v22 = *((_DWORD *)this + 200);
if ( v22 )
{
v23 = *((_DWORD *)this + 187);
if ( v23 )
{
v24 = *(_DWORD *)(v23 + 264);
v23 = v24 <= 0 ? 0 : *((unsigned __int8 *)this + 764);
if ( v24 > 0 )
v23 ^= 1u;
}
(*(void (__fastcall **)(int, int))(*(_DWORD *)v22 + 172))(v22, v23);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 200) + 528))(*((_DWORD *)this + 200), v23);
}
v25 = *((_DWORD *)this + 202);
if ( v25 )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v25 + 528))(v25, *((unsigned __int8 *)this + 764) ^ 1);
result = *((_DWORD *)this + 203);
if ( result )
{
if ( v2 )
v27 = *((unsigned __int8 *)this + 764) ^ 1;
else
v27 = 0;
return (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 528))(result, v27);
}
return result;
}