{"type": "func", "start": 4299047408, "end": 4299047772, "name": "EditorUI::onPause", "pseudocode": "// \n// EditorUI::onPause from 0x1003e41f0 to 0x1003e435c (364 bytes)\n// \n// 4 xrefs:\n// > EditorUI::keyBackClicked @ 0x1003ef050\n// > sub_1003EF054 @ 0x1003ef058\n// > EditorUI::keyDown @ 0x1003f99bc\n// > EditorUI::init @ 0x1003c5f7c\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::onPause(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  LevelEditorLayer *m_editorLayer; // x0\n  cocos2d::CCObject *v4; // x1\n  LevelEditorLayer *v5; // x8\n  GJGameLevel *m_level; // x20\n  __int64 *v7; // x0\n  double v8; // d0\n  LevelEditorLayer *v9; // x8\n  GJGameLevel *v10; // x20\n  GJGameLevel *v11; // x20\n  LevelEditorLayer *v12; // x8\n  GJGameLevel *v13; // x9\n  unsigned int v14; // w20\n  EditButtonBar *v15; // x0\n  GJGameLevel *v16; // x21\n  int Page; // w0\n  EditorPauseLayer *v18; // x20\n  __int64 v19; // x0\n  __int64 v20; // [xsp+8h] [xbp-28h] BYREF\n\n  if ( !a1->m_isPaused )\n  {\n    m_editorLayer = a1->m_editorLayer;\n    if ( m_editorLayer->m_playbackMode == Not )\n    {\n      a1->m_editorZoom = ((float (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCObject *))m_editorLayer->m_objectLayer->getScale)(\n                           m_editorLayer->m_objectLayer,\n                           a2);\n      m_editorLayer = a1->m_editorLayer;\n    }\n    LevelEditorLayer::updateKeyframeObjects(m_editorLayer);\n    EditorUI::onStopPlaytest(a1, v4);\n    EditorUI::updatePlaybackBtn(a1);\n    v5 = a1->m_editorLayer;\n    m_level = v5->m_level;\n    v7 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCLayer *))v5->m_objectLayer->getPosition)(v5->m_objectLayer);\n    sub_1000229B8(&v20, v7);\n    v8 = sub_1000229D0(&m_level->m_lastCameraPos, (double *)&v20);\n    v9 = a1->m_editorLayer;\n    v10 = v9->m_level;\n    v10->m_lastEditorZoom = ((float (__fastcall *)(cocos2d::CCLayer *, double))v9->m_objectLayer->getScale)(\n                              v9->m_objectLayer,\n                              v8);\n    v11 = a1->m_editorLayer->m_level;\n    v11->m_lastBuildPage = EditButtonBar::getPage(a1->m_createButtonBar);\n    v12 = a1->m_editorLayer;\n    v13 = v12->m_level;\n    v13->m_lastBuildTab = a1->m_selectedTab;\n    v13->m_lastBuildGroupID = v12->m_currentLayer;\n    if ( (unsigned int)sub_10024A36C((__int64)a1->m_createButtonBars) )\n    {\n      v14 = 0;\n      do\n      {\n        v15 = (EditButtonBar *)sub_10024A388((__int64)a1->m_createButtonBars, v14);\n        v16 = a1->m_editorLayer->m_level;\n        Page = EditButtonBar::getPage(v15);\n        GJGameLevel::setLastBuildPageForTab(v16, Page, v14++);\n      }\n      while ( v14 < (unsigned int)sub_10024A36C((__int64)a1->m_createButtonBars) );\n    }\n    v18 = EditorPauseLayer::create(a1->m_editorLayer);\n    v19 = ((__int64 (__fastcall *)(EditorUI *))a1->getParent)(a1);\n    (*(void (__fastcall **)(__int64, EditorPauseLayer *, __int64))(*(_QWORD *)v19 + 448LL))(v19, v18, 100);\n    a1->m_isPaused = 1;\n  }\n}", "assembly": "; \n; EditorUI::onPause from 0x1003e41f0 to 0x1003e435c (364 bytes)\n; \n; 4 xrefs:\n; > EditorUI::keyBackClicked @ 0x1003ef050\n; > sub_1003EF054 @ 0x1003ef058\n; > EditorUI::keyDown @ 0x1003f99bc\n; > EditorUI::init @ 0x1003c5f7c\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\nLDRB            W8, [X0,#0x588]                                        ; +0x0, 0x1003e41f0\nTBNZ            W8, #0, locret_1003E4358                               ; +0x4, 0x1003e41f4\nSUB             SP, SP, #0x40                                          ; +0x8, 0x1003e41f8\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0xc, 0x1003e41fc\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x10, 0x1003e4200\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x14, 0x1003e4204\nADD             X29, SP, #0x30                                         ; +0x18, 0x1003e4208\nMOV             X19, X0                                                ; +0x1c, 0x1003e420c\nLDR             X0, [X0,#0x4E8]                                        ; +0x20, 0x1003e4210\nLDR             W8, [X0,#0x798]                                        ; +0x24, 0x1003e4214\nCBNZ            W8, loc_1003E4234                                      ; +0x28, 0x1003e4218\nLDR             X0, [X0,#0xEE0]                                        ; +0x2c, 0x1003e421c\nLDR             X8, [X0]                                               ; +0x30, 0x1003e4220\nLDR             X8, [X8,#0xA8]                                         ; +0x34, 0x1003e4224\nBLR             X8                                                     ; +0x38, 0x1003e4228\nSTR             S0, [X19,#0x584]                                       ; +0x3c, 0x1003e422c\nLDR             X0, [X19,#0x4E8]                                       ; +0x40, 0x1003e4230\nBL              LevelEditorLayer__updateKeyframeObjects                ; +0x44, 0x1003e4234\nMOV             X0, X19                                                ; +0x48, 0x1003e4238\nBL              EditorUI__onStopPlaytest                               ; +0x4c, 0x1003e423c\nMOV             X0, X19                                                ; +0x50, 0x1003e4240\nBL              EditorUI__updatePlaybackBtn                            ; +0x54, 0x1003e4244\nLDR             X8, [X19,#0x4E8]                                       ; +0x58, 0x1003e4248\nLDR             X20, [X8,#0x790]                                       ; +0x5c, 0x1003e424c\nLDR             X0, [X8,#0xEE0]                                        ; +0x60, 0x1003e4250\nLDR             X8, [X0]                                               ; +0x64, 0x1003e4254\nLDR             X8, [X8,#0xC0]                                         ; +0x68, 0x1003e4258\nBLR             X8                                                     ; +0x6c, 0x1003e425c\nMOV             X1, X0                                                 ; +0x70, 0x1003e4260\nADD             X0, SP, #0x30+var_28                                   ; +0x74, 0x1003e4264\nBL              sub_1000229B8                                          ; +0x78, 0x1003e4268\nADD             X0, X20, #0x3EC                                        ; +0x7c, 0x1003e426c\nADD             X1, SP, #0x30+var_28                                   ; +0x80, 0x1003e4270\nBL              sub_1000229D0                                          ; +0x84, 0x1003e4274\nLDR             X8, [X19,#0x4E8]                                       ; +0x88, 0x1003e4278\nLDR             X20, [X8,#0x790]                                       ; +0x8c, 0x1003e427c\nLDR             X0, [X8,#0xEE0]                                        ; +0x90, 0x1003e4280\nLDR             X8, [X0]                                               ; +0x94, 0x1003e4284\nLDR             X8, [X8,#0xA8]                                         ; +0x98, 0x1003e4288\nBLR             X8                                                     ; +0x9c, 0x1003e428c\nSTR             S0, [X20,#0x3F4]                                       ; +0xa0, 0x1003e4290\nLDR             X8, [X19,#0x4E8]                                       ; +0xa4, 0x1003e4294\nLDR             X20, [X8,#0x790]                                       ; +0xa8, 0x1003e4298\nLDR             X0, [X19,#0x2E0]                                       ; +0xac, 0x1003e429c\nBL              EditButtonBar__getPage                                 ; +0xb0, 0x1003e42a0\nSTR             W0, [X20,#0x3FC]                                       ; +0xb4, 0x1003e42a4\nLDR             X8, [X19,#0x4E8]                                       ; +0xb8, 0x1003e42a8\nLDR             X9, [X8,#0x790]                                        ; +0xbc, 0x1003e42ac\nLDR             W10, [X19,#0x540]                                      ; +0xc0, 0x1003e42b0\nSTR             W10, [X9,#0x3F8]                                       ; +0xc4, 0x1003e42b4\nMOV             W10, #0x367A                                           ; +0xc8, 0x1003e42b8\nLDRSH           W8, [X8,X10]                                           ; +0xcc, 0x1003e42bc\nSTR             W8, [X9,#0x400]                                        ; +0xd0, 0x1003e42c0\nLDR             X0, [X19,#0x428]                                       ; +0xd4, 0x1003e42c4\nBL              sub_10024A36C                                          ; +0xd8, 0x1003e42c8\nCBZ             W0, loc_1003E4310                                      ; +0xdc, 0x1003e42cc\nMOV             W20, #0                                                ; +0xe0, 0x1003e42d0\nLDR             X0, [X19,#0x428]                                       ; +0xe4, 0x1003e42d4\nMOV             X1, X20                                                ; +0xe8, 0x1003e42d8\nBL              sub_10024A388                                          ; +0xec, 0x1003e42dc\nLDR             X8, [X19,#0x4E8]                                       ; +0xf0, 0x1003e42e0\nLDR             X21, [X8,#0x790]                                       ; +0xf4, 0x1003e42e4\nBL              EditButtonBar__getPage                                 ; +0xf8, 0x1003e42e8\nMOV             X1, X0                                                 ; +0xfc, 0x1003e42ec\nMOV             X0, X21                                                ; +0x100, 0x1003e42f0\nMOV             X2, X20                                                ; +0x104, 0x1003e42f4\nBL              GJGameLevel__setLastBuildPageForTab                    ; +0x108, 0x1003e42f8\nADD             W20, W20, #1                                           ; +0x10c, 0x1003e42fc\nLDR             X0, [X19,#0x428]                                       ; +0x110, 0x1003e4300\nBL              sub_10024A36C                                          ; +0x114, 0x1003e4304\nCMP             W20, W0                                                ; +0x118, 0x1003e4308\nB.CC            loc_1003E42D4                                          ; +0x11c, 0x1003e430c\nLDR             X0, [X19,#0x4E8]                                       ; +0x120, 0x1003e4310\nBL              EditorPauseLayer__create                               ; +0x124, 0x1003e4314\nMOV             X20, X0                                                ; +0x128, 0x1003e4318\nLDR             X8, [X19]                                              ; +0x12c, 0x1003e431c\nLDR             X8, [X8,#0x1F0]                                        ; +0x130, 0x1003e4320\nMOV             X0, X19                                                ; +0x134, 0x1003e4324\nBLR             X8                                                     ; +0x138, 0x1003e4328\nLDR             X8, [X0]                                               ; +0x13c, 0x1003e432c\nLDR             X8, [X8,#0x1C0]                                        ; +0x140, 0x1003e4330\nMOV             X1, X20                                                ; +0x144, 0x1003e4334\nMOV             W2, #0x64 ; 'd'                                        ; +0x148, 0x1003e4338\nBLR             X8                                                     ; +0x14c, 0x1003e433c\nMOV             W8, #1                                                 ; +0x150, 0x1003e4340\nSTRB            W8, [X19,#0x588]                                       ; +0x154, 0x1003e4344\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x158, 0x1003e4348\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x15c, 0x1003e434c\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x160, 0x1003e4350\nADD             SP, SP, #0x40 ; '@'                                    ; +0x164, 0x1003e4354\nRET                                                                    ; +0x168, 0x1003e4358", "xrefs": ["EditorUI::keyBackClicked @ 0x1003ef050", "sub_1003EF054 @ 0x1003ef058", "EditorUI::keyDown @ 0x1003f99bc", "EditorUI::init @ 0x1003c5f7c"], "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"}