//
// ReportQueuePopup::onToggleSort from 0xc4fe24 to 0xc4fe94 (112 bytes)
//
// 3 xrefs:
// > ??> @ 0x903d0
// > ReportQueuePopup::init @ 0xc50054
// > ??> @ 0x1543da8
//
// This function is hookable on this platform (idp: arm, 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 13:05:08 +0000
//
PagedListPopup *__fastcall ReportQueuePopup::onToggleSort(ReportQueuePopup *this, cocos2d::CCObject *a2)
{
ButtonSprite *v3; // x0
ButtonSprite *v4; // x0
if ( *((_DWORD *)this + 198) )
{
v4 = *((ButtonSprite **)this + 101);
*((_DWORD *)this + 198) = 0;
ButtonSprite::setString(v4, "Top");
}
else
{
v3 = *((ButtonSprite **)this + 101);
*((_DWORD *)this + 198) = 1;
ButtonSprite::setString(v3, "New");
}
return PagedListPopup::loadPage(this, 0);
}