//
// SongOptionsLayer::onPlayback from 0x57b81c to 0x57b8ca (174 bytes)
//
// 0 xrefs:
//
// 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::onPlayback(SongOptionsLayer *this, cocos2d::CCObject *a2)
{
FMODAudioEngine *v3; // r0
_BOOL4 isMusicPlaying; // r0
FMODAudioEngine *v5; // r0
char *v6; // r0
double v7; // d8
FMODAudioEngine *v8; // r0
FMODAudioEngine *v9; // r7
char v11; // [sp+0h] [bp-14h] BYREF
char v12; // [sp+1h] [bp-13h] BYREF
char *v13; // [sp+8h] [bp-Ch]
v3 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(this);
isMusicPlaying = FMODAudioEngine::isMusicPlaying(v3, 0);
if ( isMusicPlaying )
{
v5 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)isMusicPlaying);
FMODAudioEngine::stopAllMusic(v5, 1);
}
else
{
CCTextInputNode::getString((CCTextInputNode *)&v11, *((_DWORD *)this + 131));
if ( (v11 & 1) != 0 )
v6 = v13;
else
v6 = &v12;
v7 = atof(v6);
v8 = (FMODAudioEngine *)std::string::~string((int)&v11);
v9 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v8);
(*(void (__fastcall **)(char *))(**((_DWORD **)this + 130) + 8))(&v11);
*(float *)&v7 = v7;
FMODAudioEngine::loadAndPlayMusic(v9, (int)&v11, (unsigned int)(float)(*(float *)&v7 * 1000.0), 0);
std::string::~string((int)&v11);
}
return SongOptionsLayer::updatePlaybackBtn(this);
}