{"type": "func", "start": 5369885920, "end": 5369886235, "name": "EditorUI::updateGroupIDLabel", "pseudocode": "// \n// EditorUI::updateGroupIDLabel from 0x14011f4e0 to 0x14011f61b (315 bytes)\n// \n// 12 xrefs:\n// > EditorUI::init @ 0x1400e1658\n// > EditorUI::showUI @ 0x140111a86\n// > EditorUI::onGoToLayer @ 0x1401147b8\n// > EditorUI::onGoToBaseLayer @ 0x1401147f0\n// > EditorUI::onGroupUp @ 0x14011f49e\n// > EditorUI::onGroupDown @ 0x14011f4d5\n// > EditorUI::onLockLayer @ 0x14011f6d1\n// > EditorUI::onLockLayer @ 0x14011f6e5\n// > EditorUI::keyDown @ 0x140125ebf\n// > EditorUI::keyDown @ 0x140125efb\n// > LevelEditorLayer::updateOptions @ 0x1402d33e0\n// > <???> @ 0x1406c9540\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 *CString; // r9\n  int m_currentLayer; // edx\n  cocos2d::CCString *v4; // rax\n  LevelEditorLayer *m_editorLayer; // rax\n  unsigned __int64 v6; // rcx\n  unsigned __int64 v7; // rdx\n  int v8; // r8d\n  cocos2d::CCLabelBMFont *m_currentLayerLabel; // rcx\n  int v10; // r8d\n  bool v11; // di\n  __int16 *v12; // rdx\n  __int16 v13; // [rsp+30h] [rbp+8h] BYREF\n  char v14; // [rsp+32h] [rbp+Ah]\n\n  CString = \"All\";\n  m_currentLayer = a1->m_editorLayer->m_currentLayer;\n  if ( m_currentLayer > -1 )\n  {\n    v4 = cocos2d::CCString::createWithFormat(\"%i\", m_currentLayer);\n    CString = cocos2d::CCString::getCString(v4);\n  }\n  a1->m_currentLayerLabel->setString(&a1->m_currentLayerLabel->cocos2d::CCLabelProtocol, CString);\n  cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_currentLayerLabel, 38.0, 0.60000002, 0.0);\n  m_editorLayer = a1->m_editorLayer;\n  v6 = m_editorLayer->m_currentLayer;\n  if ( (unsigned __int16)v6 > 0x270Fu || !m_editorLayer->m_layerLockingEnabled )\n  {\n    m_currentLayerLabel = a1->m_currentLayerLabel;\n    v11 = 0;\n    goto LABEL_8;\n  }\n  v7 = v6 >> 5;\n  v8 = 1 << (v6 & 0x1F);\n  m_currentLayerLabel = a1->m_currentLayerLabel;\n  v10 = m_editorLayer->m_lockedLayers._Myvec._Mypair._Myval2._Myfirst[v7] & v8;\n  v11 = v10 != 0;\n  if ( !v10 )\n  {\nLABEL_8:\n    v12 = &word_140529A48;\n    goto LABEL_9;\n  }\n  v13 = -26881;\n  v12 = &v13;\n  v14 = 0;\nLABEL_9:\n  m_currentLayerLabel->setColor(&m_currentLayerLabel->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)v12);\n  a1->m_layerLockSprite->setVisible(a1->m_layerLockSprite, v11);\n  a1->m_goToBaseBtn->setVisible(a1->m_goToBaseBtn, a1->m_editorLayer->m_currentLayer >= 0);\n}", "assembly": "; \n; EditorUI::updateGroupIDLabel from 0x14011f4e0 to 0x14011f61b (315 bytes)\n; \n; 12 xrefs:\n; > EditorUI::init @ 0x1400e1658\n; > EditorUI::showUI @ 0x140111a86\n; > EditorUI::onGoToLayer @ 0x1401147b8\n; > EditorUI::onGoToBaseLayer @ 0x1401147f0\n; > EditorUI::onGroupUp @ 0x14011f49e\n; > EditorUI::onGroupDown @ 0x14011f4d5\n; > EditorUI::onLockLayer @ 0x14011f6d1\n; > EditorUI::onLockLayer @ 0x14011f6e5\n; > EditorUI::keyDown @ 0x140125ebf\n; > EditorUI::keyDown @ 0x140125efb\n; > LevelEditorLayer::updateOptions @ 0x1402d33e0\n; > <???> @ 0x1406c9540\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14011f4e0\npush    rdi                                                            ; +0x5, 0x14011f4e5\nsub     rsp, 20h                                                       ; +0x6, 0x14011f4e6\nmov     rax, [rcx+500h]                                                ; +0xa, 0x14011f4ea\nlea     r9, aAll; \"All\"                                                ; +0x11, 0x14011f4f1\nmov     rbx, rcx                                                       ; +0x18, 0x14011f4f8\nmovsx   edx, word ptr [rax+387Ah]                                      ; +0x1b, 0x14011f4fb\ncmp     edx, 0FFFFFFFFh                                                ; +0x22, 0x14011f502\njle     short loc_14011F520                                            ; +0x25, 0x14011f505\nlea     rcx, aI_11; \"%i\"                                               ; +0x27, 0x14011f507\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x2e, 0x14011f50e\nmov     rcx, rax                                                       ; +0x34, 0x14011f514\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x37, 0x14011f517\nmov     r9, rax                                                        ; +0x3d, 0x14011f51d\nmov     rcx, [rbx+498h]                                                ; +0x40, 0x14011f520\nmov     rdx, r9                                                        ; +0x47, 0x14011f527\nadd     rcx, 168h                                                      ; +0x4a, 0x14011f52a\nmov     r8, [rcx]                                                      ; +0x51, 0x14011f531\ncall    qword ptr [r8]                                                 ; +0x54, 0x14011f534\nmovss   xmm2, cs:dword_140622B38                                       ; +0x57, 0x14011f537\nxorps   xmm3, xmm3                                                     ; +0x5f, 0x14011f53f\nmovss   xmm1, cs:dword_1406231A8                                       ; +0x62, 0x14011f542\nmov     rcx, [rbx+498h]                                                ; +0x6a, 0x14011f54a\ncall    cs:?limitLabelWidth@CCLabelBMFont@cocos2d@@QEAAXMMM@Z; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x71, 0x14011f551\nmov     rax, [rbx+500h]                                                ; +0x77, 0x14011f557\nmov     edx, 270Fh                                                     ; +0x7e, 0x14011f55e\nmovsx   rcx, word ptr [rax+387Ah]                                      ; +0x83, 0x14011f563\ncmp     cx, dx                                                         ; +0x8b, 0x14011f56b\nja      short loc_14011F5BA                                            ; +0x8e, 0x14011f56e\ncmp     byte ptr [rax+37B1h], 0                                        ; +0x90, 0x14011f570\njz      short loc_14011F5BA                                            ; +0x97, 0x14011f577\nmov     rax, [rax+39D0h]                                               ; +0x99, 0x14011f579\nmov     rdx, rcx                                                       ; +0xa0, 0x14011f580\nand     cl, 1Fh                                                        ; +0xa3, 0x14011f583\nshr     rdx, 5                                                         ; +0xa6, 0x14011f586\nmov     r8d, 1                                                         ; +0xaa, 0x14011f58a\nshl     r8d, cl                                                        ; +0xb0, 0x14011f590\nmov     rcx, [rbx+498h]                                                ; +0xb3, 0x14011f593\nand     r8d, [rax+rdx*4]                                               ; +0xba, 0x14011f59a\nsetnz   dil                                                            ; +0xbe, 0x14011f59e\ntest    r8d, r8d                                                       ; +0xc2, 0x14011f5a2\njz      short loc_14011F5C4                                            ; +0xc5, 0x14011f5a5\nmov     [rsp+28h+arg_0], 96FFh                                         ; +0xc7, 0x14011f5a7\nlea     rdx, [rsp+28h+arg_0]                                           ; +0xce, 0x14011f5ae\nmov     [rsp+28h+arg_2], 0                                             ; +0xd3, 0x14011f5b3\njmp     short loc_14011F5CB                                            ; +0xd8, 0x14011f5b8\nmov     rcx, [rbx+498h]                                                ; +0xda, 0x14011f5ba\nxor     dil, dil                                                       ; +0xe1, 0x14011f5c1\nlea     rdx, word_140529A48                                            ; +0xe4, 0x14011f5c4\nadd     rcx, 170h                                                      ; +0xeb, 0x14011f5cb\nmov     rax, [rcx]                                                     ; +0xf2, 0x14011f5d2\ncall    qword ptr [rax]                                                ; +0xf5, 0x14011f5d5\nmov     rcx, [rbx+588h]                                                ; +0xf7, 0x14011f5d7\nmovzx   edx, dil                                                       ; +0xfe, 0x14011f5de\nmov     rax, [rcx]                                                     ; +0x102, 0x14011f5e2\ncall    qword ptr [rax+140h]                                           ; +0x105, 0x14011f5e5\nmov     rax, [rbx+500h]                                                ; +0x10b, 0x14011f5eb\nmov     rcx, [rbx+4B0h]                                                ; +0x112, 0x14011f5f2\nmovzx   edx, word ptr [rax+387Ah]                                      ; +0x119, 0x14011f5f9\nmov     r8, [rcx]                                                      ; +0x120, 0x14011f600\nshr     dx, 0Fh                                                        ; +0x123, 0x14011f603\nxor     dl, 1                                                          ; +0x127, 0x14011f607\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x12a, 0x14011f60a\nadd     rsp, 20h                                                       ; +0x12f, 0x14011f60f\npop     rdi                                                            ; +0x133, 0x14011f613\njmp     qword ptr [r8+140h]                                            ; +0x134, 0x14011f614", "xrefs": ["EditorUI::init @ 0x1400e1658", "EditorUI::showUI @ 0x140111a86", "EditorUI::onGoToLayer @ 0x1401147b8", "EditorUI::onGoToBaseLayer @ 0x1401147f0", "EditorUI::onGroupUp @ 0x14011f49e", "EditorUI::onGroupDown @ 0x14011f4d5", "EditorUI::onLockLayer @ 0x14011f6d1", "EditorUI::onLockLayer @ 0x14011f6e5", "EditorUI::keyDown @ 0x140125ebf", "EditorUI::keyDown @ 0x140125efb", "LevelEditorLayer::updateOptions @ 0x1402d33e0", "<???> @ 0x1406c9540"], "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"}