{"type": "func", "start": 4735920, "end": 4736028, "name": "EditorUI::onGoToLayer", "pseudocode": "// \n// EditorUI::onGoToLayer from 0x4843b0 to 0x48441c (108 bytes)\n// \n// 1 xrefs:\n// > EditorUI::handleEditorAction @ 0x6f218a\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:24 +0000\n// \n\nint __fastcall EditorUI::onGoToLayer(EditorUI *this, cocos2d::CCObject *a2)\n{\n  int result; // r0\n  __int16 v4; // r6\n  int v5; // r2\n  int v6; // r5\n  int v7; // r0\n\n  if ( *((_DWORD *)this + 249) || (result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167))) != 0 )\n  {\n    v4 = *(_WORD *)(*((_DWORD *)this + 236) + 11826);\n    v5 = *((_DWORD *)this + 249);\n    if ( v5 )\n    {\n      v6 = *(__int16 *)(v5 + 1038);\n      v7 = *(__int16 *)(v5 + 1040);\n    }\n    else\n    {\n      v6 = EditorUI::editorLayerForArray(this, *((cocos2d::CCArray **)this + 167), 0);\n      v7 = EditorUI::editorLayerForArray(this, *((cocos2d::CCArray **)this + 167), 1);\n    }\n    if ( v6 )\n    {\n      if ( v7 )\n      {\n        if ( v4 != v7 )\n          LOWORD(v6) = v7;\n      }\n    }\n    else\n    {\n      LOWORD(v6) = v7;\n    }\n    *(_WORD *)(*((_DWORD *)this + 236) + 11826) = v6;\n    return EditorUI::updateGroupIDLabel(this, (int)a2);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onGoToLayer from 0x4843b0 to 0x48441c (108 bytes)\n; \n; 1 xrefs:\n; > EditorUI::handleEditorAction @ 0x6f218a\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:24 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x4843b0\nMOV             R4, R0                                                 ; +0x2, 0x4843b2\nLDR.W           R3, [R0,#0x3E4]                                        ; +0x4, 0x4843b4\nCBNZ            R3, loc_4843C4                                         ; +0x8, 0x4843b8\nLDR.W           R0, [R0,#0x29C]; this                                  ; +0xa, 0x4843ba\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xe, 0x4843be\nCBZ             R0, locret_48441A                                      ; +0x12, 0x4843c2\nLDR.W           R2, [R4,#0x3B0]                                        ; +0x14, 0x4843c4\nMOVW            R3, #0x2E32                                            ; +0x18, 0x4843c8\nLDRH            R6, [R2,R3]                                            ; +0x1c, 0x4843cc\nLDR.W           R2, [R4,#0x3E4]; bool                                  ; +0x1e, 0x4843ce\nCBZ             R2, loc_4843DE                                         ; +0x22, 0x4843d2\nLDRSH.W         R5, [R2,#0x40E]                                        ; +0x24, 0x4843d4\nLDRSH.W         R0, [R2,#0x410]                                        ; +0x28, 0x4843d8\nB               loc_4843F6                                             ; +0x2c, 0x4843dc\nLDR.W           R1, [R4,#0x29C]; cocos2d::CCArray *                    ; +0x2e, 0x4843de\nMOV             R0, R4; this                                           ; +0x32, 0x4843e2\nBL              _ZN8EditorUI19editorLayerForArrayEPN7cocos2d7CCArrayEb; EditorUI::editorLayerForArray(cocos2d::CCArray *,bool) ; +0x34, 0x4843e4\nLDR.W           R1, [R4,#0x29C]; cocos2d::CCArray *                    ; +0x38, 0x4843e8\nMOVS            R2, #1; bool                                           ; +0x3c, 0x4843ec\nMOV             R5, R0                                                 ; +0x3e, 0x4843ee\nMOV             R0, R4; this                                           ; +0x40, 0x4843f0\nBL              _ZN8EditorUI19editorLayerForArrayEPN7cocos2d7CCArrayEb; EditorUI::editorLayerForArray(cocos2d::CCArray *,bool) ; +0x42, 0x4843f2\nCBZ             R5, loc_484404                                         ; +0x46, 0x4843f6\nCBZ             R0, loc_484406                                         ; +0x48, 0x4843f8\nSXTH            R6, R6                                                 ; +0x4a, 0x4843fa\nCMP             R6, R0                                                 ; +0x4c, 0x4843fc\nIT NE                                                                  ; +0x4e, 0x4843fe\nMOVNE           R5, R0                                                 ; +0x50, 0x484400\nB               loc_484406                                             ; +0x52, 0x484402\nMOV             R5, R0                                                 ; +0x54, 0x484404\nLDR.W           R2, [R4,#0x3B0]                                        ; +0x56, 0x484406\nMOVW            R3, #0x2E32                                            ; +0x5a, 0x48440a\nMOV             R0, R4; this                                           ; +0x5e, 0x48440e\nSTRH            R5, [R2,R3]                                            ; +0x60, 0x484410\nPOP.W           {R4-R6,LR}                                             ; +0x62, 0x484412\nB.W             _ZN8EditorUI18updateGroupIDLabelEv; EditorUI::updateGroupIDLabel(void) ; +0x66, 0x484416\nPOP             {R4-R6,PC}                                             ; +0x6a, 0x48441a", "xrefs": ["EditorUI::handleEditorAction @ 0x6f218a"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}