{"type": "func", "start": 4299053432, "end": 4299053696, "name": "EditorUI::updateGroupIDLabel", "pseudocode": "// \n// EditorUI::updateGroupIDLabel from 0x1003e5978 to 0x1003e5a80 (264 bytes)\n// \n// 9 xrefs:\n// > LevelEditorLayer::updateOptions @ 0x1003579e0\n// > EditorUI::init @ 0x1003c6ca0\n// > EditorUI::onGoToLayer @ 0x1003e5890\n// > EditorUI::onGroupUp @ 0x1003e58fc\n// > EditorUI::onGroupDown @ 0x1003e5918\n// > EditorUI::onGoToBaseLayer @ 0x1003e592c\n// > EditorUI::onLockLayer @ 0x1003e5968\n// > EditorUI::showUI @ 0x1003ee5dc\n// > EditorUI::keyDown @ 0x1003fa1f8\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::updateGroupIDLabel(EditorUI *a1)\n{\n  cocos2d::CCString *v2; // x0\n  const char *CString; // x1\n  _BOOL8 isLayerLocked; // x20\n\n  if ( a1->m_editorLayer->m_currentLayer < 0 )\n  {\n    CString = \"All\";\n  }\n  else\n  {\n    v2 = (cocos2d::CCString *)sub_100268F4C(\"%i\", a1->m_editorLayer->m_currentLayer);\n    CString = cocos2d::CCString::getCString(v2);\n  }\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_currentLayerLabel->setString)(\n    a1->m_currentLayerLabel,\n    CString);\n  cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_currentLayerLabel, 38.0, 0.6, 0.0);\n  isLayerLocked = LevelEditorLayer::isLayerLocked(a1->m_editorLayer, a1->m_editorLayer->m_currentLayer);\n  ((void (*)(void))a1->m_currentLayerLabel->setColor)();\n  ((void (__fastcall *)(cocos2d::CCSprite *, _BOOL8))a1->m_layerLockSprite->setVisible)(\n    a1->m_layerLockSprite,\n    isLayerLocked);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_goToBaseBtn->setVisible)(\n    a1->m_goToBaseBtn,\n    ((unsigned __int16)a1->m_editorLayer->m_currentLayer >> 15) ^ 1u);\n}", "assembly": "; \n; EditorUI::updateGroupIDLabel from 0x1003e5978 to 0x1003e5a80 (264 bytes)\n; \n; 9 xrefs:\n; > LevelEditorLayer::updateOptions @ 0x1003579e0\n; > EditorUI::init @ 0x1003c6ca0\n; > EditorUI::onGoToLayer @ 0x1003e5890\n; > EditorUI::onGroupUp @ 0x1003e58fc\n; > EditorUI::onGroupDown @ 0x1003e5918\n; > EditorUI::onGoToBaseLayer @ 0x1003e592c\n; > EditorUI::onLockLayer @ 0x1003e5968\n; > EditorUI::showUI @ 0x1003ee5dc\n; > EditorUI::keyDown @ 0x1003fa1f8\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1003e5978\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003e597c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003e5980\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003e5984\nMOV             X19, X0                                                ; +0x10, 0x1003e5988\nLDR             X8, [X0,#0x4E8]                                        ; +0x14, 0x1003e598c\nMOV             W9, #0x367A                                            ; +0x18, 0x1003e5990\nLDRSH           W8, [X8,X9]                                            ; +0x1c, 0x1003e5994\nTBNZ            W8, #0x1F, loc_1003E59B8                               ; +0x20, 0x1003e5998\nSTR             X8, [SP,#0x20+var_20]                                  ; +0x24, 0x1003e599c\nADRL            X0, aI; \"%i\"                                           ; +0x28, 0x1003e59a0\nBL              sub_100268F4C                                          ; +0x30, 0x1003e59a8\nBL              cocos2d__CCString__getCString                          ; +0x34, 0x1003e59ac\nMOV             X1, X0                                                 ; +0x38, 0x1003e59b0\nB               loc_1003E59C0                                          ; +0x3c, 0x1003e59b4\nADRL            X1, aAll; \"All\"                                        ; +0x40, 0x1003e59b8\nLDR             X0, [X19,#0x480]                                       ; +0x48, 0x1003e59c0\nLDR             X8, [X0]                                               ; +0x4c, 0x1003e59c4\nLDR             X8, [X8,#0x390]                                        ; +0x50, 0x1003e59c8\nBLR             X8                                                     ; +0x54, 0x1003e59cc\nLDR             X0, [X19,#0x480]                                       ; +0x58, 0x1003e59d0\nMOV             W8, #0x42180000                                        ; +0x5c, 0x1003e59d4\nFMOV            S0, W8                                                 ; +0x60, 0x1003e59d8\nADRP            X8, #dword_10063533C@PAGE                              ; +0x64, 0x1003e59dc\nLDR             S1, [X8,#dword_10063533C@PAGEOFF]                      ; +0x68, 0x1003e59e0\nFMOV            S2, WZR                                                ; +0x6c, 0x1003e59e4\nBL              cocos2d__CCLabelBMFont__limitLabelWidth                ; +0x70, 0x1003e59e8\nLDR             X0, [X19,#0x4E8]                                       ; +0x74, 0x1003e59ec\nMOV             W8, #0x367A                                            ; +0x78, 0x1003e59f0\nLDRSH           W1, [X0,X8]                                            ; +0x7c, 0x1003e59f4\nBL              LevelEditorLayer__isLayerLocked                        ; +0x80, 0x1003e59f8\nMOV             X20, X0                                                ; +0x84, 0x1003e59fc\nLDR             X0, [X19,#0x480]                                       ; +0x88, 0x1003e5a00\nCBZ             W20, loc_1003E5A24                                     ; +0x8c, 0x1003e5a04\nSTRB            WZR, [SP,#0x20+var_12]                                 ; +0x90, 0x1003e5a08\nMOV             W8, #0x96FF                                            ; +0x94, 0x1003e5a0c\nSTRH            W8, [SP,#0x20+var_14]                                  ; +0x98, 0x1003e5a10\nLDR             X8, [X0]                                               ; +0x9c, 0x1003e5a14\nLDR             X8, [X8,#0x420]                                        ; +0xa0, 0x1003e5a18\nADD             X1, SP, #0x20+var_14                                   ; +0xa4, 0x1003e5a1c\nB               loc_1003E5A34                                          ; +0xa8, 0x1003e5a20\nLDR             X8, [X0]                                               ; +0xac, 0x1003e5a24\nLDR             X8, [X8,#0x420]                                        ; +0xb0, 0x1003e5a28\nADRL            X1, word_100647392                                     ; +0xb4, 0x1003e5a2c\nBLR             X8                                                     ; +0xbc, 0x1003e5a34\nLDR             X0, [X19,#0x570]                                       ; +0xc0, 0x1003e5a38\nLDR             X8, [X0]                                               ; +0xc4, 0x1003e5a3c\nLDR             X8, [X8,#0x148]                                        ; +0xc8, 0x1003e5a40\nMOV             X1, X20                                                ; +0xcc, 0x1003e5a44\nBLR             X8                                                     ; +0xd0, 0x1003e5a48\nLDR             X0, [X19,#0x498]                                       ; +0xd4, 0x1003e5a4c\nLDR             X8, [X19,#0x4E8]                                       ; +0xd8, 0x1003e5a50\nMOV             W9, #0x367A                                            ; +0xdc, 0x1003e5a54\nLDRH            W8, [X8,X9]                                            ; +0xe0, 0x1003e5a58\nLDR             X9, [X0]                                               ; +0xe4, 0x1003e5a5c\nLDR             X9, [X9,#0x148]                                        ; +0xe8, 0x1003e5a60\nLSR             W8, W8, #0xF                                           ; +0xec, 0x1003e5a64\nEOR             W1, W8, #1                                             ; +0xf0, 0x1003e5a68\nBLR             X9                                                     ; +0xf4, 0x1003e5a6c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xf8, 0x1003e5a70\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xfc, 0x1003e5a74\nADD             SP, SP, #0x30 ; '0'                                    ; +0x100, 0x1003e5a78\nRET                                                                    ; +0x104, 0x1003e5a7c", "xrefs": ["LevelEditorLayer::updateOptions @ 0x1003579e0", "EditorUI::init @ 0x1003c6ca0", "EditorUI::onGoToLayer @ 0x1003e5890", "EditorUI::onGroupUp @ 0x1003e58fc", "EditorUI::onGroupDown @ 0x1003e5918", "EditorUI::onGoToBaseLayer @ 0x1003e592c", "EditorUI::onLockLayer @ 0x1003e5968", "EditorUI::showUI @ 0x1003ee5dc", "EditorUI::keyDown @ 0x1003fa1f8"], "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"}