//
// IDNameBrowserPopup::onToggleSort from 0xce3bc0 to 0xce3c1c (92 bytes)
//
// 3 xrefs:
// > ??> @ 0x915d0
// > IDNameBrowserPopup::init @ 0xce2c64
// > ??> @ 0x1543e60
//
// 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:06:38 +0000
//
__int64 __fastcall IDNameBrowserPopup::onToggleSort(IDNameBrowserPopup *this, cocos2d::CCObject *a2)
{
ScrollableContentLayer *v3; // x0
*((_DWORD *)this + 184) = (*((_DWORD *)this + 184) + 1) % 3;
IDNameBrowserPopup::updateSortButtonLabel((__int64)this);
v3 = *((ScrollableContentLayer **)this + 87);
if ( v3 )
ScrollableContentLayer::scrollTo(v3, 0.0);
return IDNameBrowserPopup::rebuildList(this);
}