//
// StartPosBrowser::updatePageLabel from 0x48fd48 to 0x48fdca (130 bytes)
//
// 1 xrefs:
// > StartPosBrowser::setupList @ 0x48ff18
//
// 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:49:36 +0000
//
int __fastcall StartPosBrowser::updatePageLabel(StartPosBrowser *this)
{
cocos2d::CCArray *v2; // r0
const char *v3; // r1
cocos2d::CCString *v4; // r0
const char *CString; // r7
size_t v6; // r0
char *v7; // r1
int v9[2]; // [sp+0h] [bp-14h] BYREF
char *v10; // [sp+8h] [bp-Ch]
v2 = *((cocos2d::CCArray **)this + 132);
if ( v2 )
{
v3 = (const char *)(cocos2d::CCArray::count(v2) + 1);
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Total: %i", v3);
}
else
{
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Total: %i",
(const char *)&dword_0 + 1);
}
v9[0] = 0;
v9[1] = 0;
v10 = nullptr;
CString = (const char *)cocos2d::CCString::getCString(v4);
v6 = strlen(CString);
std::string::__init(v9, CString, v6);
if ( (v9[0] & 1) != 0 )
v7 = v10;
else
v7 = (char *)v9 + 1;
(*(void (__fastcall **)(_DWORD, char *, int))(**((_DWORD **)this + 135) + 464))(
*((_DWORD *)this + 135),
v7,
LOBYTE(v9[0]) << 31);
return std::string::~string((int)v9);
}