{"type": "func", "start": 4295149184, "end": 4295149431, "name": "EditorUI::updateGroupIDLabel", "pseudocode": "// \n// EditorUI::updateGroupIDLabel from 0x10002c680 to 0x10002c777 (247 bytes)\n// \n// 9 xrefs:\n// > EditorUI::init @ 0x10000b3d3\n// > EditorUI::onGoToLayer @ 0x10002c48b\n// > EditorUI::onGroupUp @ 0x10002c5d3\n// > EditorUI::onGroupDown @ 0x10002c604\n// > EditorUI::onGoToBaseLayer @ 0x10002c625\n// > EditorUI::onLockLayer @ 0x10002c666\n// > EditorUI::showUI @ 0x10003d87f\n// > EditorUI::keyDown @ 0x100050e3e\n// > LevelEditorLayer::updateOptions @ 0x1000dc4b8\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; // rax\n  const char *CString; // rsi\n  bool isLayerLocked; // r14\n  cocos2d::CCLabelBMFont *m_currentLayerLabel; // rdi\n  cocos2d::CCLabelBMFont_vtbl *v6; // rax\n  __int16 *v7; // rsi\n  char v8; // [rsp+0h] [rbp-20h]\n  __int16 v9; // [rsp+Ch] [rbp-14h] BYREF\n  char v10; // [rsp+Eh] [rbp-12h]\n\n  if ( a1->m_editorLayer->m_currentLayer < 0 )\n  {\n    CString = \"All\";\n  }\n  else\n  {\n    v2 = (cocos2d::CCString *)sub_1007AB580(\"%i\", v8);\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.60000002, 0.0);\n  isLayerLocked = LevelEditorLayer::isLayerLocked(a1->m_editorLayer, a1->m_editorLayer->m_currentLayer);\n  m_currentLayerLabel = a1->m_currentLayerLabel;\n  if ( isLayerLocked )\n  {\n    v10 = 0;\n    v9 = -26881;\n    v6 = m_currentLayerLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v7 = &v9;\n  }\n  else\n  {\n    v6 = m_currentLayerLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v7 = (__int16 *)&unk_100815540;\n  }\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))v6->setColor)(m_currentLayerLabel, v7);\n  ((void (__fastcall *)(cocos2d::CCSprite *, bool))a1->m_layerLockSprite->setVisible)(\n    a1->m_layerLockSprite,\n    isLayerLocked);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_goToBaseBtn->setVisible)(\n    a1->m_goToBaseBtn,\n    a1->m_editorLayer->m_currentLayer >= 0);\n}", "assembly": "; \n; EditorUI::updateGroupIDLabel from 0x10002c680 to 0x10002c777 (247 bytes)\n; \n; 9 xrefs:\n; > EditorUI::init @ 0x10000b3d3\n; > EditorUI::onGoToLayer @ 0x10002c48b\n; > EditorUI::onGroupUp @ 0x10002c5d3\n; > EditorUI::onGroupDown @ 0x10002c604\n; > EditorUI::onGoToBaseLayer @ 0x10002c625\n; > EditorUI::onLockLayer @ 0x10002c666\n; > EditorUI::showUI @ 0x10003d87f\n; > EditorUI::keyDown @ 0x100050e3e\n; > LevelEditorLayer::updateOptions @ 0x1000dc4b8\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\npush    rbp                                                            ; +0x0, 0x10002c680\nmov     rbp, rsp                                                       ; +0x1, 0x10002c681\npush    r14                                                            ; +0x4, 0x10002c684\npush    rbx                                                            ; +0x6, 0x10002c686\nsub     rsp, 10h                                                       ; +0x7, 0x10002c687\nmov     rbx, rdi                                                       ; +0xb, 0x10002c68b\nmov     rax, [rdi+4E8h]                                                ; +0xe, 0x10002c68e\nmovsx   esi, word ptr [rax+364Ah]                                      ; +0x15, 0x10002c695\ntest    esi, esi                                                       ; +0x1c, 0x10002c69c\njs      short loc_10002C6BB                                            ; +0x1e, 0x10002c69e\nlea     rdi, aI; \"%i\"                                                  ; +0x20, 0x10002c6a0\nxor     eax, eax                                                       ; +0x27, 0x10002c6a7\ncall    sub_1007AB580                                                  ; +0x29, 0x10002c6a9\nmov     rdi, rax                                                       ; +0x2e, 0x10002c6ae\ncall    cocos2d__CCString__getCString                                  ; +0x31, 0x10002c6b1\nmov     rsi, rax                                                       ; +0x36, 0x10002c6b6\njmp     short loc_10002C6C2                                            ; +0x39, 0x10002c6b9\nlea     rsi, aAll; \"All\"                                               ; +0x3b, 0x10002c6bb\nmov     rdi, [rbx+480h]                                                ; +0x42, 0x10002c6c2\nmov     rax, [rdi]                                                     ; +0x49, 0x10002c6c9\ncall    qword ptr [rax+390h]                                           ; +0x4c, 0x10002c6cc\nmov     rdi, [rbx+480h]                                                ; +0x52, 0x10002c6d2\nmovss   xmm0, cs:dword_1008152AC                                       ; +0x59, 0x10002c6d9\nmovss   xmm1, cs:dword_100814FB0                                       ; +0x61, 0x10002c6e1\nxorps   xmm2, xmm2                                                     ; +0x69, 0x10002c6e9\ncall    cocos2d__CCLabelBMFont__limitLabelWidth                        ; +0x6c, 0x10002c6ec\nmov     rdi, [rbx+4E8h]                                                ; +0x71, 0x10002c6f1\nmovsx   esi, word ptr [rdi+364Ah]                                      ; +0x78, 0x10002c6f8\ncall    LevelEditorLayer__isLayerLocked                                ; +0x7f, 0x10002c6ff\nmov     r14d, eax                                                      ; +0x84, 0x10002c704\nmov     rdi, [rbx+480h]                                                ; +0x87, 0x10002c707\ntest    al, al                                                         ; +0x8e, 0x10002c70e\njz      short loc_10002C725                                            ; +0x90, 0x10002c710\nmov     [rbp+var_12], 0                                                ; +0x92, 0x10002c712\nmov     [rbp+var_14], 96FFh                                            ; +0x96, 0x10002c716\nmov     rax, [rdi]                                                     ; +0x9c, 0x10002c71c\nlea     rsi, [rbp+var_14]                                              ; +0x9f, 0x10002c71f\njmp     short loc_10002C72F                                            ; +0xa3, 0x10002c723\nmov     rax, [rdi]                                                     ; +0xa5, 0x10002c725\nlea     rsi, unk_100815540                                             ; +0xa8, 0x10002c728\ncall    qword ptr [rax+420h]                                           ; +0xaf, 0x10002c72f\nmov     rdi, [rbx+570h]                                                ; +0xb5, 0x10002c735\nmov     rax, [rdi]                                                     ; +0xbc, 0x10002c73c\nmovzx   esi, r14b                                                      ; +0xbf, 0x10002c73f\ncall    qword ptr [rax+148h]                                           ; +0xc3, 0x10002c743\nmov     rdi, [rbx+498h]                                                ; +0xc9, 0x10002c749\nmov     rax, [rbx+4E8h]                                                ; +0xd0, 0x10002c750\nxor     esi, esi                                                       ; +0xd7, 0x10002c757\ncmp     word ptr [rax+364Ah], 0                                        ; +0xd9, 0x10002c759\nsetns   sil                                                            ; +0xe1, 0x10002c761\nmov     rax, [rdi]                                                     ; +0xe5, 0x10002c765\ncall    qword ptr [rax+148h]                                           ; +0xe8, 0x10002c768\nadd     rsp, 10h                                                       ; +0xee, 0x10002c76e\npop     rbx                                                            ; +0xf2, 0x10002c772\npop     r14                                                            ; +0xf3, 0x10002c773\npop     rbp                                                            ; +0xf5, 0x10002c775\nretn                                                                   ; +0xf6, 0x10002c776", "xrefs": ["EditorUI::init @ 0x10000b3d3", "EditorUI::onGoToLayer @ 0x10002c48b", "EditorUI::onGroupUp @ 0x10002c5d3", "EditorUI::onGroupDown @ 0x10002c604", "EditorUI::onGoToBaseLayer @ 0x10002c625", "EditorUI::onLockLayer @ 0x10002c666", "EditorUI::showUI @ 0x10003d87f", "EditorUI::keyDown @ 0x100050e3e", "LevelEditorLayer::updateOptions @ 0x1000dc4b8"], "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"}