//
// EditorUI::updatePlaybackBtn from 0x10000bd70 to 0x10000be7c (268 bytes)
//
// 6 xrefs:
// > EditorUI::onPlayback @ 0x100008726
// > EditorUI::onPlaytest @ 0x10000890b
// > EditorUI::onPause @ 0x100008eaf
// > EditorUI::songStateChanged @ 0x100011e25
// > sub_100011E30 @ 0x100011e3c
// > EditorUI::playtestStopped @ 0x100011efb
//
// 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 12:18:50 +0000
//
bool __fastcall EditorUI::updatePlaybackBtn(__int64 a1)
{
int v2; // r14d
__int64 v3; // r12
bool v4; // zf
bool v5; // al
const char *v6; // r13
void *v7; // r15
unsigned int v8; // r14d
__int64 v9; // rax
__int64 v10; // rax
_BYTE *v11; // rdi
__int64 v12; // rax
bool result; // al
int v14; // [rsp+0h] [rbp-2Ch]
v2 = *(_DWORD *)(*(_QWORD *)(a1 + 1440) + 1972LL);
v14 = v2;
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 992) + 1072LL))(*(_QWORD *)(a1 + 992));
v4 = v2 == 0;
v5 = v2 == 0;
v6 = "GJ_stopMusicBtn_001.png";
v7 = &unk_100A038D3;
if ( !v2 )
v7 = &unk_100A038D0;
v8 = 175;
if ( v4 )
v8 = 255;
if ( !v5 )
v6 = "GJ_playMusicBtn_001.png";
if ( !*(_BYTE *)(a1 + 616) )
v6 = "GJ_playMusicBtn_001.png";
v9 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, v6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1160LL))(v3, v10);
v11 = *(_BYTE **)(a1 + 992);
v11[408] = v14 == 0;
v12 = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)v11 + 1072LL))(v11);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v12 + 960LL))(v12, v7);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 992) + 912LL))(*(_QWORD *)(a1 + 992), v8);
result = *(_BYTE *)(a1 + 616) == 1 && *(_DWORD *)(*(_QWORD *)(a1 + 1440) + 1972LL) == 0;
*(_BYTE *)(a1 + 668) = result;
return result;
}