//
// EditorUI::playtestStopped from 0x100011e50 to 0x100011f8e (318 bytes)
//
// 3 xrefs:
// > EditorUI::onStopPlaytest @ 0x10000899e
// > EditorUI::onPause @ 0x100008ea7
// > LevelEditorLayer::postUpdate @ 0x1000c753c
//
// 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 12:18:52 +0000
//
__int64 __fastcall EditorUI::playtestStopped(__int64 a1, __int64 a2, __int64 a3)
{
float *v3; // r14
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rax
__int64 result; // rax
_BYTE v8[8]; // [rsp+Ch] [rbp-24h] BYREF
float v9[2]; // [rsp+14h] [rbp-1Ch] BYREF
float v10; // [rsp+1Ch] [rbp-14h]
EditorUI::showUI(a1, 1, a3);
*(_QWORD *)(a1 + 660) = -1;
v3 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1000) + 1072LL))(*(_QWORD *)(a1 + 1000));
v10 = v3[108];
v10 = (*(float (__fastcall **)(float *))(*(_QWORD *)v3 + 168LL))(v3) * v10;
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, "GJ_playEditorBtn_001.png");
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v3 + 1160LL))(v3, v5);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v3 + 160LL))(v3, v10 / v3[108]);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1008) + 344LL))(*(_QWORD *)(a1 + 1008), 0);
EditorUI::updatePlaybackBtn(a1);
v10 = *(float *)(a1 + 1584);
v6 = cocos2d::CCDirector::sharedDirector(a1, 0);
cocos2d::CCDirector::getWinSize(v9, v6);
sub_100278250(v8, v9[0] * 0.5, 0.5 * v9[1]);
result = EditorUI::updateZoom(a1, v8, v10);
if ( *(_QWORD *)(a1 + 1528) )
{
cocos2d::CCNode::stopAllActions();
(*(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;
}