//
// IDNameBrowserPopup::updateSortButtonLabel from 0xcde180 to 0xcde200 (128 bytes)
//
// 3 xrefs:
// > IDNameBrowserPopup::init @ 0xce2cc4
// > IDNameBrowserPopup::onToggleSort @ 0xce3bf8
// > ??> @ 0xc3808
//
// 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:34 +0000
//
__int64 __fastcall IDNameBrowserPopup::updateSortButtonLabel(__int64 this)
{
int v1; // w1
const char *v2; // x1
__int64 v3; // x19
if ( *(_QWORD *)(this + 744) )
{
v1 = *(_DWORD *)(this + 736);
if ( v1 == 1 )
{
v2 = "Sort: ID";
}
else if ( v1 == 2 )
{
v2 = "Sort: Name";
}
else
{
v2 = "Sort: Use";
}
v3 = this;
ButtonSprite::setString(*(ButtonSprite **)(this + 744), v2);
return cocos2d::CCLabelBMFont::limitLabelWidth(
*(cocos2d::CCLabelBMFont **)(*(_QWORD *)(v3 + 744) + 624LL),
44.0,
0.5,
0.0);
}
return this;
}