//
// SongOptionsLayer::updatePlaybackBtn from 0x100145aac to 0x100145b18 (108 bytes)
//
// 1 xrefs:
// > SongOptionsLayer::onPlayback @ 0x100145a78
//
// 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 SongOptionsLayer::updatePlaybackBtn(SongOptionsLayer *a1)
{
__int64 v1; // x19
FMODAudioEngine *v2; // x0
_BOOL4 isMusicPlaying_1; // w20
cocos2d::CCSpriteFrameCache *v4; // x0
const char *v5; // x1
cocos2d::CCSpriteFrame *v6; // x1
v1 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_playbackButton->getNormalImage)(a1->m_playbackButton);
v2 = FMODAudioEngine::sharedEngine();
isMusicPlaying_1 = FMODAudioEngine::isMusicPlaying_1(v2, 0);
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
if ( isMusicPlaying_1 )
v5 = "GJ_stopMusicBtn_001.png";
else
v5 = "GJ_playMusicBtn_001.png";
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, v5);
(*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v1 + 1144LL))(v1, v6);
}