//
// LevelEditorLayer::onResumePlaytest from 0x1000c6ab0 to 0x1000c6be6 (310 bytes)
//
// 2 xrefs:
// > EditorUI::onPlaytest @ 0x100008826
// > EditorUI::handleAction @ 0x10060b892
//
// 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 12:20:36 +0000
//
__int64 __fastcall LevelEditorLayer::onResumePlaytest(__int64 a1, __int64 a2)
{
__int64 v3; // rax
__int64 v4; // rdi
__int64 v5; // rsi
__int64 v6; // rdi
float v7; // xmm0_4
v3 = cocos2d::CCDirector::sharedDirector(a1, a2);
*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3) + 132) = 1;
v4 = *(_QWORD *)(a1 + 13288);
v5 = 1;
UILayer::editorPlaytest(v4, 1);
if ( !*(_BYTE *)(a1 + 14024) )
{
*(_BYTE *)(a1 + 14024) = 1;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1344LL))(a1, *(_QWORD *)(a1 + 12240));
v5 = *(_QWORD *)(a1 + 12248);
v4 = a1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1344LL))(a1, v5);
}
if ( *(_BYTE *)(a1 + 14017) == 1 )
{
v6 = cocos2d::CCDirector::sharedDirector(v4, v5);
cocos2d::CCDirector::resetSmoothFixCounter(v6);
*(_BYTE *)(cocos2d::CCDirector::sharedDirector(v6, v5) + 178) = 1;
}
v7 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3920) + 168LL))(*(_QWORD *)(a1 + 3920));
*(float *)(a1 + 14212) = v7;
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 3920) + 160LL))(
*(_QWORD *)(a1 + 3920),
fminf(v7, 0.69999999));
*(_BYTE *)(a1 + 1982) = 0;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 1464LL))(a1, *(float *)(a1 + 14224));
*(_DWORD *)(a1 + 1972) = 1;
cocos2d::CCNode::resumeSchedulerAndActions(*(_QWORD *)(a1 + 3256));
cocos2d::CCNode::pauseSchedulerAndActions(*(_QWORD *)(a1 + 3264));
*(_DWORD *)(a1 + 424) = *(_DWORD *)(a1 + 14228);
LevelEditorLayer::recreateGroups((_QWORD *)a1);
GJBaseGameLayer::optimizeMoveGroups(a1);
*(_BYTE *)(a1 + 14172) = 1;
*(_DWORD *)(a1 + 14168) = 16843009;
return GJBaseGameLayer::resumeAudio(a1);
}