//
// IDNameBrowserPopup::onToggleSort from 0x1403c4810 to 0x1403c4875 (101 bytes)
//
// 2 xrefs:
// > IDNameBrowserPopup::init @ 0x1403c1e5a
// > ??> @ 0x140924158
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:31:30 +0000
//
void __fastcall IDNameBrowserPopup::onToggleSort(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rcx
*(_DWORD *)(a1 + 736) = (*(_DWORD *)(a1 + 736) + 1) % 3;
IDNameBrowserPopup::updateSortButtonLabel(a1);
v2 = *(_QWORD *)(a1 + 696);
if ( v2 )
{
*(_DWORD *)(v2 + 436) = 0;
*(_DWORD *)(v2 + 476) = 0;
ScrollableContentLayer::clampOffset(v2);
ScrollableContentLayer::applyContentPosition(v3);
}
IDNameBrowserPopup::rebuildList(a1);
}