//
// ReportQueuePopup::onToggleSort from 0x1400c95c0 to 0x1400c960e (78 bytes)
//
// 2 xrefs:
// > ReportQueuePopup::init @ 0x1400c7888
// > ??> @ 0x140913f70
//
// 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:26:22 +0000
//
void __fastcall ReportQueuePopup::onToggleSort(__int64 a1)
{
int v1; // r8d
char *v2; // rdx
__int64 *v4; // rcx
v1 = *(_DWORD *)(a1 + 792);
v2 = "New";
*(_DWORD *)(a1 + 792) = v1 == 0;
v4 = *(__int64 **)(a1 + 808);
if ( v1 )
v2 = "Top";
ButtonSprite::setString(v4, v2);
PagedListPopup::loadPage(a1, 0);
}