//
// EditorUI::playtestStopped from 0x1401b49f0 to 0x1401b4af8 (264 bytes)
//
// 5 xrefs:
// > EditorUI::onPause @ 0x1401acda1
// > EditorUI::onStopPlaytest @ 0x1401b49dc
// > EditorUI::handleAction @ 0x1401c1ddf
// > LevelEditorLayer::postUpdate @ 0x140400ac5
// > ??> @ 0x14091a114
//
// 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
//
__int64 __fastcall EditorUI::playtestStopped(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rdi
__int64 v4; // rbx
cocos2d::CCSpriteFrameCache *v5; // rax
struct cocos2d::CCSpriteFrame *v6; // rax
__int64 result; // rax
cocos2d::CCNode *v8; // rcx
EditorUI::showUI(a1, 1u);
v2 = *(_QWORD *)(a1 + 1048);
*(_QWORD *)(a1 + 708) = -1;
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 952LL))(v2);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 168LL))(v3);
v4 = *(_QWORD *)v3;
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, "GJ_playEditorBtn_001.png");
(*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v4 + 1008))(v3, v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1056) + 336LL))(*(_QWORD *)(a1 + 1056), 0);
EditorUI::updatePlaybackBtn(a1);
result = EditorUI::updateZoom_1(a1);
v8 = *(cocos2d::CCNode **)(a1 + 1600);
if ( v8 )
{
cocos2d::CCNode::stopAllActions(v8);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 1600) + 368LL) + 40LL))(
*(_QWORD *)(a1 + 1600) + 368LL,
0);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1600) + 336LL))(*(_QWORD *)(a1 + 1600), 0);
}
return result;
}