{"type": "func", "start": 3699748, "end": 3699888, "name": "EditorUI::playtestStopped", "pseudocode": "// \n// EditorUI::playtestStopped from 0x387424 to 0x3874b0 (140 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::postUpdate @ 0x3751fe\n// > EditorUI::onStopPlaytest @ 0x3874da\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid EditorUI::playtestStopped(EditorUI *a1)\n{\n  CCMenuItemSpriteExtra *m_playtestBtn; // r0\n  float *v3; // r4\n  float v4; // s16\n  float v5; // r0\n  void (__fastcall *v6)(float *, cocos2d::CCSpriteFrame *); // r6\n  float v7; // s16\n  cocos2d::CCSpriteFrameCache *v8; // r0\n  cocos2d::CCSpriteFrame *v9; // r0\n\n  EditorUI::showUI(a1, 1);\n  m_playtestBtn = a1->m_playtestBtn;\n  a1->m_playerTouchID1 = -1;\n  a1->m_playerTouchID2 = -1;\n  v3 = (float *)m_playtestBtn->getNormalImage(m_playtestBtn);\n  v4 = v3[86];\n  v5 = (*(float (__fastcall **)(float *))(*(_DWORD *)v3 + 84))(v3);\n  v6 = *(void (__fastcall **)(float *, cocos2d::CCSpriteFrame *))(*(_DWORD *)v3 + 572);\n  v7 = v4 * v5;\n  v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n  v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, \"GJ_playEditorBtn_001.png\");\n  v6(v3, v9);\n  (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v3 + 80))(v3, v7 / v3[86]);\n  a1->m_playtestStopBtn->setVisible(a1->m_playtestStopBtn, 0);\n  EditorUI::updatePlaybackBtn(a1);\n  EditorUI::updateZoom(a1, a1->m_editorZoom);\n}", "assembly": "; \n; EditorUI::playtestStopped from 0x387424 to 0x3874b0 (140 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::postUpdate @ 0x3751fe\n; > EditorUI::onStopPlaytest @ 0x3874da\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x387424\nMOVS            R1, #1; bool                                           ; +0x2, 0x387426\nVPUSH           {D8}                                                   ; +0x4, 0x387428\nMOV             R5, R0                                                 ; +0x8, 0x38742c\nBL              _ZN8EditorUI6showUIEb; EditorUI::showUI(bool)          ; +0xa, 0x38742e\nLDR.W           R0, [R5,#0x290]                                        ; +0xe, 0x387432\nMOV.W           R3, #0xFFFFFFFF                                        ; +0x12, 0x387436\nSTR.W           R3, [R5,#0x1D0]                                        ; +0x16, 0x38743a\nSTR.W           R3, [R5,#0x1D4]                                        ; +0x1a, 0x38743e\nLDR             R3, [R0]                                               ; +0x1e, 0x387442\nLDR.W           R3, [R3,#0x210]                                        ; +0x20, 0x387444\nBLX             R3                                                     ; +0x24, 0x387448\nLDR             R3, [R0]                                               ; +0x26, 0x38744a\nMOV             R4, R0                                                 ; +0x28, 0x38744c\nVLDR            S16, [R0,#0x158]                                       ; +0x2a, 0x38744e\nLDR             R3, [R3,#0x54]                                         ; +0x2e, 0x387452\nBLX             R3                                                     ; +0x30, 0x387454\nLDR             R3, [R4]                                               ; +0x32, 0x387456\nLDR.W           R6, [R3,#0x23C]                                        ; +0x34, 0x387458\nVMOV            S15, R0; this                                          ; +0x38, 0x38745c\nVMUL.F32        S16, S16, S15                                          ; +0x3c, 0x387460\nBL              _ZN7cocos2d18CCSpriteFrameCache22sharedSpriteFrameCacheEv; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x40, 0x387464\nLDR             R1, =(aGjPlayeditorbt - 0x38746E); \"GJ_playEditorBtn_001.png\" ; +0x44, 0x387468\nADD             R1, PC; \"GJ_playEditorBtn_001.png\"                     ; +0x46, 0x38746a\nBL              _ZN7cocos2d18CCSpriteFrameCache17spriteFrameByNameEPKc; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const*) ; +0x48, 0x38746c\nMOV             R1, R0                                                 ; +0x4c, 0x387470\nMOV             R0, R4                                                 ; +0x4e, 0x387472\nBLX             R6                                                     ; +0x50, 0x387474\nVLDR            S15, [R4,#0x158]                                       ; +0x52, 0x387476\nLDR             R3, [R4]                                               ; +0x56, 0x38747a\nMOV             R0, R4                                                 ; +0x58, 0x38747c\nVDIV.F32        S15, S16, S15                                          ; +0x5a, 0x38747e\nLDR             R3, [R3,#0x50]                                         ; +0x5e, 0x387482\nVMOV            R1, S15                                                ; +0x60, 0x387484\nBLX             R3                                                     ; +0x64, 0x387488\nLDR.W           R0, [R5,#0x294]                                        ; +0x66, 0x38748a\nMOVS            R1, #0                                                 ; +0x6a, 0x38748e\nLDR             R3, [R0]                                               ; +0x6c, 0x387490\nLDR.W           R3, [R3,#0xA4]                                         ; +0x6e, 0x387492\nBLX             R3                                                     ; +0x72, 0x387496\nMOV             R0, R5; this                                           ; +0x74, 0x387498\nBL              _ZN8EditorUI17updatePlaybackBtnEv; EditorUI::updatePlaybackBtn(void) ; +0x76, 0x38749a\nVPOP            {D8}                                                   ; +0x7a, 0x38749e\nMOV             R0, R5; this                                           ; +0x7e, 0x3874a2\nLDR.W           R1, [R5,#0x3B8]; float                                 ; +0x80, 0x3874a4\nPOP.W           {R4-R6,LR}                                             ; +0x84, 0x3874a8\nB.W             _ZN8EditorUI10updateZoomEf; EditorUI::updateZoom(float) ; +0x88, 0x3874ac", "xrefs": ["LevelEditorLayer::postUpdate @ 0x3751fe", "EditorUI::onStopPlaytest @ 0x3874da"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}