//
// EditorUI::playtestStopped from 0x387424 to 0x3874b0 (140 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::postUpdate @ 0x3751fe
// > EditorUI::onStopPlaytest @ 0x3874da
//
// 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 EditorUI::playtestStopped(EditorUI *a1)
{
CCMenuItemSpriteExtra *m_playtestBtn; // r0
float *v3; // r4
float v4; // s16
float v5; // r0
void (__fastcall *v6)(float *, cocos2d::CCSpriteFrame *); // r6
float v7; // s16
cocos2d::CCSpriteFrameCache *v8; // r0
cocos2d::CCSpriteFrame *v9; // r0
EditorUI::showUI(a1, 1);
m_playtestBtn = a1->m_playtestBtn;
a1->m_playerTouchID1 = -1;
a1->m_playerTouchID2 = -1;
v3 = (float *)m_playtestBtn->getNormalImage(m_playtestBtn);
v4 = v3[86];
v5 = (*(float (__fastcall **)(float *))(*(_DWORD *)v3 + 84))(v3);
v6 = *(void (__fastcall **)(float *, cocos2d::CCSpriteFrame *))(*(_DWORD *)v3 + 572);
v7 = v4 * v5;
v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, "GJ_playEditorBtn_001.png");
v6(v3, v9);
(*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v3 + 80))(v3, v7 / v3[86]);
a1->m_playtestStopBtn->setVisible(a1->m_playtestStopBtn, 0);
EditorUI::updatePlaybackBtn(a1);
EditorUI::updateZoom(a1, a1->m_editorZoom);
}