{"type": "func", "start": 4295018288, "end": 4295018530, "name": "EditorUI::onStopPlaytest", "pseudocode": "// \n// EditorUI::onStopPlaytest from 0x10000c730 to 0x10000c822 (242 bytes)\n// \n// 3 xrefs:\n// > EditorUI::onPause @ 0x10002a721\n// > EditorUI::keyDown @ 0x100050dcd\n// > EditorUI::init @ 0x10000a0f1\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 __fastcall EditorUI::onStopPlaytest(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  float *v2; // r14\n  cocos2d::CCSpriteFrameCache *v3; // rax\n  cocos2d::CCSpriteFrame *v4; // rax\n  float v5; // [rsp+Ch] [rbp-14h]\n  float v6; // [rsp+Ch] [rbp-14h]\n\n  EditorUI::showUI(a1, 1);\n  if ( a1->m_isPlayingMusic )\n    EditorUI::onPlayback(a1, (cocos2d::CCObject *)1);\n  LevelEditorLayer::onStopPlaytest(a1->m_editorLayer);\n  EditorUI::showUI(a1, 1);\n  *(_QWORD *)&a1->m_playerTouchID1 = -1;\n  v2 = (float *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_playtestBtn->getNormalImage)(a1->m_playtestBtn);\n  v5 = v2[108];\n  v6 = (*(float (__fastcall **)(float *))(*(_QWORD *)v2 + 168LL))(v2) * v5;\n  v3 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n  v4 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v3, \"GJ_playEditorBtn_001.png\");\n  (*(void (__fastcall **)(float *, cocos2d::CCSpriteFrame *))(*(_QWORD *)v2 + 1144LL))(v2, v4);\n  (*(void (__fastcall **)(float *, float))(*(_QWORD *)v2 + 160LL))(v2, v6 / v2[108]);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_playtestStopBtn->setVisible)(a1->m_playtestStopBtn, 0);\n  EditorUI::updatePlaybackBtn(a1);\n  EditorUI::updateZoom(a1, a1->m_editorZoom);\n}", "assembly": "; \n; EditorUI::onStopPlaytest from 0x10000c730 to 0x10000c822 (242 bytes)\n; \n; 3 xrefs:\n; > EditorUI::onPause @ 0x10002a721\n; > EditorUI::keyDown @ 0x100050dcd\n; > EditorUI::init @ 0x10000a0f1\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    rbp                                                            ; +0x0, 0x10000c730\nmov     rbp, rsp                                                       ; +0x1, 0x10000c731\npush    r14                                                            ; +0x4, 0x10000c734\npush    rbx                                                            ; +0x6, 0x10000c736\nsub     rsp, 10h                                                       ; +0x7, 0x10000c737\nmov     rbx, rdi                                                       ; +0xb, 0x10000c73b\nmov     esi, 1                                                         ; +0xe, 0x10000c73e\ncall    EditorUI__showUI                                               ; +0x13, 0x10000c743\ncmp     byte ptr [rbx+240h], 1                                         ; +0x18, 0x10000c748\njnz     short loc_10000C759                                            ; +0x1f, 0x10000c74f\nmov     rdi, rbx                                                       ; +0x21, 0x10000c751\ncall    EditorUI__onPlayback                                           ; +0x24, 0x10000c754\nmov     rdi, [rbx+4E8h]                                                ; +0x29, 0x10000c759\ncall    LevelEditorLayer__onStopPlaytest                               ; +0x30, 0x10000c760\nmov     rdi, rbx                                                       ; +0x35, 0x10000c765\nmov     esi, 1                                                         ; +0x38, 0x10000c768\ncall    EditorUI__showUI                                               ; +0x3d, 0x10000c76d\nmov     qword ptr [rbx+264h], 0FFFFFFFFFFFFFFFFh                       ; +0x42, 0x10000c772\nmov     rdi, [rbx+388h]                                                ; +0x4d, 0x10000c77d\nmov     rax, [rdi]                                                     ; +0x54, 0x10000c784\ncall    qword ptr [rax+420h]                                           ; +0x57, 0x10000c787\nmov     r14, rax                                                       ; +0x5d, 0x10000c78d\nmovss   xmm0, dword ptr [rax+1B0h]                                     ; +0x60, 0x10000c790\nmovss   [rbp+var_14], xmm0                                             ; +0x68, 0x10000c798\nmov     rax, [rax]                                                     ; +0x6d, 0x10000c79d\nmov     rdi, r14                                                       ; +0x70, 0x10000c7a0\ncall    qword ptr [rax+0A8h]                                           ; +0x73, 0x10000c7a3\nmulss   xmm0, [rbp+var_14]                                             ; +0x79, 0x10000c7a9\nmovss   [rbp+var_14], xmm0                                             ; +0x7e, 0x10000c7ae\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x83, 0x10000c7b3\nlea     rsi, aGjPlayeditorbt; \"GJ_playEditorBtn_001.png\"               ; +0x88, 0x10000c7b8\nmov     rdi, rax                                                       ; +0x8f, 0x10000c7bf\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x92, 0x10000c7c2\nmov     rcx, [r14]                                                     ; +0x97, 0x10000c7c7\nmov     rdi, r14                                                       ; +0x9a, 0x10000c7ca\nmov     rsi, rax                                                       ; +0x9d, 0x10000c7cd\ncall    qword ptr [rcx+478h]                                           ; +0xa0, 0x10000c7d0\nmovss   xmm0, [rbp+var_14]                                             ; +0xa6, 0x10000c7d6\ndivss   xmm0, dword ptr [r14+1B0h]                                     ; +0xab, 0x10000c7db\nmov     rax, [r14]                                                     ; +0xb4, 0x10000c7e4\nmov     rdi, r14                                                       ; +0xb7, 0x10000c7e7\ncall    qword ptr [rax+0A0h]                                           ; +0xba, 0x10000c7ea\nmov     rdi, [rbx+390h]                                                ; +0xc0, 0x10000c7f0\nmov     rax, [rdi]                                                     ; +0xc7, 0x10000c7f7\nxor     esi, esi                                                       ; +0xca, 0x10000c7fa\ncall    qword ptr [rax+148h]                                           ; +0xcc, 0x10000c7fc\nmov     rdi, rbx                                                       ; +0xd2, 0x10000c802\ncall    EditorUI__updatePlaybackBtn                                    ; +0xd5, 0x10000c805\nmovss   xmm0, dword ptr [rbx+584h]                                     ; +0xda, 0x10000c80a\nmov     rdi, rbx                                                       ; +0xe2, 0x10000c812\nadd     rsp, 10h                                                       ; +0xe5, 0x10000c815\npop     rbx                                                            ; +0xe9, 0x10000c819\npop     r14                                                            ; +0xea, 0x10000c81a\npop     rbp                                                            ; +0xec, 0x10000c81c\njmp     EditorUI__updateZoom                                           ; +0xed, 0x10000c81d", "xrefs": ["EditorUI::onPause @ 0x10002a721", "EditorUI::keyDown @ 0x100050dcd", "EditorUI::init @ 0x10000a0f1"], "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"}