//
// DeathMarkerLayer::buildCell from 0x76a168 to 0x76ae76 (3342 bytes)
//
// 1 xrefs:
// > DeathMarkerLayer::mountSection @ 0x76bbaa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:59:11 +0000
//
cocos2d::CCNode *__fastcall DeathMarkerLayer::buildCell(int a1, int a2)
{
cocos2d::CCNode *result; // r0
cocos2d::CCObject *v4; // r9
void (__fastcall *v5)(cocos2d::CCObject *, _DWORD *); // r4
void (__fastcall *v6)(cocos2d::CCObject *, _DWORD *); // r4
const char *v7; // r1
char *v8; // r0
int v9; // r0
int v10; // r4
void (__fastcall *v11)(int, _DWORD *); // r7
float v12; // s16
int v13; // r0
cocos2d::CCObject *v14; // r4
void (__fastcall *v15)(cocos2d::CCObject *, _DWORD *); // r7
float v16; // s15
void (__fastcall *v17)(cocos2d::CCObject *, _DWORD *); // r7
int v18; // r0
int v19; // r7
int v20; // r0
int v21; // r5
cocos2d::CCString *v22; // r0
cocos2d::CCLabelBMFont *v23; // r0
const char *v24; // r2
int v25; // r8
cocos2d::CCString *v26; // r0
cocos2d::CCLabelBMFont *v27; // r0
const char *v28; // r2
int v29; // r9
float v30; // s18
float v31; // s25
const char *v32; // r1
float v33; // s17
char *v34; // r0
const char *v35; // r1
int v36; // r11
char *v37; // r0
int v38; // r0
void (__fastcall *v39)(int, _DWORD); // r5
int v40; // r0
void (__fastcall *v41)(int, _DWORD); // r5
int v42; // r0
float v43; // s19
float v44; // s19
float v45; // s24
float v46; // r0
void (__fastcall *v47)(cocos2d::CCObject *, _DWORD *); // r7
float v48; // s24
float v49; // s16
const char *v50; // r1
int v51; // r7
void (__fastcall *v52)(int, _DWORD *); // r10
int v53; // r0
float v54; // s17
void (__fastcall *v55)(int, _DWORD *); // r10
float v56; // s16
const char *v57; // r1
int v58; // r10
float v59; // s29
float v60; // r0
int v61; // r0
void (__fastcall *v62)(int, _DWORD *); // r10
void (__fastcall *v63)(int, _DWORD *); // r10
float v64; // s29
void (__fastcall *v65)(int, _DWORD *); // r10
void (__fastcall *v66)(int, _DWORD *); // r10
float v67; // s19
void (__fastcall *v68)(int, _DWORD *); // r8
float v69; // s25
void (__fastcall *v70)(int, _DWORD *); // r8
void (__fastcall *v71)(int, _DWORD *); // r8
void (__fastcall *v72)(int, _DWORD *); // r8
const char *v73; // r1
float v74; // s18
int v75; // r10
float v76; // s19
float v77; // s25
float v78; // s24
__int64 v79; // r0
float v80; // s24
float v81; // s17
int v82; // r7
void (__fastcall *v83)(int, _DWORD *); // r8
float v84; // s18
int v85; // r8
void (__fastcall *v86)(int, _DWORD *); // r3
void (__fastcall *v87)(int, _DWORD *); // r11
const char *v88; // r1
int v89; // r9
void (__fastcall *v90)(int, _DWORD *); // r11
float v91; // s18
int v92; // r0
void (__fastcall *v93)(int, int); // r5
int v94; // r0
float v95; // s16
int v96; // r8
char *v97; // r0
int v98; // r10
void (__fastcall *v99)(int, _DWORD *); // r2
int v100; // r1
char v101; // r3
void (__fastcall *v102)(int, int); // r9
int v103; // r0
size_t v104; // r0
cocos2d::CCSpriteFrameCache *v105; // r1
size_t v106; // r8
char *v107; // r9
unsigned int v108; // r10
char *v109; // r0
const char *v110; // r1
cocos2d::CCSprite *v111; // r0
cocos2d::CCNode *v112; // r8
cocos2d::CCAnimation *v113; // r0
cocos2d::CCSpriteFrameCache *v114; // r0
cocos2d::CCAnimation *v115; // r10
int j; // r9
int v117; // r3
cocos2d::CCString *v118; // r0
const char *v119; // r0
cocos2d::CCSpriteFrame *v120; // r0
cocos2d::CCAnimation *v121; // r1
cocos2d::CCRepeatForever *v122; // r0
cocos2d::CCActionInterval *v123; // r1
cocos2d::CCAction *v124; // r0
void (__fastcall *v125)(cocos2d::CCNode *, _DWORD *); // r10
void (__fastcall *v126)(cocos2d::CCNode *, _DWORD *); // r3
void (__fastcall *v127)(cocos2d::CCNode *, int *); // r3
void (__fastcall *v128)(int, _DWORD *); // r11
int v129; // s15
void (__fastcall *v130)(int, _DWORD *); // r11
const char *v131; // r1
char *v132; // r0
const char *v133; // r1
cocos2d::CCString *v134; // r0
cocos2d::CCLabelBMFont *CString; // r0
const char *v136; // r2
int v137; // r7
void (__fastcall *v138)(int, _DWORD *); // r2
const cocos2d::CCSize *v139; // r0
const char *v140; // r1
int v141; // r8
void (__fastcall *v142)(int, _DWORD *); // r9
void (__fastcall *v143)(int, _DWORD *); // r9
void (__fastcall *v144)(int, _DWORD *); // r8
void (__fastcall *v145)(int, _DWORD *); // r8
int v146; // [sp+0h] [bp-74h]
void (__fastcall *v148)(int, _DWORD *); // [sp+8h] [bp-6Ch]
void (__fastcall *v149)(int, int); // [sp+8h] [bp-6Ch]
int i; // [sp+8h] [bp-6Ch]
void (__fastcall *v151)(int, _DWORD *); // [sp+Ch] [bp-68h]
int v152; // [sp+Ch] [bp-68h]
float v153; // [sp+10h] [bp-64h]
cocos2d::CCSpriteFrameCache *v154; // [sp+14h] [bp-60h]
cocos2d::CCSpriteFrameCache *v155; // [sp+14h] [bp-60h]
float v156[2]; // [sp+3Ch] [bp-38h] BYREF
int v157; // [sp+44h] [bp-30h] BYREF
int v158; // [sp+48h] [bp-2Ch]
_DWORD v159[2]; // [sp+4Ch] [bp-28h] BYREF
int v160; // [sp+54h] [bp-20h] BYREF
size_t v161; // [sp+58h] [bp-1Ch]
char *v162; // [sp+5Ch] [bp-18h]
unsigned int v163[3]; // [sp+60h] [bp-14h] BYREF
result = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"deathMarker_bg_001.png",
(const char *)a2);
v4 = result;
if ( result )
{
v5 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)result + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, 0.5, 0.0);
v5(v4, v159);
v6 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v4 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, *(float *)a2, *(float *)(a2 + 4) - 5.0);
v6(v4, v159);
(*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v4 + 80))(v4, *(_DWORD *)(a2 + 44));
if ( *(_BYTE *)(a1 + 324) )
v8 = "deathMarker_red_global_001.png";
else
v8 = "deathMarker_x_white_001.png";
v9 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v8, v7);
v10 = v9;
if ( v9 )
{
v11 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v9 + 92);
v12 = *(float *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v4 + 164))(v4);
v13 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v4 + 164))(v4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, v12 * 0.5, *(float *)(v13 + 4) * 0.5);
v11(v10, v159);
if ( !*(_BYTE *)(a1 + 324) )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 480))(v10, a1 + 326);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v4 + 228))(v4, v10);
}
cocos2d::CCObject::retain(v4);
*(_DWORD *)(a2 + 64) = v4;
result = (cocos2d::CCNode *)DeathMarkerLayer::labeled(a1, (int *)a2);
if ( result )
{
v14 = (cocos2d::CCObject *)cocos2d::CCNode::create(result);
v15 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v14 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, 0.5, 0.0);
v15(v14, v159);
v16 = 4.0;
v17 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v14 + 92);
if ( *(_BYTE *)(a1 + 324) )
v16 = 14.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, *(float *)(a2 + 40), *(float *)(a2 + 36) + v16);
v17(v14, v159);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v14 + 80))(v14, 1056964608);
if ( !*(_BYTE *)(a1 + 324) )
{
v133 = *(const char **)(a2 + 32);
if ( *(_BYTE *)(a1 + 348)
&& 954437177 * ((a2 - *(_DWORD *)(a1 + 264)) >> 3) == *(_DWORD *)(a1 + 340)
&& (int)v133 > 1 )
{
--v133;
}
v134 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%d", v133);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v134);
v137 = cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v136);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v137 + 36))(v137, 93);
v138 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v137 + 536);
LOWORD(v159[0]) = -1;
BYTE2(v159[0]) = -1;
v138(v137, v159);
v139 = (const cocos2d::CCSize *)(*(int (__fastcall **)(int))(*(_DWORD *)v137 + 164))(v137);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v156, v139);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v157, v156[0] + 14.0, v156[1] + 6.0);
(*(void (__fastcall **)(cocos2d::CCObject *, int *))(*(_DWORD *)v14 + 160))(v14, &v157);
v141 = cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"square02d_001.png",
v140);
v142 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v141 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v159, *(float *)&v157 * 1.1, *(float *)&v158 * 1.1);
v142(v141, v159);
v143 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v141 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, *(float *)&v157 * 0.5, (float)(*(float *)&v158 * 0.5) - 2.0);
v143(v141, v159);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v141 + 480))(v141, a1 + 326);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v141 + 36))(v141, 91);
(*(void (__fastcall **)(cocos2d::CCObject *, int, _DWORD))(*(_DWORD *)v14 + 232))(v14, v141, 0);
v144 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v137 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, 0.5, 0.5);
v144(v137, v159);
v145 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v137 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, *(float *)&v157 * 0.5, *(float *)&v158 * 0.5);
v145(v137, v159);
(*(void (__fastcall **)(cocos2d::CCObject *, int, int))(*(_DWORD *)v14 + 232))(v14, v137, 1);
goto LABEL_77;
}
v18 = *(_DWORD *)(a2 + 20);
if ( v18 <= 0 )
{
v19 = 0;
}
else if ( v18 <= 14 )
{
v19 = 1;
}
else
{
v19 = (v18 + 5) / 10;
}
v20 = *(_DWORD *)(a2 + 24);
if ( v20 <= 0 )
{
v21 = 0;
}
else if ( v20 <= 14 )
{
v21 = 1;
}
else
{
v21 = (v20 + 5) / 10;
}
v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%d%%", (const char *)v19);
v23 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v22);
v25 = cocos2d::CCLabelBMFont::create(v23, "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 **)(int, int))(*(_DWORD *)v25 + 80))(v25, 1061997773);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v29 + 80))(v29, 1061997773);
v30 = *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v25 + 164))(v25) + 4) * 0.8;
v31 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v25 + 164))(v25) * 0.8;
v33 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v29 + 164))(v29) * 0.8;
if ( *(_BYTE *)(a1 + 325) )
v34 = "death_skullIcon_001.png";
else
v34 = "death_skullIconGray_001.png";
v36 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v34, v32);
if ( *(_BYTE *)(a1 + 325) )
v37 = "death_wallIcon_001.png";
else
v37 = "death_wallIconGray_001.png";
v38 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v37, v35);
v39 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v36 + 80);
v146 = v38;
v40 = (*(int (__fastcall **)(int))(*(_DWORD *)v36 + 164))(v36);
v39(v36, (float)(v30 * 1.15) / *(float *)(v40 + 4));
v41 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v146 + 80);
v42 = (*(int (__fastcall **)(int))(*(_DWORD *)v146 + 164))(v146);
v41(v146, v30 / *(float *)(v42 + 4));
v43 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v36 + 164))(v36);
v44 = v43 * COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v36 + 84))(v36));
v45 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v146 + 164))(v146);
v46 = (*(float (__fastcall **)(int))(*(_DWORD *)v146 + 84))(v146);
v47 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v14 + 160);
v48 = v45 * v46;
v49 = (float)((float)((float)((float)((float)((float)((float)(v44 + 8.0) + 3.0) + v31) + 14.0) + v48) + 3.0) + v33)
+ 8.0;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v159, v49, v30 + 6.0);
v47(v14, v159);
v51 = cocos2d::extension::CCScale9Sprite::create((cocos2d::extension::CCScale9Sprite *)"square02d_001.png", v50);
v52 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v51 + 160);
v53 = (*(int (__fastcall **)(int))(*(_DWORD *)v25 + 164))(v25);
cocos2d::CCSize::CCSize(
(cocos2d::CCSize *)v159,
(float)(v49 * 0.95) * 1.1,
(float)(*(float *)(v53 + 4) + 6.0) * 1.1);
v52(v51, v159);
v54 = (float)(v30 + 6.0) * 0.5;
v55 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v51 + 92);
v56 = v49 * 0.5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, v56, v54);
v55(v51, v159);
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v51 + 480))(v51, &unk_BF0A68);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v51 + 36))(v51, 91);
v58 = cocos2d::extension::CCScale9Sprite::create((cocos2d::extension::CCScale9Sprite *)"square02b_001.png", v57);
v148 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v58 + 160);
v59 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v51 + 164))(v51);
v60 = (*(float (__fastcall **)(int))(*(_DWORD *)v51 + 164))(v51);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v159, v59 + 4.0, *(float *)(LODWORD(v60) + 4) + 4.0);
v148(v58, v159);
v149 = *(void (__fastcall **)(int, int))(*(_DWORD *)v58 + 92);
v61 = (*(int (__fastcall **)(int))(*(_DWORD *)v51 + 96))(v51);
v149(v58, v61);
(*(void (__fastcall **)(cocos2d::CCObject *, int, _DWORD))(*(_DWORD *)v14 + 232))(v14, v58, 0);
(*(void (__fastcall **)(cocos2d::CCObject *, int, int))(*(_DWORD *)v14 + 232))(v14, v51, 1);
v62 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v36 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, 0.0, 0.5);
v62(v36, v159);
v63 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v36 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, 7.5, v54 + 0.5);
v63(v36, v159);
(*(void (__fastcall **)(cocos2d::CCObject *, int, int))(*(_DWORD *)v14 + 232))(v14, v36, 2);
v64 = (float)(v44 * 0.5) + 7.5;
v65 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v25 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, 0.0, 0.5);
v65(v25, v159);
v66 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v25 + 92);
v67 = (float)(v44 + 3.0) + 8.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, v67, v54 + 0.75);
v66(v25, v159);
(*(void (__fastcall **)(cocos2d::CCObject *, int, int))(*(_DWORD *)v14 + 232))(v14, v25, 2);
v68 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v146 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, 0.0, 0.5);
v68(v146, v159);
v69 = v67 + (float)(v31 + 14.0);
v70 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v146 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, v69 - 2.5, v54);
v70(v146, v159);
(*(void (__fastcall **)(cocos2d::CCObject *, int, int))(*(_DWORD *)v14 + 232))(v14, v146, 2);
v71 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v29 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, 0.0, 0.5);
v71(v29, v159);
v72 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v29 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, v69 + (float)(v48 + 3.0), v54 + 0.75);
v72(v29, v159);
(*(void (__fastcall **)(cocos2d::CCObject *, int, int))(*(_DWORD *)v14 + 232))(v14, v29, 2);
if ( !*(_DWORD *)(a2 + 56) && !*(_DWORD *)(a2 + 60) )
{
LABEL_31:
if ( *(int *)(a2 + 52) > 0 )
{
v74 = (float)(v30 * 0.6) * 1.1;
v75 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_starsIcon_001.png", v73);
v76 = v74 + 13.2;
v77 = v74 / *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v75 + 164))(v75) + 4);
v78 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v75 + 164))(v75);
v79 = ((__int64 (__fastcall *)(int))*(_DWORD *)(*(_DWORD *)v51 + 164))(v51);
v80 = v77 * v78;
v81 = v54 + (float)(*(float *)(v79 + 4) * 0.5);
v82 = cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"square04_001.png",
(const char *)HIDWORD(v79));
v83 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v82 + 160);
v84 = (float)((float)((float)((float)((float)(v80 * 5.0) + 11.0) + 17.6) * 1.05) * 1.2) * 0.9;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v159, v84 + v84, (float)(v76 + v76) + (float)(v76 + v76));
v83(v82, v159);
v85 = 0;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v82 + 80))(v82, 1056964608);
v86 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v82 + 480);
LOWORD(v159[0]) = 0;
BYTE2(v159[0]) = 0;
v86(v82, v159);
v87 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v82 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, v56, (float)(v81 - 6.0) - 2.0);
v87(v82, v159);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v82 + 36))(v82, 92);
v89 = cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"square04_001.png",
v88);
v90 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v89 + 160);
v91 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v82 + 164))(v82);
v92 = (*(int (__fastcall **)(int))(*(_DWORD *)v82 + 164))(v82);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v159, v91 + 8.0, *(float *)(v92 + 4) + 8.0);
v90(v89, v159);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v89 + 80))(v89, 1056964608);
v93 = *(void (__fastcall **)(int, int))(*(_DWORD *)v89 + 92);
v94 = (*(int (__fastcall **)(int))(*(_DWORD *)v82 + 96))(v82);
v93(v89, v94);
(*(void (__fastcall **)(cocos2d::CCObject *, int, _DWORD))(*(_DWORD *)v14 + 232))(v14, v89, 0);
(*(void (__fastcall **)(cocos2d::CCObject *, int, _DWORD))(*(_DWORD *)v14 + 232))(v14, v82, 0);
v95 = v56 - (float)((float)((float)(v80 * 5.0) + 17.6) * 0.5);
while ( 1 )
{
(*(void (__fastcall **)(int, float))(*(_DWORD *)v75 + 80))(v75, COERCE_FLOAT(LODWORD(v77)));
v128 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v75 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, 0.0, 0.5);
v128(v75, v159);
v129 = v85++;
v130 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v75 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v159,
v95 + (float)((float)v129 * (float)(v80 + 4.4)),
(float)(v81 + (float)((float)(v76 - 6.0) * 0.5)) - 3.0);
v130(v75, v159);
(*(void (__fastcall **)(cocos2d::CCObject *, int, _DWORD))(*(_DWORD *)v14 + 232))(v14, v75, 0);
if ( v85 == 5 )
break;
if ( v85 >= *(_DWORD *)(a2 + 52) )
v132 = "GJ_starsIcon_gray_001.png";
else
v132 = "GJ_starsIcon_001.png";
v75 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v132, v131);
}
}
LABEL_77:
result = (cocos2d::CCNode *)cocos2d::CCObject::retain(v14);
*(_DWORD *)(a2 + 68) = v14;
return result;
}
for ( i = 0; ; ++i )
{
if ( i )
{
v96 = *(_DWORD *)(a2 + 60);
if ( v96 <= 0 )
goto LABEL_38;
v153 = (float)(v69 - 2.5) + (float)(v48 * 0.5);
v97 = "death_wallIcon_glow_001.png";
}
else
{
v96 = *(_DWORD *)(a2 + 56);
if ( v96 <= 0 )
continue;
v153 = v64;
v97 = "death_skullIcon_glow_001.png";
}
v98 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v97, v73);
v157 = 770;
v158 = 1;
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)v98 + 540))(v98, 770, 1);
v99 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v98 + 480);
v100 = *(unsigned __int8 *)(a1 + 325);
v101 = -1;
LOWORD(v159[0]) = -1;
if ( v100 )
v101 = 0;
BYTE2(v159[0]) = v101;
v99(v98, v159);
v102 = *(void (__fastcall **)(int, int))(*(_DWORD *)v98 + 80);
if ( i )
v103 = (*(int (__fastcall **)(int))(*(_DWORD *)v146 + 84))(v146);
else
v103 = (*(int (__fastcall **)(int))(*(_DWORD *)v36 + 84))(v36);
v102(v98, v103);
v151 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v98 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, v153, (float)(v30 + 6.0) * 0.5);
v151(v98, v159);
(*(void (__fastcall **)(cocos2d::CCObject *, int, int))(*(_DWORD *)v14 + 232))(v14, v98, 3);
if ( v96 != 1 )
{
v152 = 0;
v73 = "playerDash2_";
while ( 1 )
{
v154 = (cocos2d::CCSpriteFrameCache *)v73;
v160 = 0;
v161 = 0;
v162 = nullptr;
v104 = strlen(v73);
v105 = v154;
v106 = v104;
if ( v104 > 0xFFFFFFEF )
sub_38ABE8();
if ( v104 > 0xA )
{
v108 = (v104 + 16) & 0xFFFFFFF0;
v109 = (char *)operator new(v108);
v105 = v154;
v161 = v106;
v160 = v108 | 1;
v107 = v109;
v162 = v109;
}
else
{
v107 = (char *)&v160 + 1;
LOBYTE(v160) = 2 * v104;
}
std::char_traits::copy(v107, v105, v106);
v107[v106] = 0;
std::operator+(v163, (unsigned __int8 *)&v160, "001.png");
v111 = (v163[0] & 1) != 0 ? (cocos2d::CCSprite *)v163[2] : (cocos2d::CCSprite *)((char *)v163 + 1);
v112 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(v111, v110);
v113 = (cocos2d::CCAnimation *)std::string::~string((int)v163);
v114 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCAnimation::create(v113);
v115 = v114;
for ( j = 1; j != 13; ++j )
{
v155 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v114);
v117 = (unsigned __int8)v160 << 31;
if ( (v160 & 1) != 0 )
v118 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s%03d.png",
v162,
j,
v117);
else
v118 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s%03d.png",
(const char *)&v160 + 1,
j,
v117);
v119 = (const char *)cocos2d::CCString::getCString(v118);
v120 = (cocos2d::CCSpriteFrame *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v155, v119);
v114 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCAnimation::addSpriteFrame(v115, v120);
}
*((_DWORD *)v115 + 14) = 1032805417;
v122 = (cocos2d::CCRepeatForever *)cocos2d::CCAnimate::create(v115, v121);
v124 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v122, v123);
cocos2d::CCNode::runAction(v112, v124);
(*(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v112 + 180))(v112, 1119092736);
(*(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v112 + 64))(v112, 1055622431);
(*(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v112 + 72))(v112, 1061997773);
v125 = *(void (__fastcall **)(cocos2d::CCNode *, _DWORD *))(*(_DWORD *)v112 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v159, v153, v54 - 4.0);
v125(v112, v159);
if ( v152 )
{
v159[0] = 770;
v159[1] = 1;
(*(void (__fastcall **)(cocos2d::CCNode *, int, int))(*(_DWORD *)v112 + 540))(v112, 770, 1);
v127 = *(void (__fastcall **)(cocos2d::CCNode *, int *))(*(_DWORD *)v112 + 480);
LOWORD(v157) = -23041;
BYTE2(v157) = 0;
v127(v112, &v157);
}
else
{
v126 = *(void (__fastcall **)(cocos2d::CCNode *, _DWORD *))(*(_DWORD *)v112 + 480);
LOWORD(v159[0]) = 16639;
BYTE2(v159[0]) = 0;
v126(v112, v159);
}
(*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCNode *, int))(*(_DWORD *)v14 + 232))(v14, v112, 1);
std::string::~string((int)&v160);
v73 = "playerDash2_outline_";
if ( v152 )
break;
v152 = 1;
}
}
LABEL_38:
if ( i == 1 )
goto LABEL_31;
}
}
}
return result;
}