{"type": "func", "start": 5369615984, "end": 5369616441, "name": "EditorPauseLayer::onResume", "pseudocode": "// \n// EditorPauseLayer::onResume from 0x1400dd670 to 0x1400dd839 (457 bytes)\n// \n// 3 xrefs:\n// > EditorPauseLayer::keyBackClicked @ 0x1400de609\n// > EditorPauseLayer::customSetup @ 0x1400da625\n// > <???> @ 0x1406c8a24\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\n// Hidden C++ exception states: #wind=2\nvoid EditorPauseLayer::onResume(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  EditorUI *m_editorUI; // rdi\n  GameManager *v6; // rcx\n  int IntGameVariable; // esi\n  GameManager *v8; // rcx\n  int v9; // ebp\n  unsigned int i; // ebx\n  EditButtonBar *v11; // rax\n  cocos2d::CCArray *m_buttonArray; // rdx\n  EditButtonBar *m_editButtonBar; // rcx\n  cocos2d::CCArray *v14; // rdx\n  void *v15; // [rsp+40h] [rbp+8h]\n  void *v16; // [rsp+40h] [rbp+8h]\n\n  if ( !a1->m_saved )\n  {\n    if ( a1->m_forcePrioRegistered )\n    {\n      a1->m_forcePrioRegistered = 0;\n      v3 = cocos2d::CCDirector::sharedDirector(a1);\n      v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n      cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);\n    }\n    LevelEditorLayer::updateOptions(a1->m_editorLayer);\n    a1->m_editorLayer->m_editorUI->m_isPaused = 0;\n    a1->removeMeAndCleanup(a1);\n    m_editorUI = a1->m_editorLayer->m_editorUI;\n    if ( m_editorUI->m_reloadItems )\n    {\n      m_editorUI->m_reloadItems = 0;\n      v6 = (GameManager *)qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v15 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00(v15);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v6 = (GameManager *)qword_1406C2ED8;\n      }\n      IntGameVariable = GameManager::getIntGameVariable(v6, \"0049\");\n      v8 = (GameManager *)qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v16 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00(v16);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v8 = (GameManager *)qword_1406C2ED8;\n      }\n      v9 = GameManager::getIntGameVariable(v8, \"0050\");\n      for ( i = 0; i < cocos2d::CCArray::count(m_editorUI->m_createButtonBars); ++i )\n      {\n        v11 = (EditButtonBar *)cocos2d::CCArray::objectAtIndex(m_editorUI->m_createButtonBars, i);\n        m_buttonArray = v11->m_buttonArray;\n        if ( m_buttonArray )\n          EditButtonBar::loadFromItems(v11, m_buttonArray, IntGameVariable, v9, 0);\n      }\n      m_editButtonBar = m_editorUI->m_editButtonBar;\n      v14 = m_editButtonBar->m_buttonArray;\n      if ( v14 )\n        EditButtonBar::loadFromItems(m_editButtonBar, v14, IntGameVariable, v9, 0);\n    }\n  }\n}", "assembly": "; \n; EditorPauseLayer::onResume from 0x1400dd670 to 0x1400dd839 (457 bytes)\n; \n; 3 xrefs:\n; > EditorPauseLayer::keyBackClicked @ 0x1400de609\n; > EditorPauseLayer::customSetup @ 0x1400da625\n; > <???> @ 0x1406c8a24\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400dd670\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1400dd675\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1400dd67a\npush    rdi                                                            ; +0xf, 0x1400dd67f\nsub     rsp, 30h                                                       ; +0x10, 0x1400dd680\nmov     rbx, rcx                                                       ; +0x14, 0x1400dd684\ncmp     byte ptr [rcx+230h], 0                                         ; +0x17, 0x1400dd687\njnz     loc_1400DD824                                                  ; +0x1e, 0x1400dd68e\ncmp     byte ptr [rcx+221h], 0                                         ; +0x24, 0x1400dd694\njz      short loc_1400DD6C2                                            ; +0x2b, 0x1400dd69b\nmov     byte ptr [rcx+221h], 0                                         ; +0x2d, 0x1400dd69d\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x34, 0x1400dd6a4\nmov     rdx, [rax]                                                     ; +0x3a, 0x1400dd6aa\nmov     rcx, rax                                                       ; +0x3d, 0x1400dd6ad\ncall    qword ptr [rdx+90h]                                            ; +0x40, 0x1400dd6b0\nmov     rcx, rax                                                       ; +0x46, 0x1400dd6b6\nmov     rdx, rbx                                                       ; +0x49, 0x1400dd6b9\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x4c, 0x1400dd6bc\nmov     rcx, [rbx+248h]                                                ; +0x52, 0x1400dd6c2\ncall    LevelEditorLayer__updateOptions                                ; +0x59, 0x1400dd6c9\nmov     rax, [rbx+248h]                                                ; +0x5e, 0x1400dd6ce\nmov     rcx, [rax+38A0h]                                               ; +0x65, 0x1400dd6d5\nmov     byte ptr [rcx+5A0h], 0                                         ; +0x6c, 0x1400dd6dc\nmov     rax, [rbx]                                                     ; +0x73, 0x1400dd6e3\nmov     rcx, rbx                                                       ; +0x76, 0x1400dd6e6\ncall    qword ptr [rax+200h]                                           ; +0x79, 0x1400dd6e9\nmov     rax, [rbx+248h]                                                ; +0x7f, 0x1400dd6ef\nmov     rdi, [rax+38A0h]                                               ; +0x86, 0x1400dd6f6\ncmp     byte ptr [rdi+5A1h], 0                                         ; +0x8d, 0x1400dd6fd\njz      loc_1400DD824                                                  ; +0x94, 0x1400dd704\nmov     byte ptr [rdi+5A1h], 0                                         ; +0x9a, 0x1400dd70a\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xa1, 0x1400dd711\ntest    rcx, rcx                                                       ; +0xa8, 0x1400dd718\njnz     short loc_1400DD74C                                            ; +0xab, 0x1400dd71b\nmov     ecx, 668h; Size                                                ; +0xad, 0x1400dd71d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb2, 0x1400dd722\nmov     [rsp+38h+arg_0], rax                                           ; +0xb7, 0x1400dd727\nmov     rcx, rax                                                       ; +0xbc, 0x1400dd72c\ncall    sub_14017AB00                                                  ; +0xbf, 0x1400dd72f\nnop                                                                    ; +0xc4, 0x1400dd734\nmov     cs:qword_1406C2ED8, rax                                        ; +0xc5, 0x1400dd735\nmov     rdx, [rax]                                                     ; +0xcc, 0x1400dd73c\nmov     rcx, rax                                                       ; +0xcf, 0x1400dd73f\ncall    qword ptr [rdx+48h]                                            ; +0xd2, 0x1400dd742\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xd5, 0x1400dd745\nlea     rdx, a0049; \"0049\"                                             ; +0xdc, 0x1400dd74c\ncall    GameManager__getIntGameVariable                                ; +0xe3, 0x1400dd753\nmov     esi, eax                                                       ; +0xe8, 0x1400dd758\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xea, 0x1400dd75a\ntest    rcx, rcx                                                       ; +0xf1, 0x1400dd761\njnz     short loc_1400DD795                                            ; +0xf4, 0x1400dd764\nmov     ecx, 668h; Size                                                ; +0xf6, 0x1400dd766\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xfb, 0x1400dd76b\nmov     [rsp+38h+arg_0], rax                                           ; +0x100, 0x1400dd770\nmov     rcx, rax                                                       ; +0x105, 0x1400dd775\ncall    sub_14017AB00                                                  ; +0x108, 0x1400dd778\nnop                                                                    ; +0x10d, 0x1400dd77d\nmov     cs:qword_1406C2ED8, rax                                        ; +0x10e, 0x1400dd77e\nmov     rdx, [rax]                                                     ; +0x115, 0x1400dd785\nmov     rcx, rax                                                       ; +0x118, 0x1400dd788\ncall    qword ptr [rdx+48h]                                            ; +0x11b, 0x1400dd78b\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x11e, 0x1400dd78e\nlea     rdx, a0050; \"0050\"                                             ; +0x125, 0x1400dd795\ncall    GameManager__getIntGameVariable                                ; +0x12c, 0x1400dd79c\nmov     ebp, eax                                                       ; +0x131, 0x1400dd7a1\nxor     ebx, ebx                                                       ; +0x133, 0x1400dd7a3\nmov     rcx, [rdi+440h]                                                ; +0x135, 0x1400dd7a5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x13c, 0x1400dd7ac\ntest    eax, eax                                                       ; +0x142, 0x1400dd7b2\njz      short loc_1400DD801                                            ; +0x144, 0x1400dd7b4\nnop     word ptr [rax+rax+00000000h]                                   ; +0x146, 0x1400dd7b6\nmov     edx, ebx                                                       ; +0x150, 0x1400dd7c0\nmov     rcx, [rdi+440h]                                                ; +0x152, 0x1400dd7c2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x159, 0x1400dd7c9\nmov     rdx, [rax+150h]                                                ; +0x15f, 0x1400dd7cf\ntest    rdx, rdx                                                       ; +0x166, 0x1400dd7d6\njz      short loc_1400DD7EE                                            ; +0x169, 0x1400dd7d9\nmov     [rsp+38h+var_18], 0                                            ; +0x16b, 0x1400dd7db\nmov     r9d, ebp                                                       ; +0x170, 0x1400dd7e0\nmov     r8d, esi                                                       ; +0x173, 0x1400dd7e3\nmov     rcx, rax                                                       ; +0x176, 0x1400dd7e6\ncall    EditButtonBar__loadFromItems                                   ; +0x179, 0x1400dd7e9\ninc     ebx                                                            ; +0x17e, 0x1400dd7ee\nmov     rcx, [rdi+440h]                                                ; +0x180, 0x1400dd7f0\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x187, 0x1400dd7f7\ncmp     ebx, eax                                                       ; +0x18d, 0x1400dd7fd\njb      short loc_1400DD7C0                                            ; +0x18f, 0x1400dd7ff\nmov     rcx, [rdi+300h]                                                ; +0x191, 0x1400dd801\nmov     rdx, [rcx+150h]                                                ; +0x198, 0x1400dd808\ntest    rdx, rdx                                                       ; +0x19f, 0x1400dd80f\njz      short loc_1400DD824                                            ; +0x1a2, 0x1400dd812\nmov     [rsp+38h+var_18], 0                                            ; +0x1a4, 0x1400dd814\nmov     r9d, ebp                                                       ; +0x1a9, 0x1400dd819\nmov     r8d, esi                                                       ; +0x1ac, 0x1400dd81c\ncall    EditButtonBar__loadFromItems                                   ; +0x1af, 0x1400dd81f\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x1b4, 0x1400dd824\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x1b9, 0x1400dd829\nmov     rsi, [rsp+38h+arg_18]                                          ; +0x1be, 0x1400dd82e\nadd     rsp, 30h                                                       ; +0x1c3, 0x1400dd833\npop     rdi                                                            ; +0x1c7, 0x1400dd837\nretn                                                                   ; +0x1c8, 0x1400dd838", "xrefs": ["EditorPauseLayer::keyBackClicked @ 0x1400de609", "EditorPauseLayer::customSetup @ 0x1400da625", "<???> @ 0x1406c8a24"], "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"}