//
// IDNameBrowserPopup::updateSortButtonLabel from 0x1403c4790 to 0x1403c4806 (118 bytes)
//
// 2 xrefs:
// > IDNameBrowserPopup::onToggleSort @ 0x1403c483f
// > ??> @ 0x14092414c
//
// 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::updateSortButtonLabel(__int64 a1)
{
__int64 *v2; // rcx
int v3; // eax
char *v4; // rdx
v2 = *(__int64 **)(a1 + 744);
if ( v2 )
{
v3 = *(_DWORD *)(a1 + 736);
if ( v3 == 1 )
{
v4 = "Sort: ID";
}
else
{
v4 = "Sort: Name";
if ( v3 != 2 )
v4 = "Sort: Use";
}
ButtonSprite::setString(v2, v4);
cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(*(_QWORD *)(a1 + 744) + 632LL), 44.0, 0.5, 0.0);
}
}