{"type": "func", "start": 4299626296, "end": 4299626536, "name": "EditorUI::resetUI", "pseudocode": "// \n// EditorUI::resetUI from 0x100471738 to 0x100471828 (240 bytes)\n// \n// 2 xrefs:\n// > EditorUI::init @ 0x10046f868\n// > EditorUI::toggleMode @ 0x100470c1c\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 11:05:38 +0000\n// \n\ndouble __fastcall EditorUI::resetUI(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 v3; // x0\n  __int64 v4; // x0\n  __int64 v5; // x0\n  _BOOL8 v6; // x1\n  double result; // d0\n\n  v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 920) + 1072LL))(*(_QWORD *)(a1 + 920));\n  ButtonSprite::updateBGImage(v2, (__int64)\"GJ_button_04.png\");\n  v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 928) + 1072LL))(*(_QWORD *)(a1 + 928));\n  ButtonSprite::updateBGImage(v3, (__int64)\"GJ_button_04.png\");\n  v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 936) + 1072LL))(*(_QWORD *)(a1 + 936));\n  ButtonSprite::updateBGImage(v4, (__int64)\"GJ_button_04.png\");\n  v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 944) + 1072LL))(*(_QWORD *)(a1 + 944));\n  ButtonSprite::updateBGImage(v5, (__int64)\"GJ_button_04.png\");\n  EditorUI::updateDeleteMenu(a1);\n  EditorUI::updateCreateMenu(a1, 0);\n  EditorUI::updateEditMenu(a1);\n  v6 = 0;\n  if ( (*(_BYTE *)(a1 + 1589) & 1) == 0 )\n    v6 = *(_DWORD *)(a1 + 1436) == 4;\n  (*(void (__fastcall **)(_QWORD, _BOOL8))(**(_QWORD **)(a1 + 1384) + 344LL))(*(_QWORD *)(a1 + 1384), v6);\n  EditorUI::updateGridNodeSize(a1);\n  if ( *(_BYTE *)(a1 + 1589) == 1 )\n    return EditorUI::showUI(a1, 0);\n  return result;\n}", "assembly": "; \n; EditorUI::resetUI from 0x100471738 to 0x100471828 (240 bytes)\n; \n; 2 xrefs:\n; > EditorUI::init @ 0x10046f868\n; > EditorUI::toggleMode @ 0x100470c1c\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 11:05:38 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100471738\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10047173c\nADD             X29, SP, #0x10                                         ; +0x8, 0x100471740\nMOV             X19, X0                                                ; +0xc, 0x100471744\nLDR             X0, [X0,#0x398]                                        ; +0x10, 0x100471748\nLDR             X8, [X0]                                               ; +0x14, 0x10047174c\nLDR             X8, [X8,#0x430]                                        ; +0x18, 0x100471750\nBLR             X8                                                     ; +0x1c, 0x100471754\nADRL            X20, aGjButton04Png; \"GJ_button_04.png\"                ; +0x20, 0x100471758\nMOV             X1, X20                                                ; +0x28, 0x100471760\nBL              ButtonSprite__updateBGImage                            ; +0x2c, 0x100471764\nLDR             X0, [X19,#0x3A0]                                       ; +0x30, 0x100471768\nLDR             X8, [X0]                                               ; +0x34, 0x10047176c\nLDR             X8, [X8,#0x430]                                        ; +0x38, 0x100471770\nBLR             X8                                                     ; +0x3c, 0x100471774\nMOV             X1, X20                                                ; +0x40, 0x100471778\nBL              ButtonSprite__updateBGImage                            ; +0x44, 0x10047177c\nLDR             X0, [X19,#0x3A8]                                       ; +0x48, 0x100471780\nLDR             X8, [X0]                                               ; +0x4c, 0x100471784\nLDR             X8, [X8,#0x430]                                        ; +0x50, 0x100471788\nBLR             X8                                                     ; +0x54, 0x10047178c\nMOV             X1, X20                                                ; +0x58, 0x100471790\nBL              ButtonSprite__updateBGImage                            ; +0x5c, 0x100471794\nLDR             X0, [X19,#0x3B0]                                       ; +0x60, 0x100471798\nLDR             X8, [X0]                                               ; +0x64, 0x10047179c\nLDR             X8, [X8,#0x430]                                        ; +0x68, 0x1004717a0\nBLR             X8                                                     ; +0x6c, 0x1004717a4\nMOV             X1, X20                                                ; +0x70, 0x1004717a8\nBL              ButtonSprite__updateBGImage                            ; +0x74, 0x1004717ac\nMOV             X0, X19                                                ; +0x78, 0x1004717b0\nBL              EditorUI__updateDeleteMenu                             ; +0x7c, 0x1004717b4\nMOV             X0, X19                                                ; +0x80, 0x1004717b8\nMOV             W1, #0                                                 ; +0x84, 0x1004717bc\nBL              EditorUI__updateCreateMenu                             ; +0x88, 0x1004717c0\nMOV             X0, X19                                                ; +0x8c, 0x1004717c4\nBL              EditorUI__updateEditMenu                               ; +0x90, 0x1004717c8\nMOV             W1, #0                                                 ; +0x94, 0x1004717cc\nLDR             X0, [X19,#0x568]                                       ; +0x98, 0x1004717d0\nLDRB            W8, [X19,#0x635]                                       ; +0x9c, 0x1004717d4\nTBNZ            W8, #0, loc_1004717E8                                  ; +0xa0, 0x1004717d8\nLDR             W8, [X19,#0x59C]                                       ; +0xa4, 0x1004717dc\nCMP             W8, #4                                                 ; +0xa8, 0x1004717e0\nCSET            W1, EQ                                                 ; +0xac, 0x1004717e4\nLDR             X8, [X0]                                               ; +0xb0, 0x1004717e8\nLDR             X8, [X8,#0x158]                                        ; +0xb4, 0x1004717ec\nBLR             X8                                                     ; +0xb8, 0x1004717f0\nMOV             X0, X19                                                ; +0xbc, 0x1004717f4\nBL              EditorUI__updateGridNodeSize                           ; +0xc0, 0x1004717f8\nLDRB            W8, [X19,#0x635]                                       ; +0xc4, 0x1004717fc\nCMP             W8, #1                                                 ; +0xc8, 0x100471800\nB.NE            loc_10047181C                                          ; +0xcc, 0x100471804\nMOV             X0, X19                                                ; +0xd0, 0x100471808\nMOV             W1, #0                                                 ; +0xd4, 0x10047180c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xd8, 0x100471810\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xdc, 0x100471814\nB               EditorUI__showUI                                       ; +0xe0, 0x100471818\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xe4, 0x10047181c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xe8, 0x100471820\nRET                                                                    ; +0xec, 0x100471824", "xrefs": ["EditorUI::init @ 0x10046f868", "EditorUI::toggleMode @ 0x100470c1c"], "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"}