{"type": "func", "start": 4295219008, "end": 4295219354, "name": "EditorUI::showUI", "pseudocode": "// \n// EditorUI::showUI from 0x10003d740 to 0x10003d89a (346 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onPlaytest @ 0x10000c678\n// > EditorUI::onStopPlaytest @ 0x10000c743\n// > EditorUI::onStopPlaytest @ 0x10000c76d\n// > EditorUI::playtestStopped @ 0x10003d8e3\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::showUI(EditorUI *a1, bool a2)\n{\n  GameManager *v3; // rax\n  unsigned __int8 v4; // r14\n  unsigned int v5; // r15d\n  __int64 v6; // rax\n  EditButtonBar *m_createButtonBar; // rdi\n  bool v8; // al\n  bool v9; // al\n  cocos2d::CCMenu *m_deleteMenu; // rdi\n\n  v3 = GameManager::sharedState();\n  v4 = a2 | !GameManager::getGameVariable(v3, \"0046\");\n  if ( (unsigned int)sub_100720070(a1->m_uiItems) )\n  {\n    v5 = 0;\n    do\n    {\n      v6 = sub_1007200C0(a1->m_uiItems, v5);\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 328LL))(v6, v4);\n      ++v5;\n    }\n    while ( v5 < (unsigned int)sub_100720070(a1->m_uiItems) );\n  }\n  if ( !a1->m_stickyControlsEnabled )\n  {\n    ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_unlinkBtn->setVisible)(a1->m_unlinkBtn, 0);\n    ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_linkBtn->setVisible)(a1->m_linkBtn, 0);\n    ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_enableLinkBtn->setVisible)(a1->m_enableLinkBtn, 0);\n  }\n  m_createButtonBar = a1->m_createButtonBar;\n  if ( m_createButtonBar )\n  {\n    if ( v4 )\n      v8 = a1->m_selectedMode == 2;\n    else\n      v8 = 0;\n    ((void (__fastcall *)(EditButtonBar *, bool))m_createButtonBar->setVisible)(m_createButtonBar, v8);\n  }\n  if ( v4 )\n    v9 = a1->m_selectedMode == 3;\n  else\n    v9 = 0;\n  ((void (__fastcall *)(EditButtonBar *, bool))a1->m_editButtonBar->setVisible)(a1->m_editButtonBar, v9);\n  m_deleteMenu = a1->m_deleteMenu;\n  if ( v4 )\n  {\n    ((void (__fastcall *)(cocos2d::CCMenu *, bool))m_deleteMenu->setVisible)(m_deleteMenu, a1->m_selectedMode == 1);\n    EditorUI::updateGroupIDLabel(a1);\n  }\n  else\n  {\n    ((void (__fastcall *)(cocos2d::CCMenu *, _QWORD))m_deleteMenu->setVisible)(m_deleteMenu, 0);\n  }\n}", "assembly": "; \n; EditorUI::showUI from 0x10003d740 to 0x10003d89a (346 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onPlaytest @ 0x10000c678\n; > EditorUI::onStopPlaytest @ 0x10000c743\n; > EditorUI::onStopPlaytest @ 0x10000c76d\n; > EditorUI::playtestStopped @ 0x10003d8e3\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\npush    rbp                                                            ; +0x0, 0x10003d740\nmov     rbp, rsp                                                       ; +0x1, 0x10003d741\npush    r15                                                            ; +0x4, 0x10003d744\npush    r14                                                            ; +0x6, 0x10003d746\npush    r12                                                            ; +0x8, 0x10003d748\npush    rbx                                                            ; +0xa, 0x10003d74a\nmov     r15d, esi                                                      ; +0xb, 0x10003d74b\nmov     rbx, rdi                                                       ; +0xe, 0x10003d74e\ncall    GameManager__sharedState                                       ; +0x11, 0x10003d751\nlea     rsi, a0046; \"0046\"                                             ; +0x16, 0x10003d756\nmov     rdi, rax                                                       ; +0x1d, 0x10003d75d\ncall    GameManager__getGameVariable                                   ; +0x20, 0x10003d760\nmov     r14d, eax                                                      ; +0x25, 0x10003d765\nxor     r14b, 1                                                        ; +0x28, 0x10003d768\nor      r14b, r15b                                                     ; +0x2c, 0x10003d76c\nmov     rdi, [rbx+258h]                                                ; +0x2f, 0x10003d76f\ncall    sub_100720070                                                  ; +0x36, 0x10003d776\ntest    eax, eax                                                       ; +0x3b, 0x10003d77b\njz      short loc_10003D7C2                                            ; +0x3d, 0x10003d77d\nxor     r15d, r15d                                                     ; +0x3f, 0x10003d77f\nmovzx   r12d, r14b                                                     ; +0x42, 0x10003d782\nnop     word ptr [rax+rax+00000000h]                                   ; +0x46, 0x10003d786\nmov     rdi, [rbx+258h]                                                ; +0x50, 0x10003d790\nmov     esi, r15d                                                      ; +0x57, 0x10003d797\ncall    sub_1007200C0                                                  ; +0x5a, 0x10003d79a\nmov     rcx, [rax]                                                     ; +0x5f, 0x10003d79f\nmov     rdi, rax                                                       ; +0x62, 0x10003d7a2\nmov     esi, r12d                                                      ; +0x65, 0x10003d7a5\ncall    qword ptr [rcx+148h]                                           ; +0x68, 0x10003d7a8\ninc     r15d                                                           ; +0x6e, 0x10003d7ae\nmov     rdi, [rbx+258h]                                                ; +0x71, 0x10003d7b1\ncall    sub_100720070                                                  ; +0x78, 0x10003d7b8\ncmp     r15d, eax                                                      ; +0x7d, 0x10003d7bd\njb      short loc_10003D790                                            ; +0x80, 0x10003d7c0\ncmp     byte ptr [rbx+30Bh], 0                                         ; +0x82, 0x10003d7c2\njnz     short loc_10003D801                                            ; +0x89, 0x10003d7c9\nmov     rdi, [rbx+3A8h]                                                ; +0x8b, 0x10003d7cb\nmov     rax, [rdi]                                                     ; +0x92, 0x10003d7d2\nxor     esi, esi                                                       ; +0x95, 0x10003d7d5\ncall    qword ptr [rax+148h]                                           ; +0x97, 0x10003d7d7\nmov     rdi, [rbx+3A0h]                                                ; +0x9d, 0x10003d7dd\nmov     rax, [rdi]                                                     ; +0xa4, 0x10003d7e4\nxor     esi, esi                                                       ; +0xa7, 0x10003d7e7\ncall    qword ptr [rax+148h]                                           ; +0xa9, 0x10003d7e9\nmov     rdi, [rbx+3B0h]                                                ; +0xaf, 0x10003d7ef\nmov     rax, [rdi]                                                     ; +0xb6, 0x10003d7f6\nxor     esi, esi                                                       ; +0xb9, 0x10003d7f9\ncall    qword ptr [rax+148h]                                           ; +0xbb, 0x10003d7fb\nmov     rdi, [rbx+2E0h]                                                ; +0xc1, 0x10003d801\ntest    rdi, rdi                                                       ; +0xc8, 0x10003d808\njz      short loc_10003D82C                                            ; +0xcb, 0x10003d80b\ntest    r14b, r14b                                                     ; +0xcd, 0x10003d80d\njz      short loc_10003D81E                                            ; +0xd0, 0x10003d810\ncmp     dword ptr [rbx+4E0h], 2                                        ; +0xd2, 0x10003d812\nsetz    al                                                             ; +0xd9, 0x10003d819\njmp     short loc_10003D820                                            ; +0xdc, 0x10003d81c\nxor     eax, eax                                                       ; +0xde, 0x10003d81e\nmov     rcx, [rdi]                                                     ; +0xe0, 0x10003d820\nmovzx   esi, al                                                        ; +0xe3, 0x10003d823\ncall    qword ptr [rcx+148h]                                           ; +0xe6, 0x10003d826\nmov     rdi, [rbx+2E8h]                                                ; +0xec, 0x10003d82c\ntest    r14b, r14b                                                     ; +0xf3, 0x10003d833\njz      short loc_10003D844                                            ; +0xf6, 0x10003d836\ncmp     dword ptr [rbx+4E0h], 3                                        ; +0xf8, 0x10003d838\nsetz    al                                                             ; +0xff, 0x10003d83f\njmp     short loc_10003D846                                            ; +0x102, 0x10003d842\nxor     eax, eax                                                       ; +0x104, 0x10003d844\nmov     rcx, [rdi]                                                     ; +0x106, 0x10003d846\nmovzx   esi, al                                                        ; +0x109, 0x10003d849\ncall    qword ptr [rcx+148h]                                           ; +0x10c, 0x10003d84c\nmov     rdi, [rbx+330h]                                                ; +0x112, 0x10003d852\ntest    r14b, r14b                                                     ; +0x119, 0x10003d859\njz      short loc_10003D884                                            ; +0x11c, 0x10003d85c\nxor     esi, esi                                                       ; +0x11e, 0x10003d85e\ncmp     dword ptr [rbx+4E0h], 1                                        ; +0x120, 0x10003d860\nsetz    sil                                                            ; +0x127, 0x10003d867\nmov     rax, [rdi]                                                     ; +0x12b, 0x10003d86b\ncall    qword ptr [rax+148h]                                           ; +0x12e, 0x10003d86e\nmov     rdi, rbx                                                       ; +0x134, 0x10003d874\npop     rbx                                                            ; +0x137, 0x10003d877\npop     r12                                                            ; +0x138, 0x10003d878\npop     r14                                                            ; +0x13a, 0x10003d87a\npop     r15                                                            ; +0x13c, 0x10003d87c\npop     rbp                                                            ; +0x13e, 0x10003d87e\njmp     EditorUI__updateGroupIDLabel                                   ; +0x13f, 0x10003d87f\nmov     rax, [rdi]                                                     ; +0x144, 0x10003d884\nmov     rax, [rax+148h]                                                ; +0x147, 0x10003d887\nxor     esi, esi                                                       ; +0x14e, 0x10003d88e\npop     rbx                                                            ; +0x150, 0x10003d890\npop     r12                                                            ; +0x151, 0x10003d891\npop     r14                                                            ; +0x153, 0x10003d893\npop     r15                                                            ; +0x155, 0x10003d895\npop     rbp                                                            ; +0x157, 0x10003d897\njmp     rax                                                            ; +0x158, 0x10003d898", "xrefs": ["EditorUI::onPlaytest @ 0x10000c678", "EditorUI::onStopPlaytest @ 0x10000c743", "EditorUI::onStopPlaytest @ 0x10000c76d", "EditorUI::playtestStopped @ 0x10003d8e3"], "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"}