//
// SongOptionsLayer::updatePlaybackBtn from 0x57b63c to 0x57b680 (68 bytes)
//
// 1 xrefs:
// > SongOptionsLayer::onPlayback @ 0x57b8a8
//
// 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:52:49 +0000
//
int __fastcall SongOptionsLayer::updatePlaybackBtn(SongOptionsLayer *this)
{
FMODAudioEngine *v1; // r4
FMODAudioEngine *v2; // r0
_BOOL4 isMusicPlaying; // r0
int (__fastcall *v4)(FMODAudioEngine *, int); // r5
cocos2d::CCSpriteFrameCache *v5; // r0
const char *v6; // r1
int v7; // r0
v1 = (FMODAudioEngine *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 132) + 536))(*((_DWORD *)this + 132));
v2 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v1);
isMusicPlaying = FMODAudioEngine::isMusicPlaying(v2, 0);
v4 = *(int (__fastcall **)(FMODAudioEngine *, int))(*(_DWORD *)v1 + 580);
if ( isMusicPlaying )
{
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)isMusicPlaying);
v6 = "GJ_stopMusicBtn_001.png";
}
else
{
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(nullptr);
v6 = "GJ_playMusicBtn_001.png";
}
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v6);
return v4(v1, v7);
}