// // EditorUI::onPlayback from 0x1401b4170 to 0x1401b4630 (1216 bytes) // // 6 xrefs: // > EditorUI::onPause @ 0x1401acd8d // > EditorUI::onStopPlaytest @ 0x1401b49c3 // > EditorUI::handleAction @ 0x1401c1dcb // > EditorUI::handleEditorAction @ 0x1401c2b8b // > EditorUI::init @ 0x1401aab45 // > @ 0x14091a0cc // // 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:27:57 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall EditorUI::onPlayback(__int64 a1) { __int64 v2; // rax char v3; // r12 __int64 v4; // rbx __int64 v5; // rax _QWORD *v6; // rbx __int64 v7; // rcx _QWORD *v8; // rcx __int64 v9; // rbx __int64 v10; // rax int v11; // r14d int v12; // r15d _DWORD *v13; // rcx __int64 v14; // rdx __int64 v15; // rcx __int64 v16; // rax int v17; // eax __int64 v18; // rbx __int64 v19; // rdx char v20; // di int v21; // esi __int64 v22; // rbx const struct cocos2d::CCPoint *v23; // rax int v24; // eax double v25; // xmm0_8 __int64 v26; // rbx __int64 v27; // rdx char v28; // di int v29; // esi __int64 v30; // rbx const struct cocos2d::CCPoint *v31; // rax int v32; // eax double v33; // xmm0_8 int v34; // xmm1_4 _DWORD *v35; // rcx __int64 v36; // rcx _BYTE v37[88]; // [rsp+50h] [rbp-58h] BYREF void *v38; // [rsp+B0h] [rbp+8h] BYREF char v39; // [rsp+C0h] [rbp+18h] BYREF char v40; // [rsp+C8h] [rbp+20h] BYREF if ( !*(_BYTE *)(a1 + 1660) ) { v2 = *(_QWORD *)(a1 + 1512); if ( !*(_DWORD *)(v2 + 2204) ) { *(_DWORD *)(v2 + 13220) = 2; *(_BYTE *)(*(_QWORD *)(a1 + 1512) + 2128LL) = 0; v3 = 0; if ( !*(_BYTE *)(a1 + 664) ) { v3 = 1; GJBaseGameLayer::pauseAudio(); } v4 = *(_QWORD *)(a1 + 1512); *(_DWORD *)(v4 + 15544) = 0; sub_1403547B0(v4 + 1976); sub_1403546E0(v4 + 2040); v5 = *(_QWORD *)(v4 + 2104); if ( v5 != *(_QWORD *)(v4 + 2112) ) *(_QWORD *)(v4 + 2112) = v5; *(_BYTE *)(v4 + 15665) = 1; if ( *(_BYTE *)(a1 + 664) ) { v6 = (_QWORD *)qword_14090BF60; if ( !qword_14090BF60 ) { v38 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v38); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v6 = (_QWORD *)qword_14090BF60; } v7 = v6[69]; if ( v7 ) FMOD::ChannelControl::stop(v7); sub_14003EB60(v6 + 137); sub_14003EB60(v6 + 145); sub_14003EB60(v6 + 153); v8 = (_QWORD *)qword_14090BF60; if ( !qword_14090BF60 ) { v38 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v38); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v8 = (_QWORD *)qword_14090BF60; } FMODAudioEngine::stopAllEffects(v8); *(_BYTE *)(*(_QWORD *)(a1 + 1512) + 14840LL) = 1; } else { v9 = *(_QWORD *)(*(_QWORD *)(a1 + 1512) + 14944LL); *(_WORD *)(v9 + 632) = 1; LevelTools::sortSpeedObjects(*(_QWORD *)(v9 + 592), *(_QWORD *)(v9 + 520)); v10 = sub_14003F4F0((__int64)v37, v9 + 528); DrawGridLayer::loadTimeMarkers(v9, v10); cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(*(_QWORD *)(a1 + 1512) + 4296LL), &v38, &dword_14090A6E8); if ( (float)(*(float *)&v38 - -30.0) < 50.0 ) LODWORD(v38) = 0; v11 = 0; v12 = 0; v13 = *(_DWORD **)(*(_QWORD *)(a1 + 1512) + 15520LL); if ( v13 ) { if ( v13[259] == 31 ) (*(void (__fastcall **)(_DWORD *, char *))(*(_QWORD *)v13 + 1208LL))(v13, &v39); else cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, (const struct cocos2d::CCPoint *)(v13 + 450)); cocos2d::CCPoint::operator=(&v38, &v39); v14 = *(_QWORD *)(a1 + 1512); v15 = *(_QWORD *)(v14 + 15520); if ( v15 ) { if ( *(_DWORD *)(v15 + 1036) == 31 ) { v16 = *(_QWORD *)(v15 + 1856); v11 = *(_DWORD *)(v16 + 372); v12 = *(_DWORD *)(v16 + 376); v17 = v11; } else { v11 = *(_DWORD *)(v15 + 1788); v17 = v11; v12 = *(_DWORD *)(v15 + 1792); } } else { v17 = 0; } *(_DWORD *)(v14 + 15544) = v17; } v18 = *(_QWORD *)(*(_QWORD *)(a1 + 1512) + 14944LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, (const struct cocos2d::CCPoint *)&v38); v19 = *(_QWORD *)(*(_QWORD *)(v18 + 520) + 3528LL); v20 = *(_BYTE *)(v19 + 341); v21 = *(_DWORD *)(v19 + 332); v22 = *(_QWORD *)(v18 + 592); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v40, v23); v25 = LevelTools::timeForPos(v24, v22, v21, v11, v12, 0, v20, 1, 0, 0); *(_DWORD *)(a1 + 720) = LODWORD(v25); v26 = *(_QWORD *)(*(_QWORD *)(a1 + 1512) + 14944LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, (const struct cocos2d::CCPoint *)&v38); v27 = *(_QWORD *)(*(_QWORD *)(v26 + 520) + 3528LL); v28 = *(_BYTE *)(v27 + 341); v29 = *(_DWORD *)(v27 + 332); v30 = *(_QWORD *)(v26 + 592); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v40, v31); v33 = LevelTools::timeForPos(v32, v30, v29, v11, v12, 0, v28, 0, 0, 0); *(_DWORD *)(a1 + 724) = LODWORD(v33); v34 = *(_DWORD *)(a1 + 720); v35 = *(_DWORD **)(*(_QWORD *)(a1 + 1512) + 14944LL); v35[124] = v34; v35[125] = v34; v35[126] = v34; } *(_BYTE *)(a1 + 664) = *(_BYTE *)(a1 + 664) == 0; EditorUI::updatePlaybackBtn(a1); if ( *(_BYTE *)(a1 + 664) ) { v36 = qword_14090BF60; if ( !qword_14090BF60 ) { v38 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v38); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v36 = qword_14090BF60; } FMODAudioEngine::updateReverb(v36, 0, 0); LevelEditorLayer::updateGameObjects(*(_QWORD *)(a1 + 1512)); GJBaseGameLayer::processQueuedAudioTriggers(*(_QWORD *)(a1 + 1512)); } if ( v3 ) *(_BYTE *)(*(_QWORD *)(a1 + 1512) + 14438LL) = 1; } } }