// // ShardsPage::init from 0x1004bff00 to 0x1004c16d7 (6103 bytes) // // 2 xrefs: // > sub_1004BFD00 @ 0x1004bfea0 // > @ 0x100b5b320 // // 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:31:06 +0000 // __int64 __fastcall ShardsPage::init(__int64 a1) { __int64 result; // rax __int64 v3; // rax void *v4; // rbx __int64 *v5; // rdi __int64 v6; // rax double v7; // xmm0_8 char *v8; // rbx double v9; // xmm0_8 unsigned __int8 *v10; // rbx double v11; // xmm0_8 unsigned __int8 *v12; // rbx double v13; // xmm0_8 unsigned __int8 *v14; // rbx double v15; // xmm0_8 char *v16; // r14 double v17; // xmm0_8 char *v18; // r14 double v19; // xmm0_8 char *v20; // r14 __int64 v21; // r12 double v22; // xmm0_8 _QWORD *v23; // rax char *v24; // rax void *v25; // rax int v26; // edx int v27; // ecx int v28; // r8d int v29; // r9d __int64 v30; // rbx double v31; // xmm0_8 unsigned int v32; // ebx __int64 v33; // rdi __int64 v34; // rax __int64 v35; // rdi __int64 v36; // rax __int64 v37; // rax __int64 v38; // rax __int64 v39; // rax __int64 v40; // rax __int64 v41; // rax __int64 v42; // rax int v43; // eax __int64 v44; // rax __int64 v45; // rax __int64 v46; // rax int v47; // eax std::string::pointer data; // rdi char *v49; // r14 __int64 v50; // rax __int64 CString; // rax __int64 v52; // r12 unsigned __int64 *v53; // rbx double v54; // xmm0_8 std::string::pointer v55; // rdi char *v56; // rbx unsigned __int64 *v57; // r14 int v58; // r12d __int64 v59; // rcx __int64 v60; // rax const char *v61; // rbx size_t v62; // rax size_t v63; // r14 char *v64; // r15 size_t v65; // r13 __int64 v66; // rbx char v67; // r13 char *v68; // rsi __int64 v69; // rdx unsigned __int64 v70; // rdi _QWORD *v71; // rbx char *v72; // r14 __int64 v73; // rax __int64 v74; // rax __int64 v75; // rbx __int64 v76; // rax __int64 v77; // rax __int64 v78; // r14 double v79; // xmm0_8 std::string::pointer v80; // rdi char *v81; // rbx unsigned __int64 *v82; // r15 char *v83; // rbx float *v84; // rax __int64 v85; // rax int v86; // eax double v87; // xmm0_8 char *v88; // r14 float *v89; // rax __int64 v90; // rax __int64 v91; // r14 char *v92; // rax void *v93; // rax __int64 v94; // r15 __int64 v95; // rax float v96; // xmm0_4 unsigned __int8 *v97; // rbx void *v98; // rax __int64 v99; // rbx __int64 v100; // rax float v101; // xmm0_4 double v102; // xmm0_8 char *v103; // rax __int64 v104; // rbx char v105; // [rsp+0h] [rbp-160h] unsigned __int64 v106; // [rsp+18h] [rbp-148h] BYREF unsigned __int64 v107; // [rsp+20h] [rbp-140h] BYREF char *v108; // [rsp+28h] [rbp-138h] __int128 v109; // [rsp+30h] [rbp-130h] BYREF void *__p; // [rsp+40h] [rbp-120h] unsigned __int64 v111; // [rsp+48h] [rbp-118h] BYREF __int64 v112; // [rsp+50h] [rbp-110h] unsigned __int64 v113; // [rsp+58h] [rbp-108h] BYREF unsigned int v114; // [rsp+60h] [rbp-100h] float v115; // [rsp+64h] [rbp-FCh] __int128 __dst; // [rsp+68h] [rbp-F8h] BYREF void *v117; // [rsp+78h] [rbp-E8h] unsigned __int64 v118; // [rsp+84h] [rbp-DCh] BYREF int v119; // [rsp+8Ch] [rbp-D4h] BYREF int v120; // [rsp+90h] [rbp-D0h] BYREF float v121; // [rsp+94h] [rbp-CCh] std::string v122; // [rsp+98h] [rbp-C8h] BYREF unsigned int v123; // [rsp+B4h] [rbp-ACh] int v124; // [rsp+B8h] [rbp-A8h] int v125; // [rsp+BCh] [rbp-A4h] std::string v126; // [rsp+C0h] [rbp-A0h] BYREF __int64 v127; // [rsp+D8h] [rbp-88h] std::string v128; // [rsp+E0h] [rbp-80h] BYREF unsigned __int64 v129; // [rsp+F8h] [rbp-68h] BYREF __int64 v130; // [rsp+100h] [rbp-60h] unsigned __int64 v131; // [rsp+10Ch] [rbp-54h] BYREF unsigned __int8 v132; // [rsp+117h] [rbp-49h] __int64 v133; // [rsp+118h] [rbp-48h] BYREF float v134; // [rsp+120h] [rbp-40h] int v135; // [rsp+124h] [rbp-3Ch] int v136; // [rsp+128h] [rbp-38h] __int16 v137; // [rsp+12Ch] [rbp-34h] BYREF char v138; // [rsp+12Eh] [rbp-32h] __int16 v139; // [rsp+130h] [rbp-30h] BYREF char v140; // [rsp+132h] [rbp-2Eh] int Stat; // [rsp+134h] [rbp-2Ch] result = FLAlertLayer::init_1((_BYTE *)a1, 150); if ( (_BYTE)result ) { v132 = result; v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v133, v3); sub_100278270((__int64)&v128, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u); v4 = cocos2d::extension::CCScale9Sprite::create_2((__int64)"GJ_square01.png", (unsigned __int64 *)&v128); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v4 + 912LL))(v4, 255); sub_100278260((float *)&v128, 420.0, 280.0); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v4 + 320LL))(v4, &v128); v5 = *(__int64 **)(a1 + 584); v6 = *v5; v124 = -1; (*(void (__fastcall **)(__int64 *, void *, __int64))(v6 + 464))(v5, v4, 0xFFFFFFFFLL); sub_100278250((float *)&v128, *(float *)&v133 * 0.5, *((float *)&v133 + 1) * 0.5); v7 = (*(double (__fastcall **)(void *, std::string *))(*(_QWORD *)v4 + 184LL))(v4, &v128); v8 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"dailyLevelCorner_001.png", v7); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v8, 8); sub_100278250( (float *)&v128, (float)(*(float *)&v133 * 0.5) + -185.0, (float)(*((float *)&v133 + 1) * 0.5) + -115.0); v9 = (*(double (__fastcall **)(char *, std::string *))(*(_QWORD *)v8 + 184LL))(v8, &v128); v10 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"dailyLevelCorner_001.png", v9); (*(void (__fastcall **)(_QWORD, unsigned __int8 *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v10, 8); cocos2d::CCSprite::setFlipY(v10, 1u); sub_100278250((float *)&v128, (float)(*(float *)&v133 * 0.5) + -185.0, (float)(*((float *)&v133 + 1) * 0.5) + 115.0); v11 = (*(double (__fastcall **)(unsigned __int8 *, std::string *))(*(_QWORD *)v10 + 184LL))(v10, &v128); v12 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"dailyLevelCorner_001.png", v11); (*(void (__fastcall **)(_QWORD, unsigned __int8 *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v12, 8); cocos2d::CCSprite::setFlipX(v12, 1u); cocos2d::CCSprite::setFlipY(v12, 1u); sub_100278250((float *)&v128, (float)(*(float *)&v133 * 0.5) + 185.0, (float)(*((float *)&v133 + 1) * 0.5) + 115.0); v13 = (*(double (__fastcall **)(unsigned __int8 *, std::string *))(*(_QWORD *)v12 + 184LL))(v12, &v128); v14 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"dailyLevelCorner_001.png", v13); (*(void (__fastcall **)(_QWORD, unsigned __int8 *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v14, 8); cocos2d::CCSprite::setFlipX(v14, 1u); sub_100278250((float *)&v128, (float)(*(float *)&v133 * 0.5) + 185.0, (float)(*((float *)&v133 + 1) * 0.5) + -115.0); (*(void (__fastcall **)(unsigned __int8 *, std::string *))(*(_QWORD *)v14 + 184LL))(v14, &v128); *(_QWORD *)&v15 = (unsigned int)v133; *(float *)&v15 = *(float *)&v133 * 0.5; sub_100278250((float *)&v106, *(float *)&v133 * 0.5, (float)((float)(*((float *)&v133 + 1) * 0.5) + 140.0) + -28.0); v16 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"label_shards_001.png", v15); sub_100278250((float *)&v126, -80.0, 0.0); sub_100278350((double *)&v128, &v106, (unsigned __int64 *)&v126); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v16 + 184LL))(v16, &v128); v17 = (*(double (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v16); v18 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"label_of_001.png", v17); sub_100278250((float *)&v126, 4.0, 0.0); v130 = a1; sub_100278350((double *)&v128, &v106, (unsigned __int64 *)&v126); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v18 + 184LL))(v18, &v128); v19 = (*(double (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v130 + 584) + 456LL))(*(_QWORD *)(v130 + 584), v18); v20 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"label_power_001.png", v19); sub_100278250((float *)&v126, 85.0, 0.0); sub_100278350((double *)&v128, &v106, (unsigned __int64 *)&v126); v21 = v130; (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v20 + 184LL))(v20, &v128); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v21 + 584) + 456LL))(*(_QWORD *)(v21 + 584), v20); *(_QWORD *)&v22 = (unsigned int)v133; *(float *)&v22 = *(float *)&v133 * 0.5; sub_100278250((float *)&v107, *(float *)&v133 * 0.5, (float)(*((float *)&v133 + 1) * 0.5) + 80.0); v23 = cocos2d::CCDictionary::create(); *(_QWORD *)(v21 + 664) = v23; cocos2d::CCObject::retain((__int64)v23); v24 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_closeBtn_001.png", v22); v25 = CCMenuItemSpriteExtra::create((__int64)v24, 0, v21, (__int64)ShardsPage::onClose, 0); LODWORD(v14) = (_DWORD)v25; CCMenuItemSpriteExtra::setSizeMult((__int64)v25, 1.6); v30 = sub_1008735E0((_DWORD)v14, 0, v26, v27, v28, v29); *(_QWORD *)(v21 + 552) = v30; sub_100278250( (float *)&v128, (float)((float)(*(float *)&v133 * 0.5) + -210.0) + 10.0, (float)((float)(*((float *)&v133 + 1) * 0.5) + 140.0) + -10.0); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v30 + 184LL))(v30, &v128); v31 = (*(double (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(v21 + 584) + 464LL))( *(_QWORD *)(v21 + 584), *(_QWORD *)(v21 + 552), 10); v108 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"playerSquare_001.png", v31); v125 = -1; v32 = 0; while ( 1 ) { v33 = *(_QWORD *)(v21 + 664); v127 = cocos2d::CCDictionary::objectForKey_1(v33, (unsigned __int8)v32 / 3u); if ( !v127 ) { v34 = sub_1007FE900(v33); v35 = *(_QWORD *)(v21 + 664); v127 = v34; cocos2d::CCDictionary::setObject_1(v35, v34, (unsigned __int8)v32 / 3u); } memset(&v128, 0, sizeof(v128)); memset(&v126, 0, sizeof(v126)); v138 = -1; v137 = -1; v140 = -1; v139 = -1; *(_WORD *)&v122.__r_.__value_.__l.0 = 0; v123 = v32; switch ( v32 ) { case 0u: std::string::assign(&v128, "fireShardLabel_001.png"); std::string::assign(&v126, "fireShardSmall_001.png"); v36 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v36, "18", (__m128)0LL); v138 = 0; v137 = -1; v140 = 0; v139 = -1; std::string::assign(&v122, "shardFire"); v135 = 51455; v136 = 19455; goto LABEL_16; case 1u: std::string::assign(&v128, "iceShardLabel_001.png"); std::string::assign(&v126, "iceShardSmall_001.png"); v42 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v42, "19", (__m128)0LL); v138 = -1; v137 = -156; v140 = -1; v139 = -256; std::string::assign(&v122, "shardIce"); v135 = 16776960; v136 = 16750080; goto LABEL_16; case 2u: std::string::assign(&v128, "poisonShardLabel_001.png"); std::string::assign(&v126, "poisonShardSmall_001.png"); v39 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v39, "17", (__m128)0LL); v138 = 75; v137 = -181; v140 = 0; v139 = -256; std::string::assign(&v122, "shardPoison"); v135 = 65280; v136 = 40960; goto LABEL_16; case 3u: std::string::assign(&v128, "shadowShardLabel_001.png"); std::string::assign(&v126, "shadowShardSmall_001.png"); v40 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v40, "16", (__m128)0LL); v138 = -1; v137 = 25855; v140 = -1; v139 = 255; std::string::assign(&v122, "shardShadow"); v135 = 16724735; v136 = 13107350; goto LABEL_16; case 4u: std::string::assign(&v128, "lavaShardLabel_001.png"); std::string::assign(&v126, "lavaShardSmall_001.png"); v37 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v37, "20", (__m128)0LL); v138 = 50; v137 = 13055; v140 = 0; v139 = 255; std::string::assign(&v122, "shardLava"); v135 = 1651455; v136 = 175; goto LABEL_16; case 5u: std::string::assign(&v128, "bonusShardLabel_001.png"); std::string::assign(&v126, "bonusShardSmall_001.png"); std::string::assign(&v122, "shardBonus"); v135 = 0xFFFFFF; v136 = 9868950; Stat = v124; LABEL_16: v43 = v124; if ( Stat < v124 ) v43 = Stat; if ( v124 == -1 ) v43 = Stat; v124 = v43; goto LABEL_29; case 6u: std::string::assign(&v128, "shard0201ShardLabel_001.png"); std::string::assign(&v126, "shard0201ShardSmall_001.png"); v44 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v44, "23", (__m128)0LL); std::string::assign(&v122, "shardEarth"); v135 = 10543357; v136 = 4612771; goto LABEL_24; case 7u: std::string::assign(&v128, "shard0202ShardLabel_001.png"); std::string::assign(&v126, "shard0202ShardSmall_001.png"); v41 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v41, "24", (__m128)0LL); std::string::assign(&v122, "shardBlood"); v135 = 255; v136 = 150; goto LABEL_24; case 8u: std::string::assign(&v128, "shard0203ShardLabel_001.png"); std::string::assign(&v126, "shard0203ShardSmall_001.png"); v46 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v46, "25", (__m128)0LL); std::string::assign(&v122, "shardMetal"); v135 = 0xFFFFFF; v136 = 8421504; goto LABEL_24; case 9u: std::string::assign(&v128, "shard0204ShardLabel_001.png"); std::string::assign(&v126, "shard0204ShardSmall_001.png"); v38 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v38, "26", (__m128)0LL); std::string::assign(&v122, "shardLight"); v135 = 12648447; v136 = 8387327; goto LABEL_24; case 0xAu: std::string::assign(&v128, "shard0205ShardLabel_001.png"); std::string::assign(&v126, "shard0205ShardSmall_001.png"); v45 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v45, "27", (__m128)0LL); std::string::assign(&v122, "shardSoul"); v135 = 8192255; v136 = 9830500; goto LABEL_24; case 0xBu: std::string::assign(&v128, "bonusShardLabel_001.png"); std::string::assign(&v126, "bonusShard2Small_001.png"); std::string::assign(&v122, "shardBonusB"); v135 = 0xFFFFFF; v136 = 9868950; Stat = v125; LABEL_24: v47 = v125; if ( Stat < v125 ) v47 = Stat; if ( v125 == -1 ) v47 = Stat; v125 = v47; LABEL_29: sub_100278250((float *)&__dst, 0.0, (float)(int)(v123 - 3 * ((unsigned __int8)v32 / 3u)) * -77.0); sub_100278350((double *)&v111, &v107, (unsigned __int64 *)&__dst); data = v128.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v128.__r_.__value_.__s.0 & 1) != 0 ) data = v128.__r_.__value_.__l.__data_; v49 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)data, 0.0); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v21 + 584) + 456LL))(*(_QWORD *)(v21 + 584), v49); sub_100278250((float *)&v118, -20.0, 0.0); sub_100278350((double *)&__dst, &v111, &v118); (*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v49 + 184LL))(v49, &__dst); sub_1007FEBF0(v127, v49); v50 = sub_10088E820("%i", v105); CString = cocos2d::CCString::getCString(v50); v52 = cocos2d::CCLabelBMFont::create_3(CString, "bigFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 160LL))(v52, 0.44999999); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v130 + 584) + 456LL))(*(_QWORD *)(v130 + 584), v52); sub_100278250((float *)&__dst, 0.0, 0.5); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v52 + 296LL))(v52, &__dst); v53 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v49 + 192LL))(v49); *(_QWORD *)&v54 = *(unsigned int *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v49 + 328LL))(v49); *(float *)&v54 = (float)(*(float *)&v54 * 0.5) + 5.0; sub_100278250((float *)&v118, *(float *)&v54, 1.0); sub_100278350((double *)&__dst, v53, &v118); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v52 + 184LL))(v52, &__dst); sub_1007FEBF0(v127, v52); v55 = v126.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v126.__r_.__value_.__s.0 & 1) != 0 ) v55 = v126.__r_.__value_.__l.__data_; v56 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v55, v54); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v130 + 584) + 456LL))(*(_QWORD *)(v130 + 584), v56); sub_100278250((float *)&__dst, 0.0, 0.5); (*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v56 + 296LL))(v56, &__dst); v57 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v52 + 192LL))(v52); (*(void (__fastcall **)(unsigned __int64 *, __int64))(*(_QWORD *)v52 + 336LL))(&v131, v52); sub_100278250((float *)&v118, *(float *)&v131 + 2.0, 0.0); sub_100278350((double *)&__dst, v57, &v118); (*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v56 + 184LL))(v56, &__dst); sub_1007FEBF0(v127, v56); v58 = -2; v59 = 0; break; } do { v134 = 0.0; v121 = -8.0; if ( (unsigned int)(v58 + 3) <= 5 ) { v121 = *(float *)((char *)&unk_100A0BEA0 + v59); v134 = *(float *)((char *)&unk_100A0BEB4 + v59); } v112 = v59; v114 = v58 + 3; v60 = sub_10088E820("geometry.ach.%s%02d", v105); v61 = (const char *)cocos2d::CCString::getCString(v60); v62 = strlen(v61); if ( v62 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v63 = v62; if ( v62 >= 0x17 ) { v65 = (v62 | 7) + 1; if ( (v62 | 7) == 0x17 ) v65 = 26; v64 = (char *)operator new(v65); v117 = v64; *(_QWORD *)&__dst = v65 | 1; *((_QWORD *)&__dst + 1) = v63; LABEL_44: memmove(v64, v61, v63); goto LABEL_45; } LOBYTE(__dst) = 2 * v62; v64 = (char *)&__dst + 1; if ( v62 ) goto LABEL_44; LABEL_45: v64[v63] = 0; v119 = 0; v120 = 0; v66 = GameManager::sharedState(); v67 = __dst & 1; if ( (__dst & 1) != 0 ) { sub_10001AD30(&v109, v117, *((unsigned __int64 *)&__dst + 1)); } else { __p = v117; v109 = __dst; } v68 = (char *)&v109; GameManager::getUnlockForAchievement(v66, (__int64)&v109, &v120, &v119); if ( (v109 & 1) != 0 ) operator delete(__p); v70 = (unsigned int)v119; if ( v119 > 0 ) { v71 = GJItemIcon::create(v119, v120, v136, v135, 0, 0, 0); (*(void (__fastcall **)(_QWORD *, float))(*v71 + 160LL))(v71, 0.80000001); if ( Stat < SLODWORD(v134) ) { GJItemIcon::changeToLockedState((_QWORD **)v71, COERCE_DOUBLE(1067450368)); GJItemIcon::darkenStoreItem((__int64)v71, 0x1D3057u); } v72 = (char *)CCMenuItemSpriteExtra::create((__int64)v71, 0, v130, (__int64)ShardsPage::onIconInfo, 0); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v130 + 552) + 456LL))(*(_QWORD *)(v130 + 552), v72); v73 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v108 + 328LL))(v108); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v72 + 320LL))(v72, v73); v115 = *(float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v72 + 328LL))(v72); v74 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v72 + 328LL))(v72); sub_100278250((float *)&v118, v115 * 0.5, *(float *)(v74 + 4) * 0.5); (*(void (__fastcall **)(_QWORD *, unsigned __int64 *))(*v71 + 184LL))(v71, &v118); (*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v72 + 72LL))(v72, v123); sub_100278250((float *)&v131, (float)v58 * 70.0, -30.0); sub_100278350((double *)&v118, &v111, &v131); v75 = *(_QWORD *)(v130 + 552); cocos2d::CCNode::convertToWorldSpace((double *)&v129, *(_QWORD *)(v130 + 584), (unsigned int *)&v118); cocos2d::CCNode::convertToNodeSpace((double *)&v131, v75, (unsigned int *)&v129); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v72 + 184LL))(v72, &v131); v70 = v127; v68 = v72; sub_1007FEBF0(v127, v72); if ( Stat < SLODWORD(v134) ) { v76 = sub_10088E820("%i", v105); v77 = cocos2d::CCString::getCString(v76); v78 = cocos2d::CCLabelBMFont::create_3(v77, "bigFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v78 + 160LL))(v78, 0.30000001); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v130 + 584) + 456LL))(*(_QWORD *)(v130 + 584), v78); sub_100278250((float *)&v131, 0.0, 0.5); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v78 + 296LL))(v78, &v131); *(_QWORD *)&v79 = LODWORD(v121); sub_100278250((float *)&v129, v121, -22.0); sub_100278350((double *)&v131, &v118, &v129); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v78 + 184LL))(v78, &v131); (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v78 + 1072LL))(v78, &v137); sub_1007FEBF0(v127, v78); v80 = v126.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v126.__r_.__value_.__s.0 & 1) != 0 ) v80 = v126.__r_.__value_.__l.__data_; v81 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v80, v79); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v130 + 584) + 456LL))(*(_QWORD *)(v130 + 584), v81); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v81 + 160LL))(v81, 0.69999999); sub_100278250((float *)&v131, 0.0, 0.5); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v81 + 296LL))(v81, &v131); v82 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v78 + 192LL))(v78); (*(void (__fastcall **)(unsigned __int64 *, __int64))(*(_QWORD *)v78 + 336LL))(&v113, v78); sub_100278250((float *)&v129, *(float *)&v113 + 2.0, 0.0); sub_100278350((double *)&v131, v82, &v129); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v81 + 184LL))(v81, &v131); v70 = v127; v68 = v81; sub_1007FEBF0(v127, v81); } if ( v114 >= 2 ) { sub_100278250((float *)&v129, -51.0, 0.0); sub_100278350((double *)&v131, &v118, &v129); v83 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"whiteSquare20_001.png", COERCE_DOUBLE(3259760640LL)); sub_100278250((float *)&v129, 0.0, 0.5); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v83 + 296LL))(v83, &v129); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v83 + 184LL))(v83, &v131); (*(void (__fastcall **)(_QWORD, char *, _QWORD))(**(_QWORD **)(v130 + 584) + 464LL))( *(_QWORD *)(v130 + 584), v83, 0); v84 = (float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v83 + 328LL))(v83); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v83 + 128LL))(v83, 32.0 / *v84); v85 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v83 + 328LL))(v83); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v83 + 144LL))(v83, 5.0 / *(float *)(v85 + 4)); (*(void (__fastcall **)(char *, void *))(*(_QWORD *)v83 + 960LL))(v83, &unk_100A0BE90); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v83 + 912LL))(v83, 110); v70 = v127; v68 = v83; sub_1007FEBF0(v127, v83); v86 = *(_DWORD *)((char *)&unk_100A0BE80 + v112 - 4); HIDWORD(v87) = 0; *(float *)&v87 = (float)(LODWORD(v134) - v86); v134 = fminf((float)(Stat - v86) / *(float *)&v87, 1.0); if ( v134 > 0.0 ) { v88 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"whiteSquare20_001.png", v87); sub_100278250((float *)&v129, 0.0, 0.5); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v88 + 296LL))(v88, &v129); sub_100278250((float *)&v113, 2.0, 0.0); sub_100278350((double *)&v129, &v131, &v113); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v88 + 184LL))(v88, &v129); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v130 + 584) + 464LL))( *(_QWORD *)(v130 + 584), v88, 1); v89 = (float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v88 + 328LL))(v88); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v88 + 128LL))(v88, (float)(v134 * 28.0) / *v89); v90 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v88 + 328LL))(v88); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v88 + 144LL))(v88, 2.0 / *(float *)(v90 + 4)); (*(void (__fastcall **)(char *, __int16 *))(*(_QWORD *)v88 + 960LL))(v88, &v139); v70 = v127; v68 = v88; sub_1007FEBF0(v127, v88); } } } if ( v67 ) { v70 = (unsigned __int64)v117; operator delete(v117); } v59 = v112 + 4; ++v58; } while ( v58 != 3 ); if ( (*(_BYTE *)&v122.__r_.__value_.__s.0 & 1) != 0 ) { v70 = v122.__r_.__value_.__r.__words[2]; operator delete(v122.__r_.__value_.__l.__data_); v21 = v130; if ( (*(_BYTE *)&v126.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_67; LABEL_64: if ( (*(_BYTE *)&v128.__r_.__value_.__s.0 & 1) != 0 ) { LABEL_68: v70 = v128.__r_.__value_.__r.__words[2]; operator delete(v128.__r_.__value_.__l.__data_); } } else { v21 = v130; if ( (*(_BYTE *)&v126.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_64; LABEL_67: v70 = v126.__r_.__value_.__r.__words[2]; operator delete(v126.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v128.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_68; } v32 = v123 + 1; if ( v123 == 11 ) { v91 = cocos2d::CCMenu::create(v70, v68, v69, v59); v134 = *((float *)&v133 + 1) * 0.5; v92 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_01_001.png", COERCE_DOUBLE(1056964608)); v93 = CCMenuItemSpriteExtra::create((__int64)v92, 0, v21, (__int64)ShardsPage::onSwitchPage, 0); *(_QWORD *)(v21 + 672) = v93; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v91 + 456LL))(v91, v93); v94 = *(_QWORD *)(v21 + 672); v95 = cocos2d::CCDirector::sharedDirector(); v96 = sub_100479760(v95); sub_100278250((float *)&v126, v96 + 24.0, v134); cocos2d::CCNode::convertToNodeSpace((double *)&v128, v91, (unsigned int *)&v126); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v94 + 184LL))(v94, &v128); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v21 + 672) + 72LL))(*(_QWORD *)(v21 + 672), 0); CCMenuItemSpriteExtra::setSizeMult(*(_QWORD *)(v21 + 672), 1.4); v97 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"GJ_arrow_01_001.png", COERCE_DOUBLE(1068708659)); cocos2d::CCSprite::setFlipX(v97, 1u); v98 = CCMenuItemSpriteExtra::create((__int64)v97, 0, v21, (__int64)ShardsPage::onSwitchPage, 0); *(_QWORD *)(v21 + 680) = v98; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v91 + 456LL))(v91, v98); v99 = *(_QWORD *)(v21 + 680); v100 = cocos2d::CCDirector::sharedDirector(); v101 = sub_100479770(v100); sub_100278250((float *)&v126, v101 + -24.0, v134); cocos2d::CCNode::convertToNodeSpace((double *)&v128, v91, (unsigned int *)&v126); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v99 + 184LL))(v99, &v128); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v21 + 680) + 72LL))(*(_QWORD *)(v21 + 680), 1); CCMenuItemSpriteExtra::setSizeMult(*(_QWORD *)(v21 + 680), 1.4); v102 = (*(double (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v21 + 584) + 464LL))( *(_QWORD *)(v21 + 584), v91, 10); v103 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"tier1Icon_001.png", v102); *(_QWORD *)(v21 + 688) = v103; (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v21 + 584) + 464LL))( *(_QWORD *)(v21 + 584), v103, 10); v104 = *(_QWORD *)(v21 + 688); sub_100278250( (float *)&v128, (float)((float)(*(float *)&v133 * 0.5) + 210.0) + -18.0, (float)((float)(0.5 * *((float *)&v133 + 1)) + 140.0) + -18.0); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v104 + 184LL))(v104, &v128); ShardsPage::goToPage(v21, 0); return v132; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source