//
// SFXBrowser::updatePageLabel from 0x100432480 to 0x1004325a6 (294 bytes)
//
// 1 xrefs:
// > SFXBrowser::setupList @ 0x100431030
//
// 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:30:22 +0000
//
void __fastcall SFXBrowser::updatePageLabel(__int64 a1)
{
int v1; // eax
int v2; // r14d
__int64 v3; // rax
const std::string::value_type *CString; // rax
int v5; // r14d
std::string::pointer data; // rsi
std::string v7; // [rsp+0h] [rbp-30h] BYREF
v1 = sub_1007FEF90(*(_QWORD *)(*(_QWORD *)(a1 + 712) + 64LL));
if ( v1 <= 0 )
{
memset(&v7, 0, sizeof(v7));
v5 = 0;
std::string::assign(&v7, "No matches");
}
else
{
v2 = (v1 - 1) / *(_DWORD *)(a1 + 1104);
memset(&v7, 0, sizeof(v7));
v3 = sub_10088E820("%i to %i of %i", 0);
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v3);
std::string::assign(&v7, CString);
v5 = (int)(float)v2;
}
if ( (*(_BYTE *)&v7.__r_.__value_.__s.0 & 1) != 0 )
data = v7.__r_.__value_.__l.__data_;
else
data = v7.__r_.__value_.__s.__data_;
(*(void (__fastcall **)(_QWORD, std::string::pointer))(**(_QWORD **)(a1 + 792) + 928LL))(*(_QWORD *)(a1 + 792), data);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 800) + 344LL))(
*(_QWORD *)(a1 + 800),
*(_DWORD *)(*(_QWORD *)(a1 + 712) + 96LL) > 0);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 808) + 344LL))(
*(_QWORD *)(a1 + 808),
*(_DWORD *)(*(_QWORD *)(a1 + 712) + 96LL) < v5);
if ( (*(_BYTE *)&v7.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v7.__r_.__value_.__l.__data_);
}