//
// IDNameBrowserPopup::updateSortButtonLabel from 0x78f9d8 to 0x78fa1c (68 bytes)
//
// 2 xrefs:
// > IDNameBrowserPopup::init @ 0x79299c
// > IDNameBrowserPopup::onToggleSort @ 0x79343e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:40 +0000
//
int __fastcall IDNameBrowserPopup::updateSortButtonLabel(IDNameBrowserPopup *this)
{
int result; // r0
int v3; // r3
char *v4; // r1
result = *((_DWORD *)this + 141);
if ( result )
{
v3 = *((_DWORD *)this + 140);
if ( v3 == 1 )
{
v4 = "Sort: ID";
}
else if ( v3 == 2 )
{
v4 = "Sort: Name";
}
else
{
v4 = "Sort: Use";
}
ButtonSprite::setString(result, v4);
return cocos2d::CCLabelBMFont::limitLabelWidth(
*(cocos2d::CCLabelBMFont **)(*((_DWORD *)this + 141) + 536),
44.0,
0.5,
0.0);
}
return result;
}