// // ShardsPage::init from 0x1004486b4 to 0x100449bd4 (5408 bytes) // // 2 xrefs: // > sub_1004485F0 @ 0x100448668 // > @ 0x100964f90 // // 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 11:05:16 +0000 // __int64 __fastcall ShardsPage::init(_DWORD *a1) { __int64 v1; // x25 __int64 result; // x0 __int64 v3; // x0 void *v4; // x19 int i; // w20 unsigned __int8 *v6; // x21 int v7; // w8 int v8; // w8 float v9; // s0 float v10; // w8 void *v11; // x19 double v12; // d0 void *v13; // x19 double v14; // d0 void *v15; // x19 double v16; // d0 float *v17; // x0 __int64 v18; // x0 void *v19; // x0 void *v20; // x19 __int64 v21; // x1 __int64 v22; // x2 __int64 v23; // x3 __int64 v24; // x4 __int64 v25; // x5 __int64 v26; // x6 __int64 v27; // x7 __int64 v28; // x19 int v29; // w19 __int64 v30; // x20 _QWORD *v31; // x0 __int64 v32; // x0 __int64 v33; // x8 __int64 v34; // x0 __int64 v35; // x8 __int64 v36; // x0 __int64 v37; // x0 __int64 v38; // x0 __int64 v39; // x0 __int64 v40; // x0 __int64 v41; // x0 __int64 v42; // x0 __int64 v43; // x0 __int64 v44; // x8 int v45; // w8 int v46; // w8 std::string *v47; // x0 void *v48; // x22 double v49; // d0 __int64 v50; // x27 void *v51; // x0 const char *CString; // x0 void *v53; // x25 float32x2_t *v54; // x21 float *v55; // x0 double v56; // d0 std::string *v57; // x0 void *v58; // x22 float32x2_t *v59; // x21 double v60; // d0 int v61; // w24 float *v62; // x28 int *v63; // x26 _DWORD *v64; // x20 float v65; // s12 int v66; // w23 std::string *v67; // x8 void *v68; // x0 char *v69; // x0 __int64 v70; // x21 _QWORD **v71; // x22 void *v72; // x25 __int64 v73; // x0 float v74; // s15 __int64 v75; // x0 __int64 v76; // x21 void *v77; // x0 const char *v78; // x0 void *v79; // x25 double v80; // d0 std::string *v81; // x0 void *v82; // x22 float32x2_t *v83; // x21 double v84; // d0 void *v85; // x22 float *v86; // x0 __int64 v87; // x0 float v88; // s12 void *v89; // x22 double v90; // d0 float *v91; // x0 __int64 v92; // x0 __int64 v93; // x19 float v94; // s8 __int64 v95; // x1 float v96; // s11 void *v97; // x0 void *v98; // x0 __int64 v99; // x23 __int64 v100; // x0 float v101; // s0 unsigned __int8 *v102; // x22 void *v103; // x0 __int64 v104; // x21 __int64 v105; // x0 float v106; // s0 void *v107; // x0 __int64 v108; // x19 unsigned int v109; // [xsp+14h] [xbp-1CCh] int v110; // [xsp+28h] [xbp-1B8h] int v111; // [xsp+2Ch] [xbp-1B4h] unsigned __int64 v112; // [xsp+30h] [xbp-1B0h] void *v113; // [xsp+38h] [xbp-1A8h] __int64 v114; // [xsp+40h] [xbp-1A0h] __int64 v115; // [xsp+48h] [xbp-198h] int v116; // [xsp+54h] [xbp-18Ch] __int64 v117; // [xsp+58h] [xbp-188h] unsigned __int64 v118; // [xsp+60h] [xbp-180h] unsigned __int64 v119; // [xsp+68h] [xbp-178h] int Stat; // [xsp+70h] [xbp-170h] _QWORD *v121; // [xsp+78h] [xbp-168h] float32x2_t v122; // [xsp+80h] [xbp-160h] BYREF float32x2_t v123; // [xsp+88h] [xbp-158h] BYREF void *__p[2]; // [xsp+90h] [xbp-150h] BYREF __int64 v125; // [xsp+A0h] [xbp-140h] __int64 v126; // [xsp+A8h] [xbp-138h] BYREF void *v127[2]; // [xsp+B0h] [xbp-130h] BYREF __int64 v128; // [xsp+C0h] [xbp-120h] float32x2_t v129; // [xsp+C8h] [xbp-118h] BYREF float32x2_t v130; // [xsp+D0h] [xbp-110h] BYREF float32x2_t v131; // [xsp+D8h] [xbp-108h] BYREF std::string v132; // [xsp+E0h] [xbp-100h] BYREF __int16 v133; // [xsp+F8h] [xbp-E8h] BYREF char v134; // [xsp+FAh] [xbp-E6h] __int16 v135; // [xsp+FCh] [xbp-E4h] BYREF char v136; // [xsp+FEh] [xbp-E2h] std::string v137; // [xsp+100h] [xbp-E0h] BYREF std::string v138; // [xsp+118h] [xbp-C8h] BYREF float32x2_t v139; // [xsp+130h] [xbp-B0h] BYREF float32x2_t v140; // [xsp+138h] [xbp-A8h] BYREF __int64 v141; // [xsp+140h] [xbp-A0h] BYREF v1 = (__int64)a1; result = FLAlertLayer::init_1(a1, 150); if ( !(_DWORD)result ) return result; v109 = result; v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v3, &v141); sub_1000262CC((float *)&v138, 0.0, 0.0, 80.0, 80.0); v4 = cocos2d::extension::CCScale9Sprite::create((__int64)"GJ_square01.png", (__int64)&v138); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v4 + 912LL))(v4, 255); sub_1000262C4((float *)&v138, 420.0, 280.0); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v4 + 320LL))(v4, &v138); (*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(v1 + 584) + 464LL))( *(_QWORD *)(v1 + 584), v4, 0xFFFFFFFFLL); sub_1000262BC((float *)&v138, *(float *)&v141 * 0.5, *((float *)&v141 + 1) * 0.5); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v4 + 184LL))(v4, &v138); for ( i = 0; i != 4; ++i ) { v6 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"dailyLevelCorner_001.png"); (*(void (__fastcall **)(_QWORD, unsigned __int8 *, __int64))(**(_QWORD **)(v1 + 584) + 464LL))( *(_QWORD *)(v1 + 584), v6, 8); if ( i > 1 ) { if ( i != 2 ) { cocos2d::CCSprite::setFlipX(v6, 1); *(float *)&v7 = 185.0; goto LABEL_11; } cocos2d::CCSprite::setFlipX(v6, 1); cocos2d::CCSprite::setFlipY(v6, 1); *(float *)&v8 = 185.0; LABEL_9: v9 = *(float *)&v8; v10 = 115.0; goto LABEL_12; } if ( i ) { cocos2d::CCSprite::setFlipY(v6, 1); *(float *)&v8 = -185.0; goto LABEL_9; } *(float *)&v7 = -185.0; LABEL_11: v9 = *(float *)&v7; v10 = -115.0; LABEL_12: sub_1000262BC((float *)&v138, v9 + (float)(*(float *)&v141 * 0.5), v10 + (float)(*((float *)&v141 + 1) * 0.5)); (*(void (__fastcall **)(unsigned __int8 *, std::string *))(*(_QWORD *)v6 + 184LL))(v6, &v138); } sub_1000262BC((float *)&v140, *(float *)&v141 * 0.5, (float)((float)(*((float *)&v141 + 1) * 0.5) + 140.0) + -28.0); v11 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"label_shards_001.png"); sub_1000262BC((float *)&v137, -80.0, 0.0); *(float32x2_t *)&v12 = sub_100026318(&v140, (float32x2_t *)&v137, (float32x2_t *)&v138); (*(void (__fastcall **)(void *, std::string *, double))(*(_QWORD *)v11 + 184LL))(v11, &v138, v12); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v1 + 584) + 456LL))(*(_QWORD *)(v1 + 584), v11); v13 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"label_of_001.png"); sub_1000262BC((float *)&v137, 4.0, 0.0); *(float32x2_t *)&v14 = sub_100026318(&v140, (float32x2_t *)&v137, (float32x2_t *)&v138); (*(void (__fastcall **)(void *, std::string *, double))(*(_QWORD *)v13 + 184LL))(v13, &v138, v14); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v1 + 584) + 456LL))(*(_QWORD *)(v1 + 584), v13); v15 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"label_power_001.png"); sub_1000262BC((float *)&v137, 85.0, 0.0); *(float32x2_t *)&v16 = sub_100026318(&v140, (float32x2_t *)&v137, (float32x2_t *)&v138); (*(void (__fastcall **)(void *, std::string *, double))(*(_QWORD *)v15 + 184LL))(v15, &v138, v16); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v1 + 584) + 456LL))(*(_QWORD *)(v1 + 584), v15); v17 = sub_1000262BC((float *)&v139, *(float *)&v141 * 0.5, (float)(*((float *)&v141 + 1) * 0.5) + 80.0); v18 = cocos2d::CCDictionary::create(v17); *(_QWORD *)(v1 + 664) = v18; cocos2d::CCObject::retain(v18); v19 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_closeBtn_001.png"); v20 = CCMenuItemSpriteExtra::create((__int64)v19, 0, v1, (__int64)sub_100449CC8, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v20, 1.6); v28 = sub_100270434((__int64)v20, v21, v22, v23, v24, v25, v26, v27, 0); *(_QWORD *)(v1 + 552) = v28; sub_1000262BC( (float *)&v138, (float)((float)(*(float *)&v141 * 0.5) + -210.0) + 10.0, (float)((float)(*((float *)&v141 + 1) * 0.5) + 140.0) + -10.0); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v28 + 184LL))(v28, &v138); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(v1 + 584) + 464LL))( *(_QWORD *)(v1 + 584), *(_QWORD *)(v1 + 552), 10); v113 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"playerSquare_001.png"); v29 = 0; v110 = -1; v111 = -1; do { v30 = (unsigned __int8)v29 / 3u; cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(v1 + 664), v30); v121 = v31; if ( !v31 ) { v121 = sub_1002E736C(); cocos2d::CCDictionary::setObject_1(*(_QWORD *)(v1 + 664), v121, v30); } memset(&v138, 0, sizeof(v138)); memset(&v137, 0, sizeof(v137)); v136 = -1; v135 = -1; v134 = -1; v133 = -1; sub_100009900(&v132, ""); if ( v29 <= 5 ) { if ( v29 > 2 ) { if ( v29 == 3 ) { std::string::assign(&v138, "shadowShardLabel_001.png"); std::string::assign(&v137, "shadowShardSmall_001.png"); v40 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v40, "16"); v136 = -1; v135 = 25855; v134 = -1; v133 = 255; std::string::assign(&v132, "shardShadow"); v115 = 13107350; v33 = 16724735; } else if ( v29 == 4 ) { std::string::assign(&v138, "lavaShardLabel_001.png"); std::string::assign(&v137, "lavaShardSmall_001.png"); v36 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v36, "20"); v136 = 50; v135 = 13055; v134 = 0; v133 = 255; std::string::assign(&v132, "shardLava"); v115 = 175; v33 = 1651455; } else { std::string::assign(&v138, "bonusShardLabel_001.png"); std::string::assign(&v137, "bonusShardSmall_001.png"); std::string::assign(&v132, "shardBonus"); Stat = v111; v115 = 9868950; v33 = 0xFFFFFF; } } else if ( v29 ) { if ( v29 == 1 ) { std::string::assign(&v138, "iceShardLabel_001.png"); std::string::assign(&v137, "iceShardSmall_001.png"); v32 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v32, "19"); v136 = -1; v135 = -156; v134 = -1; v133 = -256; std::string::assign(&v132, "shardIce"); v115 = 16750080; v33 = 16776960; } else { std::string::assign(&v138, "poisonShardLabel_001.png"); std::string::assign(&v137, "poisonShardSmall_001.png"); v42 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v42, "17"); v136 = 75; v135 = -181; v134 = 0; v133 = -256; std::string::assign(&v132, "shardPoison"); v115 = 40960; v33 = 65280; } } else { std::string::assign(&v138, "fireShardLabel_001.png"); std::string::assign(&v137, "fireShardSmall_001.png"); v38 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v38, "18"); v136 = 0; v135 = -1; v134 = 0; v133 = -1; std::string::assign(&v132, "shardFire"); v115 = 19455; v33 = 51455; } v114 = v33; if ( Stat >= v111 ) v45 = v111; else v45 = Stat; if ( v111 == -1 ) v45 = Stat; v111 = v45; goto LABEL_52; } if ( v29 > 8 ) { if ( v29 == 9 ) { std::string::assign(&v138, "shard0204ShardLabel_001.png"); std::string::assign(&v137, "shard0204ShardSmall_001.png"); v41 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v41, "26"); std::string::assign(&v132, "shardLight"); v115 = 8387327; v35 = 12648447; goto LABEL_46; } if ( v29 != 10 ) { std::string::assign(&v138, "bonusShardLabel_001.png"); std::string::assign(&v137, "bonusShard2Small_001.png"); std::string::assign(&v132, "shardBonusB"); Stat = v110; v44 = 9868950; goto LABEL_45; } std::string::assign(&v138, "shard0205ShardLabel_001.png"); std::string::assign(&v137, "shard0205ShardSmall_001.png"); v37 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v37, "27"); std::string::assign(&v132, "shardSoul"); v115 = 9830500; v35 = 8192255; } else if ( v29 == 6 ) { std::string::assign(&v138, "shard0201ShardLabel_001.png"); std::string::assign(&v137, "shard0201ShardSmall_001.png"); v39 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v39, "23"); std::string::assign(&v132, "shardEarth"); v115 = 4612771; v35 = 10543357; } else { if ( v29 != 7 ) { std::string::assign(&v138, "shard0203ShardLabel_001.png"); std::string::assign(&v137, "shard0203ShardSmall_001.png"); v43 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v43, "25"); std::string::assign(&v132, "shardMetal"); v44 = 8421504; LABEL_45: v115 = v44; v35 = 0xFFFFFF; goto LABEL_46; } std::string::assign(&v138, "shard0202ShardLabel_001.png"); std::string::assign(&v137, "shard0202ShardSmall_001.png"); v34 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v34, "24"); std::string::assign(&v132, "shardBlood"); v115 = 150; v35 = 255; } LABEL_46: v114 = v35; if ( Stat >= v110 ) v46 = v110; else v46 = Stat; if ( v110 == -1 ) v46 = Stat; v110 = v46; LABEL_52: sub_1000262BC((float *)v127, 0.0, (float)(-3 * v30 + v29) * -77.0); sub_100026318(&v139, (float32x2_t *)v127, &v131); if ( (v138.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v47 = &v138; else v47 = (std::string *)v138.__r_.__value_.__r.__words[0]; v48 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v47); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v1 + 584) + 456LL))(*(_QWORD *)(v1 + 584), v48); sub_1000262BC((float *)&v130, -20.0, 0.0); *(float32x2_t *)&v49 = sub_100026318(&v131, &v130, (float32x2_t *)v127); (*(void (__fastcall **)(void *, void **, double))(*(_QWORD *)v48 + 184LL))(v48, v127, v49); sub_1002E74E0((__int64)v121); v50 = v1; v51 = sub_1003065B0("%i", Stat); CString = (const char *)cocos2d::CCString::getCString((__int64)v51); v53 = cocos2d::CCLabelBMFont::create_1(CString, "bigFont.fnt"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v53 + 160LL))(v53, 0.45); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v50 + 584) + 456LL))(*(_QWORD *)(v50 + 584), v53); sub_1000262BC((float *)v127, 0.0, 0.5); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v53 + 296LL))(v53, v127); v54 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v48 + 192LL))(v48); v55 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v48 + 328LL))(v48); sub_1000262BC((float *)&v130, (float)(*v55 * 0.5) + 5.0, 1.0); *(float32x2_t *)&v56 = sub_100026318(v54, &v130, (float32x2_t *)v127); (*(void (__fastcall **)(void *, void **, double))(*(_QWORD *)v53 + 184LL))(v53, v127, v56); sub_1002E74E0((__int64)v121); if ( (v137.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v57 = &v137; else v57 = (std::string *)v137.__r_.__value_.__r.__words[0]; v58 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v57); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v50 + 584) + 456LL))(*(_QWORD *)(v50 + 584), v58); sub_1000262BC((float *)v127, 0.0, 0.5); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v58 + 296LL))(v58, v127); v59 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v53 + 192LL))(v53); (*(void (__fastcall **)(float32x2_t *__return_ptr, void *))(*(_QWORD *)v53 + 336LL))(&v129, v53); sub_1000262BC((float *)&v130, v129.f32[0] + 2.0, 0.0); *(float32x2_t *)&v60 = sub_100026318(v59, &v130, (float32x2_t *)v127); (*(void (__fastcall **)(void *, void **, double))(*(_QWORD *)v58 + 184LL))(v58, v127, v60); sub_1002E74E0((__int64)v121); v116 = v29; v61 = -2; v62 = (float *)&unk_10076ED20; v63 = (int *)&unk_10076ED34; v64 = &algn_10076ECF6[6]; v1 = v50; do { if ( (unsigned int)(v61 + 3) > 5 ) { v66 = 0; v65 = -8.0; } else { v65 = *v62; v66 = *v63; } v67 = &v132; if ( (v132.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v67 = (std::string *)v132.__r_.__value_.__r.__words[0]; v68 = sub_1003065B0("geometry.ach.%s%02d", (const char *)v67, v61 + 3); v69 = (char *)cocos2d::CCString::getCString((__int64)v68); sub_100009900(v127, v69); v126 = 0; v70 = GameManager::sharedState(); if ( SHIBYTE(v128) < 0 ) { sub_1000097D0(__p, v127[0], (unsigned __int64)v127[1]); } else { *(_OWORD *)__p = *(_OWORD *)v127; v125 = v128; } sub_1003AFD0C(v70, (char *)__p, &v126, (int *)&v126 + 1); if ( SHIBYTE(v125) < 0 ) operator delete(__p[0]); if ( SHIDWORD(v126) >= 1 ) { v118 = v118 & 0xFFFFFFFFFF000000LL | v114; v119 = v119 & 0xFFFFFFFFFF000000LL | v115; v117 |= 0xFFFFFFuLL; v71 = (_QWORD **)GJItemIcon::create(HIDWORD(v126), (unsigned int)v126, v119, v118, 0, 0, 0); ((void (__fastcall *)(_QWORD **, float))(*v71)[20])(v71, 0.8); if ( Stat < v66 ) { GJItemIcon::changeToLockedState(v71, 1.25); v112 = v112 & 0xFFFFFFFFFF000000LL | 0x1D3057; GJItemIcon::darkenStoreItem((__int64)v71, v112); } v72 = CCMenuItemSpriteExtra::create((__int64)v71, 0, v1, (__int64)sub_100449D04, 0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v50 + 552) + 456LL))(*(_QWORD *)(v50 + 552), v72); v73 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v113 + 328LL))(v113); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v72 + 320LL))(v72, v73); v74 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v72 + 328LL))(v72); v75 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v72 + 328LL))(v72); sub_1000262BC((float *)&v130, v74 * 0.5, *(float *)(v75 + 4) * 0.5); ((void (__fastcall *)(_QWORD **, float32x2_t *))(*v71)[23])(v71, &v130); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v72 + 72LL))(v72, (unsigned int)v29); sub_1000262BC((float *)&v129, (float)v61 * 70.0, -30.0); sub_100026318(&v131, &v129, &v130); v76 = *(_QWORD *)(v50 + 552); cocos2d::CCNode::convertToWorldSpace(*(_QWORD *)(v50 + 584), (__int64)&v130, &v123); cocos2d::CCNode::convertToNodeSpace(v76, (__int64)&v123, &v129); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v72 + 184LL))(v72, &v129); sub_1002E74E0((__int64)v121); if ( Stat < v66 ) { v77 = sub_1003065B0("%i", v66); v78 = (const char *)cocos2d::CCString::getCString((__int64)v77); v79 = cocos2d::CCLabelBMFont::create_1(v78, "bigFont.fnt"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v79 + 160LL))(v79, 0.3); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v50 + 584) + 456LL))(*(_QWORD *)(v50 + 584), v79); sub_1000262BC((float *)&v129, 0.0, 0.5); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v79 + 296LL))(v79, &v129); sub_1000262BC((float *)&v123, v65, -22.0); *(float32x2_t *)&v80 = sub_100026318(&v130, &v123, &v129); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v79 + 184LL))(v79, &v129, v80); (*(void (__fastcall **)(void *, __int16 *))(*(_QWORD *)v79 + 1072LL))(v79, &v135); sub_1002E74E0((__int64)v121); if ( (v137.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v81 = &v137; else v81 = (std::string *)v137.__r_.__value_.__r.__words[0]; v82 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v81); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v50 + 584) + 456LL))(*(_QWORD *)(v50 + 584), v82); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v82 + 160LL))(v82, 0.7); sub_1000262BC((float *)&v129, 0.0, 0.5); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v82 + 296LL))(v82, &v129); v83 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v79 + 192LL))(v79); (*(void (__fastcall **)(float32x2_t *__return_ptr, void *))(*(_QWORD *)v79 + 336LL))(&v122, v79); sub_1000262BC((float *)&v123, v122.f32[0] + 2.0, 0.0); *(float32x2_t *)&v84 = sub_100026318(v83, &v123, &v129); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v82 + 184LL))(v82, &v129, v84); sub_1002E74E0((__int64)v121); } v1 = v50; if ( (unsigned int)(v61 + 3) >= 2 ) { sub_1000262BC((float *)&v123, -51.0, 0.0); sub_100026318(&v130, &v123, &v129); v85 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"whiteSquare20_001.png"); sub_1000262BC((float *)&v123, 0.0, 0.5); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v85 + 296LL))(v85, &v123); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v85 + 184LL))(v85, &v129); (*(void (__fastcall **)(_QWORD, void *, _QWORD))(**(_QWORD **)(v50 + 584) + 464LL))( *(_QWORD *)(v50 + 584), v85, 0); v86 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v85 + 328LL))(v85); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v85 + 128LL))(v85, 32.0 / *v86); v87 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v85 + 328LL))(v85); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v85 + 144LL))(v85, 5.0 / *(float *)(v87 + 4)); (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v85 + 960LL))(v85, &unk_10076ED10); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v85 + 912LL))(v85, 110); sub_1002E74E0((__int64)v121); v88 = fminf((float)(Stat - *v64) / (float)(v66 - *v64), 1.0); if ( v88 > 0.0 ) { v89 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"whiteSquare20_001.png"); sub_1000262BC((float *)&v123, 0.0, 0.5); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v89 + 296LL))(v89, &v123); sub_1000262BC((float *)&v122, 2.0, 0.0); *(float32x2_t *)&v90 = sub_100026318(&v129, &v122, &v123); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v89 + 184LL))(v89, &v123, v90); (*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(v50 + 584) + 464LL))( *(_QWORD *)(v50 + 584), v89, 1); v91 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v89 + 328LL))(v89); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v89 + 128LL))(v89, (float)(v88 * 28.0) / *v91); v92 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v89 + 328LL))(v89); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v89 + 144LL))(v89, 2.0 / *(float *)(v92 + 4)); (*(void (__fastcall **)(void *, __int16 *))(*(_QWORD *)v89 + 960LL))(v89, &v133); sub_1002E74E0((__int64)v121); } } } if ( SHIBYTE(v128) < 0 ) operator delete(v127[0]); ++v64; ++v61; ++v63; ++v62; } while ( v61 != 3 ); if ( SHIBYTE(v132.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v132.__r_.__value_.__l.__data_); if ( SHIBYTE(v137.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v137.__r_.__value_.__l.__data_); if ( SHIBYTE(v138.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v138.__r_.__value_.__l.__data_); ++v29; } while ( v116 != 11 ); v93 = cocos2d::CCMenu::create(); v94 = *((float *)&v141 + 1) * 0.5; if ( *(_BYTE *)(AppDelegate::get(v93, v95) + 37) ) v96 = 49.0; else v96 = 24.0; v97 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_01_001.png"); v98 = CCMenuItemSpriteExtra::create((__int64)v97, 0, v1, (__int64)sub_100449D3C, 0); *(_QWORD *)(v1 + 672) = v98; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v93 + 456LL))(v93, v98); v99 = *(_QWORD *)(v1 + 672); v100 = cocos2d::CCDirector::sharedDirector(); v101 = sub_100207EA8(v100); sub_1000262BC((float *)&v137, v96 + v101, v94); cocos2d::CCNode::convertToNodeSpace(v93, (__int64)&v137, &v138); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v99 + 184LL))(v99, &v138); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v1 + 672) + 72LL))(*(_QWORD *)(v1 + 672), 0); CCMenuItemSpriteExtra::setSizeMult(*(_QWORD *)(v1 + 672), 1.4); v102 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v102, 1); v103 = CCMenuItemSpriteExtra::create((__int64)v102, 0, v1, (__int64)sub_100449D3C, 0); *(_QWORD *)(v1 + 680) = v103; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v93 + 456LL))(v93, v103); v104 = *(_QWORD *)(v1 + 680); v105 = cocos2d::CCDirector::sharedDirector(); v106 = sub_100207EB0(v105); sub_1000262BC((float *)&v137, v106 - v96, v94); cocos2d::CCNode::convertToNodeSpace(v93, (__int64)&v137, &v138); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v104 + 184LL))(v104, &v138); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v1 + 680) + 72LL))(*(_QWORD *)(v1 + 680), 1); CCMenuItemSpriteExtra::setSizeMult(*(_QWORD *)(v1 + 680), 1.4); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v1 + 584) + 464LL))(*(_QWORD *)(v1 + 584), v93, 10); v107 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"tier1Icon_001.png"); *(_QWORD *)(v1 + 688) = v107; (*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(v1 + 584) + 464LL))(*(_QWORD *)(v1 + 584), v107, 10); v108 = *(_QWORD *)(v1 + 688); sub_1000262BC( (float *)&v138, (float)((float)(*(float *)&v141 * 0.5) + 210.0) + -18.0, (float)((float)(*((float *)&v141 + 1) * 0.5) + 140.0) + -18.0); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v108 + 184LL))(v108, &v138); sub_100449D7C(v1, 0); return v109; }
GD Web Decomp Icon

GD Web Decomp

Raw Source