//
// EditorUI::updatePlaybackBtn from 0x4822c8 to 0x48236a (162 bytes)
//
// 5 xrefs:
// > EditorUI::onPlayback @ 0x4824f0
// > EditorUI::songStateChanged @ 0x482548
// > EditorUI::onPlaytest @ 0x489f42
// > EditorUI::playtestStopped @ 0x489fea
// > EditorUI::onPause @ 0x48a0ea
//
// 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:49:23 +0000
//
int __fastcall EditorUI::updatePlaybackBtn(EditorUI *this)
{
_BOOL4 v2; // r5
cocos2d::CCSpriteFrameCache *v3; // r0
cocos2d::CCSpriteFrameCache *v4; // r6
void (__fastcall *v5)(cocos2d::CCSpriteFrameCache *, int); // r7
cocos2d::CCSpriteFrameCache *v6; // r0
const char *v7; // r1
int v8; // r0
int v9; // r0
__int16 *v10; // r1
int v11; // r1
int result; // r0
char v13; // r3
v2 = *(_DWORD *)(*((_DWORD *)this + 236) + 1428) == 0;
v3 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 179) + 536))(*((_DWORD *)this + 179));
v4 = v3;
v5 = *(void (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v3 + 580);
if ( *((_BYTE *)this + 456) && v2 )
{
v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v3);
v7 = "GJ_stopMusicBtn_001.png";
}
else
{
v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v3);
v7 = "GJ_playMusicBtn_001.png";
}
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v7);
v5(v4, v8);
*(_BYTE *)(*((_DWORD *)this + 179) + 320) = v2;
v9 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 179) + 536))(*((_DWORD *)this + 179));
if ( v2 )
v10 = word_BEBDD8;
else
v10 = (__int16 *)&byte_BEBE3C;
(*(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v9 + 480))(v9, v10);
if ( v2 )
v11 = 255;
else
v11 = 175;
result = (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 179) + 456))(*((_DWORD *)this + 179), v11);
v13 = *((_BYTE *)this + 456);
if ( v13 )
v13 = *(_DWORD *)(*((_DWORD *)this + 236) + 1428) == 0;
*((_BYTE *)this + 492) = v13;
return result;
}