{"type": "func", "start": 5369829632, "end": 5369830043, "name": "EditorUI::showUI", "pseudocode": "// \n// EditorUI::showUI from 0x140111900 to 0x140111a9b (411 bytes)\n// \n// 6 xrefs:\n// > EditorUI::onPause @ 0x1400e1a2a\n// > EditorUI::onPlaytest @ 0x14011247b\n// > EditorUI::onStopPlaytest @ 0x14011253b\n// > EditorUI::playtestStopped @ 0x140112589\n// > EditorUI::keyDown @ 0x140126732\n// > <???> @ 0x1406c8fb8\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=1\nvoid EditorUI::showUI(EditorUI *a1, bool a2)\n{\n  GameManager *v4; // rcx\n  bool v5; // si\n  unsigned int i; // edi\n  _BOOL8 v7; // rdx\n  struct cocos2d::CCObject *v8; // rax\n  EditButtonBar *m_createButtonBar; // rcx\n  int *p_m_selectedMode; // rdi\n  _BOOL8 v11; // rdx\n  void *v12; // [rsp+30h] [rbp+8h]\n\n  v4 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v12 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v12);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v4 = (GameManager *)qword_1406C2ED8;\n  }\n  v5 = 1;\n  if ( GameManager::getGameVariable(v4, \"0046\") )\n    v5 = a2;\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_uiItems); ++i )\n  {\n    v8 = cocos2d::CCArray::objectAtIndex(a1->m_uiItems, i);\n    ((void (__fastcall *)(struct cocos2d::CCObject *, bool))v8->__vftable[4].update)(v8, v5);\n  }\n  if ( !a1->m_stickyControlsEnabled )\n  {\n    a1->m_unlinkBtn->setVisible(a1->m_unlinkBtn, 0);\n    a1->m_linkBtn->setVisible(a1->m_linkBtn, 0);\n    a1->m_enableLinkBtn->setVisible(a1->m_enableLinkBtn, 0);\n  }\n  m_createButtonBar = a1->m_createButtonBar;\n  p_m_selectedMode = &a1->m_selectedMode;\n  if ( m_createButtonBar )\n  {\n    if ( v5 && *p_m_selectedMode == 2 )\n      LOBYTE(v7) = 1;\n    else\n      v7 = 0;\n    m_createButtonBar->setVisible(m_createButtonBar, v7);\n  }\n  if ( v5 && *p_m_selectedMode == 3 )\n  {\n    LOBYTE(v7) = 1;\n    a1->m_editButtonBar->setVisible(a1->m_editButtonBar, v7);\n  }\n  else\n  {\n    a1->m_editButtonBar->setVisible(a1->m_editButtonBar, 0);\n    if ( !v5 )\n      goto LABEL_21;\n  }\n  if ( *p_m_selectedMode != 1 )\n  {\nLABEL_21:\n    a1->m_deleteMenu->setVisible(a1->m_deleteMenu, 0);\n    if ( !v5 )\n      return;\n    goto LABEL_22;\n  }\n  LOBYTE(v11) = 1;\n  a1->m_deleteMenu->setVisible(a1->m_deleteMenu, v11);\nLABEL_22:\n  EditorUI::updateGroupIDLabel(a1);\n}", "assembly": "; \n; EditorUI::showUI from 0x140111900 to 0x140111a9b (411 bytes)\n; \n; 6 xrefs:\n; > EditorUI::onPause @ 0x1400e1a2a\n; > EditorUI::onPlaytest @ 0x14011247b\n; > EditorUI::onStopPlaytest @ 0x14011253b\n; > EditorUI::playtestStopped @ 0x140112589\n; > EditorUI::keyDown @ 0x140126732\n; > <???> @ 0x1406c8fb8\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, 0x140111900\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140111905\npush    rdi                                                            ; +0xa, 0x14011190a\nsub     rsp, 20h                                                       ; +0xb, 0x14011190b\nmovzx   edi, dl                                                        ; +0xf, 0x14011190f\nmov     rbx, rcx                                                       ; +0x12, 0x140111912\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x15, 0x140111915\ntest    rcx, rcx                                                       ; +0x1c, 0x14011191c\njnz     short loc_140111950                                            ; +0x1f, 0x14011191f\nmov     ecx, 668h; Size                                                ; +0x21, 0x140111921\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x26, 0x140111926\nmov     [rsp+28h+arg_0], rax                                           ; +0x2b, 0x14011192b\nmov     rcx, rax                                                       ; +0x30, 0x140111930\ncall    sub_14017AB00                                                  ; +0x33, 0x140111933\nnop                                                                    ; +0x38, 0x140111938\nmov     cs:qword_1406C2ED8, rax                                        ; +0x39, 0x140111939\nmov     rdx, [rax]                                                     ; +0x40, 0x140111940\nmov     rcx, rax                                                       ; +0x43, 0x140111943\ncall    qword ptr [rdx+48h]                                            ; +0x46, 0x140111946\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x49, 0x140111949\nlea     rdx, a0046; \"0046\"                                             ; +0x50, 0x140111950\ncall    GameManager__getGameVariable                                   ; +0x57, 0x140111957\nmov     esi, 1                                                         ; +0x5c, 0x14011195c\ntest    al, al                                                         ; +0x61, 0x140111961\ncmovnz  esi, edi                                                       ; +0x63, 0x140111963\nxor     edi, edi                                                       ; +0x66, 0x140111966\nmov     rcx, [rbx+270h]                                                ; +0x68, 0x140111968\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6f, 0x14011196f\ntest    eax, eax                                                       ; +0x75, 0x140111975\njz      short loc_1401119B3                                            ; +0x77, 0x140111977\nnop     dword ptr [rax+00000000h]                                      ; +0x79, 0x140111979\nmov     edx, edi                                                       ; +0x80, 0x140111980\nmov     rcx, [rbx+270h]                                                ; +0x82, 0x140111982\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x89, 0x140111989\nmov     r8, [rax]                                                      ; +0x8f, 0x14011198f\nmovzx   edx, sil                                                       ; +0x92, 0x140111992\nmov     rcx, rax                                                       ; +0x96, 0x140111996\ncall    qword ptr [r8+140h]                                            ; +0x99, 0x140111999\ninc     edi                                                            ; +0xa0, 0x1401119a0\nmov     rcx, [rbx+270h]                                                ; +0xa2, 0x1401119a2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa9, 0x1401119a9\ncmp     edi, eax                                                       ; +0xaf, 0x1401119af\njb      short loc_140111980                                            ; +0xb1, 0x1401119b1\ncmp     byte ptr [rbx+323h], 0                                         ; +0xb3, 0x1401119b3\njnz     short loc_1401119F2                                            ; +0xba, 0x1401119ba\nmov     rcx, [rbx+3C0h]                                                ; +0xbc, 0x1401119bc\nmov     rax, [rcx]                                                     ; +0xc3, 0x1401119c3\nxor     edx, edx                                                       ; +0xc6, 0x1401119c6\ncall    qword ptr [rax+140h]                                           ; +0xc8, 0x1401119c8\nmov     rcx, [rbx+3B8h]                                                ; +0xce, 0x1401119ce\nmov     rax, [rcx]                                                     ; +0xd5, 0x1401119d5\nxor     edx, edx                                                       ; +0xd8, 0x1401119d8\ncall    qword ptr [rax+140h]                                           ; +0xda, 0x1401119da\nmov     rcx, [rbx+3C8h]                                                ; +0xe0, 0x1401119e0\nmov     rax, [rcx]                                                     ; +0xe7, 0x1401119e7\nxor     edx, edx                                                       ; +0xea, 0x1401119ea\ncall    qword ptr [rax+140h]                                           ; +0xec, 0x1401119ec\nmov     rcx, [rbx+2F8h]                                                ; +0xf2, 0x1401119f2\nlea     rdi, [rbx+4F8h]                                                ; +0xf9, 0x1401119f9\ntest    rcx, rcx                                                       ; +0x100, 0x140111a00\njz      short loc_140111A1E                                            ; +0x103, 0x140111a03\ntest    sil, sil                                                       ; +0x105, 0x140111a05\njz      short loc_140111A13                                            ; +0x108, 0x140111a08\ncmp     dword ptr [rdi], 2                                             ; +0x10a, 0x140111a0a\njnz     short loc_140111A13                                            ; +0x10d, 0x140111a0d\nmov     dl, 1                                                          ; +0x10f, 0x140111a0f\njmp     short loc_140111A15                                            ; +0x111, 0x140111a11\nxor     edx, edx                                                       ; +0x113, 0x140111a13\nmov     rax, [rcx]                                                     ; +0x115, 0x140111a15\ncall    qword ptr [rax+140h]                                           ; +0x118, 0x140111a18\ntest    sil, sil                                                       ; +0x11e, 0x140111a1e\njz      short loc_140111A3C                                            ; +0x121, 0x140111a21\ncmp     dword ptr [rdi], 3                                             ; +0x123, 0x140111a23\njnz     short loc_140111A3C                                            ; +0x126, 0x140111a26\nmov     rcx, [rbx+300h]                                                ; +0x128, 0x140111a28\nmov     rax, [rcx]                                                     ; +0x12f, 0x140111a2f\nmov     dl, 1                                                          ; +0x132, 0x140111a32\ncall    qword ptr [rax+140h]                                           ; +0x134, 0x140111a34\njmp     short loc_140111A53                                            ; +0x13a, 0x140111a3a\nmov     rcx, [rbx+300h]                                                ; +0x13c, 0x140111a3c\nmov     rax, [rcx]                                                     ; +0x143, 0x140111a43\nxor     edx, edx                                                       ; +0x146, 0x140111a46\ncall    qword ptr [rax+140h]                                           ; +0x148, 0x140111a48\ntest    sil, sil                                                       ; +0x14e, 0x140111a4e\njz      short loc_140111A6C                                            ; +0x151, 0x140111a51\ncmp     dword ptr [rdi], 1                                             ; +0x153, 0x140111a53\njnz     short loc_140111A6C                                            ; +0x156, 0x140111a56\nmov     rcx, [rbx+348h]                                                ; +0x158, 0x140111a58\nmov     rax, [rcx]                                                     ; +0x15f, 0x140111a5f\nmov     dl, 1                                                          ; +0x162, 0x140111a62\ncall    qword ptr [rax+140h]                                           ; +0x164, 0x140111a64\njmp     short loc_140111A83                                            ; +0x16a, 0x140111a6a\nmov     rcx, [rbx+348h]                                                ; +0x16c, 0x140111a6c\nmov     rax, [rcx]                                                     ; +0x173, 0x140111a73\nxor     edx, edx                                                       ; +0x176, 0x140111a76\ncall    qword ptr [rax+140h]                                           ; +0x178, 0x140111a78\ntest    sil, sil                                                       ; +0x17e, 0x140111a7e\njz      short loc_140111A8B                                            ; +0x181, 0x140111a81\nmov     rcx, rbx                                                       ; +0x183, 0x140111a83\ncall    EditorUI__updateGroupIDLabel                                   ; +0x186, 0x140111a86\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x18b, 0x140111a8b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x190, 0x140111a90\nadd     rsp, 20h                                                       ; +0x195, 0x140111a95\npop     rdi                                                            ; +0x199, 0x140111a99\nretn                                                                   ; +0x19a, 0x140111a9a", "xrefs": ["EditorUI::onPause @ 0x1400e1a2a", "EditorUI::onPlaytest @ 0x14011247b", "EditorUI::onStopPlaytest @ 0x14011253b", "EditorUI::playtestStopped @ 0x140112589", "EditorUI::keyDown @ 0x140126732", "<???> @ 0x1406c8fb8"], "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"}