{"type": "func", "start": 8151704, "end": 8151928, "name": "EditorUI::onGoToLayer", "pseudocode": "// \n// EditorUI::onGoToLayer from 0x7c6298 to 0x7c6378 (224 bytes)\n// \n// 4 xrefs:\n// > EditorUI::handleEditorAction @ 0xbd75a0\n// > <???> @ 0x54dd8\n// > EditorUI::init @ 0x7d08a0\n// > <???> @ 0x1541df0\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 12:54:08 +0000\n// \n\n__int64 __fastcall EditorUI::onGoToLayer(EditorUI *this, cocos2d::CCObject *a2)\n{\n  __int64 v3; // x0\n  __int64 v4; // x1\n  int v5; // w20\n  int v6; // w21\n  int v7; // w0\n  __int64 result; // x0\n\n  v3 = *((_QWORD *)this + 187);\n  if ( v3 )\n  {\n    v4 = *((_QWORD *)this + 180) + 12288LL;\n    v5 = *(__int16 *)(*((_QWORD *)this + 180) + 14210LL);\nLABEL_3:\n    v6 = *(__int16 *)(v3 + 1202);\n    v7 = *(__int16 *)(v3 + 1204);\n    goto LABEL_4;\n  }\n  result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112));\n  if ( !(_DWORD)result )\n    return result;\n  v3 = *((_QWORD *)this + 187);\n  v4 = *((_QWORD *)this + 180) + 12288LL;\n  v5 = *(__int16 *)(*((_QWORD *)this + 180) + 14210LL);\n  if ( v3 )\n    goto LABEL_3;\n  v6 = EditorUI::editorLayerForArray(this, *((cocos2d::CCArray **)this + 112), 0);\n  v7 = EditorUI::editorLayerForArray(this, *((cocos2d::CCArray **)this + 112), 1u);\n  v4 = *((_QWORD *)this + 180) + 12288LL;\nLABEL_4:\n  if ( (!v7 || v6) && (v5 == v7 || !v7) )\n  {\n    *(_WORD *)(v4 + 1922) = v6;\n    return EditorUI::updateGroupIDLabel(this);\n  }\n  else\n  {\n    *(_WORD *)(v4 + 1922) = v7;\n    return EditorUI::updateGroupIDLabel(this);\n  }\n}", "assembly": "; \n; EditorUI::onGoToLayer from 0x7c6298 to 0x7c6378 (224 bytes)\n; \n; 4 xrefs:\n; > EditorUI::handleEditorAction @ 0xbd75a0\n; > <???> @ 0x54dd8\n; > EditorUI::init @ 0x7d08a0\n; > <???> @ 0x1541df0\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 12:54:08 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x7c6298\nMOV             X29, SP                                                ; +0x4, 0x7c629c\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x7c62a0\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0x7c62a4\nMOV             X19, X0                                                ; +0x10, 0x7c62a8\nLDR             X0, [X0,#0x5D8]                                        ; +0x14, 0x7c62ac\nCBZ             X0, loc_7C6318                                         ; +0x18, 0x7c62b0\nLDR             X1, [X19,#0x5A0]                                       ; +0x1c, 0x7c62b4\nADD             X1, X1, #3,LSL#12                                      ; +0x20, 0x7c62b8\nLDRSH           W20, [X1,#0x782]                                       ; +0x24, 0x7c62bc\nLDRSH           W21, [X0,#0x4B2]                                       ; +0x28, 0x7c62c0\nLDRSH           W0, [X0,#0x4B4]                                        ; +0x2c, 0x7c62c4\nCMP             W0, WZR                                                ; +0x30, 0x7c62c8\nCSET            W2, NE                                                 ; +0x34, 0x7c62cc\nCBZ             W2, loc_7C62D8                                         ; +0x38, 0x7c62d0\nCBZ             W21, loc_7C62E4                                        ; +0x3c, 0x7c62d4\nCMP             W20, W0                                                ; +0x40, 0x7c62d8\nB.EQ            loc_7C62FC                                             ; +0x44, 0x7c62dc\nCBZ             W2, loc_7C62FC                                         ; +0x48, 0x7c62e0\nSTRH            W0, [X1,#0x782]                                        ; +0x4c, 0x7c62e4\nMOV             X0, X19; this                                          ; +0x50, 0x7c62e8\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x54, 0x7c62ec\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x58, 0x7c62f0\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x5c, 0x7c62f4\nB               _ZN8EditorUI18updateGroupIDLabelEv; EditorUI::updateGroupIDLabel(void) ; +0x60, 0x7c62f8\nMOV             W0, W21                                                ; +0x64, 0x7c62fc\nSTRH            W0, [X1,#0x782]                                        ; +0x68, 0x7c6300\nMOV             X0, X19; this                                          ; +0x6c, 0x7c6304\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x70, 0x7c6308\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x74, 0x7c630c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x78, 0x7c6310\nB               _ZN8EditorUI18updateGroupIDLabelEv; EditorUI::updateGroupIDLabel(void) ; +0x7c, 0x7c6314\nLDR             X0, [X19,#0x380]; this                                 ; +0x80, 0x7c6318\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x84, 0x7c631c\nCBZ             W0, loc_7C6368                                         ; +0x88, 0x7c6320\nLDR             X1, [X19,#0x5A0]                                       ; +0x8c, 0x7c6324\nLDR             X0, [X19,#0x5D8]                                       ; +0x90, 0x7c6328\nADD             X1, X1, #3,LSL#12                                      ; +0x94, 0x7c632c\nLDRSH           W20, [X1,#0x782]                                       ; +0x98, 0x7c6330\nCBNZ            X0, loc_7C62C0                                         ; +0x9c, 0x7c6334\nLDR             X1, [X19,#0x380]; cocos2d::CCArray *                   ; +0xa0, 0x7c6338\nMOV             W2, #0; bool                                           ; +0xa4, 0x7c633c\nMOV             X0, X19; this                                          ; +0xa8, 0x7c6340\nBL              _ZN8EditorUI19editorLayerForArrayEPN7cocos2d7CCArrayEb; EditorUI::editorLayerForArray(cocos2d::CCArray *,bool) ; +0xac, 0x7c6344\nMOV             W21, W0                                                ; +0xb0, 0x7c6348\nLDR             X1, [X19,#0x380]; cocos2d::CCArray *                   ; +0xb4, 0x7c634c\nMOV             X0, X19; this                                          ; +0xb8, 0x7c6350\nMOV             W2, #1; bool                                           ; +0xbc, 0x7c6354\nBL              _ZN8EditorUI19editorLayerForArrayEPN7cocos2d7CCArrayEb; EditorUI::editorLayerForArray(cocos2d::CCArray *,bool) ; +0xc0, 0x7c6358\nLDR             X1, [X19,#0x5A0]                                       ; +0xc4, 0x7c635c\nADD             X1, X1, #3,LSL#12                                      ; +0xc8, 0x7c6360\nB               loc_7C62C8                                             ; +0xcc, 0x7c6364\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xd0, 0x7c6368\nLDR             X21, [SP,#0x30+var_10]                                 ; +0xd4, 0x7c636c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xd8, 0x7c6370\nRET                                                                    ; +0xdc, 0x7c6374", "xrefs": ["EditorUI::handleEditorAction @ 0xbd75a0", "<???> @ 0x54dd8", "EditorUI::init @ 0x7d08a0", "<???> @ 0x1541df0"], "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"}