{"type": "func", "start": 6906560, "end": 6906984, "name": "EditorUI::onPause", "pseudocode": "// \n// EditorUI::onPause from 0x6962c0 to 0x696468 (424 bytes)\n// \n// 5 xrefs:\n// > EditorUI::keyBackClicked @ 0x69646c\n// > EditorUI::keyDown @ 0x6c5930\n// > <???> @ 0x9b148\n// > EditorUI::init @ 0x6bcea8\n// > <???> @ 0x122d4a8\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::onPause(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  LevelEditorLayer *m_editorLayer; // x0\n  unsigned int v4; // w19\n  LevelEditorLayer *v5; // x0\n  GJGameLevel *m_level; // x23\n  const cocos2d::CCPoint *v7; // x0\n  float v8; // s0\n  float v9; // s1\n  LevelEditorLayer *v10; // x0\n  GJGameLevel *v11; // x21\n  float v12; // s0\n  LevelEditorLayer *v13; // x1\n  EditButtonBar *m_createButtonBar; // x0\n  GJGameLevel *v15; // x21\n  int Page; // w0\n  LevelEditorLayer *v17; // x1\n  GJGameLevel *v18; // x0\n  int m_selectedTab; // w2\n  EditButtonBar *v20; // x0\n  GJGameLevel *v21; // x21\n  int v22; // w0\n  int v23; // w2\n  cocos2d::CCNode *v24; // x0\n  float v25; // s0\n  EditorPauseLayer *v26; // [xsp+48h] [xbp+48h]\n  cocos2d::CCPoint v27; // [xsp+50h] [xbp+50h] BYREF\n\n  if ( !a1->m_isPaused )\n  {\n    m_editorLayer = a1->m_editorLayer;\n    if ( m_editorLayer->m_playbackMode == Not )\n    {\n      v25 = m_editorLayer->m_objectLayer->getScale(m_editorLayer->m_objectLayer);\n      m_editorLayer = a1->m_editorLayer;\n      a1->m_editorZoom = v25;\n    }\n    LevelEditorLayer::updateKeyframeObjects(m_editorLayer);\n    v4 = 0;\n    EditorUI::onStopPlaytest(a1, nullptr);\n    EditorUI::updatePlaybackBtn(a1);\n    v5 = a1->m_editorLayer;\n    m_level = v5->m_level;\n    v7 = v5->m_objectLayer->getPosition(v5->m_objectLayer);\n    cocos2d::CCPoint::CCPoint(&v27, v7);\n    cocos2d::CCPoint::operator=(&m_level->m_lastCameraPos, v8, v9);\n    v10 = a1->m_editorLayer;\n    v11 = v10->m_level;\n    v12 = v10->m_objectLayer->getScale(v10->m_objectLayer);\n    v13 = a1->m_editorLayer;\n    m_createButtonBar = a1->m_createButtonBar;\n    v11->m_lastEditorZoom = v12;\n    v15 = v13->m_level;\n    Page = EditButtonBar::getPage(m_createButtonBar);\n    v17 = a1->m_editorLayer;\n    v15->m_lastBuildPage = Page;\n    v18 = v17->m_level;\n    m_selectedTab = a1->m_selectedTab;\n    v18->m_lastBuildGroupID = v17->m_currentLayer;\n    v18->m_lastBuildTab = m_selectedTab;\n    while ( v4 < (unsigned int)cocos2d::CCArray::count(a1->m_createButtonBars) )\n    {\n      v20 = (EditButtonBar *)cocos2d::CCArray::objectAtIndex(a1->m_createButtonBars, v4);\n      v21 = a1->m_editorLayer->m_level;\n      v22 = EditButtonBar::getPage(v20);\n      v23 = v4++;\n      GJGameLevel::setLastBuildPageForTab(v21, v22, v23);\n    }\n    v26 = EditorPauseLayer::create(a1->m_editorLayer);\n    v24 = a1->getParent(a1);\n    v24->addChild_0(v24, v26, 100);\n    EditorUI::toggleLockUI(a1, 1);\n  }\n}", "assembly": "; \n; EditorUI::onPause from 0x6962c0 to 0x696468 (424 bytes)\n; \n; 5 xrefs:\n; > EditorUI::keyBackClicked @ 0x69646c\n; > EditorUI::keyDown @ 0x6c5930\n; > <???> @ 0x9b148\n; > EditorUI::init @ 0x6bcea8\n; > <???> @ 0x122d4a8\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\nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x6962c0\nMOV             X29, SP                                                ; +0x4, 0x6962c4\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x8, 0x6962c8\nADRP            X22, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6962cc\nSTR             X23, [SP,#0x60+var_30]                                 ; +0x10, 0x6962d0\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x14, 0x6962d4\nMOV             X20, X0                                                ; +0x18, 0x6962d8\nLDRB            W0, [X0,#0x598]                                        ; +0x1c, 0x6962dc\nLDR             X1, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x6962e0\nLDR             X1, [X1]                                               ; +0x24, 0x6962e4\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x28, 0x6962e8\nCBNZ            W0, loc_69641C                                         ; +0x2c, 0x6962ec\nLDR             X0, [X20,#0x4F8]; this                                 ; +0x30, 0x6962f0\nLDR             W1, [X0,#0x8A8]                                        ; +0x34, 0x6962f4\nCBZ             W1, loc_696444                                         ; +0x38, 0x6962f8\nBL              _ZN16LevelEditorLayer21updateKeyframeObjectsEv; LevelEditorLayer::updateKeyframeObjects(void) ; +0x3c, 0x6962fc\nADD             X21, X29, #0x60+var_10                                 ; +0x40, 0x696300\nMOV             X1, #0; cocos2d::CCObject *                            ; +0x44, 0x696304\nMOV             X0, X20; this                                          ; +0x48, 0x696308\nMOV             W19, #0                                                ; +0x4c, 0x69630c\nBL              _ZN8EditorUI14onStopPlaytestEPN7cocos2d8CCObjectE; EditorUI::onStopPlaytest(cocos2d::CCObject *) ; +0x50, 0x696310\nMOV             X0, X20; this                                          ; +0x54, 0x696314\nBL              _ZN8EditorUI17updatePlaybackBtnEv; EditorUI::updatePlaybackBtn(void) ; +0x58, 0x696318\nLDR             X0, [X20,#0x4F8]                                       ; +0x5c, 0x69631c\nLDR             X1, [X0,#0x1030]                                       ; +0x60, 0x696320\nLDR             X23, [X0,#0x8A0]                                       ; +0x64, 0x696324\nMOV             X0, X1                                                 ; +0x68, 0x696328\nLDR             X1, [X1]                                               ; +0x6c, 0x69632c\nLDR             X1, [X1,#0xC0]                                         ; +0x70, 0x696330\nBLR             X1                                                     ; +0x74, 0x696334\nMOV             X1, X0; cocos2d::CCPoint *                             ; +0x78, 0x696338\nMOV             X0, X21; this                                          ; +0x7c, 0x69633c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x80, 0x696340\nMOV             X1, X21                                                ; +0x84, 0x696344\nADD             X0, X23, #0x34C                                        ; +0x88, 0x696348\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x8c, 0x69634c\nLDR             X0, [X20,#0x4F8]                                       ; +0x90, 0x696350\nLDR             X1, [X0,#0x1030]                                       ; +0x94, 0x696354\nLDR             X21, [X0,#0x8A0]                                       ; +0x98, 0x696358\nMOV             X0, X1                                                 ; +0x9c, 0x69635c\nLDR             X1, [X1]                                               ; +0xa0, 0x696360\nLDR             X1, [X1,#0xA8]                                         ; +0xa4, 0x696364\nBLR             X1                                                     ; +0xa8, 0x696368\nLDR             X1, [X20,#0x4F8]                                       ; +0xac, 0x69636c\nLDR             X0, [X20,#0x2F0]; this                                 ; +0xb0, 0x696370\nSTR             S0, [X21,#0x354]                                       ; +0xb4, 0x696374\nLDR             X21, [X1,#0x8A0]                                       ; +0xb8, 0x696378\nBL              _ZN13EditButtonBar7getPageEv; EditButtonBar::getPage(void) ; +0xbc, 0x69637c\nLDR             X1, [X20,#0x4F8]                                       ; +0xc0, 0x696380\nSTR             W0, [X21,#0x35C]                                       ; +0xc4, 0x696384\nADD             X3, X1, #3,LSL#12                                      ; +0xc8, 0x696388\nLDR             X0, [X1,#0x8A0]                                        ; +0xcc, 0x69638c\nLDR             W2, [X20,#0x550]                                       ; +0xd0, 0x696390\nLDRSH           W1, [X3,#0x85A]                                        ; +0xd4, 0x696394\nSTR             W1, [X0,#0x360]                                        ; +0xd8, 0x696398\nSTR             W2, [X0,#0x358]                                        ; +0xdc, 0x69639c\nB               loc_6963D0                                             ; +0xe0, 0x6963a0\nLDR             X0, [X20,#0x438]; this                                 ; +0xe4, 0x6963a4\nMOV             W1, W19; unsigned int                                  ; +0xe8, 0x6963a8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xec, 0x6963ac\nLDR             X1, [X20,#0x4F8]                                       ; +0xf0, 0x6963b0\nLDR             X21, [X1,#0x8A0]                                       ; +0xf4, 0x6963b4\nBL              _ZN13EditButtonBar7getPageEv; EditButtonBar::getPage(void) ; +0xf8, 0x6963b8\nMOV             W2, W19; int                                           ; +0xfc, 0x6963bc\nMOV             W1, W0; int                                            ; +0x100, 0x6963c0\nMOV             X0, X21; this                                          ; +0x104, 0x6963c4\nADD             W19, W19, #1                                           ; +0x108, 0x6963c8\nBL              _ZN11GJGameLevel22setLastBuildPageForTabEii; GJGameLevel::setLastBuildPageForTab(int,int) ; +0x10c, 0x6963cc\nLDR             X0, [X20,#0x438]; this                                 ; +0x110, 0x6963d0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x114, 0x6963d4\nCMP             W19, W0                                                ; +0x118, 0x6963d8\nB.CC            loc_6963A4                                             ; +0x11c, 0x6963dc\nLDR             X0, [X20,#0x4F8]; this                                 ; +0x120, 0x6963e0\nBL              _ZN16EditorPauseLayer6createEP16LevelEditorLayer; EditorPauseLayer::create(LevelEditorLayer *) ; +0x124, 0x6963e4\nSTR             X0, [X29,#0x60+var_18]                                 ; +0x128, 0x6963e8\nLDR             X2, [X20]                                              ; +0x12c, 0x6963ec\nMOV             X0, X20                                                ; +0x130, 0x6963f0\nLDR             X2, [X2,#0x1F0]                                        ; +0x134, 0x6963f4\nBLR             X2                                                     ; +0x138, 0x6963f8\nLDR             X3, [X0]                                               ; +0x13c, 0x6963fc\nLDR             X1, [X29,#0x60+var_18]                                 ; +0x140, 0x696400\nMOV             W2, #0x64 ; 'd'                                        ; +0x144, 0x696404\nLDR             X3, [X3,#0x1C0]                                        ; +0x148, 0x696408\nBLR             X3                                                     ; +0x14c, 0x69640c\nMOV             X0, X20; this                                          ; +0x150, 0x696410\nMOV             W1, #1; bool                                           ; +0x154, 0x696414\nBL              _ZN8EditorUI12toggleLockUIEb; EditorUI::toggleLockUI(bool) ; +0x158, 0x696418\nLDR             X22, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x15c, 0x69641c\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x160, 0x696420\nLDR             X0, [X22]                                              ; +0x164, 0x696424\nCMP             X1, X0                                                 ; +0x168, 0x696428\nB.NE            loc_696464                                             ; +0x16c, 0x69642c\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x170, 0x696430\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x174, 0x696434\nLDR             X23, [SP,#0x60+var_30]                                 ; +0x178, 0x696438\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x17c, 0x69643c\nRET                                                                    ; +0x180, 0x696440\nLDR             X1, [X0,#0x1030]                                       ; +0x184, 0x696444\nMOV             X0, X1                                                 ; +0x188, 0x696448\nLDR             X1, [X1]                                               ; +0x18c, 0x69644c\nLDR             X1, [X1,#0xA8]                                         ; +0x190, 0x696450\nBLR             X1                                                     ; +0x194, 0x696454\nLDR             X0, [X20,#0x4F8]                                       ; +0x198, 0x696458\nSTR             S0, [X20,#0x594]                                       ; +0x19c, 0x69645c\nB               loc_6962FC                                             ; +0x1a0, 0x696460\nBL              .__stack_chk_fail                                      ; +0x1a4, 0x696464", "xrefs": ["EditorUI::keyBackClicked @ 0x69646c", "EditorUI::keyDown @ 0x6c5930", "<???> @ 0x9b148", "EditorUI::init @ 0x6bcea8", "<???> @ 0x122d4a8"], "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"}