{"type": "func", "start": 4299631528, "end": 4299631720, "name": "EditorUI::onGoToLayer", "pseudocode": "// \n// EditorUI::onGoToLayer from 0x100472ba8 to 0x100472c68 (192 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x100162b00\n// > EditorUI::init @ 0x100470214\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:39 +0000\n// \n\n__int64 __fastcall EditorUI::onGoToLayer(__int64 *a1)\n{\n  __int64 v2; // x9\n  __int64 v3; // x8\n  int v4; // w21\n  int v5; // w20\n  int v6; // w0\n  bool v7; // zf\n  __int16 v8; // w9\n  int v9; // w10\n  __int64 result; // x0\n  __int64 v12; // x0\n\n  v2 = a1[187];\n  if ( v2 )\n  {\n    v3 = a1[180];\n    v4 = *(__int16 *)(v3 + 14210);\n  }\n  else\n  {\n    result = sub_1002E757C(a1[112]);\n    if ( !(_DWORD)result )\n      return result;\n    v2 = a1[187];\n    v3 = a1[180];\n    v4 = *(__int16 *)(v3 + 14210);\n    if ( !v2 )\n    {\n      v12 = ((__int64 (*)(void))EditorUI::editorLayerForArray)();\n      v5 = v12;\n      v6 = EditorUI::editorLayerForArray(v12, a1[112], 1);\n      v3 = a1[180];\n      goto LABEL_4;\n    }\n  }\n  v5 = *(__int16 *)(v2 + 1202);\n  v6 = *(__int16 *)(v2 + 1204);\nLABEL_4:\n  if ( v6 )\n    v7 = v5 == 0;\n  else\n    v7 = 0;\n  if ( v7 )\n    v8 = v6;\n  else\n    v8 = v5;\n  if ( v5 )\n    v9 = v6;\n  else\n    v9 = 0;\n  if ( v9 != v4 && v9 != 0 )\n    v8 = v9;\n  *(_WORD *)(v3 + 14210) = v8;\n  return EditorUI::updateGroupIDLabel(a1);\n}", "assembly": "; \n; EditorUI::onGoToLayer from 0x100472ba8 to 0x100472c68 (192 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x100162b00\n; > EditorUI::init @ 0x100470214\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:39 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100472ba8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100472bac\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100472bb0\nADD             X29, SP, #0x20                                         ; +0xc, 0x100472bb4\nMOV             X19, X0                                                ; +0x10, 0x100472bb8\nLDR             X9, [X0,#0x5D8]                                        ; +0x14, 0x100472bbc\nCBZ             X9, loc_100472C14                                      ; +0x18, 0x100472bc0\nLDR             X8, [X19,#0x5A0]                                       ; +0x1c, 0x100472bc4\nMOV             W10, #0x3782                                           ; +0x20, 0x100472bc8\nLDRSH           W21, [X8,X10]                                          ; +0x24, 0x100472bcc\nLDRSH           W20, [X9,#0x4B2]                                       ; +0x28, 0x100472bd0\nLDRSH           W0, [X9,#0x4B4]                                        ; +0x2c, 0x100472bd4\nCMP             W0, #0                                                 ; +0x30, 0x100472bd8\nCCMP            W20, #0, #0, NE                                        ; +0x34, 0x100472bdc\nCSEL            W9, W0, W20, EQ                                        ; +0x38, 0x100472be0\nCMP             W20, #0                                                ; +0x3c, 0x100472be4\nCSEL            W10, WZR, W0, EQ                                       ; +0x40, 0x100472be8\nCMP             W10, W21                                               ; +0x44, 0x100472bec\nCCMP            W10, #0, #4, NE                                        ; +0x48, 0x100472bf0\nCSEL            W9, W9, W10, EQ                                        ; +0x4c, 0x100472bf4\nMOV             W10, #0x3782                                           ; +0x50, 0x100472bf8\nSTRH            W9, [X8,X10]                                           ; +0x54, 0x100472bfc\nMOV             X0, X19                                                ; +0x58, 0x100472c00\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x5c, 0x100472c04\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x60, 0x100472c08\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x64, 0x100472c0c\nB               EditorUI__updateGroupIDLabel                           ; +0x68, 0x100472c10\nLDR             X0, [X19,#0x380]                                       ; +0x6c, 0x100472c14\nBL              sub_1002E757C                                          ; +0x70, 0x100472c18\nCBZ             W0, loc_100472C58                                      ; +0x74, 0x100472c1c\nLDR             X9, [X19,#0x5D8]                                       ; +0x78, 0x100472c20\nLDR             X8, [X19,#0x5A0]                                       ; +0x7c, 0x100472c24\nMOV             W10, #0x3782                                           ; +0x80, 0x100472c28\nLDRSH           W21, [X8,X10]                                          ; +0x84, 0x100472c2c\nCBNZ            X9, loc_100472BD0                                      ; +0x88, 0x100472c30\nLDR             X1, [X19,#0x380]                                       ; +0x8c, 0x100472c34\nMOV             W2, #0                                                 ; +0x90, 0x100472c38\nBL              EditorUI__editorLayerForArray                          ; +0x94, 0x100472c3c\nMOV             X20, X0                                                ; +0x98, 0x100472c40\nLDR             X1, [X19,#0x380]                                       ; +0x9c, 0x100472c44\nMOV             W2, #1                                                 ; +0xa0, 0x100472c48\nBL              EditorUI__editorLayerForArray                          ; +0xa4, 0x100472c4c\nLDR             X8, [X19,#0x5A0]                                       ; +0xa8, 0x100472c50\nB               loc_100472BD8                                          ; +0xac, 0x100472c54\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xb0, 0x100472c58\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xb4, 0x100472c5c\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xb8, 0x100472c60\nRET                                                                    ; +0xbc, 0x100472c64", "xrefs": ["EditorUI::handleEditorAction @ 0x100162b00", "EditorUI::init @ 0x100470214"], "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"}