//
// EditorUI::updatePlaybackBtn from 0x1003e6180 to 0x1003e628c (268 bytes)
//
// 6 xrefs:
// > EditorUI::onPlayback @ 0x1003c7824
// > EditorUI::onPlaytest @ 0x1003c79d8
// > EditorUI::onPause @ 0x1003e4244
// > EditorUI::songStateChanged @ 0x1003ee5fc
// > sub_1003EE600 @ 0x1003ee604
// > EditorUI::playtestStopped @ 0x1003ee6ac
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall EditorUI::updatePlaybackBtn(EditorUI *a1)
{
PlaybackMode m_playbackMode; // w21
__int64 v3; // x20
bool m_isPlayingMusic; // w22
cocos2d::CCSpriteFrameCache *v5; // x0
bool v6; // zf
bool v7; // w23
bool v8; // w9
__int16 *v9; // x21
__int64 v10; // x22
const char *v11; // x1
cocos2d::CCSpriteFrame *v12; // x0
CCMenuItemSpriteExtra *m_playbackBtn; // x0
__int64 v14; // x0
bool v15; // w8
m_playbackMode = a1->m_editorLayer->m_playbackMode;
v3 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_playbackBtn->getNormalImage)(a1->m_playbackBtn);
m_isPlayingMusic = a1->m_isPlayingMusic;
v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v6 = m_playbackMode == Not;
v7 = m_playbackMode == Not;
v8 = m_isPlayingMusic && m_playbackMode == Not;
if ( m_playbackMode )
v9 = &word_100647395;
else
v9 = &word_100647392;
if ( v6 )
v10 = 255;
else
v10 = 175;
if ( v8 )
v11 = "GJ_stopMusicBtn_001.png";
else
v11 = "GJ_playMusicBtn_001.png";
v12 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v11);
(*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v3 + 1144LL))(v3, v12);
m_playbackBtn = a1->m_playbackBtn;
m_playbackBtn->m_animationEnabled = v7;
v14 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))m_playbackBtn->getNormalImage)(m_playbackBtn);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v14 + 944LL))(v14, v9);
((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_playbackBtn->setOpacity)(a1->m_playbackBtn, v10);
v15 = a1->m_isPlayingMusic && a1->m_editorLayer->m_playbackMode == Not;
a1->m_playbackActive = v15;
}