//
// EditorUI::updatePlaybackBtn from 0x100473a00 to 0x100473b0c (268 bytes)
//
// 6 xrefs:
// > EditorUI::onPlayback @ 0x1004713a0
// > EditorUI::onPlaytest @ 0x100471568
// > EditorUI::onPause @ 0x1004718b8
// > EditorUI::songStateChanged @ 0x100477c8c
// > sub_100477C90 @ 0x100477c94
// > EditorUI::playtestStopped @ 0x100477d3c
//
// 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:05:39 +0000
//
__int64 __fastcall EditorUI::updatePlaybackBtn(__int64 a1)
{
int v2; // w21
__int64 v3; // x20
char v4; // w22
__int64 v5; // x0
bool v6; // zf
bool v7; // w23
char v8; // w9
__int16 *v9; // x21
__int64 v10; // x22
char *v11; // x1
__int64 v12; // x0
_BYTE *v13; // x0
__int64 v14; // x0
__int64 result; // x0
bool v16; // w8
v2 = *(_DWORD *)(*(_QWORD *)(a1 + 1440) + 1972LL);
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 992) + 1072LL))(*(_QWORD *)(a1 + 992));
v4 = *(_BYTE *)(a1 + 616);
v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v6 = v2 == 0;
v7 = v2 == 0;
v8 = v4 & (v2 == 0);
if ( v2 )
v9 = &word_10076F22B;
else
v9 = &word_10076F228;
if ( v6 )
v10 = 255;
else
v10 = 175;
if ( (v8 & 1) != 0 )
v11 = "GJ_stopMusicBtn_001.png";
else
v11 = "GJ_playMusicBtn_001.png";
v12 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v11);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1160LL))(v3, v12);
v13 = *(_BYTE **)(a1 + 992);
v13[408] = v7;
v14 = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)v13 + 1072LL))(v13);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v14 + 960LL))(v14, v9);
result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 992) + 912LL))(*(_QWORD *)(a1 + 992), v10);
v16 = *(_BYTE *)(a1 + 616) == 1 && *(_DWORD *)(*(_QWORD *)(a1 + 1440) + 1972LL) == 0;
*(_BYTE *)(a1 + 668) = v16;
return result;
}