// // GJGarageLayer::init from 0x10039e838 to 0x10039fe64 (5676 bytes) // // 1 xrefs: // > @ 0x100943e08 // // 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:03:46 +0000 // bool __fastcall GJGarageLayer::init(__int64 a1) { _BOOL8 v2; // x0 _BOOL8 v3; // x19 __int64 v4; // x0 __int64 v5; // x0 float v6; // s10 float *v7; // x21 unsigned __int8 *v8; // x22 __int64 v9; // x0 float v10; // s9 __int64 v11; // x0 float v12; // s0 void *v13; // x22 __int64 v14; // x0 float v15; // s9 __int64 v16; // x0 float v17; // s0 unsigned __int8 *v18; // x21 __int64 v19; // x0 float v20; // s9 __int64 v21; // x0 float v22; // s0 __int64 v23; // x0 __int64 v24; // x0 const char *v25; // x3 void *v26; // x0 _QWORD *v27; // x21 float v28; // s9 __int64 v29; // x0 float v30; // s0 __int64 v31; // x0 __int64 v32; // x21 std::string *v33; // x0 __int64 v34; // x0 __int64 v35; // x0 _QWORD *v36; // x21 __int64 v37; // x0 __int64 (__fastcall ***v38)(_QWORD, _QWORD *); // x0 char v39; // w21 char *v40; // x1 void *v41; // x21 double *v42; // x0 double v43; // d0 float32x2_t *v44; // x22 double v45; // d0 _QWORD *v46; // x21 __int64 v47; // x0 char *v48; // x1 void *v49; // x21 float32x2_t *v50; // x22 double v51; // d0 void *v52; // x21 __int64 v53; // x0 __int64 v54; // x0 __n128 v55; // q0 __int64 v56; // x0 __int64 SpiderSprite; // x0 __int64 v58; // x22 __int64 v59; // x0 __n128 v60; // q0 __int64 v61; // x22 float32x2_t *v62; // x21 float v63; // s0 double v64; // d0 __int64 updated; // x0 __int64 v66; // x0 int v67; // w8 __int64 v68; // x21 __int64 v69; // x0 __int64 v70; // x1 __int64 v71; // x0 __int64 v72; // x2 __int64 v73; // x21 __int64 v74; // x0 __int64 v75; // x21 __int64 v76; // x0 __int64 v77; // x21 __int64 v78; // x0 __int64 v79; // x21 __int64 v80; // x0 __int64 v81; // x0 __int64 v82; // x0 __int64 v83; // x21 __int64 v84; // x0 void *v85; // x0 void *v86; // x21 __int64 v87; // x1 __int64 v88; // x2 __int64 v89; // x3 __int64 v90; // x4 __int64 v91; // x5 __int64 v92; // x6 __int64 v93; // x7 __int64 v94; // x22 __int64 v95; // x0 float v96; // s8 __int64 v97; // x0 float v98; // s0 void *v99; // x0 char *v100; // x23 double v101; // d0 void *v102; // x0 void *v103; // x23 __int64 v104; // x0 __int64 v105; // x1 float v106; // s0 void *v107; // x0 void *v108; // x23 __int64 v109; // x0 __int64 v110; // x1 float v111; // s0 void *v112; // x25 __int64 v113; // x0 float v114; // s10 __int64 v115; // x0 __int64 v116; // x1 __int64 v117; // x0 float v118; // s0 float v119; // s9 __int64 v120; // x0 float v121; // s0 __int64 v122; // x0 int v123; // w0 int Stat; // w0 void *v125; // x0 const char *CString; // x0 void *v127; // x26 float32x2_t *v128; // x27 double v129; // d0 void *v130; // x26 float32x2_t *v131; // x25 double v132; // d0 __int64 v133; // x0 int v134; // w0 int v135; // w0 void *v136; // x0 const char *v137; // x0 void *v138; // x25 float32x2_t *v139; // x27 double v140; // d0 void *v141; // x25 float32x2_t *v142; // x26 double v143; // d0 __int64 v144; // x0 int v145; // w0 int v146; // w0 void *v147; // x0 const char *v148; // x0 void *v149; // x26 float32x2_t *v150; // x27 double v151; // d0 void *v152; // x26 float32x2_t *v153; // x25 double v154; // d0 __int64 v155; // x0 int v156; // w0 int v157; // w0 void *v158; // x0 const char *v159; // x0 void *v160; // x25 float32x2_t *v161; // x27 double v162; // d0 void *v163; // x25 float32x2_t *v164; // x26 double v165; // d0 __int64 v166; // x0 int v167; // w0 int v168; // w0 void *v169; // x0 const char *v170; // x0 void *v171; // x26 float32x2_t *v172; // x27 double v173; // d0 void *v174; // x26 float32x2_t *v175; // x25 double v176; // d0 __int64 v177; // x0 int v178; // w0 int v179; // w0 void *v180; // x0 const char *v181; // x0 void *v182; // x25 float32x2_t *v183; // x27 double v184; // d0 void *v185; // x25 float32x2_t *v186; // x26 double v187; // d0 __int64 v188; // x0 int v189; // w0 int v190; // w0 void *v191; // x0 const char *v192; // x0 void *v193; // x23 float32x2_t *v194; // x24 double v195; // d0 __int64 v196; // x0 __int64 v197; // x0 void *v198; // x23 void *v199; // x23 __int64 v200; // x0 float v201; // s8 __int64 v202; // x0 float v203; // s0 void *v205[2]; // [xsp+8h] [xbp-118h] BYREF char v206; // [xsp+1Fh] [xbp-101h] void *v207[2]; // [xsp+20h] [xbp-100h] BYREF char v208; // [xsp+37h] [xbp-E9h] float32x2_t v209; // [xsp+38h] [xbp-E8h] BYREF void *__dst[2]; // [xsp+40h] [xbp-E0h] BYREF __int64 v211; // [xsp+50h] [xbp-D0h] void *v212[2]; // [xsp+60h] [xbp-C0h] BYREF char v213; // [xsp+77h] [xbp-A9h] std::string __p; // [xsp+78h] [xbp-A8h] BYREF __int64 v215; // [xsp+90h] [xbp-90h] BYREF v2 = cocos2d::CCLayer::init((_WORD *)a1); v3 = v2; if ( !v2 ) return v3; v4 = GameManager::sharedState(v2); *(_BYTE *)(v4 + 584) = 1; *(_DWORD *)(GameManager::sharedState(v4) + 708) = 0; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 1); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v5, &v215); v6 = *((float *)&v215 + 1); v7 = (float *)cocos2d::CCSprite::create((__int64)"GJ_gradientBG.png"); sub_1000262BC((float *)__dst, 0.0, 0.0); (*(void (__fastcall **)(float *, void **))(*(_QWORD *)v7 + 296LL))(v7, __dst); (*(void (__fastcall **)(__int64, float *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v7, 4294967294LL); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v7 + 128LL))(v7, (float)(*(float *)&v215 + 10.0) / v7[108]); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v7 + 144LL))(v7, (float)(*((float *)&v215 + 1) + 10.0) / v7[109]); sub_1000262BC((float *)__dst, -5.0, -5.0); (*(void (__fastcall **)(float *, void **))(*(_QWORD *)v7 + 184LL))(v7, __dst); BYTE2(__dst[0]) = -106; LOWORD(__dst[0]) = -26986; (*(void (__fastcall **)(float *, void **))(*(_QWORD *)v7 + 960LL))(v7, __dst); v8 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_sideArt_001.png"); sub_1000262BC((float *)__dst, 0.0, 1.0); (*(void (__fastcall **)(unsigned __int8 *, void **))(*(_QWORD *)v8 + 296LL))(v8, __dst); v9 = cocos2d::CCDirector::sharedDirector(); v10 = sub_100207EA8(v9) + -1.0; v11 = cocos2d::CCDirector::sharedDirector(); v12 = sub_100207E98(v11); sub_1000262BC((float *)__dst, v10, v12 + 1.0); (*(void (__fastcall **)(unsigned __int8 *, void **))(*(_QWORD *)v8 + 184LL))(v8, __dst); cocos2d::CCSprite::setFlipY(v8, 1); (*(void (__fastcall **)(__int64, unsigned __int8 *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v8, 0xFFFFFFFFLL); v13 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_sideArt_001.png"); sub_1000262BC((float *)__dst, 0.0, 0.0); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v13 + 296LL))(v13, __dst); v14 = cocos2d::CCDirector::sharedDirector(); v15 = sub_100207EA8(v14) + -1.0; v16 = cocos2d::CCDirector::sharedDirector(); v17 = sub_100207EA0(v16); sub_1000262BC((float *)__dst, v15, v17 + -1.0); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v13 + 184LL))(v13, __dst); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v13, 1); v18 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_sideArt_001.png"); sub_1000262BC((float *)__dst, 1.0, 0.0); (*(void (__fastcall **)(unsigned __int8 *, void **))(*(_QWORD *)v18 + 296LL))(v18, __dst); v19 = cocos2d::CCDirector::sharedDirector(); v20 = sub_100207EB0(v19) + 1.0; v21 = cocos2d::CCDirector::sharedDirector(); v22 = sub_100207EA0(v21); sub_1000262BC((float *)__dst, v20, v22 + -1.0); (*(void (__fastcall **)(unsigned __int8 *, void **))(*(_QWORD *)v18 + 184LL))(v18, __dst); cocos2d::CCSprite::setFlipX(v18, 1); v23 = (*(__int64 (__fastcall **)(__int64, unsigned __int8 *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v18, 1); v24 = GJAccountManager::sharedState(v23); if ( *(_DWORD *)(v24 + 352) == *(_DWORD *)(v24 + 356) ) v25 = "bigFont.fnt"; else v25 = "goldFont.fnt"; v26 = CCTextInputNode::create((__int64)"Player", (__int64)"Thonburi", 24, (__int64)v25, 180.0, 50.0); *(_QWORD *)(a1 + 464) = v26; (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v26, 20); v27 = *(_QWORD **)(a1 + 464); v27[73] = a1 + 408; v28 = *(float *)&v215 * 0.5; v29 = cocos2d::CCDirector::sharedDirector(); v30 = sub_100207E98(v29); sub_1000262BC((float *)__dst, v28, v30 + -34.0); (*(void (__fastcall **)(_QWORD *, void **))(*v27 + 184LL))(v27, __dst); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 464) + 576LL) + 344LL))( *(_QWORD *)(*(_QWORD *)(a1 + 464) + 576LL), 0); v31 = *(_QWORD *)(a1 + 464); *(_DWORD *)(v31 + 592) = 15; CCTextInputNode::setLabelPlaceholderColor(v31, 15772280); CCTextInputNode::setLabelPlaceholderScale(*(_QWORD *)(a1 + 464), 0.7); v32 = *(_QWORD *)(a1 + 464); sub_100009900(&__p, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"); v33 = CCTextInputNode::setAllowedChars(v32, &__p); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); v34 = GJAccountManager::sharedState(v33); if ( *(_DWORD *)(v34 + 352) == *(_DWORD *)(v34 + 356) ) { v35 = GameManager::sharedState(v34); if ( *(char *)(v35 + 655) < 0 ) { sub_1000097D0(__dst, *(void **)(v35 + 632), *(_QWORD *)(v35 + 640)); } else { *(_OWORD *)__dst = *(_OWORD *)(v35 + 632); v211 = *(_QWORD *)(v35 + 648); } sub_100009900(v207, ""); v38 = (__int64 (__fastcall ***)(_QWORD, _QWORD *))sub_1000045BC(__dst, v207); v39 = (char)v38; if ( v208 < 0 ) operator delete(v207[0]); if ( SHIBYTE(v211) < 0 ) { operator delete(__dst[0]); if ( (v39 & 1) != 0 ) goto LABEL_38; } else if ( (v39 & 1) != 0 ) { LABEL_38: if ( (*(_BYTE *)(GameManager::sharedState(v38) + 929) & 1) == 0 ) { v49 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_nameTxt_001.png"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v49); v50 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 464) + 192LL))(*(_QWORD *)(a1 + 464)); sub_1000262BC((float *)v207, 115.0, 10.0); *(float32x2_t *)&v51 = sub_100026318(v50, (float32x2_t *)v207, (float32x2_t *)__dst); (*(void (__fastcall **)(void *, void **, double))(*(_QWORD *)v49 + 184LL))(v49, __dst, v51); } goto LABEL_40; } v46 = *(_QWORD **)(a1 + 464); v47 = GameManager::sharedState(v38); if ( *(char *)(v47 + 655) < 0 ) { sub_1000097D0(__dst, *(void **)(v47 + 632), *(_QWORD *)(v47 + 640)); } else { *(_OWORD *)__dst = *(_OWORD *)(v47 + 632); v211 = *(_QWORD *)(v47 + 648); } if ( v211 >= 0 ) v48 = (char *)__dst; else v48 = (char *)__dst[0]; sub_100009900(v205, v48); v38 = CCTextInputNode::setString(v46, (__int64 *)v205); if ( v206 < 0 ) operator delete(v205[0]); if ( SHIBYTE(v211) < 0 ) operator delete(__dst[0]); goto LABEL_38; } v36 = *(_QWORD **)(a1 + 464); v37 = GJAccountManager::sharedState(v34); if ( *(char *)(v37 + 351) < 0 ) { sub_1000097D0(__dst, *(void **)(v37 + 328), *(_QWORD *)(v37 + 336)); } else { *(_OWORD *)__dst = *(_OWORD *)(v37 + 328); v211 = *(_QWORD *)(v37 + 344); } if ( v211 >= 0 ) v40 = (char *)__dst; else v40 = (char *)__dst[0]; sub_100009900(v212, v40); CCTextInputNode::setString(v36, (__int64 *)v212); if ( v213 < 0 ) operator delete(v212[0]); if ( SHIBYTE(v211) < 0 ) operator delete(__dst[0]); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 464) + 1000LL))(*(_QWORD *)(a1 + 464), 0); v41 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_lockGray_001.png"); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v41, 2); v42 = (double *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 464) + 600LL) + 328LL))(*(_QWORD *)(*(_QWORD *)(a1 + 464) + 600LL)); v43 = sub_100026438(__dst, v42); v44 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD, double))(**(_QWORD **)(a1 + 464) + 192LL))( *(_QWORD *)(a1 + 464), v43); sub_1000262BC((float *)&v209, (float)(*(float *)__dst * 0.5) + 8.0, 10.0); *(float32x2_t *)&v45 = sub_100026318(v44, &v209, (float32x2_t *)v207); (*(void (__fastcall **)(void *, void **, double))(*(_QWORD *)v41 + 184LL))(v41, v207, v45); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v41 + 160LL))(v41, 0.6); LABEL_40: v52 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"floorLine_001.png"); (*(void (__fastcall **)(__int64, void *, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, v52, 0); sub_1000262BC((float *)__dst, *(float *)&v215 * 0.5, (float)(v6 * 0.5) + 50.0); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v52 + 184LL))(v52, __dst); v53 = (*(__int64 (__fastcall **)(void *, __int64))(*(_QWORD *)v52 + 1080LL))(v52, 0x100000302LL); v54 = GameManager::sharedState(v53); v56 = SimplePlayer::create((unsigned int)(*(_DWORD *)(v54 + 716) - *(_DWORD *)(v54 + 720)), v55); *(_QWORD *)(a1 + 472) = v56; (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, v56, 0); SimplePlayer::createRobotSprite(*(_QWORD *)(a1 + 472), 1); SpiderSprite = SimplePlayer::createSpiderSprite(*(_QWORD *)(a1 + 472), 1); v58 = *(_QWORD *)(a1 + 472); v59 = GameManager::sharedState(SpiderSprite); v60.n128_u32[0] = 1.5; if ( *(_DWORD *)(v59 + 916) != 8 ) v60.n128_f32[0] = 1.6; (*(void (__fastcall **)(__int64, __n128))(*(_QWORD *)v58 + 160LL))(v58, v60); v61 = *(_QWORD *)(a1 + 472); v62 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v52 + 192LL))(v52); v63 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 472) + 168LL))(*(_QWORD *)(a1 + 472)); sub_1000262BC((float *)v207, 0.0, (float)((float)(v63 * 30.0) * 0.5) + 1.0); *(float32x2_t *)&v64 = sub_100026318(v62, (float32x2_t *)v207, (float32x2_t *)__dst); (*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v61 + 184LL))(v61, __dst, v64); updated = GJGarageLayer::updatePlayerColors(a1); v66 = GameManager::sharedState(updated); v67 = *(_DWORD *)(v66 + 916); if ( v67 > 4 ) { if ( v67 <= 6 ) { v73 = *(_QWORD *)(a1 + 472); if ( v67 == 5 ) { v81 = GameManager::sharedState(v66); v70 = (unsigned int)(*(_DWORD *)(v81 + 776) - *(_DWORD *)(v81 + 780)); v71 = v73; v72 = 5; } else { v74 = GameManager::sharedState(v66); v70 = (unsigned int)(*(_DWORD *)(v74 + 788) - *(_DWORD *)(v74 + 792)); v71 = v73; v72 = 6; } goto LABEL_59; } if ( v67 == 7 ) { v83 = *(_QWORD *)(a1 + 472); v84 = GameManager::sharedState(v66); v70 = (unsigned int)(*(_DWORD *)(v84 + 800) - *(_DWORD *)(v84 + 804)); v71 = v83; v72 = 7; goto LABEL_59; } if ( v67 == 8 ) { v77 = *(_QWORD *)(a1 + 472); v78 = GameManager::sharedState(v66); v70 = (unsigned int)(*(_DWORD *)(v78 + 884) - *(_DWORD *)(v78 + 888)); v71 = v77; v72 = 8; goto LABEL_59; } } else { if ( v67 > 2 ) { v75 = *(_QWORD *)(a1 + 472); if ( v67 == 3 ) { v82 = GameManager::sharedState(v66); v70 = (unsigned int)(*(_DWORD *)(v82 + 752) - *(_DWORD *)(v82 + 756)); v71 = v75; v72 = 3; } else { v76 = GameManager::sharedState(v66); v70 = (unsigned int)(*(_DWORD *)(v76 + 764) - *(_DWORD *)(v76 + 768)); v71 = v75; v72 = 4; } goto LABEL_59; } if ( v67 == 1 ) { v79 = *(_QWORD *)(a1 + 472); v80 = GameManager::sharedState(v66); v70 = (unsigned int)(*(_DWORD *)(v80 + 728) - *(_DWORD *)(v80 + 732)); v71 = v79; v72 = 1; goto LABEL_59; } if ( v67 == 2 ) { v68 = *(_QWORD *)(a1 + 472); v69 = GameManager::sharedState(v66); v70 = (unsigned int)(*(_DWORD *)(v69 + 740) - *(_DWORD *)(v69 + 744)); v71 = v68; v72 = 2; LABEL_59: SimplePlayer::updatePlayerFrame(v71, v70, v72); } } GJGarageLayer::setupIconSelect(a1); v85 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_03_001.png"); v86 = CCMenuItemSpriteExtra::create((__int64)v85, 0, a1, (__int64)GJGarageLayer::onBack, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v86, 1.6); v94 = sub_100270434((__int64)v86, v87, v88, v89, v90, v91, v92, v93, 0); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v94, 1); v95 = cocos2d::CCDirector::sharedDirector(); v96 = sub_100207EA8(v95) + 24.0; v97 = cocos2d::CCDirector::sharedDirector(); v98 = sub_100207E98(v97); sub_1000262BC((float *)__dst, v96, v98 + -23.0); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v94 + 184LL))(v94, __dst); v99 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"shopRope_001.png"); v100 = (char *)CCMenuItemSpriteExtra::create((__int64)v99, 0, a1, (__int64)GJGarageLayer::onShop, 0); sub_1002B0300((__int64)v100, 1); sub_1000262BC((float *)__dst, 0.0, -15.0); v101 = sub_10002630C(v100 + 468, (double *)__dst); *(_QWORD *)(v100 + 476) = 0x3E99999A3E99999ALL; (*(void (__fastcall **)(__int64, char *, double))(*(_QWORD *)v94 + 456LL))(v94, v100, v101); sub_1000262BC((float *)v207, (float)(*(float *)&v215 * 0.5) + -135.0, *((float *)&v215 + 1) + -25.0); cocos2d::CCNode::convertToNodeSpace(v94, (__int64)v207, __dst); (*(void (__fastcall **)(char *, void **))(*(_QWORD *)v100 + 184LL))(v100, __dst); v102 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_shardsBtn_001.png"); v103 = CCMenuItemSpriteExtra::create((__int64)v102, 0, a1, (__int64)sub_1003A126C, 0); v104 = (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)v94 + 456LL))(v94, v103); if ( *(_BYTE *)(AppDelegate::get(v104, v105) + 37) ) v106 = 55.0; else v106 = 30.0; sub_1000262BC((float *)v207, v106, *((float *)&v215 + 1) + -80.0); cocos2d::CCNode::convertToNodeSpace(v94, (__int64)v207, __dst); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v103 + 184LL))(v103, __dst); v107 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_paintBtn_001.png"); v108 = CCMenuItemSpriteExtra::create((__int64)v107, 0, a1, (__int64)sub_1003A1298, 0); v109 = (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)v94 + 456LL))(v94, v108); if ( *(_BYTE *)(AppDelegate::get(v109, v110) + 37) ) v111 = 55.0; else v111 = 30.0; sub_1000262BC((float *)v207, v111, *((float *)&v215 + 1) + -120.0); cocos2d::CCNode::convertToNodeSpace(v94, (__int64)v207, __dst); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v108 + 184LL))(v108, __dst); v112 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_starsIcon_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v112 + 160LL))(v112, 0.54); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v112); v113 = cocos2d::CCDirector::sharedDirector(); v114 = sub_100207EB0(v113) + -18.0; v117 = AppDelegate::get(v115, v116); v118 = 25.0; if ( !*(_BYTE *)(v117 + 37) ) v118 = 0.0; v119 = v114 - v118; v120 = cocos2d::CCDirector::sharedDirector(); v121 = sub_100207E98(v120); sub_1000262BC((float *)__dst, v119, v121 + -12.0); v122 = (*(__int64 (__fastcall **)(void *, void **))(*(_QWORD *)v112 + 184LL))(v112, __dst); v123 = GameStatsManager::sharedState(v122); Stat = GameStatsManager::getStat(v123, "6"); v125 = sub_1003065B0("%i", Stat); CString = (const char *)cocos2d::CCString::getCString((__int64)v125); v127 = cocos2d::CCLabelBMFont::create_1(CString, "bigFont.fnt"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v127); sub_1000262BC((float *)__dst, 1.0, 0.5); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v127 + 296LL))(v127, __dst); v128 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v112 + 192LL))(v112); sub_1000262BC((float *)v207, -12.0, 0.5); *(float32x2_t *)&v129 = sub_100026318(v128, (float32x2_t *)v207, (float32x2_t *)__dst); (*(void (__fastcall **)(void *, void **, double))(*(_QWORD *)v127 + 184LL))(v127, __dst, v129); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v127 + 160LL))(v127, 0.34); v130 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_moonsIcon_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v130 + 160LL))(v130, 0.54); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v130); v131 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v112 + 192LL))(v112); sub_1000262BC((float *)v207, 0.0, -15.0); *(float32x2_t *)&v132 = sub_100026318(v131, (float32x2_t *)v207, (float32x2_t *)__dst); v133 = (*(__int64 (__fastcall **)(void *, void **, double))(*(_QWORD *)v130 + 184LL))(v130, __dst, v132); v134 = GameStatsManager::sharedState(v133); v135 = GameStatsManager::getStat(v134, "28"); v136 = sub_1003065B0("%i", v135); v137 = (const char *)cocos2d::CCString::getCString((__int64)v136); v138 = cocos2d::CCLabelBMFont::create_1(v137, "bigFont.fnt"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v138); sub_1000262BC((float *)__dst, 1.0, 0.5); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v138 + 296LL))(v138, __dst); v139 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v130 + 192LL))(v130); sub_1000262BC((float *)v207, -12.0, 0.5); *(float32x2_t *)&v140 = sub_100026318(v139, (float32x2_t *)v207, (float32x2_t *)__dst); (*(void (__fastcall **)(void *, void **, double))(*(_QWORD *)v138 + 184LL))(v138, __dst, v140); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v138 + 160LL))(v138, 0.34); v141 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_coinsIcon_001.png"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v141); v142 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v130 + 192LL))(v130); sub_1000262BC((float *)v207, 0.0, -15.0); *(float32x2_t *)&v143 = sub_100026318(v142, (float32x2_t *)v207, (float32x2_t *)__dst); (*(void (__fastcall **)(void *, void **, double))(*(_QWORD *)v141 + 184LL))(v141, __dst, v143); v144 = (*(__int64 (__fastcall **)(void *, float))(*(_QWORD *)v141 + 160LL))(v141, 0.51); v145 = GameStatsManager::sharedState(v144); v146 = GameStatsManager::getStat(v145, "8"); v147 = sub_1003065B0("%i", v146); v148 = (const char *)cocos2d::CCString::getCString((__int64)v147); v149 = cocos2d::CCLabelBMFont::create_1(v148, "bigFont.fnt"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v149); sub_1000262BC((float *)__dst, 1.0, 0.5); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v149 + 296LL))(v149, __dst); v150 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v141 + 192LL))(v141); sub_1000262BC((float *)v207, -12.0, 0.5); *(float32x2_t *)&v151 = sub_100026318(v150, (float32x2_t *)v207, (float32x2_t *)__dst); (*(void (__fastcall **)(void *, void **, double))(*(_QWORD *)v149 + 184LL))(v149, __dst, v151); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v149 + 160LL))(v149, 0.34); v152 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_coinsIcon2_001.png"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v152); v153 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v141 + 192LL))(v141); sub_1000262BC((float *)v207, 0.0, -15.0); *(float32x2_t *)&v154 = sub_100026318(v153, (float32x2_t *)v207, (float32x2_t *)__dst); (*(void (__fastcall **)(void *, void **, double))(*(_QWORD *)v152 + 184LL))(v152, __dst, v154); v155 = (*(__int64 (__fastcall **)(void *, float))(*(_QWORD *)v152 + 160LL))(v152, 0.51); v156 = GameStatsManager::sharedState(v155); v157 = GameStatsManager::getStat(v156, "12"); v158 = sub_1003065B0("%i", v157); v159 = (const char *)cocos2d::CCString::getCString((__int64)v158); v160 = cocos2d::CCLabelBMFont::create_1(v159, "bigFont.fnt"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v160); sub_1000262BC((float *)__dst, 1.0, 0.5); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v160 + 296LL))(v160, __dst); v161 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v152 + 192LL))(v152); sub_1000262BC((float *)v207, -12.0, 0.5); *(float32x2_t *)&v162 = sub_100026318(v161, (float32x2_t *)v207, (float32x2_t *)__dst); (*(void (__fastcall **)(void *, void **, double))(*(_QWORD *)v160 + 184LL))(v160, __dst, v162); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v160 + 160LL))(v160, 0.34); v163 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"currencyOrbIcon_001.png"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v163); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v163 + 160LL))(v163, 0.54); v164 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v152 + 192LL))(v152); sub_1000262BC((float *)v207, 0.0, -15.0); *(float32x2_t *)&v165 = sub_100026318(v164, (float32x2_t *)v207, (float32x2_t *)__dst); v166 = (*(__int64 (__fastcall **)(void *, void **, double))(*(_QWORD *)v163 + 184LL))(v163, __dst, v165); v167 = GameStatsManager::sharedState(v166); v168 = GameStatsManager::getStat(v167, "14"); v169 = sub_1003065B0("%i", v168); v170 = (const char *)cocos2d::CCString::getCString((__int64)v169); v171 = cocos2d::CCLabelBMFont::create_1(v170, "bigFont.fnt"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v171); sub_1000262BC((float *)__dst, 1.0, 0.5); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v171 + 296LL))(v171, __dst); v172 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v163 + 192LL))(v163); sub_1000262BC((float *)v207, -12.0, 0.5); *(float32x2_t *)&v173 = sub_100026318(v172, (float32x2_t *)v207, (float32x2_t *)__dst); (*(void (__fastcall **)(void *, void **, double))(*(_QWORD *)v171 + 184LL))(v171, __dst, v173); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v171 + 160LL))(v171, 0.34); v174 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_diamondsIcon_001.png"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v174); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v174 + 160LL))(v174, 0.6); v175 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v163 + 192LL))(v163); sub_1000262BC((float *)v207, 0.0, -15.0); *(float32x2_t *)&v176 = sub_100026318(v175, (float32x2_t *)v207, (float32x2_t *)__dst); v177 = (*(__int64 (__fastcall **)(void *, void **, double))(*(_QWORD *)v174 + 184LL))(v174, __dst, v176); v178 = GameStatsManager::sharedState(v177); v179 = GameStatsManager::getStat(v178, "13"); v180 = sub_1003065B0("%i", v179); v181 = (const char *)cocos2d::CCString::getCString((__int64)v180); v182 = cocos2d::CCLabelBMFont::create_1(v181, "bigFont.fnt"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v182); sub_1000262BC((float *)__dst, 1.0, 0.5); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v182 + 296LL))(v182, __dst); v183 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v174 + 192LL))(v174); sub_1000262BC((float *)v207, -12.0, 0.5); *(float32x2_t *)&v184 = sub_100026318(v183, (float32x2_t *)v207, (float32x2_t *)__dst); (*(void (__fastcall **)(void *, void **, double))(*(_QWORD *)v182 + 184LL))(v182, __dst, v184); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v182 + 160LL))(v182, 0.34); v185 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"currencyDiamondIcon_001.png"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v185); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v185 + 160LL))(v185, 0.54); v186 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v174 + 192LL))(v174); sub_1000262BC((float *)v207, 0.0, -15.0); *(float32x2_t *)&v187 = sub_100026318(v186, (float32x2_t *)v207, (float32x2_t *)__dst); v188 = (*(__int64 (__fastcall **)(void *, void **, double))(*(_QWORD *)v185 + 184LL))(v185, __dst, v187); v189 = GameStatsManager::sharedState(v188); v190 = GameStatsManager::getStat(v189, "29"); v191 = sub_1003065B0("%i", v190); v192 = (const char *)cocos2d::CCString::getCString((__int64)v191); v193 = cocos2d::CCLabelBMFont::create_1(v192, "bigFont.fnt"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v193); sub_1000262BC((float *)__dst, 1.0, 0.5); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v193 + 296LL))(v193, __dst); v194 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v185 + 192LL))(v185); sub_1000262BC((float *)v207, -12.0, 0.5); *(float32x2_t *)&v195 = sub_100026318(v194, (float32x2_t *)v207, (float32x2_t *)__dst); (*(void (__fastcall **)(void *, void **, double))(*(_QWORD *)v193 + 184LL))(v193, __dst, v195); v196 = (*(__int64 (__fastcall **)(void *, float))(*(_QWORD *)v193 + 160LL))(v193, 0.34); v197 = GameManager::sharedState(v196); if ( *(_DWORD *)(v197 + 660) != *(_DWORD *)(v197 + 664) ) { v198 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_infoIcon_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v198 + 160LL))(v198, 0.8); v199 = CCMenuItemSpriteExtra::create((__int64)v198, 0, a1, (__int64)sub_1003A12F0, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v199, 2.0); v200 = cocos2d::CCDirector::sharedDirector(); v201 = sub_100207EB0(v200) + -15.0; v202 = cocos2d::CCDirector::sharedDirector(); v203 = sub_100207E98(v202); sub_1000262BC((float *)v207, v201, v203 + -15.0); cocos2d::CCNode::convertToNodeSpace(v94, (__int64)v207, __dst); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v199 + 184LL))(v199, __dst); } if ( (unsigned int)PlatformToolbox::isControllerConnected() ) GameToolbox::addBackButton(a1, (__int64)v86); return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source