//
// EndLevelLayer::onRestartCheckpoint from 0x535404 to 0x53551e (282 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:06 +0000
//
cocos2d::CCNode **__fastcall EndLevelLayer::onRestartCheckpoint(cocos2d::CCNode **this, cocos2d::CCObject *a2)
{
cocos2d::CCNode **v2; // r4
GameManager *v3; // r0
FMODAudioEngine *GameVariable; // r0
FMOD::ChannelControl **v5; // r0
PlayLayer *v6; // r0
FMODAudioEngine *v7; // r7
float v8; // r1
cocos2d::CCSequence *v9; // r5
cocos2d::CCFiniteTimeAction *v10; // r0
cocos2d::CCAction *v11; // r5
int v12[3]; // [sp+10h] [bp-14h] BYREF
v2 = this;
if ( !*((_BYTE *)this + 487) )
{
*((_BYTE *)this + 487) = 1;
v3 = (GameManager *)GameManager::sharedState((GameManager *)this);
GameVariable = (FMODAudioEngine *)GameManager::getGameVariable(v3, "0024");
if ( !GameVariable )
PlatformToolbox::hideCursor(nullptr);
v5 = (FMOD::ChannelControl **)FMODAudioEngine::sharedEngine(GameVariable);
FMODAudioEngine::clearAllAudio(v5);
v6 = v2[120];
if ( *((_BYTE *)v6 + 10784) )
{
if ( !*((_BYTE *)v6 + 10785) )
v6 = (PlayLayer *)PlayLayer::playPracticeMusic(v6);
}
memset(v12, 0, sizeof(v12));
v7 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v6);
std::string::__init(v12, "playSound_01.ogg", 0x10u);
FMODAudioEngine::playEffect(v7, (int)v12, 1065353216, 0, 1050253722);
std::string::~string((int)v12);
(*((void (__fastcall **)(cocos2d::CCNode **, _DWORD))*v2 + 165))(v2, 0);
(*((void (__fastcall **)(cocos2d::CCNode **, _DWORD))*v2 + 125))(v2, 0);
(*((void (__fastcall **)(cocos2d::CCNode **, _DWORD))*v2 + 136))(v2, 0);
(*((void (__fastcall **)(cocos2d::CCNode **, _DWORD))*v2 + 134))(v2, 0);
v9 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3F000000, v8);
v10 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v2[120], 804, 1);
v11 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v9, v10, 0);
(*(void (__fastcall **)(cocos2d::CCAction *, int))(*(_DWORD *)v11 + 36))(v11, 16);
return (cocos2d::CCNode **)cocos2d::CCNode::runAction(v2[120], v11);
}
return this;
}