//
// LevelPickerPopup::setupPageInfo from 0x100505e30 to 0x100505f30 (256 bytes)
//
// 2 xrefs:
// > sub_100505F54 @ 0x100505f58
// > ??> @ 0x100997950
//
// This function is hookable on this platform (idp: arm, 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:06:56 +0000
//
void __fastcall LevelPickerPopup::setupPageInfo(__int64 a1, char *__s, char *a3)
{
_QWORD *v6; // x22
size_t v7; // x0
__int64 v8; // x8
_QWORD *v9; // x20
__int64 v10; // x0
__int64 v11; // x0
std::string __p; // [xsp+8h] [xbp-38h] BYREF
if ( !a3 )
goto LABEL_9;
v6 = (_QWORD *)(a1 + 840);
v7 = strlen(a3);
v8 = *(char *)(a1 + 863);
if ( v8 < 0 )
{
if ( v7 != *(_QWORD *)(a1 + 848) )
return;
if ( v7 == -1 )
sub_100050040();
v6 = (_QWORD *)*v6;
}
else if ( v7 != v8 )
{
return;
}
if ( !memcmp(v6, a3, v7) )
{
LABEL_9:
if ( __s[23] < 0 )
__s = *(char **)__s;
sub_100009900(&__p, __s);
v9 = sub_1004FE5C8(&__p, ":");
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( v9 )
{
if ( (unsigned int)sub_1002E757C((__int64)v9) >= 2 )
{
v10 = cocos2d::CCArray::stringAtIndex((__int64)v9, 0);
*(_DWORD *)(a1 + 864) = cocos2d::CCString::intValue(v10);
v11 = cocos2d::CCArray::stringAtIndex((__int64)v9, 1u);
*(_DWORD *)(a1 + 868) = cocos2d::CCString::intValue(v11);
}
}
}
}