//
// ItemInfoPopup::init from 0x10035ae60 to 0x10035bf2f (4303 bytes)
//
// 1 xrefs:
// > ItemInfoPopup::create @ 0x100358432
//
// 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 12:28:54 +0000
//
__int64 __fastcall ItemInfoPopup::init(__int64 a1, unsigned int a2, unsigned int a3)
{
unsigned int inited; // eax
unsigned int v6; // r12d
__int64 v7; // rax
__int64 v8; // r13
__int64 v9; // rbx
__int64 v10; // rax
const char *CString; // rbx
size_t v12; // rax
size_t v13; // r13
char *v14; // r15
char *v15; // rdi
size_t v16; // r12
__int64 v17; // rbx
__int64 v18; // rsi
__int64 v19; // rbx
int v20; // ebx
const std::string::value_type *v21; // rsi
std::string::pointer data; // rdi
char *v23; // rbx
_QWORD *v24; // rbx
__int64 v25; // rax
__int64 v26; // rax
void *v27; // rax
__int64 v28; // rbx
__int64 v29; // rdi
__int64 v30; // rsi
__int64 v31; // rdx
__int64 v32; // rax
__int64 v33; // rbx
__int64 v34; // rdx
double v35; // xmm0_8
__int64 v36; // rax
unsigned int v37; // eax
unsigned __int8 isIconUnlocked; // bl
char *v39; // rdi
__int64 v40; // rax
const std::string::value_type *v41; // rax
unsigned int v42; // eax
const std::string::value_type *v43; // rsi
__int64 v44; // rax
const std::string::value_type *v45; // rax
unsigned int v46; // eax
__int64 v47; // rax
const std::string::value_type *v48; // rax
__int64 v49; // rax
char v50; // al
__int64 v51; // rax
const std::string::value_type *v52; // rax
bool v53; // al
int v54; // ecx
__int64 v55; // rax
const std::string::value_type *v56; // rax
__m128 v57; // xmm0
__m128 v58; // xmm1
unsigned int v59; // eax
const std::string::value_type *v60; // rsi
__int64 v61; // rax
const std::string::value_type *v62; // rax
__int64 v63; // rax
const std::string::value_type *v64; // rax
char *v65; // rbx
std::string::pointer v66; // rdi
__int64 v67; // r13
unsigned __int64 *v68; // r15
std::string::pointer v69; // rdi
__int64 v70; // rbx
__int64 v71; // rax
int v72; // eax
__int64 v73; // rax
char v74; // al
__int64 v75; // rax
__int64 v76; // rax
__int64 v77; // rbx
void *v78; // r15
char v80; // [rsp+0h] [rbp-160h]
char v81; // [rsp+0h] [rbp-160h]
__int128 v82; // [rsp+10h] [rbp-150h] BYREF
void *__p; // [rsp+20h] [rbp-140h]
__int128 v84; // [rsp+30h] [rbp-130h] BYREF
void *v85; // [rsp+40h] [rbp-120h]
unsigned __int64 v86; // [rsp+50h] [rbp-110h] BYREF
_QWORD __dst[2]; // [rsp+58h] [rbp-108h] BYREF
void *v88; // [rsp+68h] [rbp-F8h]
__int128 v89; // [rsp+70h] [rbp-F0h] BYREF
void *v90; // [rsp+80h] [rbp-E0h]
unsigned __int64 v91; // [rsp+88h] [rbp-D8h] BYREF
double v92; // [rsp+90h] [rbp-D0h] BYREF
std::string v93; // [rsp+98h] [rbp-C8h] BYREF
float v94; // [rsp+B0h] [rbp-B0h] BYREF
float v95; // [rsp+B4h] [rbp-ACh]
__int64 ItemUnlockState; // [rsp+B8h] [rbp-A8h]
std::string v97; // [rsp+C0h] [rbp-A0h] BYREF
unsigned __int64 v98[3]; // [rsp+E0h] [rbp-80h] BYREF
unsigned __int64 v99; // [rsp+F8h] [rbp-68h] BYREF
std::string v100; // [rsp+100h] [rbp-60h] BYREF
__int128 v101; // [rsp+118h] [rbp-48h] BYREF
void *v102; // [rsp+128h] [rbp-38h]
unsigned int v103; // [rsp+130h] [rbp-30h]
unsigned int v104; // [rsp+134h] [rbp-2Ch]
inited = FLAlertLayer::init_1(a1, 150);
v6 = inited;
if ( !(_BYTE)inited )
return v6;
LOBYTE(ItemUnlockState) = inited;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1);
*(_DWORD *)(a1 + 660) = a2;
*(_DWORD *)(a1 + 664) = a3;
v7 = cocos2d::CCDirector::sharedDirector(a1, 1);
cocos2d::CCDirector::getWinSize(&v94, v7);
v103 = a3;
sub_100278270((__int64)v98, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u);
v104 = a2;
v8 = cocos2d::extension::CCScale9Sprite::create_2("GJ_square01.png", v98);
sub_100278260((float *)v98, 300.0, 230.0);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v8 + 320LL))(v8, v98);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v8,
4294967294LL);
sub_100278250((float *)&v91, v94 * 0.5, v95 * 0.5);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v8 + 184LL))(v8, &v91);
sub_100278250((float *)v98, 0.0, -22.0);
sub_100278350((double *)&v86, &v91, v98);
sub_100278270((__int64)v98, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u);
v9 = cocos2d::extension::CCScale9Sprite::create_2("GJ_square01.png", v98);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v9 + 960LL))(v9, &unk_100A083D0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 912LL))(v9, 60);
sub_100278260((float *)v98, 260.0, 90.0);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v9 + 320LL))(v9, v98);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v9,
0xFFFFFFFFLL);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v9 + 184LL))(v9, &v86);
ItemInfoPopup::nameForUnlockType(v98, v104, v103);
v10 = sub_10088E820("%s %i", v80);
CString = (const char *)cocos2d::CCString::getCString(v10);
v12 = strlen(CString);
if ( v12 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v13 = v12;
if ( v12 >= 0x17 )
{
v16 = 26;
if ( (v12 | 7) != 0x17 )
v16 = (v12 | 7) + 1;
v14 = (char *)operator new(v16);
v88 = v14;
__dst[0] = v16 | 1;
__dst[1] = v13;
v6 = (unsigned __int8)ItemUnlockState;
LABEL_10:
memmove(v14, CString, v13);
v14[v13] = 0;
if ( (__dst[0] & 1) != 0 )
goto LABEL_6;
goto LABEL_11;
}
LOBYTE(__dst[0]) = 2 * v12;
v14 = (char *)__dst + 1;
v6 = (unsigned __int8)ItemUnlockState;
if ( v12 )
goto LABEL_10;
BYTE1(__dst[0]) = 0;
if ( (__dst[0] & 1) != 0 )
{
LABEL_6:
v15 = (char *)v88;
goto LABEL_12;
}
LABEL_11:
v15 = (char *)__dst + 1;
LABEL_12:
v17 = cocos2d::CCLabelBMFont::create_3(v15, "goldFont.fnt");
sub_100278250((float *)&v89, *(float *)&v91, (float)(*((float *)&v91 + 1) + 115.0) + -16.0);
(*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v17 + 184LL))(v17, &v89);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v17);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 160LL))(v17, 0.80000001);
v18 = AchievementManager::sharedState(v17, v17);
AchievementManager::achievementForUnlock(&v89, v18, v104, v103);
if ( (v89 & 1) != 0 )
{
if ( !*((_QWORD *)&v89 + 1) )
goto LABEL_32;
}
else if ( !((unsigned __int8)v89 >> 1) )
{
goto LABEL_32;
}
v19 = AchievementManager::sharedState(&v89, v18);
if ( (v89 & 1) != 0 )
{
sub_10001AD30(&v82, v90, *((unsigned __int64 *)&v89 + 1));
}
else
{
__p = v90;
v82 = v89;
}
v20 = AchievementManager::limitForAchievement(v19, &v82);
if ( (v82 & 1) != 0 )
operator delete(__p);
if ( (unsigned int)(v20 - 2) <= 2 )
{
strcpy((char *)&v100, ",gj_subzeroLogo_001.png");
if ( v20 == 4 )
{
v21 = "GJ_md_001.png";
}
else
{
if ( v20 != 2 )
goto LABEL_27;
v21 = "gj_worldLogo_001.png";
}
std::string::assign(&v100, v21);
LABEL_27:
if ( (*(_BYTE *)&v100.__r_.__value_.__s.0 & 1) != 0 )
data = v100.__r_.__value_.__l.__data_;
else
data = v100.__r_.__value_.__s.__data_;
v23 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)data, 6.842707987186468e180);
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v23);
sub_100278250((float *)&v93, 0.0, 1.0);
(*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v23 + 296LL))(v23, &v93);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v23 + 160LL))(v23, 0.40000001);
sub_100278250((float *)&v97, -140.0, 105.0);
sub_100278350((double *)&v93, &v91, (unsigned __int64 *)&v97);
(*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v23 + 184LL))(v23, &v93);
if ( (*(_BYTE *)&v100.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v100.__r_.__value_.__l.__data_);
}
LABEL_32:
v24 = GJItemIcon::create(v103, v104, 11513775, 0xFFFFFF, 0, 1, 1);
(*(void (__fastcall **)(_QWORD *, float))(*v24 + 160LL))(v24, 1.25);
(*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v24, 12);
sub_100278250((float *)&v93, 0.0, 56.0);
sub_100278350((double *)&v100, &v91, (unsigned __int64 *)&v93);
(*(void (__fastcall **)(_QWORD *, std::string *))(*v24 + 184LL))(v24, &v100);
v25 = cocos2d::CCMenu::create();
*(_QWORD *)(a1 + 552) = v25;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v25, 10);
v26 = sub_100059E00((__int64)"OK");
v27 = CCMenuItemSpriteExtra::create(v26, 0, a1, (__int64)ItemInfoPopup::onClose, 0);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v27);
v28 = *(_QWORD *)(a1 + 552);
sub_100278250((float *)&v100, v94 * 0.5, (float)((float)(v95 * 0.5) + -115.0) + 25.0);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v28 + 184LL))(v28, &v100);
v29 = GameStatsManager::sharedState();
v30 = v104;
ItemUnlockState = GameStatsManager::getItemUnlockState(v29, v104, v103);
GameManager::sharedState(v29, v30, v31);
v33 = v32;
*(_QWORD *)&v35 = GameManager::sharedState(v29, v30, v34).u64[0];
v37 = GameManager::unlockTypeToIconType(v36, v103, v35);
isIconUnlocked = GameManager::isIconUnlocked(v33, v104, v37, v35);
*(_WORD *)&v100.__r_.__value_.__l.0 = 0;
*(_WORD *)&v93.__r_.__value_.__l.0 = 0;
*(_WORD *)&v97.__r_.__value_.__l.0 = 0;
switch ( (int)ItemUnlockState )
{
case 1:
GJGarageLayer::titleForUnlock((size_t *)&v101, v104, v103);
if ( (*(_BYTE *)&v97.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v97.__r_.__value_.__l.__data_);
v97.__r_.__value_.__r.__words[2] = (std::string::size_type)v102;
*(_OWORD *)&v97.__r_.__value_.__l.0 = v101;
GJGarageLayer::descriptionForUnlock((size_t *)&v101, v104, v103);
v63 = sub_10088E820("%s to unlock this %s!", v81);
v64 = (const std::string::value_type *)cocos2d::CCString::getCString(v63);
std::string::assign(&v100, v64);
if ( (v101 & 1) != 0 )
operator delete(v102);
goto LABEL_69;
case 2:
std::string::assign(&v97, "Secret Chest");
v44 = sub_10088E820("You can find this %s in a secret chest!", v81);
v45 = (const std::string::value_type *)cocos2d::CCString::getCString(v44);
std::string::assign(&v100, v45);
std::string::assign(&v93, "");
v46 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 10.0) - 1;
if ( v46 >= 9 )
v43 = "A key... My kingdom for a key...";
else
v43 = (char *)dword_100A08494 + dword_100A08494[v46];
goto LABEL_114;
case 3:
std::string::assign(&v97, "Special Chest");
v40 = sub_10088E820("You can find this %s in a special chest!", v81);
v41 = (const std::string::value_type *)cocos2d::CCString::getCString(v40);
std::string::assign(&v100, v41);
std::string::assign(&v93, "");
v42 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 10.0) - 1;
if ( v42 >= 9 )
v43 = "IMPOSSIBRU!";
else
v43 = (char *)dword_100A084B8 + dword_100A084B8[v42];
LABEL_114:
std::string::assign(&v93, v43);
break;
case 4:
std::string::assign(&v97, "Shop");
v39 = "You can buy this %s in the shop!";
goto LABEL_44;
case 5:
std::string::assign(&v97, "Secret Shop");
v39 = "There may or may not exist a shop where you can buy this %s.";
goto LABEL_44;
case 6:
std::string::assign(&v97, "Community Shop");
v39 = "You can buy this %s in the community shop!";
goto LABEL_44;
case 7:
std::string::assign(&v97, "Mechanic Shop");
v39 = "You can buy this %s at the Mechanic!";
goto LABEL_44;
case 8:
std::string::assign(&v97, "Diamond Shop");
v39 = "You can buy this %s in the diamond shop!";
LABEL_44:
v47 = sub_10088E820(v39, v81);
v48 = (const std::string::value_type *)cocos2d::CCString::getCString(v47);
std::string::assign(&v100, v48);
break;
default:
break;
}
v49 = GameStatsManager::sharedState();
GameStatsManager::getSpecialUnlockDescription(&v101, v49, v104, v103);
v50 = v101;
if ( (v101 & 1) != 0 )
{
if ( !*((_QWORD *)&v101 + 1) )
goto LABEL_50;
}
else if ( !(_BYTE)v101 )
{
goto LABEL_52;
}
v51 = sub_10088E820("%s to unlock this %s!", v81);
v52 = (const std::string::value_type *)cocos2d::CCString::getCString(v51);
std::string::assign(&v100, v52);
std::string::assign(&v93, "");
v50 = v101;
LABEL_50:
if ( (v50 & 1) != 0 )
operator delete(v102);
LABEL_52:
v53 = (_DWORD)ItemUnlockState == 0;
if ( (((_DWORD)ItemUnlockState == 0) & isIconUnlocked) == 1 )
{
v54 = 5;
if ( v103 != 1 )
v54 = 2 * ((v103 & 0xFFFFFFFE) == 2) + 2;
v53 = 1;
if ( v54 > (int)v104 )
{
std::string::assign(&v97, "Default");
v55 = sub_10088E820("This %s is unlocked by default.", v81);
v56 = (const std::string::value_type *)cocos2d::CCString::getCString(v55);
std::string::assign(&v100, v56);
goto LABEL_69;
}
}
if ( (v53 & (isIconUnlocked ^ 1)) == 1 )
{
if ( (*(_BYTE *)&v100.__r_.__value_.__s.0 & 1) != 0 )
{
if ( v100.__r_.__value_.__l.__size_ )
goto LABEL_69;
}
else if ( *(_BYTE *)&v100.__r_.__value_.__l.0 >> 1 )
{
goto LABEL_69;
}
v57 = 0;
v57.f32[0] = (float)((float)rand() * 4.6566129e-10) * 10.0;
v58 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, v57), (__m128)xmmword_100A03600);
v58.f32[0] = v58.f32[0] + v57.f32[0];
v59 = (int)_mm_round_ss((__m128)0LL, v58, 11).f32[0] - 1;
if ( v59 >= 0xA )
v60 = "Soon...";
else
v60 = (char *)dword_100A084DC + dword_100A084DC[v59];
std::string::assign(&v97, v60);
v61 = sub_10088E820("This %s can be unlocked in update 2.21.", v81);
v62 = (const std::string::value_type *)cocos2d::CCString::getCString(v61);
std::string::assign(&v100, v62);
}
LABEL_69:
if ( (*(_BYTE *)&v100.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !v100.__r_.__value_.__l.__size_ )
goto LABEL_82;
sub_10001AD30(&v84, v100.__r_.__value_.__l.__data_, v100.__r_.__value_.__l.__size_);
}
else
{
if ( !*(_BYTE *)&v100.__r_.__value_.__s.0 )
goto LABEL_82;
v85 = v100.__r_.__value_.__l.__data_;
v84 = *(_OWORD *)&v100.__r_.__value_.__l.0;
}
sub_100278250((float *)&v101, 0.5, 1.0);
v65 = TextArea::create(&v84, (__int64)"bigFont.fnt", &v101, 0, 0, 1.0, 600.0, 42.0);
if ( (v84 & 1) != 0 )
operator delete(v85);
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v65, 10);
sub_100278250((float *)&v99, 0.0, -2.0);
sub_100278350((double *)&v101, &v86, &v99);
(*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v65 + 184LL))(v65, &v101);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v65 + 160LL))(v65, 0.40000001);
if ( (*(_BYTE *)&v93.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !v93.__r_.__value_.__l.__size_ )
goto LABEL_82;
v66 = v93.__r_.__value_.__l.__data_;
}
else
{
if ( !*(_BYTE *)&v93.__r_.__value_.__s.0 )
goto LABEL_82;
v66 = v93.__r_.__value_.__s.__data_;
}
v67 = cocos2d::CCLabelBMFont::create_3(v66, "chatFont.fnt");
sub_100278250((float *)&v99, 0.0, -35.0);
sub_100278350((double *)&v101, &v86, &v99);
(*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v67 + 184LL))(v67, &v101);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v67);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v67 + 160LL))(v67, 0.60000002);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v67 + 1072LL))(v67, &unk_100A083D0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v67 + 1024LL))(v67, 75);
v68 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v65 + 192LL))(v65);
sub_100278250((float *)&v99, 0.0, 5.0);
sub_100278350((double *)&v101, v68, &v99);
(*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v65 + 184LL))(v65, &v101);
LABEL_82:
if ( (*(_BYTE *)&v97.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !v97.__r_.__value_.__l.__size_ )
goto LABEL_89;
v69 = v97.__r_.__value_.__l.__data_;
}
else
{
if ( !*(_BYTE *)&v97.__r_.__value_.__s.0 )
goto LABEL_89;
v69 = v97.__r_.__value_.__s.__data_;
}
v70 = cocos2d::CCLabelBMFont::create_3(v69, "goldFont.fnt");
sub_100278250((float *)&v99, 0.0, 30.0);
sub_100278350((double *)&v101, &v86, &v99);
(*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v70 + 184LL))(v70, &v101);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v70);
cocos2d::CCLabelBMFont::limitLabelWidth(v70, 180.0, 0.55000001, 0.0);
if ( (_DWORD)ItemUnlockState == 4 )
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v70 + 160LL))(v70, 0.60000002);
LABEL_89:
v71 = GameStatsManager::sharedState();
v72 = GameStatsManager::accountIDForIcon(v71, v104, v103);
*(_DWORD *)(a1 + 668) = v72;
if ( !v72 )
goto LABEL_99;
v73 = GameStatsManager::sharedState();
GameStatsManager::usernameForAccountID(&v101, v73, *(_DWORD *)(a1 + 668));
v74 = v101;
if ( (v101 & 1) == 0 )
{
if ( !(_BYTE)v101 )
goto LABEL_99;
goto LABEL_94;
}
if ( *((_QWORD *)&v101 + 1) )
{
LABEL_94:
v75 = sub_10088E820("By %s", v81);
v76 = cocos2d::CCString::getCString(v75);
v77 = cocos2d::CCLabelBMFont::create_3(v76, "goldFont.fnt");
sub_100278250(
(float *)&v99,
(float)((float)(v94 * 0.5) + 150.0) + -60.0,
(float)((float)(0.5 * v95) + -115.0) + 21.0);
cocos2d::CCLabelBMFont::limitLabelWidth(v77, 100.0, 0.5, 0.0);
v78 = CCMenuItemSpriteExtra::create(v77, 0, a1, (__int64)ItemInfoPopup::onCredit, 0);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v78);
cocos2d::CCNode::convertToNodeSpace(&v92, *(_QWORD *)(a1 + 552), (unsigned int *)&v99);
(*(void (__fastcall **)(void *, double *))(*(_QWORD *)v78 + 184LL))(v78, &v92);
if ( *(int *)(a1 + 668) <= 0 )
{
BYTE2(v92) = -1;
LOWORD(v92) = -166;
(*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v77 + 1072LL))(v77, &v92);
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v78 + 1056LL))(v78, 0);
}
v74 = v101;
}
if ( (v74 & 1) != 0 )
operator delete(v102);
LABEL_99:
if ( (*(_BYTE *)&v97.__r_.__value_.__s.0 & 1) != 0 )
{
operator delete(v97.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v93.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_101:
if ( (*(_BYTE *)&v100.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_102;
goto LABEL_109;
}
}
else if ( (*(_BYTE *)&v93.__r_.__value_.__s.0 & 1) == 0 )
{
goto LABEL_101;
}
operator delete(v93.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v100.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_102:
if ( (v89 & 1) == 0 )
goto LABEL_103;
goto LABEL_110;
}
LABEL_109:
operator delete(v100.__r_.__value_.__l.__data_);
if ( (v89 & 1) == 0 )
{
LABEL_103:
if ( (__dst[0] & 1) == 0 )
goto LABEL_104;
LABEL_111:
operator delete(v88);
if ( (v98[0] & 1) == 0 )
return v6;
goto LABEL_105;
}
LABEL_110:
operator delete(v90);
if ( (__dst[0] & 1) != 0 )
goto LABEL_111;
LABEL_104:
if ( (v98[0] & 1) != 0 )
LABEL_105:
operator delete((void *)v98[2]);
return v6;
}