//
// EditorUI::playtestStopped from 0x100477c98 to 0x100477d9c (260 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::postUpdate @ 0x100405870
// > EditorUI::onStopPlaytest @ 0x1004715f8
//
// 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 11:05:41 +0000
//
__int64 __fastcall EditorUI::playtestStopped(__int64 a1)
{
float *v2; // x20
float v3; // s8
float v4; // s8
__int64 v5; // x0
__int64 v6; // x0
__int64 result; // x0
EditorUI::showUI(a1, 1u);
*(_QWORD *)(a1 + 660) = -1;
v2 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1000) + 1072LL))(*(_QWORD *)(a1 + 1000));
v3 = v2[108];
v4 = v3 * (*(float (__fastcall **)(float *))(*(_QWORD *)v2 + 168LL))(v2);
v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, "GJ_playEditorBtn_001.png");
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v2 + 1160LL))(v2, v6);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v2 + 160LL))(v2, v4 / v2[108]);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1008) + 344LL))(*(_QWORD *)(a1 + 1008), 0);
EditorUI::updatePlaybackBtn(a1);
EditorUI::updateZoom_1(a1, *(float *)(a1 + 1584));
result = *(_QWORD *)(a1 + 1528);
if ( result )
{
cocos2d::CCNode::stopAllActions(result);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1528) + 1024LL))(*(_QWORD *)(a1 + 1528), 0);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1528) + 344LL))(*(_QWORD *)(a1 + 1528), 0);
}
return result;
}