//
// ItemInfoPopup::init from 0x100371990 to 0x100372a5c (4300 bytes)
//
// 1 xrefs:
// > ItemInfoPopup::create @ 0x10036ef78
//
// 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
//
bool __fastcall ItemInfoPopup::init(ItemInfoPopup *a1, int a2, UnlockType a3)
{
bool inited; // al
bool v6; // r12
cocos2d::extension::CCScale9Sprite *v7; // r13
cocos2d::extension::CCScale9Sprite *v8; // rbx
cocos2d::CCString *v9; // rax
const char *CString; // rbx
size_t v11; // rax
size_t v12; // r13
char *v13; // r15
const char *v14; // rdi
size_t v15; // r12
cocos2d::CCLabelBMFont *v16; // rbx
AchievementManager *v17; // rax
AchievementManager *v18; // rbx
int v19; // ebx
const std::string::value_type *v20; // rsi
const char *data; // rdi
cocos2d::CCSprite *v22; // rbx
GJItemIcon *v23; // rbx
cocos2d::CCMenu *v24; // rax
ButtonSprite *v25; // rax
CCMenuItemSpriteExtra *v26; // rax
cocos2d::CCMenu *m_buttonMenu; // rbx
__m128 v28; // xmm0
GameStatsManager *v29; // rax
__int64 v30; // rax
GameManager *v31; // rbx
GameManager *v32; // rax
IconType v33; // eax
bool isIconUnlocked; // bl
char *v35; // rdi
cocos2d::CCString *v36; // rax
const char *v37; // rax
unsigned int v38; // eax
const std::string::value_type *v39; // rsi
cocos2d::CCString *v40; // rax
const char *v41; // rax
unsigned int v42; // eax
cocos2d::CCString *v43; // rax
const char *v44; // rax
GameStatsManager *v45; // rax
char v46; // al
cocos2d::CCString *v47; // rax
const char *v48; // rax
bool v49; // al
int v50; // ecx
cocos2d::CCString *v51; // rax
const char *v52; // rax
__m128 v53; // xmm1
unsigned int v54; // eax
const std::string::value_type *v55; // rsi
cocos2d::CCString *v56; // rax
const char *v57; // rax
cocos2d::CCString *v58; // rax
const char *v59; // rax
char *v60; // rbx
const char *v61; // rdi
cocos2d::CCLabelBMFont *v62; // r13
unsigned __int64 *v63; // r15
const char *v64; // rdi
cocos2d::CCLabelBMFont *v65; // rbx
GameStatsManager *v66; // rax
int v67; // eax
GameStatsManager *v68; // rax
char v69; // al
cocos2d::CCString *v70; // rax
const char *v71; // rax
cocos2d::CCLabelBMFont *v72; // rbx
CCMenuItemSpriteExtra *v73; // r15
char v75; // [rsp+0h] [rbp-160h]
char v76; // [rsp+0h] [rbp-160h]
__int128 v77; // [rsp+10h] [rbp-150h] BYREF
void *__p; // [rsp+20h] [rbp-140h]
__int128 v79; // [rsp+30h] [rbp-130h] BYREF
void *v80; // [rsp+40h] [rbp-120h]
unsigned __int64 v81; // [rsp+50h] [rbp-110h] BYREF
_QWORD __dst[2]; // [rsp+58h] [rbp-108h] BYREF
void *v83; // [rsp+68h] [rbp-F8h]
__int128 v84; // [rsp+70h] [rbp-F0h] BYREF
void *v85; // [rsp+80h] [rbp-E0h]
unsigned __int64 v86; // [rsp+88h] [rbp-D8h] BYREF
__int16 v87; // [rsp+90h] [rbp-D0h] BYREF
char v88; // [rsp+92h] [rbp-CEh]
std::string v89; // [rsp+98h] [rbp-C8h] BYREF
float v90; // [rsp+B0h] [rbp-B0h] BYREF
float v91; // [rsp+B4h] [rbp-ACh]
_BOOL8 v92; // [rsp+B8h] [rbp-A8h]
std::string v93; // [rsp+C0h] [rbp-A0h] BYREF
unsigned __int64 v94[3]; // [rsp+E0h] [rbp-80h] BYREF
unsigned __int64 v95; // [rsp+F8h] [rbp-68h] BYREF
std::string v96; // [rsp+100h] [rbp-60h] BYREF
__int128 v97; // [rsp+118h] [rbp-48h] BYREF
void *v98; // [rsp+128h] [rbp-38h]
UnlockType v99; // [rsp+130h] [rbp-30h]
unsigned int v100; // [rsp+134h] [rbp-2Ch]
double v101; // 0:xmm0_8.8
cocos2d::CCRect v102; // 0:xmm0_8.8,8:xmm1_8.8
inited = FLAlertLayer::init_1(a1, 150);
v6 = inited;
if ( !inited )
return v6;
LOBYTE(v92) = inited;
((void (__fastcall *)(ItemInfoPopup *, __int64))a1->setKeypadEnabled)(a1, 1);
((void (__fastcall *)(ItemInfoPopup *, __int64))a1->setTouchEnabled)(a1, 1);
a1->m_itemID = a2;
a1->m_unlockType = a3;
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v90);
v99 = a3;
v102.origin = 0;
v102.size = 0;
sub_10028CC00((__int64)v94, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u);
v100 = a2;
v7 = cocos2d::extension::CCScale9Sprite::create_2("GJ_square01.png", v102);
sub_10028CBF0((float *)v94, 300.0, 230.0);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, unsigned __int64 *))v7->setContentSize)(v7, v94);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v7,
4294967294LL);
sub_10028CBE0((float *)&v86, v90 * 0.5, v91 * 0.5);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, unsigned __int64 *))v7->setPosition)(v7, &v86);
sub_10028CBE0((float *)v94, 0.0, -22.0);
sub_10028CCE0((double *)&v81, &v86, v94);
v102.origin = 0;
v102.size = 0;
sub_10028CC00((__int64)v94, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u);
v8 = cocos2d::extension::CCScale9Sprite::create_2("GJ_square01.png", v102);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, void *))v8->setColor)(v8, &unk_100819EA0);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v8->setOpacity)(v8, 60);
sub_10028CBF0((float *)v94, 260.0, 90.0);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, unsigned __int64 *))v8->setContentSize)(v8, v94);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v8,
0xFFFFFFFFLL);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, unsigned __int64 *))v8->setPosition)(v8, &v81);
ItemInfoPopup::nameForUnlockType(v94, v100, (unsigned int)v99);
v9 = (cocos2d::CCString *)sub_1007AB580("%s %i", v75);
CString = cocos2d::CCString::getCString(v9);
v11 = strlen(CString);
if ( v11 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(COERCE_DOUBLE(1132593152));
v12 = v11;
if ( v11 >= 0x17 )
{
v15 = 26;
if ( (v11 | 7) != 0x17 )
v15 = (v11 | 7) + 1;
v13 = (char *)operator new(v15);
v83 = v13;
__dst[0] = v15 | 1;
__dst[1] = v12;
v6 = v92;
LABEL_10:
memmove(v13, CString, v12);
v13[v12] = 0;
if ( (__dst[0] & 1) != 0 )
goto LABEL_6;
goto LABEL_11;
}
LOBYTE(__dst[0]) = 2 * v11;
v13 = (char *)__dst + 1;
v6 = v92;
if ( v11 )
goto LABEL_10;
BYTE1(__dst[0]) = 0;
if ( (__dst[0] & 1) != 0 )
{
LABEL_6:
v14 = (const char *)v83;
goto LABEL_12;
}
LABEL_11:
v14 = (char *)__dst + 1;
LABEL_12:
v16 = cocos2d::CCLabelBMFont::create_3(v14, "goldFont.fnt");
sub_10028CBE0((float *)&v84, *(float *)&v86, (float)(*((float *)&v86 + 1) + 115.0) + -16.0);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v16->setPosition)(v16, &v84);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v16);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v16->setScale)(v16, 0.80000001);
v17 = AchievementManager::sharedState();
AchievementManager::achievementForUnlock(&v84, v17, v100, (unsigned int)v99);
if ( (v84 & 1) != 0 )
{
if ( !*((_QWORD *)&v84 + 1) )
goto LABEL_32;
}
else if ( !((unsigned __int8)v84 >> 1) )
{
goto LABEL_32;
}
v18 = AchievementManager::sharedState();
if ( (v84 & 1) != 0 )
{
sub_100006B70(&v77, v85, *((unsigned __int64 *)&v84 + 1), COERCE_DOUBLE(1061997773));
}
else
{
__p = v85;
v77 = v84;
}
v19 = AchievementManager::limitForAchievement(v18, &v77);
if ( (v77 & 1) != 0 )
operator delete(__p);
if ( (unsigned int)(v19 - 2) <= 2 )
{
strcpy((char *)&v96, ",gj_subzeroLogo_001.png");
if ( v19 == 4 )
{
v20 = "GJ_md_001.png";
}
else
{
if ( v19 != 2 )
goto LABEL_27;
v20 = "gj_worldLogo_001.png";
}
std::string::assign(&v96, v20);
LABEL_27:
if ( (*(_BYTE *)&v96.__r_.__value_.__s.0 & 1) != 0 )
data = v96.__r_.__value_.__l.__data_;
else
data = v96.__r_.__value_.__s.__data_;
v22 = cocos2d::CCSprite::createWithSpriteFrameName(data);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v22);
sub_10028CBE0((float *)&v89, 0.0, 1.0);
((void (__fastcall *)(cocos2d::CCSprite *, std::string *))v22->setAnchorPoint)(v22, &v89);
((void (__fastcall *)(cocos2d::CCSprite *, float))v22->setScale)(v22, 0.40000001);
sub_10028CBE0((float *)&v93, -140.0, 105.0);
sub_10028CCE0((double *)&v89, &v86, (unsigned __int64 *)&v93);
((void (__fastcall *)(cocos2d::CCSprite *, std::string *))v22->setPosition)(v22, &v89);
if ( (*(_BYTE *)&v96.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v96.__r_.__value_.__l.__data_);
}
LABEL_32:
v23 = GJItemIcon::create(
v99,
v100,
(cocos2d::ccColor3B)-5263441,
(cocos2d::ccColor3B)-1,
0,
1,
1,
(cocos2d::ccColor3B)-1);
((void (__fastcall *)(GJItemIcon *, float))v23->setScale)(v23, 1.25);
((void (__fastcall *)(cocos2d::CCLayer *, GJItemIcon *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v23,
12);
sub_10028CBE0((float *)&v89, 0.0, 56.0);
sub_10028CCE0((double *)&v96, &v86, (unsigned __int64 *)&v89);
((void (__fastcall *)(GJItemIcon *, std::string *))v23->setPosition)(v23, &v96);
v24 = cocos2d::CCMenu::create();
a1->m_buttonMenu = v24;
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v24,
10);
v25 = sub_100092A30("OK");
v26 = CCMenuItemSpriteExtra::create(
v25,
nullptr,
a1,
(cocos2d::SEL_MenuHandler)(unsigned __int64)ItemInfoPopup::onClose);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v26);
m_buttonMenu = a1->m_buttonMenu;
v28 = (__m128)LODWORD(v90);
v28.f32[0] = v90 * 0.5;
sub_10028CBE0((float *)&v96, v90 * 0.5, (float)((float)(v91 * 0.5) + -115.0) + 25.0);
((void (__fastcall *)(cocos2d::CCMenu *, std::string *))m_buttonMenu->setPosition)(m_buttonMenu, &v96);
v29 = GameStatsManager::sharedState();
LODWORD(v30) = GameStatsManager::getItemUnlockState(v29, v100, v99);
v92 = v30;
v31 = GameManager::sharedState();
v32 = GameManager::sharedState();
v33 = GameManager::unlockTypeToIconType(v32, v99);
isIconUnlocked = GameManager::isIconUnlocked(v31, v100, v33);
*(_WORD *)&v96.__r_.__value_.__l.0 = 0;
*(_WORD *)&v89.__r_.__value_.__l.0 = 0;
*(_WORD *)&v93.__r_.__value_.__l.0 = 0;
switch ( v92 )
{
case true:
GJGarageLayer::titleForUnlock((size_t *)&v97, v100, v99, *(double *)v28.i64);
if ( (*(_BYTE *)&v93.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v93.__r_.__value_.__l.__data_);
v93.__r_.__value_.__r.__words[2] = (std::string::size_type)v98;
v28.i64[0] = v97;
*(_OWORD *)&v93.__r_.__value_.__l.0 = v97;
GJGarageLayer::descriptionForUnlock((size_t *)&v97, v100, v99);
v58 = (cocos2d::CCString *)sub_1007AB580("%s to unlock this %s!", v76);
v59 = cocos2d::CCString::getCString(v58);
std::string::assign(&v96, v59);
if ( (v97 & 1) != 0 )
operator delete(v98);
goto LABEL_69;
case 2LL:
std::string::assign(&v93, "Secret Chest");
v40 = (cocos2d::CCString *)sub_1007AB580("You can find this %s in a secret chest!", v76);
v41 = cocos2d::CCString::getCString(v40);
std::string::assign(&v96, v41);
std::string::assign(&v89, "");
v28.f32[0] = (float)((float)rand() * 4.6566129e-10) * 10.0;
v42 = (int)v28.f32[0] - 1;
if ( v42 >= 9 )
v39 = "A key... My kingdom for a key...";
else
v39 = (char *)dword_100819F64 + dword_100819F64[v42];
goto LABEL_114;
case 3LL:
std::string::assign(&v93, "Special Chest");
v36 = (cocos2d::CCString *)sub_1007AB580("You can find this %s in a special chest!", v76);
v37 = cocos2d::CCString::getCString(v36);
std::string::assign(&v96, v37);
std::string::assign(&v89, "");
v28.f32[0] = (float)((float)rand() * 4.6566129e-10) * 10.0;
v38 = (int)v28.f32[0] - 1;
if ( v38 >= 9 )
v39 = "IMPOSSIBRU!";
else
v39 = (char *)dword_100819F88 + dword_100819F88[v38];
LABEL_114:
std::string::assign(&v89, v39);
break;
case 4LL:
std::string::assign(&v93, "Shop");
v35 = "You can buy this %s in the shop!";
goto LABEL_44;
case 5LL:
std::string::assign(&v93, "Secret Shop");
v35 = "There may or may not exist a shop where you can buy this %s.";
goto LABEL_44;
case 6LL:
std::string::assign(&v93, "Community Shop");
v35 = "You can buy this %s in the community shop!";
goto LABEL_44;
case 7LL:
std::string::assign(&v93, "Mechanic Shop");
v35 = "You can buy this %s at the Mechanic!";
goto LABEL_44;
case 8LL:
std::string::assign(&v93, "Diamond Shop");
v35 = "You can buy this %s in the diamond shop!";
LABEL_44:
v43 = (cocos2d::CCString *)sub_1007AB580(v35, v76);
v44 = cocos2d::CCString::getCString(v43);
std::string::assign(&v96, v44);
break;
default:
break;
}
v45 = GameStatsManager::sharedState();
GameStatsManager::getSpecialUnlockDescription(&v97, (__int64)v45, v100, v99, v28);
v46 = v97;
if ( (v97 & 1) != 0 )
{
if ( !*((_QWORD *)&v97 + 1) )
goto LABEL_50;
}
else if ( !(_BYTE)v97 )
{
goto LABEL_52;
}
v47 = (cocos2d::CCString *)sub_1007AB580("%s to unlock this %s!", v76);
v48 = cocos2d::CCString::getCString(v47);
std::string::assign(&v96, v48);
std::string::assign(&v89, "");
v46 = v97;
LABEL_50:
if ( (v46 & 1) != 0 )
operator delete(v98);
LABEL_52:
v49 = !v92;
if ( !v92 && isIconUnlocked )
{
v50 = 5;
if ( v99 != 1 )
v50 = 2 * ((v99 & 0xFFFFFFFE) == 2) + 2;
v49 = 1;
if ( v50 > (int)v100 )
{
std::string::assign(&v93, "Default");
v51 = (cocos2d::CCString *)sub_1007AB580("This %s is unlocked by default.", v76);
v52 = cocos2d::CCString::getCString(v51);
std::string::assign(&v96, v52);
goto LABEL_69;
}
}
if ( v49 && !isIconUnlocked )
{
if ( (*(_BYTE *)&v96.__r_.__value_.__s.0 & 1) != 0 )
{
if ( v96.__r_.__value_.__l.__size_ )
goto LABEL_69;
}
else if ( *(_BYTE *)&v96.__r_.__value_.__l.0 >> 1 )
{
goto LABEL_69;
}
v28 = 0;
v28.f32[0] = (float)((float)rand() * 4.6566129e-10) * 10.0;
v53 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v28), (__m128)xmmword_1008150C0);
v53.f32[0] = v53.f32[0] + v28.f32[0];
v28.i64[0] = _mm_round_ss((__m128)0LL, v53, 11).u64[0];
v54 = (int)v28.f32[0] - 1;
if ( v54 >= 0xA )
v55 = "Soon...";
else
v55 = (char *)dword_100819FAC + dword_100819FAC[v54];
std::string::assign(&v93, v55);
v56 = (cocos2d::CCString *)sub_1007AB580("This %s can be unlocked in update 2.21.", v76);
v57 = cocos2d::CCString::getCString(v56);
std::string::assign(&v96, v57);
}
LABEL_69:
if ( (*(_BYTE *)&v96.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !v96.__r_.__value_.__l.__size_ )
goto LABEL_82;
sub_100006B70(&v79, v96.__r_.__value_.__l.__data_, v96.__r_.__value_.__l.__size_, *(double *)v28.i64);
}
else
{
if ( !*(_BYTE *)&v96.__r_.__value_.__s.0 )
goto LABEL_82;
v80 = v96.__r_.__value_.__l.__data_;
v79 = *(_OWORD *)&v96.__r_.__value_.__l.0;
}
sub_10028CBE0((float *)&v97, 0.5, 1.0);
v60 = TextArea::create(&v79, (__int64)"bigFont.fnt", (double *)&v97, 0, 1.0, 600.0, 42.0);
if ( (v79 & 1) != 0 )
operator delete(v80);
((void (__fastcall *)(cocos2d::CCLayer *, char *, __int64))a1->m_mainLayer->addChild_0)(a1->m_mainLayer, v60, 10);
sub_10028CBE0((float *)&v95, 0.0, -2.0);
sub_10028CCE0((double *)&v97, &v81, &v95);
(*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v60 + 184LL))(v60, &v97);
v28.i64[0] = 1053609165;
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v60 + 160LL))(v60, 0.40000001);
if ( (*(_BYTE *)&v89.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !v89.__r_.__value_.__l.__size_ )
goto LABEL_82;
v61 = v89.__r_.__value_.__l.__data_;
}
else
{
if ( !*(_BYTE *)&v89.__r_.__value_.__s.0 )
goto LABEL_82;
v61 = v89.__r_.__value_.__s.__data_;
}
v62 = cocos2d::CCLabelBMFont::create_3(v61, "chatFont.fnt");
sub_10028CBE0((float *)&v95, 0.0, -35.0);
sub_10028CCE0((double *)&v97, &v81, &v95);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v62->setPosition)(v62, &v97);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v62);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v62->setScale)(v62, 0.60000002);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v62->setColor)(v62, &unk_100819EA0);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v62->setOpacity)(v62, 75);
v63 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v60 + 192LL))(v60);
v28.i64[0] = 0;
sub_10028CBE0((float *)&v95, 0.0, 5.0);
sub_10028CCE0((double *)&v97, v63, &v95);
(*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v60 + 184LL))(v60, &v97);
LABEL_82:
if ( (*(_BYTE *)&v93.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !v93.__r_.__value_.__l.__size_ )
goto LABEL_89;
v64 = v93.__r_.__value_.__l.__data_;
}
else
{
if ( !*(_BYTE *)&v93.__r_.__value_.__s.0 )
goto LABEL_89;
v64 = v93.__r_.__value_.__s.__data_;
}
v65 = cocos2d::CCLabelBMFont::create_3(v64, "goldFont.fnt");
sub_10028CBE0((float *)&v95, 0.0, 30.0);
sub_10028CCE0((double *)&v97, &v81, &v95);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v65->setPosition)(v65, &v97);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v65);
v28.i64[0] = 1127481344;
cocos2d::CCLabelBMFont::limitLabelWidth(v65, 180.0, 0.55000001, 0.0);
if ( v92 == 4 )
{
v28.i64[0] = 1058642330;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v65->setScale)(v65, 0.60000002);
}
LABEL_89:
v66 = GameStatsManager::sharedState();
v67 = GameStatsManager::accountIDForIcon(v66, v100, v99);
a1->m_accountID = v67;
if ( !v67 )
goto LABEL_99;
v68 = GameStatsManager::sharedState();
GameStatsManager::usernameForAccountID(&v97, (__int64)v68, a1->m_accountID, *(double *)v28.i64);
v69 = v97;
if ( (v97 & 1) == 0 )
{
if ( !(_BYTE)v97 )
goto LABEL_99;
goto LABEL_94;
}
if ( *((_QWORD *)&v97 + 1) )
{
LABEL_94:
v70 = (cocos2d::CCString *)sub_1007AB580("By %s", v76);
v71 = cocos2d::CCString::getCString(v70);
v72 = cocos2d::CCLabelBMFont::create_3(v71, "goldFont.fnt");
sub_10028CBE0(
(float *)&v95,
(float)((float)(v90 * 0.5) + 150.0) + -60.0,
(float)((float)(0.5 * v91) + -115.0) + 21.0);
cocos2d::CCLabelBMFont::limitLabelWidth(v72, 100.0, 0.5, 0.0);
v73 = CCMenuItemSpriteExtra::create(
v72,
nullptr,
a1,
(cocos2d::SEL_MenuHandler)(unsigned __int64)ItemInfoPopup::onCredit);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v73);
*(cocos2d::CCPoint *)&v101 = cocos2d::CCNode::convertToNodeSpace(
(cocos2d::CCNode *)&v87,
(const cocos2d::CCPoint *)a1->m_buttonMenu);
((void (__fastcall *)(CCMenuItemSpriteExtra *, __int16 *, double))v73->setPosition)(v73, &v87, v101);
if ( a1->m_accountID <= 0 )
{
v88 = -1;
v87 = -166;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))v72->setColor)(v72, &v87);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v73->setEnabled)(v73, 0);
}
v69 = v97;
}
if ( (v69 & 1) != 0 )
operator delete(v98);
LABEL_99:
if ( (*(_BYTE *)&v93.__r_.__value_.__s.0 & 1) != 0 )
{
operator delete(v93.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v89.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_101:
if ( (*(_BYTE *)&v96.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_102;
goto LABEL_109;
}
}
else if ( (*(_BYTE *)&v89.__r_.__value_.__s.0 & 1) == 0 )
{
goto LABEL_101;
}
operator delete(v89.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v96.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_102:
if ( (v84 & 1) == 0 )
goto LABEL_103;
goto LABEL_110;
}
LABEL_109:
operator delete(v96.__r_.__value_.__l.__data_);
if ( (v84 & 1) == 0 )
{
LABEL_103:
if ( (__dst[0] & 1) == 0 )
goto LABEL_104;
LABEL_111:
operator delete(v83);
if ( (v94[0] & 1) == 0 )
return v6;
goto LABEL_105;
}
LABEL_110:
operator delete(v85);
if ( (__dst[0] & 1) != 0 )
goto LABEL_111;
LABEL_104:
if ( (v94[0] & 1) != 0 )
LABEL_105:
operator delete((void *)v94[2]);
return v6;
}