//
// DeathMarkerLayer::buildCell from 0xc9e994 to 0xc9fddc (5192 bytes)
//
// 2 xrefs:
// > DeathMarkerLayer::mountSection @ 0xca1988
// > ??> @ 0xc27d0
//
// 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 13:05:58 +0000
//
__int64 __fastcall DeathMarkerLayer::buildCell(__int64 a1, __int64 a2)
{
__int64 v4; // x0
cocos2d::CCObject *v5; // x20
void (__fastcall *v6)(cocos2d::CCObject *, char *); // x22
void (__fastcall *v7)(cocos2d::CCObject *, char *); // x22
const char *v8; // x1
char *v9; // x0
__int64 v10; // x22
void (__fastcall *v11)(__int64, char *); // x24
__int64 v12; // x0
_BOOL8 v13; // x0
cocos2d::CCObject *v14; // x20
void (__fastcall *v15)(cocos2d::CCObject *, char *); // x22
void (__fastcall *v16)(cocos2d::CCObject *, char *); // x22
float v17; // s2
int v18; // w0
unsigned __int64 v19; // x1
int v20; // w0
unsigned int v21; // w24
cocos2d::CCString *v22; // x0
cocos2d::CCLabelBMFont *CString; // x0
const char *v24; // x2
__int64 v25; // x22
cocos2d::CCString *v26; // x0
cocos2d::CCLabelBMFont *v27; // x0
const char *v28; // x2
__int64 v29; // x24
const char *v30; // x1
float v31; // w26
char *v32; // x0
const char *v33; // x1
char *v34; // x0
__int64 v35; // x28
void (__fastcall *v36)(__int64, float); // x25
__int64 v37; // x0
void (__fastcall *v38)(__int64, float); // x25
__int64 v39; // x0
float v40; // s11
float v41; // s11
float v42; // s2
void (__fastcall *v43)(cocos2d::CCObject *, char *); // x28
float v44; // s11
const char *v45; // x1
__int64 v46; // x25
void (__fastcall *v47)(__int64, char *); // x26
__int64 v48; // x0
float v49; // s15
void (__fastcall *v50)(__int64, char *); // x26
const char *v51; // x1
__int64 v52; // x26
void (__fastcall *v53)(__int64, char *); // x28
__int64 v54; // x0
void (__fastcall *v55)(__int64, __int64); // x28
__int64 v56; // x0
void (__fastcall *v57)(__int64, char *); // x26
void (__fastcall *v58)(__int64, char *); // x26
void (__fastcall *v59)(__int64, char *); // x26
float v60; // s12
void (__fastcall *v61)(__int64, char *); // x26
void (__fastcall *v62)(__int64, char *); // x22
float v63; // s8
void (__fastcall *v64)(__int64, char *); // x22
float v65; // s12
void (__fastcall *v66)(__int64, char *); // x22
void (__fastcall *v67)(__int64, char *); // x22
const char *v68; // x1
int v69; // w24
float v70; // s8
char *v71; // x0
__int64 v72; // x26
void (__fastcall *v73)(__int64, char *); // x2
void (__fastcall *v74)(__int64); // x22
void (__fastcall *v75)(__int64, char *); // x22
size_t v76; // x22
size_t v77; // x22
char *v78; // x26
char *v79; // x3
size_t v80; // x22
unsigned __int64 v81; // x24
char *v82; // x2
char *v83; // x0
size_t v84; // x22
const char *v85; // x1
cocos2d::CCSprite *v86; // x0
cocos2d::CCNode *v87; // x26
cocos2d::CCAnimation *v88; // x0
cocos2d::CCSpriteFrameCache *v89; // x0
unsigned int j; // w22
cocos2d::CCSpriteFrameCache *v91; // x24
const char *v92; // x1
cocos2d::CCString *v93; // x0
const char *v94; // x0
cocos2d::CCSpriteFrame *v95; // x0
cocos2d::CCRepeatForever *v96; // x0
cocos2d::CCActionInterval *v97; // x1
cocos2d::CCAction *v98; // x0
void (__fastcall *v99)(cocos2d::CCNode *, char *); // x22
void (__fastcall *v100)(cocos2d::CCNode *, char *); // x2
cocos2d::CCString *v101; // x0
cocos2d::CCLabelBMFont *v102; // x0
const char *v103; // x2
__int64 v104; // x24
void (__fastcall *v105)(__int64, char *); // x3
const cocos2d::CCSize *v106; // x0
const char *v107; // x1
__int64 v108; // x22
void (__fastcall *v109)(__int64, char *); // x25
void (__fastcall *v110)(__int64, char *); // x25
void (__fastcall *v111)(__int64, char *); // x22
void (__fastcall *v112)(__int64, char *); // x22
__int64 v114; // x23
int v115; // w24
float v116; // s8
float v117; // s11
float v118; // s10
float v119; // s8
const char *v120; // x1
__int64 v121; // x25
void (__fastcall *v122)(__int64, char *); // x28
float v123; // s15
void (__fastcall *v124)(__int64, char *); // x2
void (__fastcall *v125)(__int64, char *); // x28
const char *v126; // x1
__int64 v127; // x26
void (__fastcall *v128)(__int64, char *); // x28
__int64 v129; // x0
void (__fastcall *v130)(__int64, __int64); // x28
__int64 v131; // x0
float v132; // s8
char *v133; // x0
void (__fastcall *v134)(__int64, char *); // x26
float v135; // s2
void (__fastcall *v136)(__int64, char *); // x26
const char *v137; // x1
char *v138; // x3
unsigned __int64 v139; // x0
__int64 v140; // x26
char *v141; // x0
char *v142; // x3
void (__fastcall *v143)(__int64, char *); // x22
char *v144; // [xsp+A8h] [xbp+A8h]
char *v145; // [xsp+A8h] [xbp+A8h]
float v146; // [xsp+CCh] [xbp+CCh]
int v147; // [xsp+D0h] [xbp+D0h]
int v148; // [xsp+D4h] [xbp+D4h]
float v149; // [xsp+D8h] [xbp+D8h]
int i; // [xsp+DCh] [xbp+DCh]
float v151; // [xsp+E0h] [xbp+E0h]
__int64 v152; // [xsp+F0h] [xbp+F0h]
__int64 v153; // [xsp+F8h] [xbp+F8h]
float v154; // [xsp+100h] [xbp+100h]
cocos2d::CCString *v155; // [xsp+100h] [xbp+100h]
float v156; // [xsp+110h] [xbp+110h]
cocos2d::CCAnimation *v157; // [xsp+110h] [xbp+110h]
cocos2d::CCAnimation *v158; // [xsp+110h] [xbp+110h]
float v159; // [xsp+110h] [xbp+110h]
cocos2d::CCAnimation *v160; // [xsp+110h] [xbp+110h]
float v161; // [xsp+120h] [xbp+120h]
float v162; // [xsp+120h] [xbp+120h]
float v163; // [xsp+120h] [xbp+120h]
float v164[2]; // [xsp+130h] [xbp+130h] BYREF
float v165; // [xsp+138h] [xbp+138h] BYREF
float v166; // [xsp+13Ch] [xbp+13Ch]
char v167; // [xsp+140h] [xbp+140h] BYREF
__int16 v168; // [xsp+141h] [xbp+141h]
__int64 v169; // [xsp+148h] [xbp+148h] BYREF
size_t v170; // [xsp+150h] [xbp+150h]
void *v171; // [xsp+158h] [xbp+158h]
unsigned __int64 v172; // [xsp+160h] [xbp+160h] BYREF
size_t v173; // [xsp+168h] [xbp+168h]
void *v174; // [xsp+170h] [xbp+170h]
v4 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"deathMarker_bg_001.png", _stack_chk_guard);
v5 = (cocos2d::CCObject *)v4;
if ( v4 )
{
v6 = *(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v4 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, 0.5, 0.0);
v6(v5, &v167);
v7 = *(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v5 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, *(float *)a2, *(float *)(a2 + 4) - 5.0);
v7(v5, &v167);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v5 + 160LL))(v5, *(float *)(a2 + 44));
if ( *(_BYTE *)(a1 + 424) )
v9 = "deathMarker_red_global_001.png";
else
v9 = "deathMarker_x_white_001.png";
v10 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v9, v8);
if ( v10 )
{
v11 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v10 + 184LL);
v161 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v5 + 328LL))(v5) * 0.5;
v12 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v5 + 328LL))(v5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, v161, *(float *)(v12 + 4) * 0.5);
v11(v10, &v167);
if ( !*(_BYTE *)(a1 + 424) )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 960LL))(v10, a1 + 426);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 456LL))(v5, v10);
}
cocos2d::CCObject::retain(v5);
*(_QWORD *)(a2 + 64) = v5;
v13 = DeathMarkerLayer::labeled(a1, (int *)a2);
if ( v13 )
{
v14 = (cocos2d::CCObject *)cocos2d::CCNode::create((cocos2d::CCNode *)v13);
v15 = *(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v14 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, 0.5, 0.0);
v15(v14, &v167);
v16 = *(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v14 + 184LL);
if ( *(_BYTE *)(a1 + 424) )
v17 = 14.0;
else
v17 = 4.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, *(float *)(a2 + 40), *(float *)(a2 + 36) + v17);
v16(v14, &v167);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v14 + 160LL))(v14, 0.5);
if ( *(_BYTE *)(a1 + 424) )
{
v18 = *(_DWORD *)(a2 + 20);
if ( v18 <= 0 )
{
v19 = 0;
}
else
{
v19 = 1;
if ( v18 > 14 )
v19 = (unsigned int)((v18 + 5) / 10);
}
v20 = *(_DWORD *)(a2 + 24);
if ( v20 <= 0 )
{
v21 = 0;
}
else
{
v21 = 1;
if ( v20 > 14 )
v21 = (v20 + 5) / 10;
}
v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%d%%", (const char *)v19);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v22);
v25 = cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v24);
v26 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%d%%", (const char *)v21);
v27 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v26);
v29 = cocos2d::CCLabelBMFont::create(v27, "bigFont.fnt", v28);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v25 + 160LL))(v25, 0.8);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v29 + 160LL))(v29, 0.8);
v149 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v25 + 328LL))(v25) + 4) * 0.8;
v156 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v25 + 328LL))(v25) * 0.8;
v31 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v29 + 328LL))(v29) * 0.8;
if ( *(_BYTE *)(a1 + 425) )
v32 = "death_skullIcon_001.png";
else
v32 = "death_skullIconGray_001.png";
v153 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v32, v30);
if ( *(_BYTE *)(a1 + 425) )
v34 = "death_wallIcon_001.png";
else
v34 = "death_wallIconGray_001.png";
v35 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v34, v33);
v36 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v153 + 160LL);
v37 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v153 + 328LL))(v153);
v36(v153, (float)(v149 * 1.15) / *(float *)(v37 + 4));
v38 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v35 + 160LL);
v39 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v35 + 328LL))(v35);
v38(v35, v149 / *(float *)(v39 + 4));
v40 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v153 + 328LL))(v153);
v162 = v40 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v153 + 168LL))(v153);
v152 = v35;
v41 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v35 + 328LL))(v35);
v42 = v41 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v35 + 168LL))(v35);
v43 = *(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v14 + 320LL);
v151 = v42;
v44 = (float)((float)((float)((float)((float)((float)((float)(v162 + 8.0) + 3.0) + v156) + 14.0) + v42) + 3.0)
+ v31)
+ 8.0;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v167, v44, v149 + 6.0);
v43(v14, &v167);
v46 = cocos2d::extension::CCScale9Sprite::create((cocos2d::extension::CCScale9Sprite *)"square02d_001.png", v45);
v47 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v46 + 320LL);
v48 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v25 + 328LL))(v25);
cocos2d::CCSize::CCSize(
(cocos2d::CCSize *)&v167,
(float)(v44 * 0.95) * 1.1,
(float)(*(float *)(v48 + 4) + 6.0) * 1.1);
v47(v46, &v167);
v49 = (float)(v149 + 6.0) * 0.5;
v50 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v46 + 184LL);
v146 = v44 * 0.5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, v44 * 0.5, v49);
v50(v46, &v167);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v46 + 960LL))(v46, &unk_11A1D40);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v46 + 72LL))(v46, 91);
v52 = cocos2d::extension::CCScale9Sprite::create((cocos2d::extension::CCScale9Sprite *)"square02b_001.png", v51);
v53 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v52 + 320LL);
v154 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v46 + 328LL))(v46) + 4.0;
v54 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v46 + 328LL))(v46);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v167, v154, *(float *)(v54 + 4) + 4.0);
v53(v52, &v167);
v55 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v52 + 184LL);
v56 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v46 + 192LL))(v46);
v55(v52, v56);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64, _QWORD))(*(_QWORD *)v14 + 464LL))(v14, v52, 0);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64, __int64))(*(_QWORD *)v14 + 464LL))(v14, v46, 1);
v57 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v153 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, 0.0, 0.5);
v57(v153, &v167);
v58 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v153 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, 7.5, v49 + 0.5);
v58(v153, &v167);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64, __int64))(*(_QWORD *)v14 + 464LL))(v14, v153, 2);
v59 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v25 + 296LL);
v60 = (float)(v162 + 3.0) + 8.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, 0.0, 0.5);
v59(v25, &v167);
v61 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v25 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, v60, v49 + 0.75);
v61(v25, &v167);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64, __int64))(*(_QWORD *)v14 + 464LL))(v14, v25, 2);
v62 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v152 + 296LL);
v63 = (float)(v156 + 14.0) + v60;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, 0.0, 0.5);
v62(v152, &v167);
v64 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v152 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, v63 - 2.5, v49);
v64(v152, &v167);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64, __int64))(*(_QWORD *)v14 + 464LL))(v14, v152, 2);
v65 = (float)(v63 - 2.5) + (float)(v151 * 0.5);
v66 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v29 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, 0.0, 0.5);
v66(v29, &v167);
v67 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v29 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, (float)(v151 + 3.0) + v63, v49 + 0.75);
v67(v29, &v167);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64, __int64))(*(_QWORD *)v14 + 464LL))(v14, v29, 2);
if ( *(_QWORD *)(a2 + 56) )
{
v148 = 1;
for ( i = 0; ; ++i )
{
if ( i )
{
v69 = *(_DWORD *)(a2 + 60);
if ( v69 <= 0 )
goto LABEL_74;
v70 = v65;
v71 = "death_wallIcon_glow_001.png";
}
else
{
v69 = *(_DWORD *)(a2 + 56);
if ( !v69 )
goto LABEL_75;
if ( v69 <= 0 )
goto LABEL_74;
v70 = (float)(v162 * 0.5) + 7.5;
v71 = "death_skullIcon_glow_001.png";
}
v72 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v71, v68);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v72 + 1080LL))(v72, 0x100000302LL);
v73 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v72 + 960LL);
if ( *(_BYTE *)(a1 + 425) )
{
v167 = -1;
v168 = 255;
}
else
{
v167 = -1;
v168 = -1;
}
v73(v72, &v167);
v74 = *(void (__fastcall **)(__int64))(*(_QWORD *)v72 + 160LL);
if ( !i )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v153 + 168LL))(v153);
v74(v72);
v143 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v72 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, v70, v49);
v143(v72, &v167);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64, __int64))(*(_QWORD *)v14 + 464LL))(v14, v72, 3);
if ( v69 == 1 )
goto LABEL_75;
LABEL_31:
v147 = 0;
v68 = "playerDash2_";
while ( 2 )
{
v169 = 0;
v170 = 0;
v171 = nullptr;
v157 = (cocos2d::CCAnimation *)v68;
v76 = strlen(v68);
LOBYTE(v169) = 2 * v76;
memcpy((char *)&v169 + 1, v157, v76);
*((_BYTE *)&v169 + v76 + 1) = 0;
v172 = 0;
v173 = 0;
v174 = nullptr;
if ( (v169 & 1) != 0 )
{
v77 = v170;
v78 = (char *)v171;
}
else
{
v77 = (unsigned __int8)v169 >> 1;
v78 = (char *)&v169 + 1;
}
if ( v77 + 7 > 0xFFFFFFFFFFFFFFEFLL )
sub_6308D8();
if ( v77 + 7 > 0x16 )
{
v138 = (char *)operator new((v77 + 23) & 0xFFFFFFFFFFFFFFF0LL);
v174 = v138;
v173 = v77;
v172 = (v77 + 23) & 0xFFFFFFFFFFFFFFF0LL | 1;
}
else
{
LOBYTE(v172) = 2 * v77;
if ( !v77 )
{
v79 = (char *)&v172 + 1;
goto LABEL_38;
}
v138 = (char *)&v172 + 1;
}
v79 = (char *)memcpy(v138, v78, v77);
LABEL_38:
v79[v77] = 0;
if ( (v172 & 1) != 0 )
{
v80 = v173;
v81 = (v172 & 0xFFFFFFFFFFFFFFFELL) - 1;
if ( v81 - v173 > 6 )
{
v82 = (char *)v174;
goto LABEL_41;
}
v140 = -17;
v160 = (cocos2d::CCAnimation *)(v173 + 7);
if ( -17LL - (v172 & 0xFFFFFFFFFFFFFFFELL) < v173 + 7 - v81 )
LABEL_103:
sub_6308D8();
v155 = (cocos2d::CCString *)v174;
if ( v81 <= 0x7FFFFFFFFFFFFFE6LL )
{
LABEL_86:
v139 = 2 * v81;
v140 = 23;
if ( 2 * v81 < (unsigned __int64)v160 )
v139 = (unsigned __int64)v160;
if ( v139 > 0x16 )
v140 = (v139 + 16) & 0xFFFFFFFFFFFFFFF0LL;
}
v141 = (char *)operator new(v140);
v142 = v141;
if ( v80 )
{
v144 = v141;
memcpy(v141, v155, v80);
v142 = v144;
}
qmemcpy(&v142[v80], "001.png", 7);
if ( v81 != 22 )
{
v145 = v142;
operator delete(v155);
v142 = v145;
}
v85 = (const char *)v160;
v174 = v142;
v173 = (size_t)v160;
v172 = v140 | 1;
*((_BYTE *)v160 + (_QWORD)v142) = 0;
}
else
{
v80 = (unsigned __int8)v172 >> 1;
v81 = 22;
v82 = (char *)&v172 + 1;
if ( 22 - v80 <= 6 )
{
v160 = (cocos2d::CCAnimation *)(v80 + 7);
if ( v80 - 15 > 0xFFFFFFFFFFFFFFD8LL )
goto LABEL_103;
v155 = (cocos2d::CCString *)((char *)&v172 + 1);
goto LABEL_86;
}
LABEL_41:
v83 = &v82[v80];
*(_DWORD *)&v82[v80] = *(_DWORD *)"001.png";
v84 = v80 + 7;
qmemcpy(v83 + 4, "png", 3);
v85 = (const char *)(unsigned __int8)v172;
if ( (v172 & 1) != 0 )
{
v173 = v84;
}
else
{
v85 = (const char *)&v172;
LOBYTE(v172) = 2 * v84;
}
v82[v84] = 0;
}
if ( (v172 & 1) != 0 )
v86 = (cocos2d::CCSprite *)v174;
else
v86 = (cocos2d::CCSprite *)((char *)&v172 + 1);
v87 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(v86, v85);
v88 = (cocos2d::CCAnimation *)(unsigned __int8)v172;
if ( (v172 & 1) != 0 )
operator delete(v174);
v158 = (cocos2d::CCAnimation *)cocos2d::CCAnimation::create(v88);
v89 = (cocos2d::CCSpriteFrameCache *)"%s%03d.png";
for ( j = 1; j != 13; ++j )
{
v91 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v89);
v92 = (char *)&v169 + 1;
if ( (v169 & 1) != 0 )
v92 = (const char *)v171;
v93 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s%03d.png",
v92,
j);
v94 = (const char *)cocos2d::CCString::getCString(v93);
v95 = (cocos2d::CCSpriteFrame *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v91, v94);
v89 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCAnimation::addSpriteFrame(v158, v95);
}
*((_DWORD *)v158 + 15) = 1032805417;
v96 = (cocos2d::CCRepeatForever *)cocos2d::CCAnimate::create(v158, v158);
v98 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v96, v97);
cocos2d::CCNode::runAction(v87, v98);
(*(void (__fastcall **)(cocos2d::CCNode *, float))(*(_QWORD *)v87 + 360LL))(v87, 90.0);
(*(void (__fastcall **)(cocos2d::CCNode *, float))(*(_QWORD *)v87 + 128LL))(v87, 0.46);
(*(void (__fastcall **)(cocos2d::CCNode *, float))(*(_QWORD *)v87 + 144LL))(v87, 0.8);
v99 = *(void (__fastcall **)(cocos2d::CCNode *, char *))(*(_QWORD *)v87 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, v70, v49 - 4.0);
v99(v87, &v167);
if ( v147 )
{
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v87 + 1080LL))(v87, 0x100000302LL);
v100 = *(void (__fastcall **)(cocos2d::CCNode *, char *))(*(_QWORD *)v87 + 960LL);
v167 = -1;
v168 = 165;
}
else
{
v100 = *(void (__fastcall **)(cocos2d::CCNode *, char *))(*(_QWORD *)v87 + 960LL);
v167 = -1;
v168 = 64;
}
v100(v87, &v167);
(*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCNode *, __int64))(*(_QWORD *)v14 + 464LL))(
v14,
v87,
1);
if ( (v169 & 1) != 0 )
operator delete(v171);
v68 = "playerDash2_outline_";
if ( v147 )
goto LABEL_74;
v147 = 1;
continue;
}
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v152 + 168LL))(v152);
v74(v72);
v75 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v72 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, v70, v49);
v75(v72, &v167);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64, __int64))(*(_QWORD *)v14 + 464LL))(v14, v72, 3);
if ( v69 != 1 )
goto LABEL_31;
LABEL_74:
if ( v148 == 2 )
break;
LABEL_75:
++v148;
}
}
if ( *(int *)(a2 + 52) > 0 )
{
v114 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_starsIcon_001.png", v68);
v115 = 0;
v116 = (float)(v149 * 0.6) * 1.1;
v117 = v116 / *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v114 + 328LL))(v114) + 4);
v118 = v117 * *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v114 + 328LL))(v114);
v119 = v116 + 13.2;
v163 = v49 + (float)(*(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v46 + 328LL))(v46) + 4) * 0.5);
v121 = cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"square04_001.png",
v120);
v122 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v121 + 320LL);
v123 = (float)((float)((float)((float)(v118 * 5.0) + 11.0) + 17.6) * 1.05) * 1.2;
cocos2d::CCSize::CCSize(
(cocos2d::CCSize *)&v167,
(float)(v123 * 0.9) + (float)(v123 * 0.9),
(float)(v119 + v119) + (float)(v119 + v119));
v122(v121, &v167);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v121 + 160LL))(v121, 0.5);
v124 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v121 + 960LL);
v167 = 0;
v168 = 0;
v124(v121, &v167);
v125 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v121 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, v146, (float)(v163 - 6.0) - 2.0);
v125(v121, &v167);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v121 + 72LL))(v121, 92);
v127 = cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"square04_001.png",
v126);
v128 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v127 + 320LL);
v159 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v121 + 328LL))(v121) + 8.0;
v129 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v121 + 328LL))(v121);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v167, v159, *(float *)(v129 + 4) + 8.0);
v128(v127, &v167);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v127 + 160LL))(v127, 0.5);
v130 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v127 + 184LL);
v131 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v121 + 192LL))(v121);
v130(v127, v131);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64, _QWORD))(*(_QWORD *)v14 + 464LL))(v14, v127, 0);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64, _QWORD))(*(_QWORD *)v14 + 464LL))(v14, v121, 0);
v132 = (float)(v163 + (float)((float)(v119 - 6.0) * 0.5)) - 3.0;
while ( 1 )
{
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v114 + 160LL))(v114, v117);
v134 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v114 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, 0.0, 0.5);
v134(v114, &v167);
v135 = (float)v115++;
v136 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v114 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v167,
(float)(v146 - (float)((float)((float)(v118 * 5.0) + 17.6) * 0.5)) + (float)(v135 * (float)(v118 + 4.4)),
v132);
v136(v114, &v167);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64, _QWORD))(*(_QWORD *)v14 + 464LL))(v14, v114, 0);
if ( v115 == 5 )
break;
if ( *(_DWORD *)(a2 + 52) <= v115 )
v133 = "GJ_starsIcon_gray_001.png";
else
v133 = "GJ_starsIcon_001.png";
v114 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v133, v137);
}
}
}
else
{
if ( *(_BYTE *)(a1 + 448)
&& *(_DWORD *)(a1 + 440) == -858993459 * (unsigned int)((a2 - *(_QWORD *)(a1 + 320)) >> 4) )
{
v101 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%d",
(const char *)(*(_DWORD *)(a2 + 32) - (unsigned int)(*(_DWORD *)(a2 + 32) >= 2)));
}
else
{
v101 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%d",
(const char *)*(unsigned int *)(a2 + 32));
}
v102 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v101);
v104 = cocos2d::CCLabelBMFont::create(v102, "bigFont.fnt", v103);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v104 + 72LL))(v104, 93);
v105 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v104 + 1072LL);
v167 = -1;
v168 = -1;
v105(v104, &v167);
v106 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v104 + 328LL))(v104);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v164, v106);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v165, v164[0] + 14.0, v164[1] + 6.0);
(*(void (__fastcall **)(cocos2d::CCObject *, float *))(*(_QWORD *)v14 + 320LL))(v14, &v165);
v108 = cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"square02d_001.png",
v107);
v109 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v108 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v167, v165 * 1.1, v166 * 1.1);
v109(v108, &v167);
v110 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v108 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, v165 * 0.5, (float)(v166 * 0.5) + -2.0);
v110(v108, &v167);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v108 + 960LL))(v108, a1 + 426);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v108 + 72LL))(v108, 91);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64, _QWORD))(*(_QWORD *)v14 + 464LL))(v14, v108, 0);
v111 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v104 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, 0.5, 0.5);
v111(v104, &v167);
v112 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v104 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, v165 * 0.5, v166 * 0.5);
v112(v104, &v167);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64, __int64))(*(_QWORD *)v14 + 464LL))(v14, v104, 1);
}
cocos2d::CCObject::retain(v14);
*(_QWORD *)(a2 + 72) = v14;
}
}
return _stack_chk_guard;
}