// // EndLevelLayer::onRestartCheckpoint from 0x140206800 to 0x140206a2b (555 bytes) // // 2 xrefs: // > EndLevelLayer::customSetup @ 0x140204fcd // > @ 0x14091b1ac // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:28:15 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall EndLevelLayer::onRestartCheckpoint(__int64 a1) { __int64 v2; // rcx __int64 v3; // rdx __int64 v4; // rcx __int64 v5; // r8 __int64 v6; // r9 cocos2d::CCEGLView *v7; // rax __int64 v8; // rcx __int64 v9; // rax __int64 v10; // r8 __int64 v11; // r9 int v12; // ecx __int64 v13; // rbx struct cocos2d::CCFiniteTimeAction *v14; // rax struct cocos2d::CCAction *v15; // rbx __int128 v16; // [rsp+30h] [rbp-28h] BYREF __int64 v17; // [rsp+40h] [rbp-18h] __int64 v18; // [rsp+48h] [rbp-10h] void *v19; // [rsp+60h] [rbp+8h] void *v20; // [rsp+60h] [rbp+8h] void *v21; // [rsp+70h] [rbp+18h] if ( !*(_BYTE *)(a1 + 619) ) { *(_BYTE *)(a1 + 619) = 1; v2 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v19 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v19); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = qword_14090BFD0; } if ( !(unsigned __int8)GameManager::getGameVariable(v2, "0024") ) { v7 = (cocos2d::CCEGLView *)cocos2d::CCEGLView::sharedOpenGLView(v4, v3, v5, v6); cocos2d::CCEGLView::showCursor(v7, 0); } v8 = qword_14090BF60; if ( !qword_14090BF60 ) { v20 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v20); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v8 = qword_14090BF60; } FMODAudioEngine::clearAllAudio(v8); v9 = *(_QWORD *)(a1 + 608); if ( *(_BYTE *)(v9 + 13024) && !*(_BYTE *)(v9 + 13025) ) PlayLayer::playPracticeMusic(); v16 = 0; *(_QWORD *)&v16 = sub_14003D460(0x20u); v17 = 16; v18 = 31; strcpy((char *)v16, "playSound_01.ogg"); v12 = qword_14090BF60; if ( !qword_14090BF60 ) { v21 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v21); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v12 = qword_14090BF60; } FMODAudioEngine::playEffect(v12, (__int64)&v16, v10, v11, 1050253722); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 920LL))(a1, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1008LL))(a1, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0); v13 = cocos2d::CCCallFunc::create(*(_QWORD *)(a1 + 608), sub_140208964); v14 = cocos2d::CCDelayTime::create(0.5); v15 = cocos2d::CCSequence::create(v14, v13, 0); (*(void (__fastcall **)(struct cocos2d::CCAction *, __int64))(*(_QWORD *)v15 + 64LL))(v15, 16); cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 608), v15); } }