//
// EditorUI::playtestStopped from 0x489f74 to 0x48a02e (186 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::postUpdate @ 0x46ae1c
// > EditorUI::onStopPlaytest @ 0x48a066
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:28 +0000
//
cocos2d::CCNode *__fastcall EditorUI::playtestStopped(EditorUI *this)
{
int v2; // r0
float *v3; // r5
float v4; // s16
float v5; // r0
void (__fastcall *v6)(float *, int); // r6
float v7; // s16
cocos2d::CCSpriteFrameCache *v8; // r0
int v9; // r0
cocos2d::CCNode *result; // r0
EditorUI::showUI((cocos2d::CCArray **)this, 1);
v2 = *((_DWORD *)this + 180);
*((_DWORD *)this + 121) = -1;
*((_DWORD *)this + 122) = -1;
v3 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v2 + 536))(v2);
v4 = v3[86];
v5 = (*(float (__fastcall **)(float *))(*(_DWORD *)v3 + 84))(v3);
v6 = *(void (__fastcall **)(float *, int))(*(_DWORD *)v3 + 580);
v7 = v4 * v5;
v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)LODWORD(v5));
v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, "GJ_playEditorBtn_001.png");
v6(v3, v9);
(*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v3 + 80))(v3, v7 / v3[86]);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 181) + 172))(*((_DWORD *)this + 181), 0);
EditorUI::updatePlaybackBtn(this);
EditorUI::updateZoom(this, *((float *)this + 262));
result = *((cocos2d::CCNode **)this + 253);
if ( result )
{
cocos2d::CCNode::stopAllActions(result);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 253) + 512))(*((_DWORD *)this + 253), 0);
return (cocos2d::CCNode *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 253) + 172))(
*((_DWORD *)this + 253),
0);
}
return result;
}