//
// sub_10090A970 from 0x10090a970 to 0x10090aa25 (181 bytes)
//
// 1 xrefs:
// > IDNameBrowserPopup::init @ 0x100909c97
//
// 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 12:38:06 +0000
//
__int64 __fastcall sub_10090A970(__int64 a1)
{
int v2; // eax
__int64 v3; // rdi
const char *v4; // rdx
const std::string::value_type *v5; // rsi
v2 = -3 * ((*(_DWORD *)(a1 + 736) + 1) / 3) + *(_DWORD *)(a1 + 736) + 1;
*(_DWORD *)(a1 + 736) = v2;
v3 = *(_QWORD *)(a1 + 744);
if ( v3 )
{
v4 = "Sort: Use";
if ( v2 == 2 )
v4 = "Sort: Name";
v5 = "Sort: ID";
if ( v2 != 1 )
v5 = v4;
ButtonSprite::setString(v3, v5);
cocos2d::CCLabelBMFont::limitLabelWidth(
*(_QWORD *)(*(_QWORD *)(a1 + 744) + 624LL),
44.0,
(__m128)0x3F000000u,
(__m128)0LL);
}
if ( *(_QWORD *)(a1 + 696) )
ScrollableContentLayer::scrollTo(0.0);
return sub_10090B400(a1);
}