{"type": "func", "start": 8151400, "end": 8151696, "name": "EditorUI::updateGroupIDLabel", "pseudocode": "// \n// EditorUI::updateGroupIDLabel from 0x7c6168 to 0x7c6290 (296 bytes)\n// \n// 11 xrefs:\n// > LevelEditorLayer::updateOptions @ 0x789730\n// > EditorUI::onGoToLayer @ 0x7c62f8\n// > EditorUI::onGoToLayer @ 0x7c6314\n// > EditorUI::onGoToBaseLayer @ 0x7c6388\n// > EditorUI::onGroupUp @ 0x7c63a0\n// > EditorUI::onGroupDown @ 0x7c63bc\n// > EditorUI::onLockLayer @ 0x7c6408\n// > EditorUI::onGoToFreeLayer @ 0x7c6490\n// > EditorUI::showUI @ 0x7ce394\n// > EditorUI::init @ 0x7d0e14\n// > <???> @ 0x57550\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::updateGroupIDLabel(EditorUI *this)\n{\n  const char *v2; // x1\n  cocos2d::CCString *v3; // x0\n  char *CString; // x1\n  unsigned __int8 isLayerLocked; // w0\n  unsigned int v6; // w21\n  __int64 *v7; // x2\n  __int64 v9; // x0\n  __int64 v10; // x2\n  void (__fastcall *v11)(__int64, _BYTE *); // x2\n  _BYTE v12[8]; // [xsp+30h] [xbp+30h] BYREF\n\n  v2 = (const char *)(unsigned int)*(__int16 *)(*((_QWORD *)this + 180) + 14210LL);\n  if ( ((unsigned int)v2 & 0x80000000) != 0 )\n  {\n    CString = \"All\";\n  }\n  else\n  {\n    v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", v2);\n    CString = (char *)cocos2d::CCString::getCString(v3);\n  }\n  (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 160) + 928LL))(*((_QWORD *)this + 160), CString);\n  cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 160), 38.0, 0.6, 0.0);\n  isLayerLocked = LevelEditorLayer::isLayerLocked(\n                    *((LevelEditorLayer **)this + 180),\n                    *(__int16 *)(*((_QWORD *)this + 180) + 14210LL));\n  v6 = isLayerLocked;\n  v7 = *((__int64 **)this + 160);\n  if ( isLayerLocked )\n  {\n    v9 = *((_QWORD *)this + 160);\n    v10 = *v7;\n    v12[0] = -1;\n    v11 = *(void (__fastcall **)(__int64, _BYTE *))(v10 + 1072);\n    v12[1] = -106;\n    v12[2] = 0;\n    v11(v9, v12);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD, __int64 *))(*v7 + 1072))(*((_QWORD *)this + 160), &qword_1142200);\n  }\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 197) + 344LL))(*((_QWORD *)this + 197), v6);\n  EditorUI::updateGroupIDBtn2(this);\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorUI::updateGroupIDLabel from 0x7c6168 to 0x7c6290 (296 bytes)\n; \n; 11 xrefs:\n; > LevelEditorLayer::updateOptions @ 0x789730\n; > EditorUI::onGoToLayer @ 0x7c62f8\n; > EditorUI::onGoToLayer @ 0x7c6314\n; > EditorUI::onGoToBaseLayer @ 0x7c6388\n; > EditorUI::onGroupUp @ 0x7c63a0\n; > EditorUI::onGroupDown @ 0x7c63bc\n; > EditorUI::onLockLayer @ 0x7c6408\n; > EditorUI::onGoToFreeLayer @ 0x7c6490\n; > EditorUI::showUI @ 0x7ce394\n; > EditorUI::init @ 0x7d0e14\n; > <???> @ 0x57550\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_40]!                                ; +0x0, 0x7c6168\nMOV             X29, SP                                                ; +0x4, 0x7c616c\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x7c6170\nSTR             X21, [SP,#0x40+var_20]                                 ; +0xc, 0x7c6174\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x7c6178\nMOV             X19, X0                                                ; +0x14, 0x7c617c\nLDR             X0, [X0,#0x5A0]                                        ; +0x18, 0x7c6180\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x7c6184\nADD             X0, X0, #3,LSL#12                                      ; +0x20, 0x7c6188\nLDR             X2, [X1]                                               ; +0x24, 0x7c618c\nLDRSH           W1, [X0,#0x782]; char *                                ; +0x28, 0x7c6190\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x2c, 0x7c6194\nTBNZ            W1, #0x1F, loc_7C6254                                  ; +0x30, 0x7c6198\nADRL            X0, (aSongidI+8); this                                 ; +0x34, 0x7c619c\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x3c, 0x7c61a4\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x40, 0x7c61a8\nMOV             X1, X0                                                 ; +0x44, 0x7c61ac\nLDR             X2, [X19,#0x500]                                       ; +0x48, 0x7c61b0\nMOV             X0, X2                                                 ; +0x4c, 0x7c61b4\nLDR             X2, [X2]                                               ; +0x50, 0x7c61b8\nLDR             X2, [X2,#0x3A0]                                        ; +0x54, 0x7c61bc\nBLR             X2                                                     ; +0x58, 0x7c61c0\nLDR             S0, flt_7C6290; float                                  ; +0x5c, 0x7c61c4\nLDR             X0, [X19,#0x500]; this                                 ; +0x60, 0x7c61c8\nLDR             S1, flt_7C6294; float                                  ; +0x64, 0x7c61cc\nFMOV            S2, WZR; float                                         ; +0x68, 0x7c61d0\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x6c, 0x7c61d4\nLDR             X0, [X19,#0x5A0]; this                                 ; +0x70, 0x7c61d8\nADD             X1, X0, #3,LSL#12                                      ; +0x74, 0x7c61dc\nLDRSH           W1, [X1,#0x782]; int                                   ; +0x78, 0x7c61e0\nBL              _ZN16LevelEditorLayer13isLayerLockedEi; LevelEditorLayer::isLayerLocked(int) ; +0x7c, 0x7c61e4\nUXTB            W0, W0                                                 ; +0x80, 0x7c61e8\nMOV             W21, W0                                                ; +0x84, 0x7c61ec\nLDR             X2, [X19,#0x500]                                       ; +0x88, 0x7c61f0\nCBNZ            W0, loc_7C6260                                         ; +0x8c, 0x7c61f4\nMOV             X0, X2                                                 ; +0x90, 0x7c61f8\nLDR             X2, [X2]                                               ; +0x94, 0x7c61fc\nADRL            X1, qword_1142200                                      ; +0x98, 0x7c6200\nLDR             X2, [X2,#0x430]                                        ; +0xa0, 0x7c6208\nBLR             X2                                                     ; +0xa4, 0x7c620c\nLDR             X2, [X19,#0x628]                                       ; +0xa8, 0x7c6210\nMOV             W1, W21                                                ; +0xac, 0x7c6214\nMOV             X0, X2                                                 ; +0xb0, 0x7c6218\nLDR             X2, [X2]                                               ; +0xb4, 0x7c621c\nLDR             X2, [X2,#0x158]                                        ; +0xb8, 0x7c6220\nBLR             X2                                                     ; +0xbc, 0x7c6224\nMOV             X0, X19; this                                          ; +0xc0, 0x7c6228\nBL              _ZN8EditorUI17updateGroupIDBtn2Ev; EditorUI::updateGroupIDBtn2(void) ; +0xc4, 0x7c622c\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xc8, 0x7c6230\nLDR             X1, [X29,#0x40+var_8]                                  ; +0xcc, 0x7c6234\nLDR             X0, [X20]                                              ; +0xd0, 0x7c6238\nCMP             X1, X0                                                 ; +0xd4, 0x7c623c\nB.NE            loc_7C628C                                             ; +0xd8, 0x7c6240\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xdc, 0x7c6244\nLDR             X21, [SP,#0x40+var_20]                                 ; +0xe0, 0x7c6248\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xe4, 0x7c624c\nRET                                                                    ; +0xe8, 0x7c6250\nADRL            X1, (aDisableAll+8); \"All\"                             ; +0xec, 0x7c6254\nB               loc_7C61B0                                             ; +0xf4, 0x7c625c\nMOV             X0, X2                                                 ; +0xf8, 0x7c6260\nLDR             X2, [X2]                                               ; +0xfc, 0x7c6264\nMOV             W3, #0xFFFFFFFF                                        ; +0x100, 0x7c6268\nADD             X1, X29, #0x40+var_10                                  ; +0x104, 0x7c626c\nSTRB            W3, [X29,#0x40+var_10]                                 ; +0x108, 0x7c6270\nMOV             W3, #0xFFFFFF96                                        ; +0x10c, 0x7c6274\nLDR             X2, [X2,#0x430]                                        ; +0x110, 0x7c6278\nSTRB            W3, [X29,#0x40+var_F]                                  ; +0x114, 0x7c627c\nSTRB            WZR, [X29,#0x40+var_E]                                 ; +0x118, 0x7c6280\nBLR             X2                                                     ; +0x11c, 0x7c6284\nB               loc_7C6210                                             ; +0x120, 0x7c6288\nBL              .__stack_chk_fail                                      ; +0x124, 0x7c628c", "xrefs": ["LevelEditorLayer::updateOptions @ 0x789730", "EditorUI::onGoToLayer @ 0x7c62f8", "EditorUI::onGoToLayer @ 0x7c6314", "EditorUI::onGoToBaseLayer @ 0x7c6388", "EditorUI::onGroupUp @ 0x7c63a0", "EditorUI::onGroupDown @ 0x7c63bc", "EditorUI::onLockLayer @ 0x7c6408", "EditorUI::onGoToFreeLayer @ 0x7c6490", "EditorUI::showUI @ 0x7ce394", "EditorUI::init @ 0x7d0e14", "<???> @ 0x57550"], "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"}