//
// EditorUI::playtestStopped from 0x7ce880 to 0x7ce990 (272 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::postUpdate @ 0x79b110
// > EditorUI::onStopPlaytest @ 0x7ce9e0
// > ??> @ 0xa7398
//
// This function is hookable on this platform (idp: arm, 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:54:13 +0000
//
cocos2d::CCNode *__fastcall EditorUI::playtestStopped(EditorUI *this)
{
__int64 v2; // x1
float *v3; // x0
float v4; // s8
float *v5; // x20
float v6; // s8
void (__fastcall *v7)(float *, __int64); // x22
cocos2d::CCSpriteFrameCache *v8; // x0
__int64 v9; // x0
cocos2d::CCNode *result; // x0
EditorUI::showUI((cocos2d::CCArray **)this, 1u);
v2 = *((_QWORD *)this + 125);
*((_DWORD *)this + 165) = -1;
*((_DWORD *)this + 166) = -1;
v3 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1072LL))(v2);
v4 = v3[108];
v5 = v3;
v6 = v4 * (*(float (__fastcall **)(float *))(*(_QWORD *)v3 + 168LL))(v3);
v7 = *(void (__fastcall **)(float *, __int64))(*(_QWORD *)v5 + 1160LL);
v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*(cocos2d::CCSpriteFrameCache **)v5);
v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, "GJ_playEditorBtn_001.png");
v7(v5, v9);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v5 + 160LL))(v5, v6 / v5[108]);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 126) + 344LL))(*((_QWORD *)this + 126), 0);
EditorUI::updatePlaybackBtn(this);
EditorUI::updateZoom(this, *((float *)this + 396));
result = *((cocos2d::CCNode **)this + 191);
if ( result )
{
cocos2d::CCNode::stopAllActions(result);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 191) + 1024LL))(*((_QWORD *)this + 191), 0);
return (cocos2d::CCNode *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 191) + 344LL))(
*((_QWORD *)this + 191),
0);
}
return result;
}