//
// EditorUI::onStopPlaytest from 0x10000c730 to 0x10000c822 (242 bytes)
//
// 3 xrefs:
// > EditorUI::onPause @ 0x10002a721
// > EditorUI::keyDown @ 0x100050dcd
// > EditorUI::init @ 0x10000a0f1
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall EditorUI::onStopPlaytest(EditorUI *a1, cocos2d::CCObject *a2)
{
float *v2; // r14
cocos2d::CCSpriteFrameCache *v3; // rax
cocos2d::CCSpriteFrame *v4; // rax
float v5; // [rsp+Ch] [rbp-14h]
float v6; // [rsp+Ch] [rbp-14h]
EditorUI::showUI(a1, 1);
if ( a1->m_isPlayingMusic )
EditorUI::onPlayback(a1, (cocos2d::CCObject *)1);
LevelEditorLayer::onStopPlaytest(a1->m_editorLayer);
EditorUI::showUI(a1, 1);
*(_QWORD *)&a1->m_playerTouchID1 = -1;
v2 = (float *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_playtestBtn->getNormalImage)(a1->m_playtestBtn);
v5 = v2[108];
v6 = (*(float (__fastcall **)(float *))(*(_QWORD *)v2 + 168LL))(v2) * v5;
v3 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v4 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v3, "GJ_playEditorBtn_001.png");
(*(void (__fastcall **)(float *, cocos2d::CCSpriteFrame *))(*(_QWORD *)v2 + 1144LL))(v2, v4);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v2 + 160LL))(v2, v6 / v2[108]);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_playtestStopBtn->setVisible)(a1->m_playtestStopBtn, 0);
EditorUI::updatePlaybackBtn(a1);
EditorUI::updateZoom(a1, a1->m_editorZoom);
}