{"type": "func", "start": 5372659600, "end": 5372659718, "name": "IDNameBrowserPopup::updateSortButtonLabel", "pseudocode": "// \n// IDNameBrowserPopup::updateSortButtonLabel from 0x1403c4790 to 0x1403c4806 (118 bytes)\n// \n// 2 xrefs:\n// > IDNameBrowserPopup::onToggleSort @ 0x1403c483f\n// > <???> @ 0x14092414c\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:31:30 +0000\n// \n\nvoid __fastcall IDNameBrowserPopup::updateSortButtonLabel(__int64 a1)\n{\n  __int64 *v2; // rcx\n  int v3; // eax\n  char *v4; // rdx\n\n  v2 = *(__int64 **)(a1 + 744);\n  if ( v2 )\n  {\n    v3 = *(_DWORD *)(a1 + 736);\n    if ( v3 == 1 )\n    {\n      v4 = \"Sort: ID\";\n    }\n    else\n    {\n      v4 = \"Sort: Name\";\n      if ( v3 != 2 )\n        v4 = \"Sort: Use\";\n    }\n    ButtonSprite::setString(v2, v4);\n    cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(*(_QWORD *)(a1 + 744) + 632LL), 44.0, 0.5, 0.0);\n  }\n}", "assembly": "; \n; IDNameBrowserPopup::updateSortButtonLabel from 0x1403c4790 to 0x1403c4806 (118 bytes)\n; \n; 2 xrefs:\n; > IDNameBrowserPopup::onToggleSort @ 0x1403c483f\n; > <???> @ 0x14092414c\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:31:30 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403c4790\nsub     rsp, 20h                                                       ; +0x2, 0x1403c4792\nmov     rbx, rcx                                                       ; +0x6, 0x1403c4796\nmov     rcx, [rcx+2E8h]                                                ; +0x9, 0x1403c4799\ntest    rcx, rcx                                                       ; +0x10, 0x1403c47a0\njz      short loc_1403C4800                                            ; +0x13, 0x1403c47a3\nmov     eax, [rbx+2E0h]                                                ; +0x15, 0x1403c47a5\nlea     r8, aSortUse; \"Sort: Use\"                                      ; +0x1b, 0x1403c47ab\ncmp     eax, 1                                                         ; +0x22, 0x1403c47b2\njnz     short loc_1403C47C0                                            ; +0x25, 0x1403c47b5\nlea     rdx, aSortId; \"Sort: ID\"                                       ; +0x27, 0x1403c47b7\njmp     short loc_1403C47CE                                            ; +0x2e, 0x1403c47be\ncmp     eax, 2                                                         ; +0x30, 0x1403c47c0\nlea     rdx, aSortName; \"Sort: Name\"                                   ; +0x33, 0x1403c47c3\ncmovnz  rdx, r8                                                        ; +0x3a, 0x1403c47ca\ncall    ButtonSprite__setString                                        ; +0x3e, 0x1403c47ce\nmov     rcx, [rbx+2E8h]                                                ; +0x43, 0x1403c47d3\nxorps   xmm3, xmm3                                                     ; +0x4a, 0x1403c47da\nmovss   xmm2, cs:dword_140834F20                                       ; +0x4d, 0x1403c47dd\nmovss   xmm1, cs:dword_140835688                                       ; +0x55, 0x1403c47e5\nmov     rcx, [rcx+278h]                                                ; +0x5d, 0x1403c47ed\nadd     rsp, 20h                                                       ; +0x64, 0x1403c47f4\npop     rbx                                                            ; +0x68, 0x1403c47f8\njmp     cs:?limitLabelWidth@CCLabelBMFont@cocos2d@@QEAAXMMM@Z; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x69, 0x1403c47f9\nadd     rsp, 20h                                                       ; +0x70, 0x1403c4800\npop     rbx                                                            ; +0x74, 0x1403c4804\nretn                                                                   ; +0x75, 0x1403c4805", "xrefs": ["IDNameBrowserPopup::onToggleSort @ 0x1403c483f", "<???> @ 0x14092414c"], "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"}