//
// ProfilePage::setupPageInfo from 0x14055a4d0 to 0x14055a651 (385 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407d8558
// > ??> @ 0x14092c090
//
// 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:34:12 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall ProfilePage::setupPageInfo(_DWORD *a1, _QWORD *a2, _BYTE *a3)
{
_BYTE *v5; // rdx
size_t v6; // r8
cocos2d::CCArray *v7; // rdi
void *v8; // r8
cocos2d::CCString *v9; // rax
cocos2d::CCString *v10; // rax
cocos2d::CCString *v11; // rax
void *Block[2]; // [rsp+38h] [rbp-40h] BYREF
__m128i si128; // [rsp+48h] [rbp-30h]
if ( ProfilePage::isCorrect((_QWORD *)a1 - 84, a3) )
{
v5 = a2;
if ( a2[3] > 0xFu )
v5 = (_BYTE *)*a2;
*(_OWORD *)Block = 0;
si128 = 0;
v6 = -1;
do
++v6;
while ( v5[v6] );
sub_14003D230(Block, v5, v6);
v7 = sub_14020EFC0((__int64 *)Block);
if ( si128.m128i_i64[1] > 0xFuLL )
{
v8 = Block[0];
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v8 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v8);
}
si128 = _mm_load_si128((const __m128i *)&Size);
LOBYTE(Block[0]) = 0;
if ( cocos2d::CCArray::count(v7) >= 3 )
{
v9 = cocos2d::CCArray::objectAtIndex(v7, 0);
a1[46] = cocos2d::CCString::intValue(v9);
v10 = cocos2d::CCArray::objectAtIndex(v7, 1u);
a1[47] = cocos2d::CCString::intValue(v10);
v11 = cocos2d::CCArray::objectAtIndex(v7, 2u);
a1[48] = cocos2d::CCString::intValue(v11);
ProfilePage::updatePageArrows(a1 - 168);
}
}
sub_14003D310((__int64)a2);
}