//
// LevelPickerPopup::setupPageInfo from 0x1400ea640 to 0x1400ea7df (415 bytes)
//
// 2 xrefs:
// > ??> @ 0x14072cee8
// > ??> @ 0x140914ea0
//
// 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 11:26:34 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall LevelPickerPopup::setupPageInfo(__int64 a1, _QWORD *a2, _BYTE *a3)
{
size_t v6; // rbx
__int64 v7; // rax
const void *v8; // rcx
size_t v9; // r8
_BYTE *v10; // rdx
cocos2d::CCArray *v11; // rbx
void *v12; // r8
cocos2d::CCString *v13; // rax
cocos2d::CCString *v14; // rax
void *Block[2]; // [rsp+38h] [rbp-30h] BYREF
__m128i si128; // [rsp+48h] [rbp-20h]
v6 = -1;
if ( !a3 )
goto LABEL_9;
v7 = -1;
do
++v7;
while ( a3[v7] );
v8 = (const void *)(a1 + 64);
if ( *(_QWORD *)(a1 + 88) > 0xFu )
v8 = *(const void **)(a1 + 64);
v9 = *(_QWORD *)(a1 + 80);
if ( v9 == v7 && (!v9 || !memcmp(v8, a3, v9)) )
{
LABEL_9:
v10 = a2;
if ( a2[3] > 0xFu )
v10 = (_BYTE *)*a2;
*(_OWORD *)Block = 0;
si128 = 0;
do
++v6;
while ( v10[v6] );
sub_14003D230(Block, v10, v6);
v11 = sub_1400D2840((__int64 *)Block, ":");
if ( si128.m128i_i64[1] > 0xFuLL )
{
v12 = Block[0];
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v12 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v12 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v12);
}
si128 = _mm_load_si128((const __m128i *)&Size);
LOBYTE(Block[0]) = 0;
if ( v11 && cocos2d::CCArray::count(v11) >= 2 )
{
v13 = cocos2d::CCArray::stringAtIndex(v11, 0);
*(_DWORD *)(a1 + 96) = cocos2d::CCString::intValue(v13);
v14 = cocos2d::CCArray::stringAtIndex(v11, 1u);
*(_DWORD *)(a1 + 100) = cocos2d::CCString::intValue(v14);
}
}
sub_14003D310((__int64)a2);
}