{"type": "func", "start": 8186340, "end": 8186828, "name": "EditorUI::onPause", "pseudocode": "// \n// EditorUI::onPause from 0x7ce9e4 to 0x7cebcc (488 bytes)\n// \n// 5 xrefs:\n// > EditorUI::keyBackClicked @ 0xbd6bdc\n// > EditorUI::handleAction @ 0xbd8b6c\n// > <???> @ 0xcc670\n// > EditorUI::init @ 0x7cfefc\n// > <???> @ 0x1546010\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:54:13 +0000\n// \n\n__int64 __fastcall EditorUI::onPause(EditorUI *this, cocos2d::CCObject *a2)\n{\n  cocos2d::CCDirector *v3; // x0\n  EditorSFXManager *v5; // x0\n  EditorSFXManager *v6; // x0\n  __int64 v7; // x0\n  unsigned int v8; // w20\n  __int64 v9; // x0\n  __int64 v10; // x23\n  const cocos2d::CCPoint *v11; // x0\n  long double v12; // q0\n  __int64 v13; // x0\n  __int64 v14; // x22\n  __int64 v15; // x22\n  EditButtonBar *v16; // x0\n  GJGameLevel *v17; // x22\n  int Page; // w0\n  int v19; // w2\n  cocos2d::CCDirector *v20; // x0\n  __int64 v21; // x20\n  LevelEditorLayer *v22; // x1\n  __int64 v23; // x0\n  float v24; // s0\n  _BYTE v25[8]; // [xsp+40h] [xbp+40h] BYREF\n\n  v3 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 1588);\n  if ( !(_DWORD)v3 )\n  {\n    v5 = (EditorSFXManager *)*(unsigned __int8 *)(cocos2d::CCDirector::sharedDirector(v3) + 176);\n    if ( !(_DWORD)v5 )\n    {\n      v6 = (EditorSFXManager *)EditorSFXManager::sharedState(v5);\n      EditorSFXManager::playAction(v6, 221);\n      if ( *((_BYTE *)this + 1589) )\n      {\n        *((_BYTE *)this + 1589) = 0;\n        *((_BYTE *)this + 1590) = 0;\n        EditorUI::showUI((cocos2d::CCArray **)this, 1u);\n      }\n      v7 = *((_QWORD *)this + 180);\n      *((_BYTE *)this + 688) = 0;\n      if ( !*(_DWORD *)(v7 + 1972) )\n      {\n        v24 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(v7 + 3920) + 168LL))(*(_QWORD *)(v7 + 3920));\n        v7 = *((_QWORD *)this + 180);\n        *((float *)this + 396) = v24;\n      }\n      LevelEditorLayer::updateKeyframeObjects((cocos2d::CCArray **)v7);\n      v8 = 0;\n      EditorUI::onStopPlaytest((UILayer ***)this, nullptr);\n      EditorUI::updatePlaybackBtn(this);\n      v9 = *((_QWORD *)this + 180);\n      v10 = *(_QWORD *)(v9 + 1936);\n      v11 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v9 + 3920) + 192LL))(*(_QWORD *)(v9 + 3920));\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v11);\n      *(__n128 *)&v12 = cocos2d::CCPoint::operator=(v10 + 1116, v25);\n      v13 = *((_QWORD *)this + 180);\n      v14 = *(_QWORD *)(v13 + 1936);\n      *(float *)(v14 + 1124) = (*(float (__fastcall **)(_QWORD, long double))(**(_QWORD **)(v13 + 3920) + 168LL))(\n                                 *(_QWORD *)(v13 + 3920),\n                                 v12);\n      v15 = *(_QWORD *)(*((_QWORD *)this + 180) + 1936LL);\n      *(_DWORD *)(v15 + 1132) = EditButtonBar::getPage(*((EditButtonBar **)this + 103));\n      *(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 180) + 1936LL) + 1128LL) = *((_DWORD *)this + 384);\n      *(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 180) + 1936LL) + 1136LL) = *(__int16 *)(*((_QWORD *)this + 180)\n                                                                                       + 14210LL);\n      while ( 1 )\n      {\n        v20 = (cocos2d::CCDirector *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 149));\n        if ( v8 >= (unsigned int)v20 )\n          break;\n        v16 = (EditButtonBar *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 149), v8);\n        v17 = *(GJGameLevel **)(*((_QWORD *)this + 180) + 1936LL);\n        Page = EditButtonBar::getPage(v16);\n        v19 = v8++;\n        GJGameLevel::setLastBuildPageForTab(v17, Page, v19);\n      }\n      v21 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v20) + 272);\n      v23 = EditorPauseLayer::create(*((EditorPauseLayer **)this + 180), v22);\n      (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v21 + 464LL))(v21, v23, 100);\n      EditorUI::toggleLockUI((__int64)this, 1);\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorUI::onPause from 0x7ce9e4 to 0x7cebcc (488 bytes)\n; \n; 5 xrefs:\n; > EditorUI::keyBackClicked @ 0xbd6bdc\n; > EditorUI::handleAction @ 0xbd8b6c\n; > <???> @ 0xcc670\n; > EditorUI::init @ 0x7cfefc\n; > <???> @ 0x1546010\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:54:13 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x7ce9e4\nMOV             X29, SP                                                ; +0x4, 0x7ce9e8\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x8, 0x7ce9ec\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x7ce9f0\nSTR             X23, [SP,#0x50+var_20]                                 ; +0x10, 0x7ce9f4\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x14, 0x7ce9f8\nMOV             X19, X0                                                ; +0x18, 0x7ce9fc\nLDR             X1, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x7cea00\nLDRB            W0, [X0,#0x634]; this                                  ; +0x20, 0x7cea04\nLDR             X1, [X1]                                               ; +0x24, 0x7cea08\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x28, 0x7cea0c\nCBZ             W0, loc_7CEA3C                                         ; +0x2c, 0x7cea10\nLDR             X21, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x30, 0x7cea14\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x34, 0x7cea18\nLDR             X0, [X21]                                              ; +0x38, 0x7cea1c\nCMP             X1, X0                                                 ; +0x3c, 0x7cea20\nB.NE            loc_7CEBC8                                             ; +0x40, 0x7cea24\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x44, 0x7cea28\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x48, 0x7cea2c\nLDR             X23, [SP,#0x50+var_20]                                 ; +0x4c, 0x7cea30\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x50, 0x7cea34\nRET                                                                    ; +0x54, 0x7cea38\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x58, 0x7cea3c\nLDRB            W0, [X0,#0xB0]; this                                   ; +0x5c, 0x7cea40\nCBNZ            W0, loc_7CEA14                                         ; +0x60, 0x7cea44\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x64, 0x7cea48\nMOV             W1, #0xDD; int                                         ; +0x68, 0x7cea4c\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0x6c, 0x7cea50\nLDRB            W0, [X19,#0x635]                                       ; +0x70, 0x7cea54\nCBNZ            W0, loc_7CEB90                                         ; +0x74, 0x7cea58\nLDR             X0, [X19,#0x5A0]; this                                 ; +0x78, 0x7cea5c\nSTRB            WZR, [X19,#0x2B0]                                      ; +0x7c, 0x7cea60\nLDR             W1, [X0,#0x7B4]                                        ; +0x80, 0x7cea64\nCBZ             W1, loc_7CEBA8                                         ; +0x84, 0x7cea68\nBL              _ZN16LevelEditorLayer21updateKeyframeObjectsEv; LevelEditorLayer::updateKeyframeObjects(void) ; +0x88, 0x7cea6c\nADD             X22, X29, #0x50+var_10                                 ; +0x8c, 0x7cea70\nMOV             X1, #0; cocos2d::CCObject *                            ; +0x90, 0x7cea74\nMOV             X0, X19; this                                          ; +0x94, 0x7cea78\nMOV             W20, #0                                                ; +0x98, 0x7cea7c\nBL              _ZN8EditorUI14onStopPlaytestEPN7cocos2d8CCObjectE; EditorUI::onStopPlaytest(cocos2d::CCObject *) ; +0x9c, 0x7cea80\nMOV             X0, X19; this                                          ; +0xa0, 0x7cea84\nBL              _ZN8EditorUI17updatePlaybackBtnEv; EditorUI::updatePlaybackBtn(void) ; +0xa4, 0x7cea88\nLDR             X0, [X19,#0x5A0]                                       ; +0xa8, 0x7cea8c\nLDR             X1, [X0,#0xF50]                                        ; +0xac, 0x7cea90\nLDR             X23, [X0,#0x790]                                       ; +0xb0, 0x7cea94\nMOV             X0, X1                                                 ; +0xb4, 0x7cea98\nLDR             X1, [X1]                                               ; +0xb8, 0x7cea9c\nLDR             X1, [X1,#0xC0]                                         ; +0xbc, 0x7ceaa0\nBLR             X1                                                     ; +0xc0, 0x7ceaa4\nMOV             X1, X0; cocos2d::CCPoint *                             ; +0xc4, 0x7ceaa8\nMOV             X0, X22; this                                          ; +0xc8, 0x7ceaac\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xcc, 0x7ceab0\nMOV             X1, X22                                                ; +0xd0, 0x7ceab4\nADD             X0, X23, #0x45C                                        ; +0xd4, 0x7ceab8\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xd8, 0x7ceabc\nLDR             X0, [X19,#0x5A0]                                       ; +0xdc, 0x7ceac0\nLDR             X1, [X0,#0xF50]                                        ; +0xe0, 0x7ceac4\nLDR             X22, [X0,#0x790]                                       ; +0xe4, 0x7ceac8\nMOV             X0, X1                                                 ; +0xe8, 0x7ceacc\nLDR             X1, [X1]                                               ; +0xec, 0x7cead0\nLDR             X1, [X1,#0xA8]                                         ; +0xf0, 0x7cead4\nBLR             X1                                                     ; +0xf4, 0x7cead8\nSTR             S0, [X22,#0x464]                                       ; +0xf8, 0x7ceadc\nLDR             X1, [X19,#0x5A0]                                       ; +0xfc, 0x7ceae0\nLDR             X0, [X19,#0x338]; this                                 ; +0x100, 0x7ceae4\nLDR             X22, [X1,#0x790]                                       ; +0x104, 0x7ceae8\nBL              _ZN13EditButtonBar7getPageEv; EditButtonBar::getPage(void) ; +0x108, 0x7ceaec\nSTR             W0, [X22,#0x46C]                                       ; +0x10c, 0x7ceaf0\nLDR             X0, [X19,#0x5A0]                                       ; +0x110, 0x7ceaf4\nLDR             W1, [X19,#0x600]                                       ; +0x114, 0x7ceaf8\nLDR             X0, [X0,#0x790]                                        ; +0x118, 0x7ceafc\nSTR             W1, [X0,#0x468]                                        ; +0x11c, 0x7ceb00\nLDR             X0, [X19,#0x5A0]                                       ; +0x120, 0x7ceb04\nADD             X1, X0, #3,LSL#12                                      ; +0x124, 0x7ceb08\nLDR             X0, [X0,#0x790]                                        ; +0x128, 0x7ceb0c\nLDRSH           W1, [X1,#0x782]                                        ; +0x12c, 0x7ceb10\nSTR             W1, [X0,#0x470]                                        ; +0x130, 0x7ceb14\nB               loc_7CEB48                                             ; +0x134, 0x7ceb18\nLDR             X0, [X19,#0x4A8]; this                                 ; +0x138, 0x7ceb1c\nMOV             W1, W20; unsigned int                                  ; +0x13c, 0x7ceb20\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x140, 0x7ceb24\nLDR             X1, [X19,#0x5A0]                                       ; +0x144, 0x7ceb28\nLDR             X22, [X1,#0x790]                                       ; +0x148, 0x7ceb2c\nBL              _ZN13EditButtonBar7getPageEv; EditButtonBar::getPage(void) ; +0x14c, 0x7ceb30\nMOV             W2, W20; int                                           ; +0x150, 0x7ceb34\nMOV             W1, W0; int                                            ; +0x154, 0x7ceb38\nMOV             X0, X22; this                                          ; +0x158, 0x7ceb3c\nADD             W20, W20, #1                                           ; +0x15c, 0x7ceb40\nBL              _ZN11GJGameLevel22setLastBuildPageForTabEii; GJGameLevel::setLastBuildPageForTab(int,int) ; +0x160, 0x7ceb44\nLDR             X0, [X19,#0x4A8]; this                                 ; +0x164, 0x7ceb48\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x168, 0x7ceb4c\nCMP             W20, W0                                                ; +0x16c, 0x7ceb50\nB.CC            loc_7CEB1C                                             ; +0x170, 0x7ceb54\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x174, 0x7ceb58\nLDR             X20, [X0,#0x110]                                       ; +0x178, 0x7ceb5c\nLDR             X0, [X19,#0x5A0]; this                                 ; +0x17c, 0x7ceb60\nBL              _ZN16EditorPauseLayer6createEP16LevelEditorLayer; EditorPauseLayer::create(LevelEditorLayer *) ; +0x180, 0x7ceb64\nMOV             X1, X0                                                 ; +0x184, 0x7ceb68\nLDR             X3, [X20]                                              ; +0x188, 0x7ceb6c\nMOV             X0, X20                                                ; +0x18c, 0x7ceb70\nMOV             W2, #0x64 ; 'd'                                        ; +0x190, 0x7ceb74\nLDR             X3, [X3,#0x1D0]                                        ; +0x194, 0x7ceb78\nBLR             X3                                                     ; +0x198, 0x7ceb7c\nMOV             X0, X19; this                                          ; +0x19c, 0x7ceb80\nMOV             W1, #1; bool                                           ; +0x1a0, 0x7ceb84\nBL              _ZN8EditorUI12toggleLockUIEb; EditorUI::toggleLockUI(bool) ; +0x1a4, 0x7ceb88\nB               loc_7CEA14                                             ; +0x1a8, 0x7ceb8c\nSTRB            WZR, [X19,#0x635]                                      ; +0x1ac, 0x7ceb90\nMOV             X0, X19; this                                          ; +0x1b0, 0x7ceb94\nSTRB            WZR, [X19,#0x636]                                      ; +0x1b4, 0x7ceb98\nMOV             W1, #1; bool                                           ; +0x1b8, 0x7ceb9c\nBL              _ZN8EditorUI6showUIEb; EditorUI::showUI(bool)          ; +0x1bc, 0x7ceba0\nB               loc_7CEA5C                                             ; +0x1c0, 0x7ceba4\nLDR             X1, [X0,#0xF50]                                        ; +0x1c4, 0x7ceba8\nMOV             X0, X1                                                 ; +0x1c8, 0x7cebac\nLDR             X1, [X1]                                               ; +0x1cc, 0x7cebb0\nLDR             X1, [X1,#0xA8]                                         ; +0x1d0, 0x7cebb4\nBLR             X1                                                     ; +0x1d4, 0x7cebb8\nLDR             X0, [X19,#0x5A0]                                       ; +0x1d8, 0x7cebbc\nSTR             S0, [X19,#0x630]                                       ; +0x1dc, 0x7cebc0\nB               loc_7CEA6C                                             ; +0x1e0, 0x7cebc4\nBL              .__stack_chk_fail                                      ; +0x1e4, 0x7cebc8", "xrefs": ["EditorUI::keyBackClicked @ 0xbd6bdc", "EditorUI::handleAction @ 0xbd8b6c", "<???> @ 0xcc670", "EditorUI::init @ 0x7cfefc", "<???> @ 0x1546010"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}