{"type": "func", "start": 5372659728, "end": 5372659829, "name": "IDNameBrowserPopup::onToggleSort", "pseudocode": "// \n// IDNameBrowserPopup::onToggleSort from 0x1403c4810 to 0x1403c4875 (101 bytes)\n// \n// 2 xrefs:\n// > IDNameBrowserPopup::init @ 0x1403c1e5a\n// > <???> @ 0x140924158\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::onToggleSort(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rcx\n\n  *(_DWORD *)(a1 + 736) = (*(_DWORD *)(a1 + 736) + 1) % 3;\n  IDNameBrowserPopup::updateSortButtonLabel(a1);\n  v2 = *(_QWORD *)(a1 + 696);\n  if ( v2 )\n  {\n    *(_DWORD *)(v2 + 436) = 0;\n    *(_DWORD *)(v2 + 476) = 0;\n    ScrollableContentLayer::clampOffset(v2);\n    ScrollableContentLayer::applyContentPosition(v3);\n  }\n  IDNameBrowserPopup::rebuildList(a1);\n}", "assembly": "; \n; IDNameBrowserPopup::onToggleSort from 0x1403c4810 to 0x1403c4875 (101 bytes)\n; \n; 2 xrefs:\n; > IDNameBrowserPopup::init @ 0x1403c1e5a\n; > <???> @ 0x140924158\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, 0x1403c4810\nsub     rsp, 20h                                                       ; +0x2, 0x1403c4812\nmov     r8d, [rcx+2E0h]                                                ; +0x6, 0x1403c4816\nmov     eax, 55555556h                                                 ; +0xd, 0x1403c481d\ninc     r8d                                                            ; +0x12, 0x1403c4822\nmov     rbx, rcx                                                       ; +0x15, 0x1403c4825\nimul    r8d                                                            ; +0x18, 0x1403c4828\nmov     eax, edx                                                       ; +0x1b, 0x1403c482b\nshr     eax, 1Fh                                                       ; +0x1d, 0x1403c482d\nadd     edx, eax                                                       ; +0x20, 0x1403c4830\nlea     eax, [rdx+rdx*2]                                               ; +0x22, 0x1403c4832\nsub     r8d, eax                                                       ; +0x25, 0x1403c4835\nmov     [rcx+2E0h], r8d                                                ; +0x28, 0x1403c4838\ncall    IDNameBrowserPopup__updateSortButtonLabel                      ; +0x2f, 0x1403c483f\nmov     rcx, [rbx+2B8h]                                                ; +0x34, 0x1403c4844\ntest    rcx, rcx                                                       ; +0x3b, 0x1403c484b\njz      short loc_1403C4868                                            ; +0x3e, 0x1403c484e\nxor     eax, eax                                                       ; +0x40, 0x1403c4850\nmov     [rcx+1B4h], eax                                                ; +0x42, 0x1403c4852\nmov     [rcx+1DCh], eax                                                ; +0x48, 0x1403c4858\ncall    ScrollableContentLayer__clampOffset                            ; +0x4e, 0x1403c485e\ncall    ScrollableContentLayer__applyContentPosition                   ; +0x53, 0x1403c4863\nmov     rcx, rbx                                                       ; +0x58, 0x1403c4868\nadd     rsp, 20h                                                       ; +0x5b, 0x1403c486b\npop     rbx                                                            ; +0x5f, 0x1403c486f\njmp     IDNameBrowserPopup__rebuildList                                ; +0x60, 0x1403c4870", "xrefs": ["IDNameBrowserPopup::init @ 0x1403c1e5a", "<???> @ 0x140924158"], "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"}