{"type": "func", "start": 5370538736, "end": 5370539077, "name": "EditorUI::updateGroupIDLabel", "pseudocode": "// \n// EditorUI::updateGroupIDLabel from 0x1401beaf0 to 0x1401bec45 (341 bytes)\n// \n// 13 xrefs:\n// > EditorUI::init @ 0x1401ac0ee\n// > EditorUI::showUI @ 0x1401b40e8\n// > EditorUI::onGoToLayer @ 0x1401b5536\n// > EditorUI::onGoToFreeLayer @ 0x1401b5698\n// > EditorUI::onGoToBaseLayer @ 0x1401b56b0\n// > EditorUI::onGroupUp @ 0x1401beaae\n// > EditorUI::onGroupDown @ 0x1401beae5\n// > EditorUI::onLockLayer @ 0x1401bed47\n// > EditorUI::handleEditorAction @ 0x1401c3671\n// > EditorUI::handleEditorAction @ 0x1401c36ae\n// > EditorUI::handleEditorAction @ 0x1401c3800\n// > LevelEditorLayer::updateOptions @ 0x1403ef55a\n// > <???> @ 0x14091a4f8\n// \n// This function is hookable on this platform (idp: pc, 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 11:28:02 +0000\n// \n\n__int64 __fastcall EditorUI::updateGroupIDLabel(__int64 a1, __int64 a2, __int64 a3)\n{\n  const char *CString; // r9\n  __int64 v5; // rdx\n  cocos2d::CCString *v6; // rax\n  __int64 v7; // rax\n  unsigned __int64 v8; // rcx\n  int v9; // r8d\n  bool v10; // bl\n  void (__fastcall ***v11)(_QWORD, __int16 *); // rcx\n  __int16 *v12; // rdx\n  __int16 v13; // bx\n  __int16 v15; // [rsp+30h] [rbp+8h] BYREF\n  char v16; // [rsp+32h] [rbp+Ah]\n\n  CString = \"All\";\n  v5 = (unsigned int)*(__int16 *)(*(_QWORD *)(a1 + 1512) + 14866LL);\n  if ( (int)v5 > -1 )\n  {\n    v6 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v5, a3, \"All\");\n    CString = cocos2d::CCString::getCString(v6);\n  }\n  (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 1328) + 360LL))(\n    *(_QWORD *)(a1 + 1328) + 360LL,\n    CString);\n  cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 1328), 38.0, 0.60000002, 0.0);\n  v7 = *(_QWORD *)(a1 + 1512);\n  v8 = *(__int16 *)(v7 + 14866);\n  if ( (unsigned __int16)v8 > 0x270Fu || !*(_BYTE *)(v7 + 14666) )\n  {\n    v10 = 0;\n    v11 = (void (__fastcall ***)(_QWORD, __int16 *))(*(_QWORD *)(a1 + 1328) + 368LL);\n    goto LABEL_8;\n  }\n  v9 = *(_DWORD *)(*(_QWORD *)(v7 + 15208) + 4 * (v8 >> 5)) & (1 << v8);\n  v10 = v9 != 0;\n  v11 = (void (__fastcall ***)(_QWORD, __int16 *))(*(_QWORD *)(a1 + 1328) + 368LL);\n  if ( !v9 )\n  {\nLABEL_8:\n    v12 = &word_14070329C;\n    goto LABEL_9;\n  }\n  v15 = -26881;\n  v12 = &v15;\n  v16 = 0;\nLABEL_9:\n  (**v11)(v11, v12);\n  (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 1648) + 336LL))(*(_QWORD *)(a1 + 1648), v10);\n  v13 = *(_WORD *)(*(_QWORD *)(a1 + 1512) + 14866LL) >> 15;\n  (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 1352) + 336LL))(\n    *(_QWORD *)(a1 + 1352),\n    *(_WORD *)(*(_QWORD *)(a1 + 1512) + 14866LL) >= 0);\n  return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1232) + 336LL))(\n           *(_QWORD *)(a1 + 1232),\n           (unsigned __int8)v13);\n}", "assembly": "; \n; EditorUI::updateGroupIDLabel from 0x1401beaf0 to 0x1401bec45 (341 bytes)\n; \n; 13 xrefs:\n; > EditorUI::init @ 0x1401ac0ee\n; > EditorUI::showUI @ 0x1401b40e8\n; > EditorUI::onGoToLayer @ 0x1401b5536\n; > EditorUI::onGoToFreeLayer @ 0x1401b5698\n; > EditorUI::onGoToBaseLayer @ 0x1401b56b0\n; > EditorUI::onGroupUp @ 0x1401beaae\n; > EditorUI::onGroupDown @ 0x1401beae5\n; > EditorUI::onLockLayer @ 0x1401bed47\n; > EditorUI::handleEditorAction @ 0x1401c3671\n; > EditorUI::handleEditorAction @ 0x1401c36ae\n; > EditorUI::handleEditorAction @ 0x1401c3800\n; > LevelEditorLayer::updateOptions @ 0x1403ef55a\n; > <???> @ 0x14091a4f8\n; \n; This function is hookable on this platform (idp: pc, 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 11:28:02 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401beaf0\npush    rdi                                                            ; +0x5, 0x1401beaf5\nsub     rsp, 20h                                                       ; +0x6, 0x1401beaf6\nmov     rax, [rcx+5E8h]                                                ; +0xa, 0x1401beafa\nlea     r9, aAll; \"All\"                                                ; +0x11, 0x1401beb01\nmov     rdi, rcx                                                       ; +0x18, 0x1401beb08\nmovsx   edx, word ptr [rax+3A12h]                                      ; +0x1b, 0x1401beb0b\ncmp     edx, 0FFFFFFFFh                                                ; +0x22, 0x1401beb12\njle     short loc_1401BEB30                                            ; +0x25, 0x1401beb15\nlea     rcx, word_1406ED6F8                                            ; +0x27, 0x1401beb17\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x2e, 0x1401beb1e\nmov     rcx, rax                                                       ; +0x34, 0x1401beb24\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x37, 0x1401beb27\nmov     r9, rax                                                        ; +0x3d, 0x1401beb2d\nmov     rcx, [rdi+530h]                                                ; +0x40, 0x1401beb30\nadd     rcx, 168h                                                      ; +0x47, 0x1401beb37\nmov     rdx, [rcx]                                                     ; +0x4e, 0x1401beb3e\nmov     r8, [rdx]                                                      ; +0x51, 0x1401beb41\nmov     rdx, r9                                                        ; +0x54, 0x1401beb44\ncall    r8                                                             ; +0x57, 0x1401beb47\nmovss   xmm2, cs:dword_140834F64                                       ; +0x5a, 0x1401beb4a\nxorps   xmm3, xmm3                                                     ; +0x62, 0x1401beb52\nmovss   xmm1, cs:dword_14083566C                                       ; +0x65, 0x1401beb55\nmov     rcx, [rdi+530h]                                                ; +0x6d, 0x1401beb5d\ncall    cs:?limitLabelWidth@CCLabelBMFont@cocos2d@@QEAAXMMM@Z; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x74, 0x1401beb64\nmov     rax, [rdi+5E8h]                                                ; +0x7a, 0x1401beb6a\nmov     edx, 270Fh                                                     ; +0x81, 0x1401beb71\nmovsx   rcx, word ptr [rax+3A12h]                                      ; +0x86, 0x1401beb76\ncmp     cx, dx                                                         ; +0x8e, 0x1401beb7e\nja      short loc_1401BEBD0                                            ; +0x91, 0x1401beb81\ncmp     byte ptr [rax+394Ah], 0                                        ; +0x93, 0x1401beb83\njz      short loc_1401BEBD0                                            ; +0x9a, 0x1401beb8a\nmov     rax, [rax+3B68h]                                               ; +0x9c, 0x1401beb8c\nmov     rdx, rcx                                                       ; +0xa3, 0x1401beb93\nshr     rdx, 5                                                         ; +0xa6, 0x1401beb96\nmov     r8d, 1                                                         ; +0xaa, 0x1401beb9a\nshl     r8d, cl                                                        ; +0xb0, 0x1401beba0\nmov     rcx, [rdi+530h]                                                ; +0xb3, 0x1401beba3\nand     r8d, [rax+rdx*4]                                               ; +0xba, 0x1401bebaa\nsetnz   bl                                                             ; +0xbe, 0x1401bebae\nadd     rcx, 170h                                                      ; +0xc1, 0x1401bebb1\ntest    r8d, r8d                                                       ; +0xc8, 0x1401bebb8\njz      short loc_1401BEBE0                                            ; +0xcb, 0x1401bebbb\nmov     [rsp+28h+arg_0], 96FFh                                         ; +0xcd, 0x1401bebbd\nlea     rdx, [rsp+28h+arg_0]                                           ; +0xd4, 0x1401bebc4\nmov     [rsp+28h+arg_2], 0                                             ; +0xd9, 0x1401bebc9\njmp     short loc_1401BEBE7                                            ; +0xde, 0x1401bebce\nmov     rcx, [rdi+530h]                                                ; +0xe0, 0x1401bebd0\nxor     bl, bl                                                         ; +0xe7, 0x1401bebd7\nadd     rcx, 170h                                                      ; +0xe9, 0x1401bebd9\nlea     rdx, word_14070329C                                            ; +0xf0, 0x1401bebe0\nmov     rax, [rcx]                                                     ; +0xf7, 0x1401bebe7\ncall    qword ptr [rax]                                                ; +0xfa, 0x1401bebea\nmov     rcx, [rdi+670h]                                                ; +0xfc, 0x1401bebec\nmovzx   edx, bl                                                        ; +0x103, 0x1401bebf3\nmov     rax, [rcx]                                                     ; +0x106, 0x1401bebf6\ncall    qword ptr [rax+150h]                                           ; +0x109, 0x1401bebf9\nmov     rax, [rdi+5E8h]                                                ; +0x10f, 0x1401bebff\nmov     rcx, [rdi+548h]                                                ; +0x116, 0x1401bec06\nmovzx   ebx, word ptr [rax+3A12h]                                      ; +0x11d, 0x1401bec0d\nmov     rax, [rcx]                                                     ; +0x124, 0x1401bec14\nshr     bx, 0Fh                                                        ; +0x127, 0x1401bec17\nmovzx   edx, bl                                                        ; +0x12b, 0x1401bec1b\nxor     dl, 1                                                          ; +0x12e, 0x1401bec1e\ncall    qword ptr [rax+150h]                                           ; +0x131, 0x1401bec21\nmov     rcx, [rdi+4D0h]                                                ; +0x137, 0x1401bec27\nmovzx   edx, bl                                                        ; +0x13e, 0x1401bec2e\nmov     rax, [rcx]                                                     ; +0x141, 0x1401bec31\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x144, 0x1401bec34\nadd     rsp, 20h                                                       ; +0x149, 0x1401bec39\npop     rdi                                                            ; +0x14d, 0x1401bec3d\njmp     qword ptr [rax+150h]                                           ; +0x14e, 0x1401bec3e", "xrefs": ["EditorUI::init @ 0x1401ac0ee", "EditorUI::showUI @ 0x1401b40e8", "EditorUI::onGoToLayer @ 0x1401b5536", "EditorUI::onGoToFreeLayer @ 0x1401b5698", "EditorUI::onGoToBaseLayer @ 0x1401b56b0", "EditorUI::onGroupUp @ 0x1401beaae", "EditorUI::onGroupDown @ 0x1401beae5", "EditorUI::onLockLayer @ 0x1401bed47", "EditorUI::handleEditorAction @ 0x1401c3671", "EditorUI::handleEditorAction @ 0x1401c36ae", "EditorUI::handleEditorAction @ 0x1401c3800", "LevelEditorLayer::updateOptions @ 0x1403ef55a", "<???> @ 0x14091a4f8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}