{"type": "func", "start": 4735728, "end": 4735896, "name": "EditorUI::updateGroupIDLabel", "pseudocode": "// \n// EditorUI::updateGroupIDLabel from 0x4842f0 to 0x484398 (168 bytes)\n// \n// 9 xrefs:\n// > LevelEditorLayer::updateOptions @ 0x45fc84\n// > EditorUI::onGoToLayer @ 0x484416\n// > EditorUI::onGoToBaseLayer @ 0x48442a\n// > EditorUI::onGroupUp @ 0x48443c\n// > EditorUI::onGroupDown @ 0x484452\n// > EditorUI::onLockLayer @ 0x484478\n// > EditorUI::onGoToFreeLayer @ 0x4852ea\n// > EditorUI::showUI @ 0x489c44\n// > EditorUI::init @ 0x48bdce\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::updateGroupIDLabel(EditorUI *this, int a2)\n{\n  const char *v3; // r1\n  cocos2d::CCString *v4; // r0\n  const char *CString; // r1\n  _BOOL4 isLayerLocked; // r6\n  int v7; // r0\n  void (__fastcall *v8)(int, __int16 *); // r3\n  __int16 *v9; // r1\n  _DWORD v11[2]; // [sp+0h] [bp-8h] BYREF\n\n  v11[0] = this;\n  v11[1] = a2;\n  v3 = (const char *)*(__int16 *)(*((_DWORD *)this + 236) + 11826);\n  if ( (int)v3 < 0 )\n  {\n    CString = \"All\";\n  }\n  else\n  {\n    v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", v3);\n    CString = (const char *)cocos2d::CCString::getCString(v4);\n  }\n  (*(void (__fastcall **)(_DWORD, const char *))(**((_DWORD **)this + 215) + 464))(*((_DWORD *)this + 215), CString);\n  cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 215), 38.0, 0.6, 0.0);\n  isLayerLocked = LevelEditorLayer::isLayerLocked(\n                    *((LevelEditorLayer **)this + 236),\n                    *(__int16 *)(*((_DWORD *)this + 236) + 11826));\n  v7 = *((_DWORD *)this + 215);\n  v8 = *(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v7 + 536);\n  if ( isLayerLocked )\n  {\n    v9 = (__int16 *)v11;\n    LOWORD(v11[0]) = -26881;\n    BYTE2(v11[0]) = 0;\n  }\n  else\n  {\n    v9 = word_BEBDD8;\n  }\n  v8(v7, v9);\n  (*(void (__fastcall **)(_DWORD, _BOOL4))(**((_DWORD **)this + 261) + 172))(*((_DWORD *)this + 261), isLayerLocked);\n  return EditorUI::updateGroupIDBtn2(this);\n}", "assembly": "; \n; EditorUI::updateGroupIDLabel from 0x4842f0 to 0x484398 (168 bytes)\n; \n; 9 xrefs:\n; > LevelEditorLayer::updateOptions @ 0x45fc84\n; > EditorUI::onGoToLayer @ 0x484416\n; > EditorUI::onGoToBaseLayer @ 0x48442a\n; > EditorUI::onGroupUp @ 0x48443c\n; > EditorUI::onGroupDown @ 0x484452\n; > EditorUI::onLockLayer @ 0x484478\n; > EditorUI::onGoToFreeLayer @ 0x4852ea\n; > EditorUI::showUI @ 0x489c44\n; > EditorUI::init @ 0x48bdce\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; \nLDR             R3, =(__stack_chk_guard_ptr - 0x4842F8)                ; +0x0, 0x4842f0\nPUSH            {R0,R1,R4-R6,LR}                                       ; +0x2, 0x4842f2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x4842f4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x4842f6\nLDR.W           R1, [R0,#0x3B0]                                        ; +0x8, 0x4842f8\nMOV             R4, R0                                                 ; +0xc, 0x4842fc\nLDR             R2, [R3]                                               ; +0xe, 0x4842fe\nMOV             R5, R3                                                 ; +0x10, 0x484300\nSTR             R2, [SP,#8+var_4]                                      ; +0x12, 0x484302\nMOVW            R2, #0x2E32                                            ; +0x14, 0x484304\nLDRSH           R1, [R1,R2]; char *                                    ; +0x18, 0x484308\nCMP             R1, #0                                                 ; +0x1a, 0x48430a\nBLT             loc_48431E                                             ; +0x1c, 0x48430c\nLDR             R0, =(aI - 0x484314); \"%i\"                             ; +0x1e, 0x48430e\nADD             R0, PC; \"%i\"                                           ; +0x20, 0x484310\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x22, 0x484312\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x26, 0x484316\nMOV             R1, R0                                                 ; +0x2a, 0x48431a\nB               loc_484322                                             ; +0x2c, 0x48431c\nLDR             R1, =(aAll - 0x484324); \"All\"                          ; +0x2e, 0x48431e\nADD             R1, PC; \"All\"                                          ; +0x30, 0x484320\nLDR.W           R0, [R4,#0x35C]                                        ; +0x32, 0x484322\nLDR             R3, [R0]                                               ; +0x36, 0x484326\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x38, 0x484328\nBLX             R3                                                     ; +0x3c, 0x48432c\nLDR.W           R0, [R4,#0x35C]; this                                  ; +0x3e, 0x48432e\nLDR             R1, flt_484398; float                                  ; +0x42, 0x484332\nMOVS            R3, #0; float                                          ; +0x44, 0x484334\nLDR             R2, flt_48439C; float                                  ; +0x46, 0x484336\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x48, 0x484338\nLDR.W           R0, [R4,#0x3B0]; this                                  ; +0x4c, 0x48433c\nMOVW            R3, #0x2E32                                            ; +0x50, 0x484340\nLDRSH           R1, [R0,R3]; int                                       ; +0x54, 0x484344\nBL              _ZN16LevelEditorLayer13isLayerLockedEi; LevelEditorLayer::isLayerLocked(int) ; +0x56, 0x484346\nMOV             R6, R0                                                 ; +0x5a, 0x48434a\nLDR.W           R0, [R4,#0x35C]                                        ; +0x5c, 0x48434c\nLDR             R3, [R0]                                               ; +0x60, 0x484350\nLDR.W           R3, [R3,#0x218]                                        ; +0x62, 0x484352\nCBZ             R6, loc_48436E                                         ; +0x66, 0x484356\nMOVS            R2, #0xFF                                              ; +0x68, 0x484358\nMOV             R1, SP                                                 ; +0x6a, 0x48435a\nSTRB.W          R2, [SP,#8+var_8]                                      ; +0x6c, 0x48435c\nMOVS            R2, #0x96                                              ; +0x70, 0x484360\nSTRB.W          R2, [SP,#8+var_7]                                      ; +0x72, 0x484362\nMOVS            R2, #0                                                 ; +0x76, 0x484366\nSTRB.W          R2, [SP,#8+var_6]                                      ; +0x78, 0x484368\nB               loc_484372                                             ; +0x7c, 0x48436c\nLDR             R1, =(word_BEBDD8 - 0x484374)                          ; +0x7e, 0x48436e\nADD             R1, PC; word_BEBDD8                                    ; +0x80, 0x484370\nBLX             R3                                                     ; +0x82, 0x484372\nLDR.W           R0, [R4,#0x414]                                        ; +0x84, 0x484374\nMOV             R1, R6                                                 ; +0x88, 0x484378\nLDR             R3, [R0]                                               ; +0x8a, 0x48437a\nLDR.W           R3, [R3,#0xAC]                                         ; +0x8c, 0x48437c\nBLX             R3                                                     ; +0x90, 0x484380\nMOV             R0, R4; this                                           ; +0x92, 0x484382\nBL              _ZN8EditorUI17updateGroupIDBtn2Ev; EditorUI::updateGroupIDBtn2(void) ; +0x94, 0x484384\nLDR             R2, [SP,#8+var_4]                                      ; +0x98, 0x484388\nLDR             R3, [R5]                                               ; +0x9a, 0x48438a\nCMP             R2, R3                                                 ; +0x9c, 0x48438c\nBEQ             loc_484394                                             ; +0x9e, 0x48438e\nBLX             __stack_chk_fail                                       ; +0xa0, 0x484390\nADD             SP, SP, #8                                             ; +0xa4, 0x484394\nPOP             {R4-R6,PC}                                             ; +0xa6, 0x484396", "xrefs": ["LevelEditorLayer::updateOptions @ 0x45fc84", "EditorUI::onGoToLayer @ 0x484416", "EditorUI::onGoToBaseLayer @ 0x48442a", "EditorUI::onGroupUp @ 0x48443c", "EditorUI::onGroupDown @ 0x484452", "EditorUI::onLockLayer @ 0x484478", "EditorUI::onGoToFreeLayer @ 0x4852ea", "EditorUI::showUI @ 0x489c44", "EditorUI::init @ 0x48bdce"], "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"}