//
// LevelCell::loadCustomLevelCell from 0x1002373e0 to 0x10023a336 (12118 bytes)
//
// 1 xrefs:
// > LevelCell::loadFromLevel @ 0x10022a420
//
// 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:27:15 +0000
//
void __fastcall LevelCell::loadCustomLevelCell(__int64 a1)
{
__int64 v1; // rax
int v2; // r13d
std::string::pointer v3; // rdi
std::string::pointer data; // rdi
__int64 v5; // rbx
__int64 v6; // r14
__int64 v7; // rax
float v8; // xmm0_4
__int64 v9; // rdi
float v10; // xmm1_4
__int64 v11; // rax
__int64 SavedDailyLevel; // rax
__int64 v13; // rsi
__int64 v14; // rax
char v15; // bl
__int64 v16; // rax
__int64 v17; // rax
int v18; // r14d
__int64 v19; // rax
__int64 v20; // rax
__int64 v21; // rax
bool v22; // r15
__int64 v23; // rax
__int64 v24; // rax
bool v25; // r14
const char *v26; // r9
void *v27; // rbx
__int64 v28; // rdx
__int64 v29; // rax
unsigned int v30; // r14d
__int64 v31; // rax
__int64 CString; // rax
__int64 v33; // r12
__int64 v34; // rbx
__int64 v35; // r14
float v36; // xmm0_4
double v37; // xmm2_8
double v38; // xmm1_8
int v39; // ecx
int v40; // r8d
int v41; // r9d
__int64 v42; // r12
__int64 v43; // r12
__int64 v44; // rax
std::string::pointer v45; // rdi
unsigned int v46; // esi
__int64 v47; // rax
int v48; // eax
__int64 v49; // rax
__int64 v50; // rax
__int64 v51; // rax
int v52; // xmm0_4
float *v53; // rax
__int64 v54; // r14
__int64 v55; // rax
_QWORD *v56; // r12
_QWORD *v57; // r15
double v58; // xmm0_8
__int64 v59; // rbx
__int64 v60; // r14
__int64 v61; // rbx
int v62; // eax
char *v63; // rbx
__int64 v64; // rbx
__int64 v65; // r14
int v66; // eax
char *v67; // rbx
__int64 v68; // rbx
__int64 v69; // r14
int v70; // eax
char *v71; // rbx
__int64 v72; // rbx
__int64 v73; // r14
char *v74; // rax
__int64 v75; // r12
__int64 v76; // rbx
__int64 v77; // r14
__int64 v78; // r12
bool v79; // r15
__int64 v80; // rax
__int64 v81; // rax
const std::string::value_type *v82; // rsi
std::string::size_type size; // rdx
std::string::pointer v84; // rdi
__int64 v85; // r14
__int64 v86; // rbx
float v87; // xmm0_4
double v88; // xmm0_8
float v89; // xmm0_4
__int64 v90; // rbx
__int64 v91; // r14
float *v92; // rax
int v93; // xmm0_4
float *v94; // rax
__int64 v95; // rax
__int64 SongInfoObject; // rax
__int64 v97; // r14
int v98; // eax
const char *v99; // rdi
__int64 v100; // rbx
float v101; // xmm0_4
int v102; // xmm1_4
std::string::pointer v103; // rdi
__int64 v104; // r15
unsigned int AverageDifficulty; // ebx
_DWORD *v106; // rax
__int64 v107; // rdi
__int64 v108; // r12
__int64 v109; // r14
float v110; // xmm0_4
__m128 v111; // xmm1
__int64 v112; // rax
unsigned __int8 v113; // cl
bool v114; // dl
float v115; // xmm0_4
__int64 v116; // rbx
__int64 v117; // rax
__int64 p_s; // rsi
bool hasCompletedStarLevel; // al
__int64 v120; // rax
bool v121; // bl
const char *v122; // rdi
__int64 v123; // r14
__int64 v124; // rax
__int64 v125; // rax
__int64 v126; // r12
__int64 v127; // r14
__int64 v128; // r14
__int64 v129; // rax
int BaseDiamonds; // ebx
__int64 v131; // rax
int AwardedDiamondsForLevel; // r12d
__int64 v133; // rax
const std::string::value_type *v134; // rax
std::string::pointer v135; // rdi
__int64 v136; // rdi
int v137; // eax
int v138; // xmm0_4
__int64 v139; // r13
float v140; // xmm0_4
__int64 v141; // r14
unsigned int v142; // r14d
__int64 v143; // rsi
const char *CoinKey_1; // rax
const char *v145; // r12
size_t v146; // rax
std::string::size_type v147; // r15
char *v148; // r13
size_t v149; // rbx
__int64 v150; // rax
const char *v151; // rsi
bool hasPendingUserCoin; // r12
__int64 v153; // rax
const char *v154; // rsi
__int64 v155; // r13
__int64 v156; // rbx
__int64 v157; // r15
float v158; // xmm0_4
int v159; // eax
float *v160; // rax
bool v161; // zf
float v162; // xmm1_4
int v163; // xmm0_4
__int64 v164; // rbx
__int64 v165; // r14
__int64 v166; // r15
const char *v167; // r13
__int64 v168; // r15
__int64 v169; // r12
unsigned int *v170; // rax
int v171; // ecx
bool v172; // zf
float v173; // xmm0_4
std::string::pointer v174; // rdi
__int64 v175; // r12
__int64 v176; // rbx
__int64 v177; // rax
std::string::pointer v178; // rdi
__int64 v179; // rbx
__int64 v180; // r14
int v181; // r14d
__int64 v182; // rax
__int64 v183; // rax
__int64 v184; // rax
std::string::pointer v185; // rdi
__int64 v186; // rbx
__int64 v187; // r14
__m128 v188; // xmm1
float *v189; // rax
double v190; // xmm0_8
__int64 v191; // rax
__int64 v192; // rax
__int64 v193; // rax
_DWORD *v194; // rsi
char v195; // dl
__int64 v196; // r14
__int64 v197; // r12
__int64 v198; // rax
__int64 v199; // rax
float v200; // xmm0_4
const std::string::value_type *v201; // rax
std::string::pointer v202; // rdi
__int64 v203; // rbx
__int64 v204; // r14
float v205; // xmm0_4
__int64 v206; // rbx
__int64 v207; // rbx
__int64 v208; // rax
__int64 v209; // rbx
__int64 v210; // rax
__int64 v211; // rax
__int64 v212; // rbx
__int64 v213; // xmm0_8
char v214; // al
__int64 v215; // rbx
float v216; // xmm0_4
_DWORD *v217; // rax
__int64 v218; // rbx
__int64 v219; // rbx
char v220[8]; // [rsp+0h] [rbp-120h] BYREF
__int64 SavedLevel; // [rsp+8h] [rbp-118h]
_DWORD v222[2]; // [rsp+10h] [rbp-110h] BYREF
float v223; // [rsp+18h] [rbp-108h] BYREF
_BYTE v224[4]; // [rsp+20h] [rbp-100h] BYREF
float v225; // [rsp+24h] [rbp-FCh]
__int64 v226; // [rsp+28h] [rbp-F8h]
float v227; // [rsp+34h] [rbp-ECh]
__int64 v228; // [rsp+38h] [rbp-E8h]
std::string v229; // [rsp+40h] [rbp-E0h] BYREF
_BYTE v230[8]; // [rsp+64h] [rbp-BCh] BYREF
int v231; // [rsp+6Ch] [rbp-B4h]
std::string v232; // [rsp+70h] [rbp-B0h] BYREF
__int64 v233; // [rsp+88h] [rbp-98h]
__int128 v234; // [rsp+90h] [rbp-90h]
float v235; // [rsp+A0h] [rbp-80h]
float v236; // [rsp+A4h] [rbp-7Ch]
float v237; // [rsp+A8h] [rbp-78h]
unsigned int v238; // [rsp+ACh] [rbp-74h]
unsigned __int64 v239; // [rsp+B0h] [rbp-70h] BYREF
char v240; // [rsp+B8h] [rbp-68h]
float v241; // [rsp+C0h] [rbp-60h]
__int16 v242; // [rsp+C4h] [rbp-5Ch] BYREF
char v243; // [rsp+C6h] [rbp-5Ah]
float v244; // [rsp+CCh] [rbp-54h]
std::string __s; // [rsp+D0h] [rbp-50h] BYREF
float v246; // [rsp+E8h] [rbp-38h]
float v247; // [rsp+ECh] [rbp-34h]
__int64 v248; // [rsp+F0h] [rbp-30h]
v1 = *(_QWORD *)(a1 + 560);
v236 = *(float *)(v1 + 900);
v247 = *(float *)(v1 + 920);
v2 = *(_DWORD *)(v1 + 924);
v161 = *(_BYTE *)(a1 + 600) == 1;
v248 = a1;
if ( v161 )
{
if ( *(_BYTE *)(a1 + 569) )
{
v244 = 45.0;
if ( (*(_BYTE *)(v1 + 344) & 1) != 0 )
goto LABEL_14;
}
else
{
GameToolbox::intToString(&v229, *(unsigned int *)(v1 + 1236));
if ( (*(_BYTE *)&v229.__r_.__value_.__s.0 & 1) != 0 )
data = v229.__r_.__value_.__l.__data_;
else
data = v229.__r_.__value_.__s.__data_;
v5 = cocos2d::CCLabelBMFont::create_3(data, "bigFont.fnt");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 536) + 456LL))(*(_QWORD *)(v248 + 536), v5);
cocos2d::CCLabelBMFont::limitLabelWidth(v5, 20.0, 0.44999999, 0.0);
sub_100278250(&v232, 16.0, *(float *)(v248 + 524) * 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v5 + 184LL))(v5, &v232);
if ( (*(_BYTE *)&v229.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v229.__r_.__value_.__l.__data_);
v1 = *(_QWORD *)(v248 + 560);
v244 = 65.0;
if ( (*(_BYTE *)(v1 + 344) & 1) != 0 )
{
LABEL_14:
sub_10001AD30(&v229, *(const void **)(v1 + 360), *(_QWORD *)(v1 + 352));
if ( (*(_BYTE *)&v229.__r_.__value_.__s.0 & 1) != 0 )
goto LABEL_15;
LABEL_7:
v3 = v229.__r_.__value_.__s.__data_;
goto LABEL_16;
}
}
}
else
{
v244 = 50.0;
if ( (*(_BYTE *)(v1 + 344) & 1) != 0 )
goto LABEL_14;
}
v229 = *(std::string *)(v1 + 344);
if ( (*(_BYTE *)&v229.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_7;
LABEL_15:
v3 = v229.__r_.__value_.__l.__data_;
LABEL_16:
v226 = cocos2d::CCLabelBMFont::create_3(v3, "bigFont.fnt");
if ( (*(_BYTE *)&v229.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v229.__r_.__value_.__l.__data_);
v6 = v248;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 536) + 456LL))(*(_QWORD *)(v248 + 536), v226);
sub_100278250(&v229, 0.0, 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v226 + 296LL))(v226, &v229);
v7 = *(_QWORD *)v226;
v246 = 1.0;
(*(void (__fastcall **)(__int64))(v7 + 160))(v226);
if ( *(_BYTE *)(v6 + 600) )
{
sub_100278250(&v229, v244, (float)(*(float *)(v6 + 524) * 0.5) + 16.0);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v226 + 184LL))(v226, &v229);
v8 = 120.0;
v9 = v226;
v10 = 0.5;
}
else
{
sub_100278250(&v229, 50.0, (float)(*(float *)(v6 + 524) * 0.5) + 30.0);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v226 + 184LL))(v226, &v229);
v8 = 190.0;
v10 = 0.80000001;
v9 = v226;
}
cocos2d::CCLabelBMFont::limitLabelWidth(v9, v8, v10, 0.0);
memset(&v229, 0, sizeof(v229));
v244 = *(float *)(*(_QWORD *)(v6 + 560) + 1292LL);
if ( SLODWORD(v244) <= 0 )
{
if ( SLODWORD(v247) <= v2 )
{
v24 = GameLevelManager::sharedState(0.0);
SavedLevel = GameLevelManager::getSavedLevel(
v24,
(unsigned int)(*(_DWORD *)(*(_QWORD *)(v248 + 560) + 328LL)
- *(_DWORD *)(*(_QWORD *)(v248 + 560) + 332LL)));
}
else
{
v16 = GameLevelManager::sharedState(0.0);
SavedLevel = GameLevelManager::getSavedDailyLevel(
v16,
(unsigned int)(*(_DWORD *)(*(_QWORD *)(v248 + 560) + 920LL)
- *(_DWORD *)(*(_QWORD *)(v248 + 560) + 924LL)));
}
v238 = 0;
v22 = 0;
v15 = 0;
v23 = *(_QWORD *)(v248 + 560);
if ( *(_DWORD *)(v23 + 1140) == 2 )
goto LABEL_53;
}
else
{
v11 = GameLevelManager::sharedState(0.0);
SavedDailyLevel = GameLevelManager::getSavedDailyLevel(v11, *(unsigned int *)(*(_QWORD *)(v248 + 560) + 1292LL));
if ( !SavedDailyLevel
|| (v13 = SavedDailyLevel,
*(_DWORD *)(SavedDailyLevel + 328) - *(_DWORD *)(SavedDailyLevel + 332) != *(_DWORD *)(*(_QWORD *)(v248 + 560)
+ 328LL)
- *(_DWORD *)(*(_QWORD *)(v248 + 560)
+ 332LL)) )
{
v13 = 0;
}
SavedLevel = v13;
v14 = GameStatsManager::sharedState();
if ( GameStatsManager::hasCompletedDailyStars(v14) )
{
v15 = 0;
}
else
{
v17 = GameStatsManager::sharedState();
v15 = GameStatsManager::isDailyRecall(v17, SLODWORD(v244)) ^ 1;
}
v18 = *(_DWORD *)(*(_QWORD *)(v248 + 560) + 1292LL);
if ( v18 >= 100001
&& (v19 = GameStatsManager::sharedState(), (unsigned __int8)GameStatsManager::isDailyRecall(v19, v18))
&& (v20 = GameStatsManager::sharedState(), GameStatsManager::hasCompletedDailyStars(v20)) )
{
v21 = GameStatsManager::sharedState();
v22 = !GameStatsManager::hasCompletedDailyLevel(v21, v18);
}
else
{
v22 = 0;
}
v238 = LODWORD(v244);
v23 = *(_QWORD *)(v248 + 560);
if ( *(_DWORD *)(v23 + 1140) == 2 )
goto LABEL_53;
}
if ( (*(_BYTE *)(v23 + 392) & 1) != 0 )
sub_10001AD30(&v232, *(const void **)(v23 + 408), *(_QWORD *)(v23 + 400));
else
v232 = *(std::string *)(v23 + 392);
if ( (*(_BYTE *)&v232.__r_.__value_.__s.0 & 1) != 0 )
{
v25 = 1;
if ( v232.__r_.__value_.__l.__size_ )
goto LABEL_51;
}
else
{
v25 = 1;
if ( *(_BYTE *)&v232.__r_.__value_.__l.0 >> 1 )
goto LABEL_51;
}
if ( !SavedLevel )
{
v25 = 0;
LABEL_51:
if ( (*(_BYTE *)&v232.__r_.__value_.__s.0 & 1) != 0 )
goto LABEL_70;
goto LABEL_52;
}
if ( !*(_BYTE *)(SavedLevel + 1105) )
{
v25 = *(_DWORD *)(SavedLevel + 788) == *(_DWORD *)(*(_QWORD *)(v248 + 560) + 788LL);
if ( (*(_BYTE *)&v232.__r_.__value_.__s.0 & 1) != 0 )
goto LABEL_70;
LABEL_52:
if ( !v25 )
goto LABEL_71;
LABEL_53:
std::string::assign(&v229, "View");
v26 = "GJ_button_01.png";
goto LABEL_54;
}
v25 = 0;
if ( (*(_BYTE *)&v232.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_52;
LABEL_70:
operator delete(v232.__r_.__value_.__l.__data_);
if ( v25 )
goto LABEL_53;
LABEL_71:
v49 = *(_QWORD *)(v248 + 560);
if ( *(int *)(v49 + 792) < 23 )
{
if ( !SavedLevel || *(_BYTE *)(SavedLevel + 1105) || *(_DWORD *)(SavedLevel + 788) >= *(_DWORD *)(v49 + 788) )
{
std::string::assign(&v229, "Get It");
v26 = "GJ_button_02.png";
}
else
{
std::string::assign(&v229, "Update");
v26 = "GJ_button_03.png";
}
}
else
{
std::string::assign(&v229, "NA");
v26 = "GJ_button_04.png";
}
LABEL_54:
if ( *(_BYTE *)(v248 + 568) == 1 )
{
std::string::assign(&v229, "Use");
v26 = "GJ_button_01.png";
}
if ( SLODWORD(v247) <= v2 )
{
if ( v15 )
{
GameStatsManager::dailyRecallPrice(v238);
v31 = sub_10088E820("%i", v220[0]);
CString = cocos2d::CCString::getCString(v31);
v33 = cocos2d::CCLabelBMFont::create_3(CString, "goldFont.fnt");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v33 + 160LL))(v33, 0.69999999);
v34 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_bigKey_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v34 + 160LL))(v34, 0.72000003);
v35 = cocos2d::CCSprite::create_2();
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v35 + 984LL))(v35, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v35 + 936LL))(v35, 1);
v235 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v33 + 328LL))(v33);
v237 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v33 + 168LL))(v33);
LODWORD(v234) = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v34 + 328LL))(v34);
LODWORD(v233) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v34 + 168LL))(v34);
v241 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v34 + 328LL))(v34) + 4);
v36 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v34 + 168LL))(v34);
*(_QWORD *)&v37 = (unsigned int)v234;
*(_QWORD *)&v38 = LODWORD(v241);
*(float *)&v234 = (float)(*(float *)&v234 * *(float *)&v233) + (float)((float)(v235 * v237) + 3.0);
*(float *)&v37 = *(float *)&v234;
v241 = v241 * v36;
*(float *)&v38 = v241;
sub_100278260(&v232, v37, v38);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v35 + 320LL))(v35, &v232);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v35 + 456LL))(v35, v33);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v35 + 456LL))(v35, v34);
v42 = sub_1007FEAB0(v33, v34, 0, v39, v40, v41);
sub_100278250(&v232, *(float *)&v234 * 0.5, v241 * 0.5);
GameToolbox::alignItemsHorisontally(v42, &v232, 0, 3.0);
v43 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v34 + 192LL))(v34);
sub_100278250(&__s, 0.0, -2.0);
sub_100278350(&v232, v43, &__s);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v34 + 184LL))(v34, &v232);
v231 = 0;
v27 = ButtonSprite::create(v35, 58, 0, 1u, (int)"GJ_button_05.png", 0, 20.0, 1.0, 30.0);
v234 = 0;
v30 = 5;
}
else if ( v22 )
{
v27 = GJChestSprite::create(3);
v44 = (*(__int64 (__fastcall **)(void *, float))(*(_QWORD *)v27 + 160LL))(v27, 0.30000001);
v234 = 0;
v30 = 6;
LOBYTE(v44) = 1;
v231 = v44;
}
else
{
if ( (*(_BYTE *)&v229.__r_.__value_.__s.0 & 1) != 0 )
v45 = v229.__r_.__value_.__l.__data_;
else
v45 = v229.__r_.__value_.__s.__data_;
v46 = 50;
if ( *(_BYTE *)(v248 + 600) )
v46 = 40;
v27 = ButtonSprite::create_1((__int64)v45, v46, 0, 1u, (__int64)"bigFont.fnt", (__int64)v26, 0.60000002, 30.0);
if ( SLODWORD(v244) <= 0 )
{
v50 = GameStatsManager::sharedState();
LOBYTE(v48) = GameStatsManager::hasCompletedLevel(v50, *(_QWORD *)(v248 + 560));
}
else
{
v47 = GameStatsManager::sharedState();
LOBYTE(v48) = GameStatsManager::hasCompletedDailyStars(v47);
}
v231 = v48;
v234 = 0;
v30 = 0;
}
v28 = v248;
}
else
{
v27 = (void *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_playBtn2_001.png");
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v27 + 160LL))(v27, 0.69999999);
v28 = v248;
v29 = *(_QWORD *)(v248 + 560);
LOBYTE(v29) = *(_DWORD *)(v29 + 864) - *(_DWORD *)(v29 + 868) >= 100;
v231 = v29;
v234 = 0x41900000u;
v30 = 0;
}
v51 = CCMenuItemSpriteExtra::create(v27, 0, v28, LevelCell::onClick, 0);
*(_QWORD *)(v248 + 552) = v51;
if ( SLODWORD(v247) <= v2 )
{
if ( *(_BYTE *)(*(_QWORD *)(v248 + 560) + 772LL) )
*(float *)&v52 = 1.0;
else
*(float *)&v52 = 1.4;
v246 = *(float *)&v52;
}
CCMenuItemSpriteExtra::setSizeMult(v51, v246);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v248 + 552) + 72LL))(*(_QWORD *)(v248 + 552), v30);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v248 + 592) + 456LL))(
*(_QWORD *)(v248 + 592),
*(_QWORD *)(v248 + 552));
v53 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v27 + 328LL))(v27);
if ( v22 )
{
v54 = *(_QWORD *)(v248 + 552);
sub_100278260(&v232, COERCE_DOUBLE(1115947008), COERCE_DOUBLE(1106247680));
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v54 + 320LL))(v54, &v232);
v246 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v248 + 552) + 328LL))(*(_QWORD *)(v248 + 552));
v55 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v248 + 552) + 328LL))(*(_QWORD *)(v248 + 552));
sub_100278250(&v232, v246 * 0.5, *(float *)(v55 + 4) * 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v27 + 184LL))(v27, &v232);
v53 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v248 + 552) + 328LL))(*(_QWORD *)(v248 + 552));
}
v56 = (_QWORD *)v248;
sub_100278250(
&v232,
(float)((float)(*(float *)(v248 + 520) - (float)(*v53 * 0.5)) + -9.0) + *(float *)&v234,
0.5 * *(float *)(v248 + 524));
v57 = v56 + 73;
v58 = sub_100278300(v56 + 73, &v232);
v59 = v56[69];
v60 = v56[74];
cocos2d::CCNode::convertToWorldSpace(&__s, v56[67], v56 + 73);
cocos2d::CCNode::convertToNodeSpace(&v232, v60, &__s);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v59 + 184LL))(v59, &v232, v58);
v61 = v248;
if ( *(_DWORD *)(v248 + 544) == 29 )
{
v62 = cocos2d::CCSprite::createWithSpriteFrameName("edit_flipYBtn_001.png");
v63 = ButtonSprite::create(v62, 30, 0, 1u, (int)"GJ_button_05.png", 0, 30.0, 1.0, 0.0);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v63 + 160LL))(v63, 0.60000002);
v64 = CCMenuItemSpriteExtra::create(v63, 0, v248, LevelCell::onClick, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v64 + 72LL))(v64, 3);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 592) + 456LL))(*(_QWORD *)(v248 + 592), v64);
v65 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v248 + 552) + 192LL))(*(_QWORD *)(v248 + 552));
sub_100278250(&__s, 16.0, -8.0);
sub_100278350(&v232, v65, &__s);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v64 + 184LL))(v64, &v232);
v66 = cocos2d::CCSprite::createWithSpriteFrameName("edit_downBtn_001.png");
v67 = ButtonSprite::create(v66, 30, 0, 1u, (int)"GJ_button_06.png", 0, 30.0, 1.0, 0.0);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v67 + 160LL))(v67, 0.60000002);
v68 = CCMenuItemSpriteExtra::create(v67, 0, v248, LevelCell::onClick, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v68 + 72LL))(v68, 2);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 592) + 456LL))(*(_QWORD *)(v248 + 592), v68);
v69 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v248 + 552) + 192LL))(*(_QWORD *)(v248 + 552));
sub_100278250(&__s, -12.0, -8.0);
sub_100278350(&v232, v69, &__s);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v68 + 184LL))(v68, &v232);
v70 = cocos2d::CCSprite::createWithSpriteFrameName("edit_upBtn_001.png");
v71 = ButtonSprite::create(v70, 30, 0, 1u, (int)"GJ_button_01.png", 0, 30.0, 1.0, 0.0);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v71 + 160LL))(v71, 0.60000002);
v72 = CCMenuItemSpriteExtra::create(v71, 0, v248, LevelCell::onClick, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v72 + 72LL))(v72, 1);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 592) + 456LL))(*(_QWORD *)(v248 + 592), v72);
v73 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v248 + 552) + 192LL))(*(_QWORD *)(v248 + 552));
sub_100278250(&__s, -40.0, -8.0);
sub_100278350(&v232, v73, &__s);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v72 + 184LL))(v72, &v232);
v74 = ButtonSprite::create_1(
(__int64)"Delete",
0x28u,
0,
1u,
(__int64)"bigFont.fnt",
(__int64)"GJ_button_06.png",
0.60000002,
30.0);
v75 = v248;
v76 = CCMenuItemSpriteExtra::create(v74, 0, v248, LevelCell::onClick, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v76 + 72LL))(v76, 4);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v75 + 592) + 456LL))(*(_QWORD *)(v75 + 592), v76);
v77 = *(_QWORD *)(v75 + 592);
v78 = *(_QWORD *)(v75 + 536);
*(_QWORD *)&v58 = v234 ^ 0x8000000080000000LL;
sub_100278250(v222, -*(float *)&v234, 0.0);
sub_100278350(&v239, v57, v222);
cocos2d::CCNode::convertToWorldSpace(&__s, v78, &v239);
cocos2d::CCNode::convertToNodeSpace(&v232, v77, &__s);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v76 + 184LL))(v76, &v232);
v61 = v248;
LevelCell::updateCellMode(v248, *(_DWORD *)(v248 + 604));
}
if ( *(_DWORD *)(*(_QWORD *)(v61 + 560) + 588LL) <= *(_DWORD *)(*(_QWORD *)(v61 + 560) + 592LL) )
{
v80 = GameLevelManager::sharedState(v58);
v79 = (unsigned int)GameLevelManager::accountIDForUserID(
v80,
(unsigned int)(*(_DWORD *)(*(_QWORD *)(v248 + 560) + 576LL)
- *(_DWORD *)(*(_QWORD *)(v248 + 560) + 580LL))) == 0;
}
else
{
v79 = 0;
}
memset(&v232, 0, sizeof(v232));
if ( !*(_BYTE *)(v248 + 600) )
std::string::append(&v232, "By ");
v81 = *(_QWORD *)(v248 + 560);
if ( (*(_BYTE *)(v81 + 416) & 1) != 0 )
sub_10001AD30(&__s, *(const void **)(v81 + 432), *(_QWORD *)(v81 + 424));
else
__s = *(std::string *)(v81 + 416);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
{
v82 = __s.__r_.__value_.__l.__data_;
size = __s.__r_.__value_.__l.__size_;
}
else
{
size = *(_BYTE *)&__s.__r_.__value_.__l.0 >> 1;
v82 = __s.__r_.__value_.__s.__data_;
}
std::string::append(&v232, v82, size);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v232.__r_.__value_.__s.0 & 1) != 0 )
v84 = v232.__r_.__value_.__l.__data_;
else
v84 = v232.__r_.__value_.__s.__data_;
v228 = cocos2d::CCLabelBMFont::create_3(v84, "goldFont.fnt");
sub_1002782A0(v222);
if ( *(_BYTE *)(v248 + 600) )
{
cocos2d::CCLabelBMFont::limitLabelWidth(v228, 80.0, 0.44999999, 0.0);
v85 = v226;
v86 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v226 + 192LL))(v226);
v246 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v85 + 328LL))(v85);
LODWORD(v234) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v226 + 168LL))(v226);
v241 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v228 + 328LL))(v228);
v87 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v228 + 168LL))(v228);
sub_100278250(&v239, (float)((float)(v246 * *(float *)&v234) + (float)((float)(v241 * 0.5) * v87)) + 5.0, 0.0);
}
else
{
cocos2d::CCLabelBMFont::limitLabelWidth(v228, 140.0, 0.69999999, 0.0);
v86 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v226 + 192LL))(v226);
v246 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v228 + 328LL))(v228);
v89 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v228 + 168LL))(v228);
sub_100278250(&v239, (float)((float)(v246 * 0.5) * v89) + 2.0, -22.0);
}
sub_100278350(&__s, v86, &v239);
v88 = sub_100278300(v222, &__s);
v90 = CCMenuItemSpriteExtra::create(v228, 0, v248, LevelCell::onViewProfile, 0);
(*(void (__fastcall **)(_QWORD, __int64, double))(**(_QWORD **)(v248 + 592) + 456LL))(
*(_QWORD *)(v248 + 592),
v90,
v88);
v91 = *(_QWORD *)(v248 + 592);
cocos2d::CCNode::convertToWorldSpace(&v239, *(_QWORD *)(v248 + 536), v222);
cocos2d::CCNode::convertToNodeSpace(&__s, v91, &v239);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v90 + 184LL))(v90, &__s);
if ( v79 )
{
__s.__r_.__value_.__s.__data_[1] = -1;
*(_WORD *)&__s.__r_.__value_.__l.0 = -166;
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v228 + 1072LL))(v228, &__s);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v90 + 1056LL))(v90, 0);
}
sub_1002782A0(&v223);
if ( *(_BYTE *)(v248 + 600) )
{
v92 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v226 + 192LL))(v226);
sub_100278250(&__s, *v92 + 1.0, (float)(*(float *)(v248 + 524) * 0.5) + -1.0);
sub_100278300(&v223, &__s);
v246 = 150.0;
v93 = 1052266988;
}
else
{
v94 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v226 + 192LL))(v226);
sub_100278250(&__s, *v94 + 2.0, (float)(*(float *)(v248 + 524) * 0.5) + -12.0);
sub_100278300(&v223, &__s);
v246 = 195.0;
v93 = 1055286886;
}
LODWORD(v234) = v93;
v95 = MusicDownloadManager::sharedState(&v223);
SongInfoObject = MusicDownloadManager::getSongInfoObject(v95, *(unsigned int *)(*(_QWORD *)(v248 + 560) + 608LL));
v97 = SongInfoObject;
if ( SongInfoObject )
{
v98 = *(_DWORD *)(SongInfoObject + 400);
if ( v98 > 0 )
{
v99 = "ncs_small_001.png";
if ( v98 == 2 )
v99 = "chompo_small_001.png";
v100 = cocos2d::CCSprite::createWithSpriteFrameName(v99);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 536) + 456LL))(*(_QWORD *)(v248 + 536), v100);
sub_100278250(&v239, 14.0, -1.0);
sub_100278350(&__s, &v223, &v239);
if ( *(_DWORD *)(v97 + 400) == 2 )
{
_mm_storel_ps((double *)&__s, _mm_add_ps((__m128)__s.__r_.__value_.__r.__words[0], (__m128)xmmword_100A064B0));
v101 = v223 + 40.0;
*(float *)&v102 = -20.0;
}
else
{
v101 = v223 + 34.0;
*(float *)&v102 = -15.0;
}
v241 = *(float *)&v102;
v223 = v101;
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v100 + 184LL))(v100, &__s);
v246 = v246 + v241;
}
}
GJGameLevel::getSongName(&__s);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
v103 = __s.__r_.__value_.__l.__data_;
else
v103 = __s.__r_.__value_.__s.__data_;
v104 = cocos2d::CCLabelBMFont::create_3(v103, "bigFont.fnt");
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 536) + 456LL))(*(_QWORD *)(v248 + 536), v104);
sub_100278250(&__s, 0.0, 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v104 + 296LL))(v104, &__s);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v104 + 184LL))(v104, &v223);
cocos2d::CCLabelBMFont::limitLabelWidth(v104, v246, *(float *)&v234, 0.0);
if ( *(int *)(*(_QWORD *)(v248 + 560) + 608LL) <= 0 )
{
__s.__r_.__value_.__s.__data_[1] = -1;
*(_WORD *)&__s.__r_.__value_.__l.0 = -11736;
}
else
{
__s.__r_.__value_.__s.__data_[1] = -1;
*(_WORD *)&__s.__r_.__value_.__l.0 = -32001;
}
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v104 + 1072LL))(v104, &__s);
AverageDifficulty = GJGameLevel::getAverageDifficulty(*(_QWORD *)(v248 + 560));
v106 = *(_DWORD **)(v248 + 560);
if ( v106[233] - v106[234] == 1 )
AverageDifficulty = GJGameLevel::demonIconForDifficulty((unsigned int)v106[236]);
v107 = sub_10088E820("difficulty_%02d_btn_001.png", v220[0]);
cocos2d::CCString::getCString(v107);
v108 = cocos2d::CCNode::create(v107);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v248 + 536) + 464LL))(
*(_QWORD *)(v248 + 536),
v108,
2);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v108 + 320LL))(v108, &unk_100BE17E8);
sub_100278250(&__s, 26.0, *(float *)(v248 + 524) * 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v108 + 184LL))(v108, &__s);
if ( *(_BYTE *)(v248 + 600) == 1 )
{
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v108 + 160LL))(v108, 0.69999999);
v109 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v108 + 192LL))(v108);
if ( *(_BYTE *)(v248 + 569) )
v110 = -2.0;
else
v110 = 18.0;
sub_100278250(&v239, v110, 1.0);
sub_100278350(&__s, v109, &v239);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v108 + 184LL))(v108, &__s);
}
v111 = 0;
sub_100278250(v224, 0.0, 0.0);
v112 = *(_QWORD *)(v248 + 560);
if ( *(int *)(v112 + 964) <= 0 )
{
v114 = *(_DWORD *)(v112 + 948) > *(_DWORD *)(v112 + 952);
v113 = 0;
}
else
{
v113 = *(_BYTE *)(v248 + 600) ^ 1;
v114 = *(_DWORD *)(v112 + 948) > *(_DWORD *)(v112 + 952);
if ( (v113 & v114) != 0 )
{
v115 = 14.0;
goto LABEL_143;
}
}
if ( ((v113 | v114) & 1) == 0 )
goto LABEL_144;
v115 = 5.0;
LABEL_143:
v225 = v115 + v225;
LABEL_144:
if ( SLODWORD(v247) > v2 )
v225 = v225 + 10.0;
if ( *(_BYTE *)(v112 + 960) )
AverageDifficulty = -1;
v116 = GJDifficultySprite::create(AverageDifficulty, 0);
GJDifficultySprite::updateFeatureStateFromLevel(v116, *(_QWORD *)(v248 + 560));
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v108 + 464LL))(v108, v116, 3);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v116 + 184LL))(v116, v224);
*(_QWORD *)&v234 = v104;
v233 = v108;
if ( SLODWORD(v244) <= 0 )
{
v120 = GameStatsManager::sharedState();
p_s = *(_QWORD *)(v248 + 560);
hasCompletedStarLevel = GameStatsManager::hasCompletedStarLevel(v120, p_s);
}
else
{
v117 = GameStatsManager::sharedState();
p_s = v238;
hasCompletedStarLevel = GameStatsManager::hasCompletedDailyStars(v117);
}
v121 = hasCompletedStarLevel;
if ( *(_DWORD *)(*(_QWORD *)(v248 + 560) + 948LL) > *(_DWORD *)(*(_QWORD *)(v248 + 560) + 952LL) )
{
v122 = "star_small01_001.png";
if ( LODWORD(v236) == 5 )
v122 = "moon_small01_001.png";
v123 = cocos2d::CCSprite::createWithSpriteFrameName(v122);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v233 + 456LL))(v233, v123);
sub_100278250(&v239, 8.0, -30.0);
sub_100278350(&__s, v224, &v239);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v123 + 184LL))(v123, &__s);
v124 = sub_10088E820("%i", v220[0]);
v125 = cocos2d::CCString::getCString(v124);
v126 = cocos2d::CCLabelBMFont::create_3(v125, "bigFont.fnt");
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v233 + 456LL))(v233, v126);
sub_100278250(&__s, 1.0, 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v126 + 296LL))(v126, &__s);
v127 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v123 + 192LL))(v123);
v111 = 0;
sub_100278250(&v239, -8.0, 0.0);
sub_100278350(&__s, v127, &v239);
p_s = (__int64)&__s;
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v126 + 184LL))(v126, &__s);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v126 + 160LL))(v126, 0.40000001);
if ( v121 )
{
__s.__r_.__value_.__s.__data_[1] = 50;
*(_WORD *)&__s.__r_.__value_.__l.0 = -1;
p_s = (__int64)&__s;
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v126 + 1072LL))(v126, &__s);
}
}
if ( SLODWORD(v247) <= v2 )
{
v136 = *(_QWORD *)(v248 + 560);
v137 = *(_DWORD *)(v136 + 964);
if ( v137 > 0 )
{
v138 = *((int *)&unk_100A06478 + (*(_DWORD *)(v136 + 948) > *(_DWORD *)(v136 + 952)));
LABEL_168:
v227 = *(float *)&v138;
v236 = *(float *)(v136 + 968);
v241 = *(float *)(v136 + 972);
v142 = 0;
while ( 1 )
{
v247 = 10.0;
if ( v142 == 2 )
goto LABEL_176;
if ( v142 != 1 )
break;
v247 = 5.0;
if ( v137 != 2 )
goto LABEL_175;
LABEL_176:
v143 = v142 + 1;
LODWORD(v246) = v142 + 1;
if ( SLODWORD(v244) <= 0 )
CoinKey_1 = (const char *)GJGameLevel::getCoinKey_1(v136, v143);
else
CoinKey_1 = (const char *)GJGameLevel::getCoinKey(v136, v143, v238);
v145 = CoinKey_1;
v146 = strlen(CoinKey_1);
if ( v146 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v147 = v146;
if ( v146 >= 0x17 )
{
v149 = (v146 | 7) + 1;
if ( (v146 | 7) == 0x17 )
v149 = 26;
v148 = (char *)operator new(v149);
__s.__r_.__value_.__r.__words[2] = (std::string::size_type)v148;
__s.__r_.__value_.__r.__words[0] = v149 | 1;
__s.__r_.__value_.__l.__size_ = v147;
}
else
{
__s.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v146);
v148 = __s.__r_.__value_.__s.__data_;
if ( !v146 )
goto LABEL_187;
}
memmove(v148, v145, v147);
LABEL_187:
v148[v147] = 0;
v150 = GameStatsManager::sharedState();
v151 = __s.__r_.__value_.__s.__data_;
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
v151 = __s.__r_.__value_.__l.__data_;
hasPendingUserCoin = 1;
if ( !GameStatsManager::hasUserCoin(v150, v151) )
{
v153 = GameStatsManager::sharedState();
v154 = __s.__r_.__value_.__s.__data_;
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
v154 = __s.__r_.__value_.__l.__data_;
hasPendingUserCoin = GameStatsManager::hasPendingUserCoin(v153, v154);
}
v155 = cocos2d::CCSprite::createWithSpriteFrameName("usercoin_small01_001.png");
if ( *(_BYTE *)(v248 + 600) )
{
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 536) + 456LL))(*(_QWORD *)(v248 + 536), v155);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v155 + 160LL))(v155, 0.69999999);
v156 = v234;
v157 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v234 + 192LL))(v234);
v235 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v156 + 328LL))(v156);
v237 = (*(float (__fastcall **)(_QWORD))(*(_QWORD *)v234 + 168LL))(v234);
v158 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v155 + 168LL))(v155);
sub_100278250(&v242, (float)(v247 * v158) + (float)((float)(v235 * v237) + 18.0), 0.0);
sub_100278350(&v239, v157, &v242);
}
else
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v233 + 456LL))(v233, v155);
sub_100278250(&v242, v247, v227);
sub_100278350(&v239, v224, &v242);
}
p_s = (__int64)&v239;
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v155 + 184LL))(v155, &v239);
if ( LODWORD(v236) == LODWORD(v241) )
{
v159 = 3174821;
if ( hasPendingUserCoin )
v159 = 4960255;
LOWORD(v239) = v159;
BYTE2(v239) = BYTE2(v159);
p_s = (__int64)&v239;
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v155 + 960LL))(v155, &v239);
}
else if ( !hasPendingUserCoin )
{
BYTE2(v239) = -91;
LOWORD(v239) = -23131;
p_s = (__int64)&v239;
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v155 + 960LL))(v155, &v239);
}
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
if ( v142 <= 1 )
{
v136 = *(_QWORD *)(v248 + 560);
v137 = *(_DWORD *)(v136 + 964);
v142 = LODWORD(v246);
if ( SLODWORD(v246) < v137 )
continue;
}
goto LABEL_206;
}
v247 = -5.0;
if ( v137 == 2 )
goto LABEL_176;
v247 = -10.0;
if ( (unsigned int)v137 > 2 )
goto LABEL_176;
LABEL_175:
v247 = 0.0;
goto LABEL_176;
}
}
else
{
v128 = cocos2d::CCSprite::createWithSpriteFrameName("diamond_small01_001.png");
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v233 + 456LL))(v233, v128);
memset(&__s, 0, sizeof(__s));
v129 = GameStatsManager::sharedState();
BaseDiamonds = GameStatsManager::getBaseDiamonds(
v129,
*(_DWORD *)(*(_QWORD *)(v248 + 560) + 948LL) - *(_DWORD *)(*(_QWORD *)(v248 + 560) + 952LL));
v131 = GameStatsManager::sharedState();
AwardedDiamondsForLevel = GameStatsManager::getAwardedDiamondsForLevel(v131, *(_QWORD *)(v248 + 560), 0.0, v111);
v133 = sub_10088E820("%i/%i", v220[0]);
v134 = (const std::string::value_type *)cocos2d::CCString::getCString(v133);
std::string::assign(&__s, v134);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
v135 = __s.__r_.__value_.__l.__data_;
else
v135 = __s.__r_.__value_.__s.__data_;
v139 = cocos2d::CCLabelBMFont::create_3(v135, "bigFont.fnt");
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v233 + 456LL))(v233, v139);
sub_100278250(&v239, 1.0, 0.5);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v139 + 296LL))(v139, &v239);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v139 + 160LL))(v139, 0.34999999);
v247 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v139 + 328LL))(v139);
v140 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v139 + 168LL))(v139);
sub_100278250(&v242, (float)((float)(v247 * v140) * 0.5) + 2.0, -44.5);
sub_100278350(&v239, v224, &v242);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v128 + 184LL))(v128, &v239);
v141 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v128 + 192LL))(v128);
sub_100278250(&v242, -8.0, 0.0);
sub_100278350(&v239, v141, &v242);
p_s = (__int64)&v239;
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v139 + 184LL))(v139, &v239);
if ( AwardedDiamondsForLevel == BaseDiamonds )
{
BYTE2(v239) = -1;
LOWORD(v239) = -156;
p_s = (__int64)&v239;
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v139 + 1072LL))(v139, &v239);
}
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
v136 = *(_QWORD *)(v248 + 560);
v137 = *(_DWORD *)(v136 + 964);
if ( v137 > 0 )
{
*(float *)&v138 = -60.0;
goto LABEL_168;
}
}
LABEL_206:
v160 = (float *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v226 + 192LL))(v226, p_s);
v161 = *(_BYTE *)(v248 + 600) == 0;
if ( *(_BYTE *)(v248 + 600) )
{
v162 = 6.0;
v241 = 60.0;
if ( v161 )
{
LABEL_213:
v235 = 14.0;
if ( v161 )
goto LABEL_214;
LABEL_210:
v163 = 1053609165;
goto LABEL_215;
}
}
else
{
v162 = 9.0;
v241 = 80.0;
if ( v161 )
goto LABEL_213;
}
v235 = 8.5;
if ( !v161 )
goto LABEL_210;
LABEL_214:
v163 = 1058642330;
LABEL_215:
LODWORD(v234) = v163;
v247 = v162 + *v160;
v164 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_timeIcon_001.png");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 536) + 456LL))(*(_QWORD *)(v248 + 536), v164);
sub_100278250(&__s, v247, v235);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v164 + 184LL))(v164, &__s);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v164 + 160LL))(v164, *(float *)&v234);
v165 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_downloadsIcon_001.png");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 536) + 456LL))(*(_QWORD *)(v248 + 536), v165);
v166 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v164 + 192LL))(v164);
sub_100278250(&v239, v241, 0.0);
sub_100278350(&__s, v166, &v239);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v165 + 184LL))(v165, &__s);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v165 + 160LL))(v165, *(float *)&v234);
v167 = "GJ_likesIcon_001.png";
v168 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_likesIcon_001.png");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 536) + 456LL))(*(_QWORD *)(v248 + 536), v168);
v169 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v165 + 192LL))(v165);
sub_100278250(&v239, v241, 0.0);
sub_100278350(&__s, v169, &v239);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v168 + 184LL))(v168, &__s);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v168 + 160LL))(v168, *(float *)&v234);
v170 = *(unsigned int **)(v248 + 560);
v171 = 25;
if ( (int)v170[237] > (int)v170[238] )
v171 = 18;
v172 = *(_BYTE *)(v248 + 600) == 0;
if ( *(_BYTE *)(v248 + 600) )
{
v247 = 0.30000001;
v173 = (float)v171;
if ( v172 )
goto LABEL_222;
goto LABEL_221;
}
v247 = 0.40000001;
v173 = (float)v171;
if ( !v172 )
LABEL_221:
v173 = v173 * 0.80000001;
LABEL_222:
v236 = v173;
GJGameLevel::lengthKeyToString(&__s, v170[225]);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
v174 = __s.__r_.__value_.__l.__data_;
else
v174 = __s.__r_.__value_.__s.__data_;
v175 = cocos2d::CCLabelBMFont::create_3(v174, "bigFont.fnt");
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 536) + 456LL))(*(_QWORD *)(v248 + 536), v175);
sub_100278250(&__s, 0.0, 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v175 + 296LL))(v175, &__s);
v176 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v164 + 192LL))(v164);
sub_100278250(&v239, 10.0, 0.0);
sub_100278350(&__s, v176, &v239);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v175 + 184LL))(v175, &__s);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v175 + 160LL))(v175, v247);
cocos2d::CCLabelBMFont::limitLabelWidth(v175, 50.0, v247, 0.0);
v246 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v175 + 192LL))(v175);
v237 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v175 + 328LL))(v175);
LODWORD(v233) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v175 + 168LL))(v175);
v177 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v165 + 192LL))(v165);
sub_100278250(&__s, (float)((float)(v237 * *(float *)&v233) + v246) + v236, *(float *)(v177 + 4));
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v165 + 184LL))(v165, &__s);
GameToolbox::intToShortString(&__s, *(unsigned int *)(*(_QWORD *)(v248 + 560) + 644LL), 0);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
v178 = __s.__r_.__value_.__l.__data_;
else
v178 = __s.__r_.__value_.__s.__data_;
v179 = cocos2d::CCLabelBMFont::create_3(v178, "bigFont.fnt");
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 536) + 456LL))(*(_QWORD *)(v248 + 536), v179);
sub_100278250(&__s, 0.0, 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v179 + 296LL))(v179, &__s);
v180 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v165 + 192LL))(v165);
sub_100278250(&v239, 9.0, 0.0);
sub_100278350(&__s, v180, &v239);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v179 + 184LL))(v179, &__s);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v179 + 160LL))(v179, v247);
cocos2d::CCLabelBMFont::limitLabelWidth(v179, 45.0, v247, 0.0);
v181 = *(_DWORD *)(*(_QWORD *)(v248 + 560) + 892LL) - *(_DWORD *)(*(_QWORD *)(v248 + 560) + 896LL);
v182 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
if ( v181 < 0 )
v167 = "GJ_dislikesIcon_001.png";
v183 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v182, v167);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v168 + 1160LL))(v168, v183);
v246 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v179 + 192LL))(v179);
v237 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v179 + 328LL))(v179);
LODWORD(v233) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v179 + 168LL))(v179);
v184 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v168 + 192LL))(v168);
sub_100278250(&__s, (float)((float)(v237 * *(float *)&v233) + v246) + v236, *(float *)(v184 + 4));
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v168 + 184LL))(v168, &__s);
GameToolbox::intToShortString(&__s, (unsigned int)v181, 0);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
v185 = __s.__r_.__value_.__l.__data_;
else
v185 = __s.__r_.__value_.__s.__data_;
v186 = cocos2d::CCLabelBMFont::create_3(v185, "bigFont.fnt");
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 536) + 456LL))(*(_QWORD *)(v248 + 536), v186);
v237 = 0.5;
sub_100278250(&__s, 0.0, 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v186 + 296LL))(v186, &__s);
v187 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v168 + 192LL))(v168);
sub_100278250(&v239, 10.0, 0.0);
sub_100278350(&__s, v187, &v239);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v186 + 184LL))(v186, &__s);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v186 + 160LL))(v186, v247);
v188 = (__m128)LODWORD(v247);
cocos2d::CCLabelBMFont::limitLabelWidth(v186, 45.0, v247, 0.0);
LODWORD(v233) = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v186 + 192LL))(v186);
v189 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v186 + 328LL))(v186);
*(_QWORD *)&v190 = *(unsigned int *)v189;
v246 = *v189;
*(float *)&v190 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v186 + 168LL))(v186);
v227 = *(float *)&v190;
if ( SLODWORD(v244) > 0 )
{
v191 = GameStatsManager::sharedState();
if ( !(unsigned __int8)GameStatsManager::isDailyRecall(v191, v238) )
{
v192 = GameStatsManager::sharedState();
GameStatsManager::hasCompletedDailyStars(v192);
}
}
v193 = GameStatsManager::sharedState();
v194 = *(_DWORD **)(v248 + 560);
if ( SLODWORD(v244) <= 0 )
v238 = v194[230] - v194[231];
v239 = GameStatsManager::orbInfoForLevel(v193, v194, v238, v190, v188);
v240 = v195;
if ( *(_DWORD *)(*(_QWORD *)(v248 + 560) + 948LL) - *(_DWORD *)(*(_QWORD *)(v248 + 560) + 952LL) < 2 )
{
v200 = (float)(v246 * v227) + *(float *)&v233;
}
else
{
v196 = cocos2d::CCSprite::createWithSpriteFrameName("currencyOrbIcon_001.png");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 536) + 456LL))(*(_QWORD *)(v248 + 536), v196);
v197 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v168 + 192LL))(v168);
sub_100278250(&v242, v241, 0.0);
sub_100278350(&__s, v197, &v242);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v196 + 184LL))(v196, &__s);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v196 + 160LL))(v196, *(float *)&v234);
v246 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v186 + 192LL))(v186);
v244 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v186 + 328LL))(v186);
LODWORD(v234) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v186 + 168LL))(v186);
v198 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v196 + 192LL))(v196);
sub_100278250(&__s, (float)((float)(v244 * *(float *)&v234) + v246) + v236, *(float *)(v198 + 4));
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v196 + 184LL))(v196, &__s);
memset(&__s, 0, sizeof(__s));
if ( SHIDWORD(v239) <= (int)v239 )
v199 = sub_10088E820("%i", v220[0]);
else
v199 = sub_10088E820("%i/%i", v220[0]);
v201 = (const std::string::value_type *)cocos2d::CCString::getCString(v199);
std::string::assign(&__s, v201);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
v202 = __s.__r_.__value_.__l.__data_;
else
v202 = __s.__r_.__value_.__s.__data_;
v203 = cocos2d::CCLabelBMFont::create_3(v202, "bigFont.fnt");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 536) + 456LL))(*(_QWORD *)(v248 + 536), v203);
sub_100278250(&v242, 0.0, 0.5);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v203 + 296LL))(v203, &v242);
v204 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v196 + 192LL))(v196);
sub_100278250(v230, 10.0, 0.0);
sub_100278350(&v242, v204, v230);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v203 + 184LL))(v203, &v242);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v203 + 160LL))(v203, v247);
if ( sub_1000369F0((__int64)&v239) )
{
v243 = -106;
v242 = -26986;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v203 + 1072LL))(v203, &v242);
}
else if ( HIDWORD(v239) == (_DWORD)v239 )
{
v243 = -1;
v242 = -156;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v203 + 1072LL))(v203, &v242);
}
cocos2d::CCLabelBMFont::limitLabelWidth(v203, 45.0, v247, 0.0);
v247 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v203 + 192LL))(v203);
v246 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v203 + 328LL))(v203);
v205 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v203 + 168LL))(v203);
v246 = v246 * v205;
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
v200 = v246 + v247;
}
v246 = v200;
v206 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v168 + 192LL))(v168);
v247 = 1.0;
sub_100278250(&v242, 0.0, 1.0);
sub_100278350(&__s, v206, &v242);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v168 + 184LL))(v168, &__s);
v207 = v226;
v244 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v226 + 192LL))(v226);
LODWORD(v234) = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v207 + 328LL))(v207);
v241 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v207 + 168LL))(v207);
v208 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v207 + 192LL))(v207);
sub_100278250(&__s, (float)((float)(*(float *)&v234 * v241) + v244) + 10.0, *(float *)(v208 + 4) + -1.0);
if ( *(_BYTE *)(v248 + 600) == 1 )
{
if ( *(_BYTE *)(v248 + 569) == 1 )
sub_100278250(&v242, (float)(v236 + v246) + -6.0, v235 + 1.0);
else
sub_100278250(&v242, 16.0, 10.0);
sub_100278300(&__s, &v242);
}
if ( (_BYTE)v231 )
{
v209 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png");
if ( *(_BYTE *)(v248 + 600) != 1 || *(_BYTE *)(v248 + 569) == 1 )
{
sub_100278250(&v242, 0.0, 0.5);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v209 + 296LL))(v209, &v242);
}
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 536) + 456LL))(*(_QWORD *)(v248 + 536), v209);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v209 + 184LL))(v209, &__s);
if ( !*(_BYTE *)(v248 + 600) )
v237 = 0.80000001;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v209 + 160LL))(v209, v237);
}
else if ( SavedLevel && (unsigned int)GJGameLevel::getNormalPercent(SavedLevel) )
{
v210 = sub_10088E820("%i%%", v220[0]);
v211 = cocos2d::CCString::getCString(v210);
v212 = cocos2d::CCLabelBMFont::create_3(v211, "goldFont.fnt");
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v248 + 536) + 464LL))(
*(_QWORD *)(v248 + 536),
v212,
10);
if ( *(_BYTE *)(v248 + 600) )
v213 = 1053609165;
else
v213 = 1058642330;
(*(void (__fastcall **)(__int64, double))(*(_QWORD *)v212 + 160LL))(v212, *(double *)&v213);
v214 = *(_BYTE *)(v248 + 600);
if ( v214 != 1 || *(_BYTE *)(v248 + 569) == 1 )
{
sub_100278250(&v242, 0.0, 0.5);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v212 + 296LL))(v212, &v242);
v214 = *(_BYTE *)(v248 + 600);
}
sub_100278250(v230, (float)v214, 0.0);
sub_100278350(&v242, &__s, v230);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v212 + 184LL))(v212, &v242);
}
if ( *(_BYTE *)(v248 + 600) )
v247 = 0.80000001;
v246 = *(float *)v222;
v215 = v228;
v244 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v228 + 328LL))(v228);
v216 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v215 + 168LL))(v215);
sub_100278250(
&v242,
(float)(6.0 * v247) + (float)((float)((float)(v244 * 0.5) * v216) + v246),
*(float *)&v222[1] + -1.0);
v217 = *(_DWORD **)(v248 + 560);
if ( v217[247] != v217[248] )
{
v218 = cocos2d::CCSprite::createWithSpriteFrameName("collaborationIcon_001.png");
sub_100278250(v230, 0.0, 0.5);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v218 + 296LL))(v218, v230);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v248 + 536) + 456LL))(*(_QWORD *)(v248 + 536), v218);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v218 + 184LL))(v218, &v242);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v218 + 160LL))(v218, v247);
sub_100278250(v220, 15.0, 0.0);
sub_100278350(v230, &v242, v220);
sub_100278300(&v242, v230);
v217 = *(_DWORD **)(v248 + 560);
}
if ( v217[155] - v217[156] >= 40001 )
{
v219 = cocos2d::CCSprite::createWithSpriteFrameName("highObjectIcon_001.png");
sub_100278250(v230, 0.0, 0.5);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v219 + 296LL))(v219, v230);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v248 + 536) + 464LL))(
*(_QWORD *)(v248 + 536),
v219,
10);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v219 + 184LL))(v219, &v242);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v219 + 160LL))(v219, v247);
sub_100278250(v220, v247 * 18.0, 0.0);
sub_100278350(v230, &v242, v220);
sub_100278300(&v242, v230);
}
if ( (*(_BYTE *)&v232.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v232.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v229.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v229.__r_.__value_.__l.__data_);
}