{"type": "func", "start": 3672800, "end": 3672968, "name": "EditorUI::updateGroupIDLabel", "pseudocode": "// \n// EditorUI::updateGroupIDLabel from 0x380ae0 to 0x380b88 (168 bytes)\n// \n// 8 xrefs:\n// > LevelEditorLayer::updateOptions @ 0x365c8c\n// > EditorUI::showUI @ 0x380c72\n// > EditorUI::onGoToLayer @ 0x380ce2\n// > EditorUI::onGoToBaseLayer @ 0x380cf6\n// > EditorUI::onGroupUp @ 0x380d08\n// > EditorUI::onGroupDown @ 0x380d1e\n// > EditorUI::onLockLayer @ 0x380d44\n// > EditorUI::init @ 0x3a27ee\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 EditorUI::updateGroupIDLabel(EditorUI *a1)\n{\n  const char *m_currentLayer; // r1\n  cocos2d::CCString *v3; // r0\n  const char *CString; // r1\n  _BOOL4 isLayerLocked; // r6\n  cocos2d::CCLabelBMFont *m_currentLayerLabel; // r0\n  void (__fastcall *setColor)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // r3\n  __int16 *v8; // r1\n  EditorUI *v9; // [sp+0h] [bp-8h] BYREF\n\n  v9 = a1;\n  m_currentLayer = (const char *)a1->m_editorLayer->m_currentLayer;\n  if ( (int)m_currentLayer < 0 )\n  {\n    CString = \"All\";\n  }\n  else\n  {\n    v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", m_currentLayer);\n    CString = cocos2d::CCString::getCString(v3);\n  }\n  a1->m_currentLayerLabel->setString(a1->m_currentLayerLabel, (const unsigned __int8 *)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  m_currentLayerLabel = a1->m_currentLayerLabel;\n  setColor = m_currentLayerLabel->setColor;\n  if ( isLayerLocked )\n  {\n    v8 = (__int16 *)&v9;\n    LOWORD(v9) = -26881;\n    BYTE2(v9) = 0;\n  }\n  else\n  {\n    v8 = &word_9AA83C;\n  }\n  setColor(m_currentLayerLabel, (const cocos2d::ccColor3B *)v8);\n  a1->m_layerLockSprite->setVisible(a1->m_layerLockSprite, isLayerLocked);\n  EditorUI::updateGroupIDBtn2(a1);\n}", "assembly": "; \n; EditorUI::updateGroupIDLabel from 0x380ae0 to 0x380b88 (168 bytes)\n; \n; 8 xrefs:\n; > LevelEditorLayer::updateOptions @ 0x365c8c\n; > EditorUI::showUI @ 0x380c72\n; > EditorUI::onGoToLayer @ 0x380ce2\n; > EditorUI::onGoToBaseLayer @ 0x380cf6\n; > EditorUI::onGroupUp @ 0x380d08\n; > EditorUI::onGroupDown @ 0x380d1e\n; > EditorUI::onLockLayer @ 0x380d44\n; > EditorUI::init @ 0x3a27ee\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x380AE8)                ; +0x0, 0x380ae0\nPUSH            {R0,R1,R4-R6,LR}                                       ; +0x2, 0x380ae2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x380ae4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x380ae6\nLDR.W           R1, [R0,#0x340]                                        ; +0x8, 0x380ae8\nMOV             R4, R0                                                 ; +0xc, 0x380aec\nLDR             R2, [R3]                                               ; +0xe, 0x380aee\nMOV             R5, R3                                                 ; +0x10, 0x380af0\nSTR             R2, [SP,#8+var_4]                                      ; +0x12, 0x380af2\nMOVW            R2, #0x2E76                                            ; +0x14, 0x380af4\nLDRSH           R1, [R1,R2]; char *                                    ; +0x18, 0x380af8\nCMP             R1, #0                                                 ; +0x1a, 0x380afa\nBLT             loc_380B0E                                             ; +0x1c, 0x380afc\nLDR             R0, =(aI - 0x380B04); \"%i\"                             ; +0x1e, 0x380afe\nADD             R0, PC; \"%i\"                                           ; +0x20, 0x380b00\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x22, 0x380b02\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x26, 0x380b06\nMOV             R1, R0                                                 ; +0x2a, 0x380b0a\nB               loc_380B12                                             ; +0x2c, 0x380b0c\nLDR             R1, =(aAll - 0x380B14); \"All\"                          ; +0x2e, 0x380b0e\nADD             R1, PC; \"All\"                                          ; +0x30, 0x380b10\nLDR.W           R0, [R4,#0x30C]                                        ; +0x32, 0x380b12\nLDR             R3, [R0]                                               ; +0x36, 0x380b16\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x38, 0x380b18\nBLX             R3                                                     ; +0x3c, 0x380b1c\nLDR.W           R0, [R4,#0x30C]; this                                  ; +0x3e, 0x380b1e\nLDR             R1, flt_380B88; float                                  ; +0x42, 0x380b22\nMOVS            R3, #0; float                                          ; +0x44, 0x380b24\nLDR             R2, flt_380B8C; float                                  ; +0x46, 0x380b26\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x48, 0x380b28\nLDR.W           R0, [R4,#0x340]; this                                  ; +0x4c, 0x380b2c\nMOVW            R3, #0x2E76                                            ; +0x50, 0x380b30\nLDRSH           R1, [R0,R3]; int                                       ; +0x54, 0x380b34\nBL              _ZN16LevelEditorLayer13isLayerLockedEi; LevelEditorLayer::isLayerLocked(int) ; +0x56, 0x380b36\nMOV             R6, R0                                                 ; +0x5a, 0x380b3a\nLDR.W           R0, [R4,#0x30C]                                        ; +0x5c, 0x380b3c\nLDR             R3, [R0]                                               ; +0x60, 0x380b40\nLDR.W           R3, [R3,#0x210]                                        ; +0x62, 0x380b42\nCBZ             R6, loc_380B5E                                         ; +0x66, 0x380b46\nMOVS            R2, #0xFF                                              ; +0x68, 0x380b48\nMOV             R1, SP                                                 ; +0x6a, 0x380b4a\nSTRB.W          R2, [SP,#8+var_8]                                      ; +0x6c, 0x380b4c\nMOVS            R2, #0x96                                              ; +0x70, 0x380b50\nSTRB.W          R2, [SP,#8+var_7]                                      ; +0x72, 0x380b52\nMOVS            R2, #0                                                 ; +0x76, 0x380b56\nSTRB.W          R2, [SP,#8+var_6]                                      ; +0x78, 0x380b58\nB               loc_380B62                                             ; +0x7c, 0x380b5c\nLDR             R1, =(word_9AA83C - 0x380B64)                          ; +0x7e, 0x380b5e\nADD             R1, PC; word_9AA83C                                    ; +0x80, 0x380b60\nBLX             R3                                                     ; +0x82, 0x380b62\nLDR.W           R0, [R4,#0x3AC]                                        ; +0x84, 0x380b64\nMOV             R1, R6                                                 ; +0x88, 0x380b68\nLDR             R3, [R0]                                               ; +0x8a, 0x380b6a\nLDR.W           R3, [R3,#0xA4]                                         ; +0x8c, 0x380b6c\nBLX             R3                                                     ; +0x90, 0x380b70\nMOV             R0, R4; this                                           ; +0x92, 0x380b72\nBL              _ZN8EditorUI17updateGroupIDBtn2Ev; EditorUI::updateGroupIDBtn2(void) ; +0x94, 0x380b74\nLDR             R2, [SP,#8+var_4]                                      ; +0x98, 0x380b78\nLDR             R3, [R5]                                               ; +0x9a, 0x380b7a\nCMP             R2, R3                                                 ; +0x9c, 0x380b7c\nBEQ             loc_380B84                                             ; +0x9e, 0x380b7e\nBLX             __stack_chk_fail                                       ; +0xa0, 0x380b80\nADD             SP, SP, #8                                             ; +0xa4, 0x380b84\nPOP             {R4-R6,PC}                                             ; +0xa6, 0x380b86", "xrefs": ["LevelEditorLayer::updateOptions @ 0x365c8c", "EditorUI::showUI @ 0x380c72", "EditorUI::onGoToLayer @ 0x380ce2", "EditorUI::onGoToBaseLayer @ 0x380cf6", "EditorUI::onGroupUp @ 0x380d08", "EditorUI::onGroupDown @ 0x380d1e", "EditorUI::onLockLayer @ 0x380d44", "EditorUI::init @ 0x3a27ee"], "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"}