// // DeathTrackerPopup::init from 0xcb3e78 to 0xcb5710 (6296 bytes) // // 2 xrefs: // > DeathTrackerPopup::create @ 0xcb5998 // > @ 0xeb900 // // 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:06:11 +0000 // __int64 __fastcall DeathTrackerPopup::init(DeathTrackerPopup *this, GJGameLevel *a2) { unsigned __int8 v4; // w20 int v6; // w3 char v7; // w2 char v8; // w1 char v9; // w0 int v10; // w2 int v11; // w0 int v12; // w28 int NormalPercent; // w0 __int64 v14; // x2 __int64 v15; // x2 cocos2d::CCDirector *v16; // x0 cocos2d::CCDirector *v17; // x0 cocos2d::CCLayer *v18; // x0 __int64 v19; // x0 __int64 v20; // x2 __int64 v21; // x20 void (__fastcall *v22)(__int64, void **); // x25 char v23; // w0 char *v24; // x19 const char *v25; // x2 __int64 v26; // x3 cocos2d::CCLabelBMFont *v27; // x0 cocos2d::CCLabelBMFont *v28; // x0 cocos2d::CCLabelBMFont *v29; // x19 void (__fastcall *v30)(cocos2d::CCLabelBMFont *, void **); // x20 cocos2d::CCMenu *v31; // x0 __int64 v32; // x0 __int64 v33; // x3 __int64 v34; // x19 __int64 v35; // x19 void (__fastcall *v36)(__int64, void **); // x20 float v37; // s8 const char *v38; // x2 __int64 v39; // x0 __int64 v40; // x19 void (__fastcall *v41)(__int64, void **); // x20 cocos2d::CCNode *v42; // x0 __int64 v43; // x19 void (__fastcall *v44)(__int64, void **); // x20 const char *v45; // x1 __int64 v46; // x20 void *v47; // x26 void (__fastcall *v48)(void *, void **); // x20 const char *v49; // x1 cocos2d::CCSprite *v50; // x19 void *v51; // x25 void (__fastcall *v52)(void *, void **); // x19 const char *v53; // x1 __int64 v54; // x20 void *v55; // x22 void (__fastcall *v56)(void *, void **); // x20 const char *v57; // x1 cocos2d::CCSprite *v58; // x19 void *v59; // x21 void (__fastcall *v60)(void *, void **); // x19 const char *v61; // x1 __int64 v62; // x19 void *v63; // x20 void (__fastcall *v64)(void *, void **); // x19 const char *v65; // x1 char *v66; // x0 char *v67; // x0 char *v68; // x0 char *v69; // x0 char *v70; // x0 cocos2d::CCNode *v71; // x0 char *v72; // x0 __int64 v73; // x19 __int64 v74; // x19 __int64 (__fastcall *v75)(__int64, void **); // x20 __int64 v76; // x19 float v77; // s1 void (__fastcall *v78)(__int64, void **); // x20 float v79; // s8 float v80; // s2 float v81; // s0 __int64 v82; // x19 void (__fastcall *v83)(__int64, void **); // x2 void (__fastcall *v84)(__int64, void **); // x21 __int64 v85; // x19 void (__fastcall *v86)(__int64, void **); // x21 void (__fastcall *v87)(__int64, void **); // x2 __int64 v88; // x19 float v89; // s4 void (__fastcall *v90)(__int64, void **); // x20 cocos2d::CCNode *v91; // x0 __int64 v92; // x19 float v93; // s1 float v94; // s8 void (__fastcall *v95)(__int64, void **); // x20 __int64 v96; // x19 float v97; // s4 void (__fastcall *v98)(__int64, void **); // x20 const char *v99; // x2 int v100; // w0 char *v101; // x0 __int64 v102; // x0 __int64 v103; // x19 void (__fastcall *v104)(__int64, void **); // x20 __int64 v105; // x0 __int64 v106; // x1 __int64 v107; // x19 void (__fastcall *v108)(__int64, void **); // x20 float v109; // s9 float v110; // s0 __int64 v111; // x0 void (__fastcall *v112)(__int64, void **); // x2 __int64 v113; // x19 void (__fastcall *v114)(__int64, void **); // x20 __int64 v115; // x19 float v116; // s4 void (__fastcall *v117)(__int64, void **); // x20 char *v118; // x22 int v119; // w27 __int64 v120; // x26 float v121; // s14 float v122; // s9 int v123; // w20 float v124; // s8 __int64 v125; // x19 void (__fastcall *v126)(__int64, void **); // x21 void (__fastcall *v127)(__int64, void **); // x2 void (__fastcall *v128)(__int64, void **); // x21 char *v129; // x1 __int64 v130; // x19 char **v131; // x0 char *v132; // x20 void (__fastcall *v133)(char *, float); // x21 __int64 v134; // x0 __int64 v135; // x20 int v136; // w21 void (__fastcall *v137)(__int64, void **); // x25 __int64 v138; // x19 __int64 v139; // x19 void (__fastcall *v140)(__int64, void **); // x20 __int64 v141; // x19 void (__fastcall *v142)(__int64, void **); // x20 __int64 v143; // x19 __int64 v144; // x20 int v145; // w20 __int64 v146; // x22 _DWORD *v147; // x1 _DWORD *v148; // x0 _DWORD *v149; // x1 _DWORD *v150; // x19 char *v151; // x0 int v152; // w0 int v153; // w0 int v154; // w0 float v155; // [xsp+A4h] [xbp+A4h] unsigned __int8 v156; // [xsp+ABh] [xbp+ABh] int v157; // [xsp+CCh] [xbp+CCh] BYREF __int64 v158; // [xsp+D0h] [xbp+D0h] BYREF float v159; // [xsp+D8h] [xbp+D8h] BYREF float v160; // [xsp+DCh] [xbp+DCh] _DWORD v161[4]; // [xsp+E0h] [xbp+E0h] void *v162; // [xsp+F0h] [xbp+F0h] BYREF _BYTE *v163; // [xsp+F8h] [xbp+F8h] __int64 v164; // [xsp+100h] [xbp+100h] __int64 v165; // [xsp+108h] [xbp+108h] BYREF __int64 v166; // [xsp+110h] [xbp+110h] cocos2d::CCLabelBMFont *v167; // [xsp+118h] [xbp+118h] __int64 v168[2]; // [xsp+120h] [xbp+120h] BYREF void *v169; // [xsp+130h] [xbp+130h] __int64 v170[2]; // [xsp+138h] [xbp+138h] BYREF void *v171; // [xsp+148h] [xbp+148h] void *v172; // [xsp+150h] [xbp+150h] BYREF char *v173; // [xsp+158h] [xbp+158h] _DWORD *v174; // [xsp+160h] [xbp+160h] char *v175; // [xsp+168h] [xbp+168h] BYREF char *v176; // [xsp+170h] [xbp+170h] char *v177; // [xsp+178h] [xbp+178h] void *v178; // [xsp+180h] [xbp+180h] BYREF _DWORD *v179; // [xsp+188h] [xbp+188h] unsigned __int64 v180; // [xsp+190h] [xbp+190h] LODWORD(v178) = -1778384896; v156 = cocos2d::CCLayerColor::initWithColor(this, &v178); v4 = v156; if ( !v156 ) return v156; *((_QWORD *)this + 85) = a2; DeathTrackerPopup::parseGlobal(this); v162 = nullptr; *((_DWORD *)this + 182) = dword_1548500; v6 = dword_155F06C; v7 = byte_155F070; v8 = byte_155F078; v9 = byte_1548504; *((_BYTE *)this + 732) = byte_155F068; *((_DWORD *)this + 185) = v6; *((_BYTE *)this + 744) = v7; *((_BYTE *)this + 977) = v8; *((_BYTE *)this + 986) = v9; v163 = nullptr; v164 = 0; if ( a2 ) GJGameLevel::dtExpandOrder((__int64)a2 + 1592, (__int64)&v162); v10 = *((unsigned __int8 *)this + 976); if ( !*((_BYTE *)this + 976) ) { *((_BYTE *)this + 920) = 0; if ( !a2 ) { *((_BYTE *)this + 920) = 0; LABEL_96: v12 = 0; v153 = *((unsigned __int8 *)this + 920); *((_DWORD *)this + 245) = *((_DWORD *)this + 182); if ( !v153 ) goto LABEL_16; goto LABEL_14; } LABEL_92: if ( dword_155F074 == *((_DWORD *)a2 + 82) - *((_DWORD *)a2 + 83) ) *((_BYTE *)this + 920) = byte_1548505; goto LABEL_10; } if ( (int)((v163 - (_BYTE *)v162) >> 2) > 2 ) { *((_BYTE *)this + 920) = 0; if ( !a2 ) { v12 = 0; *((_DWORD *)this + 245) = *((_DWORD *)this + 182); goto LABEL_16; } goto LABEL_92; } *((_BYTE *)this + 920) = 1; if ( !a2 ) goto LABEL_96; if ( dword_155F074 != *((_DWORD *)a2 + 82) - *((_DWORD *)a2 + 83) ) goto LABEL_12; *((_BYTE *)this + 920) = byte_1548505; LABEL_10: if ( !v10 ) *((_BYTE *)this + 920) = 0; LABEL_12: if ( *((_DWORD *)a2 + 285) == 2 ) { v154 = *((_DWORD *)this + 182); v12 = 1; *((_BYTE *)this + 920) = 0; *((_DWORD *)this + 245) = v154; goto LABEL_15; } v11 = *((unsigned __int8 *)this + 920); *((_DWORD *)this + 245) = *((_DWORD *)this + 182); if ( !v11 ) { v12 = 0; goto LABEL_15; } LABEL_14: *((_DWORD *)this + 182) = 0; v12 = 0; if ( a2 ) { LABEL_15: NormalPercent = GJGameLevel::getNormalPercent(a2); if ( dword_155F07C == *((_DWORD *)a2 + 82) - *((_DWORD *)a2 + 83) && NormalPercent > dword_1548508 ) goto LABEL_17; } LABEL_16: v4 = 0; LABEL_17: v14 = *(_QWORD *)this; *((_BYTE *)this + 984) = v4; *((_BYTE *)this + 985) = 1; (*(void (__fastcall **)(DeathTrackerPopup *, __int64))(v14 + 1168))(this, 4294967190LL); FLAlertLayer::incrementForcePrio(this); v15 = *(_QWORD *)this; *((_BYTE *)this + 596) = 1; (*(void (__fastcall **)(DeathTrackerPopup *))(v15 + 1000))(this); v16 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(DeathTrackerPopup *, __int64))(*(_QWORD *)this + 1072LL))( this, 1); v17 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v16); cocos2d::CCDirector::getWinSize(&v158, v17); v18 = (cocos2d::CCLayer *)cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v159, *(float *)&v158 * 0.5, *((float *)&v158 + 1) * 0.5); v19 = cocos2d::CCLayer::create(v18); v20 = *(_QWORD *)this; *((_QWORD *)this + 73) = v19; (*(void (__fastcall **)(DeathTrackerPopup *, __int64))(v20 + 456))(this, v19); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v178, 0.0, 0.0, 80.0, 80.0); v21 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", &v178); v22 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v21 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v178, 380.0, 280.0); v22(v21, &v178); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v21 + 184LL))(v21, &v159); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v21, 4294967294LL); if ( a2 ) { v23 = *((_BYTE *)a2 + 344); v165 = 0; v24 = (char *)a2 + 344; v166 = 0; v167 = nullptr; if ( (v23 & 1) != 0 ) { std::string::__init(&v165, *((void **)v24 + 2), *((_QWORD *)v24 + 1)); } else { v25 = *(const char **)v24; v26 = *((_QWORD *)v24 + 1); v27 = *((cocos2d::CCLabelBMFont **)v24 + 2); v165 = *(_QWORD *)v24; v166 = v26; v167 = v27; } } else { v165 = 0; v166 = 0; v167 = nullptr; std::string::__init(&v165, "Death Tracker", 0xDu); } v28 = (cocos2d::CCLabelBMFont *)((char *)&v165 + 1); if ( (v165 & 1) != 0 ) v28 = v167; v29 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v28, "bigFont.fnt", v25); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v29 + 160LL))(v29, 0.6); cocos2d::CCLabelBMFont::limitLabelWidth(v29, 310.0, 0.6, 0.3); v30 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v29 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, v159, (float)(v160 + 140.0) - 18.0); v30(v29, &v178); v31 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 73) + 456LL))( *((_QWORD *)this + 73), v29); v32 = cocos2d::CCMenu::create(v31); v33 = *((_QWORD *)this + 73); *((_QWORD *)this + 69) = v32; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v33 + 464LL))(v33, v32, 10); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 69) + 184LL))(*((_QWORD *)this + 69), &unk_155F060); *((_DWORD *)this + 160) = -1; v34 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_closeBtn_001.png", (const char *)0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v34 + 160LL))(v34, 0.76); v35 = CCMenuItemSpriteExtra::create(v34, 0, (__int64)this, (__int64)DeathTrackerPopup::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v35, 1.5); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v35); v36 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v35 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, (float)(v159 - 190.0) + 4.0, (float)(v160 + 140.0) - 8.0); v36(v35, &v178); v37 = (float)(v160 + 140.0) - 42.0; v39 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11B8890, "goldFont.fnt", v38); *((_QWORD *)this + 97) = v39; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v39 + 160LL))(v39, 0.5); v40 = *((_QWORD *)this + 97); v41 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v40 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, v159, v37); v41(v40, &v178); v42 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 97)); v43 = cocos2d::CCNode::create(v42); *((_QWORD *)this + 99) = v43; v44 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v43 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, v159, v37); v44(v43, &v178); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 99)); v46 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v45); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v46 + 160LL))(v46, 0.45); v47 = (void *)CCMenuItemSpriteExtra::create(v46, 0, (__int64)this, (__int64)DeathTrackerPopup::onPrevSession, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v47, 1.5); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v47); v48 = *(void (__fastcall **)(void *, void **))(*(_QWORD *)v47 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, v159 - 106.0, v37); v48(v47, &v178); v50 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_01_001.png", v49); (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v50 + 160LL))(v50, 0.45); cocos2d::CCSprite::setFlipX(v50, 1); v51 = (void *)CCMenuItemSpriteExtra::create( (__int64)v50, 0, (__int64)this, (__int64)DeathTrackerPopup::onNextSession, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v51, 1.5); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v51); v52 = *(void (__fastcall **)(void *, void **))(*(_QWORD *)v51 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, v159 + 106.0, v37); v52(v51, &v178); v54 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v53); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v54 + 160LL))(v54, 0.45); v55 = (void *)CCMenuItemSpriteExtra::create(v54, 0, (__int64)this, (__int64)DeathTrackerPopup::onJumpSummary, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v55, 1.5); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v55); v56 = *(void (__fastcall **)(void *, void **))(*(_QWORD *)v55 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, v159 - 136.0, v37); v56(v55, &v178); v58 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_03_001.png", v57); (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v58 + 160LL))(v58, 0.45); cocos2d::CCSprite::setFlipX(v58, 1); v59 = (void *)CCMenuItemSpriteExtra::create( (__int64)v58, 0, (__int64)this, (__int64)DeathTrackerPopup::onJumpCurrent, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v59, 1.5); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v59); v60 = *(void (__fastcall **)(void *, void **))(*(_QWORD *)v59 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, v159 + 136.0, v37); v60(v59, &v178); v62 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"dtrackBtn_search_001.png", v61); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v62 + 160LL))(v62, 0.8); v63 = (void *)CCMenuItemSpriteExtra::create(v62, 0, (__int64)this, (__int64)DeathTrackerPopup::onJumpSession, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v63, 1.5); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v63); v64 = *(void (__fastcall **)(void *, void **))(*(_QWORD *)v63 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, v159 + 168.0, v37); v64(v63, &v178); *((_QWORD *)this + 117) = v63; v65 = *((const char **)this + 129); v178 = v47; v66 = *((char **)this + 128); if ( v66 >= v65 ) { std::vector::__push_back_slow_path((__int64)this + 1016, &v178); v67 = *((char **)this + 128); v65 = *((const char **)this + 129); v178 = v51; if ( v67 < v65 ) goto LABEL_26; LABEL_109: std::vector::__push_back_slow_path((__int64)this + 1016, &v178); v68 = *((char **)this + 128); v65 = *((const char **)this + 129); v178 = v55; if ( v68 < v65 ) goto LABEL_29; LABEL_110: std::vector::__push_back_slow_path((__int64)this + 1016, &v178); v69 = *((char **)this + 128); v65 = *((const char **)this + 129); v178 = v59; if ( v69 < v65 ) goto LABEL_32; goto LABEL_111; } if ( v66 ) { *(_QWORD *)v66 = v47; v66 = *((char **)this + 128); v65 = *((const char **)this + 129); } v67 = v66 + 8; v178 = v51; *((_QWORD *)this + 128) = v67; if ( v67 >= v65 ) goto LABEL_109; LABEL_26: if ( v67 ) { *(_QWORD *)v67 = v51; v67 = *((char **)this + 128); v65 = *((const char **)this + 129); } v68 = v67 + 8; v178 = v55; *((_QWORD *)this + 128) = v68; if ( v68 >= v65 ) goto LABEL_110; LABEL_29: if ( v68 ) { *(_QWORD *)v68 = v55; v68 = *((char **)this + 128); v65 = *((const char **)this + 129); } v69 = v68 + 8; v178 = v59; *((_QWORD *)this + 128) = v69; if ( v69 < v65 ) { LABEL_32: if ( v69 ) { *(_QWORD *)v69 = v59; v69 = *((char **)this + 128); v65 = *((const char **)this + 129); } v70 = v69 + 8; v178 = v63; *((_QWORD *)this + 128) = v70; if ( v70 < v65 ) goto LABEL_35; goto LABEL_112; } LABEL_111: std::vector::__push_back_slow_path((__int64)this + 1016, &v178); v70 = *((char **)this + 128); v65 = *((const char **)this + 129); v178 = v63; if ( v70 < v65 ) { LABEL_35: if ( v70 ) { *(_QWORD *)v70 = v63; v70 = *((char **)this + 128); } v71 = (cocos2d::CCNode *)(v70 + 8); *((_QWORD *)this + 128) = v71; goto LABEL_38; } LABEL_112: std::vector::__push_back_slow_path((__int64)this + 1016, &v178); LABEL_38: if ( !v12 ) { if ( *((_BYTE *)this + 920) ) v72 = "dtrackBtn_local_001.png"; else v72 = "dtrackBtn_global_001.png"; v73 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v72, v65); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v73 + 160LL))(v73, 0.8); *((_QWORD *)this + 116) = v73; v74 = CCMenuItemSpriteExtra::create(v73, 0, (__int64)this, (__int64)DeathTrackerPopup::onToggleGlobal, 0); CCMenuItemSpriteExtra::setSizeMult(v74, 1.5); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v74); v75 = *(__int64 (__fastcall **)(__int64, void **))(*(_QWORD *)v74 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, v159 - 168.0, v37); v71 = (cocos2d::CCNode *)v75(v74, &v178); } v76 = cocos2d::CCNode::create(v71); v77 = v160; *((_QWORD *)this + 98) = v76; v78 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v76 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, v159, (float)(v77 + 140.0) - 62.0); v78(v76, &v178); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 98)); v79 = (float)(v160 + 140.0) - 74.0; v80 = (float)(v160 - 140.0) + 58.0; v81 = v159; *((_DWORD *)this + 174) = 1135542272; *((float *)this + 175) = v79 - v80; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, v81, (float)(v79 + v80) * 0.5); cocos2d::CCPoint::operator=((char *)this + 704, &v178); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v178, 0.0, 0.0, 80.0, 80.0); v82 = cocos2d::extension::CCScale9Sprite::create("GJ_square06.png", &v178); v83 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v82 + 960LL); qmemcpy(&v178, "h:#", 3); v83(v82, &v178); v84 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v82 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v178, *((float *)this + 174), *((float *)this + 175)); v84(v82, &v178); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v82 + 184LL))(v82, (char *)this + 704); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v82, 0xFFFFFFFFLL); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v178, 0.0, 0.0, 80.0, 80.0); v85 = cocos2d::extension::CCScale9Sprite::create("GJ_square07.png", &v178); v86 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v85 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v178, *((float *)this + 174), *((float *)this + 175)); v86(v85, &v178); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v85 + 184LL))(v85, (char *)this + 704); v87 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v85 + 960LL); LOWORD(v178) = -21761; BYTE2(v178) = 85; v87(v85, &v178); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v85 + 912LL))(v85, 100); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v85, 6); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v178, *((float *)this + 174), *((float *)this + 175)); v88 = ScrollableContentLayer::create((const cocos2d::CCSize *)&v178); v89 = *((float *)this + 174); *((_QWORD *)this + 86) = v88; v90 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v88 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v178, *((float *)this + 176) - (float)(v89 * 0.5), *((float *)this + 177) - (float)(*((float *)this + 175) * 0.5)); v90(v88, &v178); ScrollableContentLayer::setThumbOpacity(*((_QWORD *)this + 86), 0); v91 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 86), 1); v92 = cocos2d::CCNode::create(v91); v93 = *((float *)this + 176); *((_QWORD *)this + 100) = v92; v94 = v79 - 11.0; v95 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v92 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, v93 - (float)(*((float *)this + 174) * 0.5), v94); v95(v92, &v178); (*(void (__fastcall **)(_QWORD, bool))(**((_QWORD **)this + 100) + 344LL))( *((_QWORD *)this + 100), *((_DWORD *)this + 182) == 1); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 100), 5); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v178, *((float *)this + 174), *((float *)this + 175)); v96 = DeathHistogram::create((const cocos2d::CCSize *)&v178); v97 = *((float *)this + 174); *((_QWORD *)this + 89) = v96; v98 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v96 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v178, *((float *)this + 176) - (float)(v97 * 0.5), *((float *)this + 177) - (float)(*((float *)this + 175) * 0.5)); v98(v96, &v178); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 89), 1); v100 = *((_DWORD *)this + 182); if ( v100 ) { if ( v100 == 1 ) { v101 = "Death List"; } else if ( v100 == 2 ) { v101 = "Death History"; } else { v101 = "Progression"; } } else { v101 = "Death Distribution"; } v102 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v101, "goldFont.fnt", v99); *((_QWORD *)this + 101) = v102; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v102 + 160LL))(v102, 0.4); v103 = *((_QWORD *)this + 101); v104 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v103 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, v159, v94); v104(v103, &v178); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v178, 0.0, 0.0, 40.0, 40.0); v105 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", &v178); v106 = *((_QWORD *)this + 101); v107 = v105; *((_QWORD *)this + 102) = v105; v108 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v105 + 320LL); v109 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v106 + 328LL))(v106); v110 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 101) + 168LL))(*((_QWORD *)this + 101)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v178, (float)(v109 * v110) + 22.0, 18.0); v108(v107, &v178); v111 = *((_QWORD *)this + 102); v112 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v111 + 960LL); LOWORD(v178) = 6189; BYTE2(v178) = 14; v112(v111, &v178); v113 = *((_QWORD *)this + 102); v114 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v113 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, v159, v94); v114(v113, &v178); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 102), 5); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 101), 5); (*(void (__fastcall **)(_QWORD, bool))(**((_QWORD **)this + 102) + 344LL))( *((_QWORD *)this + 102), *((_DWORD *)this + 182) != 1); (*(void (__fastcall **)(_QWORD, bool))(**((_QWORD **)this + 101) + 344LL))( *((_QWORD *)this + 101), *((_DWORD *)this + 182) != 1); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v178, *((float *)this + 174), *((float *)this + 175)); v115 = DeathHistogram::create((const cocos2d::CCSize *)&v178); v116 = *((float *)this + 174); *((_QWORD *)this + 90) = v115; v117 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v115 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v178, *((float *)this + 176) - (float)(v116 * 0.5), *((float *)this + 177) - (float)(*((float *)this + 175) * 0.5)); v117(v115, &v178); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 90), 1); v161[0] = 4; v161[1] = 3; v161[2] = 2; v118 = (char *)this + 824; v119 = 0; v120 = 0; v121 = (float)(v159 - 190.0) + 10.0; v122 = (float)(v160 - 140.0) + 30.0; v155 = (float)((float)((float)((float)(v159 + 190.0) - 38.0) - v121) - (float)((float)((float)((float)(3.0 * 32.0) + 10.0) + (float)((float)((float)(4.0 * 32.0) + 10.0) + 0.0)) + 74.0)) * 0.5; do { v123 = v161[v120]; v124 = (float)((float)v123 * 32.0) + 10.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v178, 0.0, 0.0, 80.0, 80.0); v125 = cocos2d::extension::CCScale9Sprite::create("GJ_square06.png", &v178); v126 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v125 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v178, v124 * 1.5, 60.0); v126(v125, &v178); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v125 + 160LL))(v125, 0.66667); v127 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v125 + 960LL); qmemcpy(&v178, "h:#", 3); v127(v125, &v178); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v125 + 912LL))(v125, 4294967168LL); v128 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v125 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, v121 + (float)(v124 * 0.5), v122); v128(v125, &v178); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v125); *((_QWORD *)this + v120 + 112) = v125; if ( v123 > 0 ) { v130 = 0; do { while ( 1 ) { v175 = (char *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)(&off_13FB430[4 * v120])[v130], v129); v132 = v175; v133 = *(void (__fastcall **)(char *, float))(*(_QWORD *)v175 + 160LL); v134 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v175 + 328LL))(v175); v133(v132, 30.0 / *(float *)(v134 + 4)); v135 = CCMenuItemSpriteExtra::create( (__int64)v175, 0, (__int64)this, (__int64)DeathTrackerPopup::onPanelButton, 0); v136 = v130; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v135 + 72LL))(v135, (unsigned int)(v119 + v130)); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v135); v137 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v135 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v178, (float)((float)(v121 + 5.0) + (float)((float)(int)v130 * 32.0)) + 16.0, v122); v137(v135, &v178); v131 = *((char ***)v118 + 1); if ( *((char ***)v118 + 2) != v131 ) break; std::vector::__push_back_slow_path((__int64)v118, &v175); ++v130; if ( v161[v120] <= v136 + 1 ) goto LABEL_54; } v129 = v175; if ( v131 ) { *v131 = v175; v131 = *((char ***)v118 + 1); } *((_QWORD *)v118 + 1) = v131 + 1; ++v130; } while ( v161[v120] > v136 + 1 ); } LABEL_54: ++v120; v118 += 24; v119 += 10; v121 = v121 + (float)(v124 + v155); } while ( v120 != 3 ); v138 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn02_001.png", v129); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v138 + 160LL))(v138, 0.65); v139 = CCMenuItemSpriteExtra::create(v138, 0, (__int64)this, (__int64)DeathTrackerPopup::onOptions, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v139); v140 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v139 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, (float)(v159 + 190.0) - 20.0, v122); v140(v139, &v178); v168[0] = 0; v168[1] = 0; v169 = nullptr; std::string::__init(v168, "Death Tracker", 0xDu); v170[0] = 0; v170[1] = 0; v171 = nullptr; std::string::__init( v170, "Deaths are grouped into sessions.\n" "A new session starts after 30+ minutes away.\n" "Rate shows how deadly a spot is.\n" "Of the runs that reached it, the percent that died there.\n" "The 100 column counts completions.\n" "Startpos runs are tracked separately from full runs.\n" "Practice attempts and runs using cheats are not tracked.", 0x162u); v141 = InfoAlertButton::create((char *)v168, (char *)v170, 1.0); if ( (v170[0] & 1) != 0 ) { operator delete(v171); if ( (v168[0] & 1) == 0 ) goto LABEL_57; LABEL_107: operator delete(v169); goto LABEL_57; } if ( (v168[0] & 1) != 0 ) goto LABEL_107; LABEL_57: (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v141); v142 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v141 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v178, (float)(v159 + 190.0) - 8.0, (float)(v160 + 140.0) - 8.0); v142(v141, &v178); DeathTrackerPopup::parseSessions(this); DeathTrackerPopup::setView(this, *((_DWORD *)this + 182)); DeathTrackerPopup::refreshView(this); v143 = *((_QWORD *)this + 94); v144 = *((_QWORD *)this + 95); v172 = nullptr; v173 = nullptr; v174 = nullptr; v175 = nullptr; v145 = ((v144 - v143) >> 6) - 1; v176 = nullptr; v177 = nullptr; v178 = nullptr; v179 = nullptr; v180 = 0; if ( v145 >= 0 ) { v146 = (__int64)v145 << 6; v147 = nullptr; v148 = nullptr; while ( 1 ) { v150 = (_DWORD *)(v143 + v146); if ( v148 == v147 ) { std::vector::__push_back_slow_path((__int64)&v172, v150 + 15); } else { if ( v148 ) { *v148 = v150[15]; v148 = v173; } v173 = (char *)(v148 + 1); } v151 = v176; if ( v176 == v177 ) { std::vector::__push_back_slow_path((__int64)&v175, v150); } else { if ( v176 ) { *(_DWORD *)v176 = *v150; v151 = v176; } v176 = v151 + 4; } v149 = v179; v152 = ((__int64)(*((_QWORD *)this + 95) - *((_QWORD *)this + 94)) >> 6) - v145; v157 = v152; if ( (unsigned __int64)v179 < v180 ) { if ( v179 ) { *v179 = v152; v149 = v179; } --v145; v179 = v149 + 1; v146 -= 64; if ( v145 == -1 ) break; } else { std::vector::__push_back_slow_path(&v178, &v157); --v145; v146 -= 64; if ( v145 == -1 ) break; } v143 = *((_QWORD *)this + 94); v148 = v173; v147 = v174; } } DeathHistogram::setProgression(*((_QWORD *)this + 90), (int32x4_t **)&v172, (__int64 *)&v175, &v178); if ( v178 ) { if ( v178 != v179 ) v179 += ~((unsigned __int64)((char *)(v179 - 1) - (_BYTE *)v178) >> 2); operator delete(v178); } if ( v175 ) { if ( v175 != v176 ) v176 += 4 * ~((unsigned __int64)(v176 - 4 - v175) >> 2); operator delete(v175); } if ( v172 ) { if ( v172 != v173 ) v173 += 4 * ~((unsigned __int64)(v173 - 4 - (_BYTE *)v172) >> 2); operator delete(v172); } if ( (v165 & 1) != 0 ) operator delete(v167); if ( v162 ) { if ( v162 != v163 ) v163 += 4 * ~((unsigned __int64)(v163 - 4 - (_BYTE *)v162) >> 2); operator delete(v162); } return v156; }
GD Web Decomp Icon

GD Web Decomp

Raw Source