//
// FRequestProfilePage::setupPageInfo from 0x14013f930 to 0x14013fabe (398 bytes)
//
// 2 xrefs:
// > ??> @ 0x140558188
// > ??> @ 0x1406ca278
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=2
void __fastcall FRequestProfilePage::setupPageInfo(__int64 a1, _QWORD *a2, _BYTE *a3)
{
_BYTE *v5; // rdx
size_t v6; // r8
cocos2d::CCArray *v7; // rsi
void *v8; // rcx
cocos2d::CCString *v9; // rax
cocos2d::CCString *v10; // rax
cocos2d::CCString *v11; // rax
__int64 v12; // rdx
__int64 v13; // rdx
void *Block[2]; // [rsp+28h] [rbp-40h] BYREF
__m128i si128; // [rsp+38h] [rbp-30h]
if ( FRequestProfilePage::isCorrect((_QWORD *)(a1 - 656), a3) )
{
v5 = a2;
if ( a2[3] > 0xFu )
v5 = (_BYTE *)*a2;
*(_OWORD *)Block = 0;
si128 = 0;
v6 = -1;
do
++v6;
while ( v5[v6] );
sub_14003A930(Block, v5, v6);
v7 = sub_14013D520((__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 )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v8);
}
si128 = _mm_load_si128((const __m128i *)&xmmword_140623F30);
LOBYTE(Block[0]) = 0;
if ( cocos2d::CCArray::count(v7) >= 3 )
{
v9 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v7, 0);
*(_DWORD *)(a1 + 120) = cocos2d::CCString::intValue(v9);
v10 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v7, 1u);
*(_DWORD *)(a1 + 124) = cocos2d::CCString::intValue(v10);
v11 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v7, 2u);
*(_DWORD *)(a1 + 128) = cocos2d::CCString::intValue(v11);
if ( *(_DWORD *)(a1 + 124) )
LOBYTE(v12) = 1;
else
v12 = 0;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 104) + 320LL))(*(_QWORD *)(a1 + 104), v12);
if ( *(_DWORD *)(a1 + 128) + *(_DWORD *)(a1 + 124) < *(_DWORD *)(a1 + 120) )
LOBYTE(v13) = 1;
else
v13 = 0;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 96) + 320LL))(*(_QWORD *)(a1 + 96), v13);
}
}
sub_14003A830((__int64)a2);
}