//
// StartPosBrowser::updatePageLabel from 0x1003c41d0 to 0x1003c42df (271 bytes)
//
// 1 xrefs:
// > StartPosBrowser::setupList @ 0x1003c4130
//
// 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:29:34 +0000
//
void __fastcall StartPosBrowser::updatePageLabel(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rax
const char *CString; // r15
size_t v5; // rax
size_t v6; // r14
char *v7; // r12
__int64 v8; // rdi
char *v9; // rsi
size_t v10; // r13
_QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF
void *__p; // [rsp+10h] [rbp-30h]
v2 = *(_QWORD *)(a1 + 680);
if ( v2 )
sub_1007FEF90(v2);
v3 = sub_10088E820("Total: %i", __dst[0]);
CString = (const char *)cocos2d::CCString::getCString(v3);
v5 = strlen(CString);
if ( v5 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v6 = v5;
if ( v5 >= 0x17 )
{
v10 = 26;
if ( (v5 | 7) != 0x17 )
v10 = (v5 | 7) + 1;
v7 = (char *)operator new(v10);
__p = v7;
__dst[0] = v10 + 1;
__dst[1] = v6;
LABEL_11:
memmove(v7, CString, v6);
v7[v6] = 0;
v8 = *(_QWORD *)(a1 + 704);
if ( (__dst[0] & 1) != 0 )
goto LABEL_7;
goto LABEL_12;
}
LOBYTE(__dst[0]) = 2 * v5;
v7 = (char *)__dst + 1;
if ( v5 )
goto LABEL_11;
BYTE1(__dst[0]) = 0;
v8 = *(_QWORD *)(a1 + 704);
if ( (__dst[0] & 1) != 0 )
{
LABEL_7:
v9 = (char *)__p;
goto LABEL_13;
}
LABEL_12:
v9 = (char *)__dst + 1;
LABEL_13:
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v8 + 928LL))(v8, v9);
if ( (__dst[0] & 1) != 0 )
operator delete(__p);
}