// // MenuLayer::init from 0x1003038ac to 0x100304cc0 (5140 bytes) // // 2 xrefs: // > sub_1003037E4 @ 0x100303858 // > @ 0x10092a460 // // 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:07 +0000 // __int64 __fastcall MenuLayer::init(__int64 a1) { __int64 result; // x0 __int64 v3; // x0 __int64 v4; // x0 __int64 v5; // x0 __int64 v6; // x0 __int64 v7; // x0 double WinSize; // d0 __int64 v9; // x0 void *v10; // x19 float v11; // s8 __int64 v12; // x0 float v13; // s0 __int64 v14; // x21 void *v15; // x0 void *v16; // x23 void *v17; // x0 void *v18; // x22 float32x2_t *v19; // x19 double v20; // d0 __int64 v21; // x0 void *v22; // x0 __int64 v23; // x19 __int64 v24; // x0 double v25; // d0 void *v26; // x0 void *v27; // x25 float32x2_t *v28; // x19 double v29; // d0 __int64 v30; // x0 void *v31; // x19 __int64 v32; // x0 double v33; // d0 __int64 v34; // x0 float v35; // s9 __int64 v36; // x22 void *v37; // x19 void *v38; // x0 void *v39; // x19 void *v40; // x19 void *v41; // x0 __int64 v42; // x0 __int64 v43; // x0 void *v44; // x19 void *v45; // x0 __int64 v46; // x0 float v47; // s10 void *v48; // x19 void *v49; // x19 __int64 v50; // x1 __int64 v51; // x2 __int64 v52; // x3 __int64 v53; // x4 __int64 v54; // x5 __int64 v55; // x6 __int64 v56; // x7 __int64 v57; // x27 __int64 v58; // x0 float v59; // s0 void *v60; // x19 void *v61; // x19 void *v62; // x23 void *v63; // x26 void *v64; // x23 void *v65; // x28 void *v66; // x23 void *v67; // x23 void *v68; // x24 void *v69; // x24 __int64 v70; // x0 float v71; // s0 float32x2_t *v72; // x19 double v73; // d0 float32x2_t *v74; // x19 double v75; // d0 float32x2_t *v76; // x19 double v77; // d0 float32x2_t *v78; // x19 double v79; // d0 __int64 v80; // x0 __int64 v81; // x0 void *v82; // x23 void *v83; // x19 __int64 v84; // x1 __int64 v85; // x2 __int64 v86; // x3 __int64 v87; // x4 __int64 v88; // x5 __int64 v89; // x6 __int64 v90; // x7 __int64 v91; // x23 __int64 v92; // x0 float v93; // s0 __int64 v94; // x0 __int64 v95; // x0 __int64 v96; // x0 void *v97; // x19 __int64 v98; // x0 double v99; // d0 void *v100; // x19 __int64 v101; // x23 __int64 v102; // x0 double v103; // d0 void *v104; // x19 __int64 v105; // x23 __int64 v106; // x0 double v107; // d0 void *v108; // x19 __int64 v109; // x23 __int64 v110; // x0 double v111; // d0 __int64 v112; // x0 __int64 v113; // x0 __int64 v114; // x0 __int64 v115; // x0 unsigned int v116; // w8 float v117; // s9 void *v118; // x23 __int64 v119; // x0 float v120; // s0 void *v121; // x19 float32x2_t *v122; // x24 double v123; // d0 __int64 v124; // x25 float32x2_t *v125; // x23 double v126; // d0 __int64 v127; // x23 float32x2_t *v128; // x19 double v129; // d0 void *v130; // x0 void *v131; // x0 __int64 v132; // x0 __int64 v133; // x0 float v134; // s0 __int64 v135; // x19 __int64 v136; // x0 __int64 v137; // x19 double v138; // d0 __int64 v139; // x0 __int64 v140; // x0 __int64 v141; // x0 void *v142; // x19 void *v143; // x0 __int64 v144; // x19 __int64 v145; // x0 __int64 v146; // x0 __n128 GameVariable; // q0 void *v148; // x0 __int64 v149; // x19 double v150; // d0 __int64 v151; // x0 void *v152; // x0 void *v153; // x19 __int64 v154; // x0 float v155; // s8 __int64 v156; // x0 __int64 v157; // x0 float v158; // s0 __int64 v159; // x0 __int64 v160; // x0 float *v161; // x19 char v162; // w0 __int64 v163; // x1 __int64 v164; // x2 __int64 v165; // x3 __int64 v166; // x4 __int64 v167; // x5 __int64 v168; // x6 __int64 v169; // x7 __int64 v170; // x0 float *v171; // x19 char v172; // w0 __int64 v173; // x1 __int64 v174; // x2 __int64 v175; // x3 __int64 v176; // x4 __int64 v177; // x5 __int64 v178; // x6 __int64 v179; // x7 __int64 v180; // x0 __int64 v181; // x0 __int64 v182; // x0 __int64 v183; // x0 __int64 v184; // x0 __int64 v185; // x0 float *v186; // x19 char v187; // w0 __int64 v188; // x1 __int64 v189; // x2 __int64 v190; // x3 __int64 v191; // x4 __int64 v192; // x5 __int64 v193; // x6 __int64 v194; // x7 __int64 v195; // x0 void *v196; // [xsp+18h] [xbp-B8h] void *v197; // [xsp+20h] [xbp-B0h] void *v198; // [xsp+28h] [xbp-A8h] unsigned int v199; // [xsp+34h] [xbp-9Ch] float32x2_t v200; // [xsp+38h] [xbp-98h] BYREF float32x2_t v201; // [xsp+40h] [xbp-90h] BYREF float32x2_t v202; // [xsp+48h] [xbp-88h] BYREF float32x2_t v203; // [xsp+50h] [xbp-80h] BYREF __int64 v204; // [xsp+58h] [xbp-78h] BYREF result = cocos2d::CCLayer::init((_WORD *)a1); if ( (_DWORD)result ) { v199 = result; v3 = GameManager::sharedState(result); v4 = GameManager::fadeInMenuMusic(v3); v5 = GameManager::sharedState(v4); *(_BYTE *)(v5 + 584) = 1; v6 = GameManager::sharedState(v5); *(_DWORD *)(v6 + 708) = 0; *(_BYTE *)(GameManager::sharedState(v6) + 1064) = 0; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 1); v7 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v7, &v204); v9 = sub_100441AE0(WinSize); *(_QWORD *)(a1 + 504) = v9; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v9); v10 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_logo_001.png"); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v10, 2); v11 = *(float *)&v204 * 0.5; v12 = cocos2d::CCDirector::sharedDirector(); v13 = sub_100207E98(v12); sub_1000262BC((float *)&v203, v11, v13 + -50.0); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v10 + 184LL))(v10, &v203); v14 = cocos2d::CCMenu::create(); v15 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_playBtn_001.png"); v16 = CCMenuItemSpriteExtra::create((__int64)v15, 0, a1, (__int64)MenuLayer::onPlay, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v14 + 456LL))(v14, v16); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v14); sub_1000262BC((float *)&v203, *(float *)&v204 * 0.5, (float)(*((float *)&v204 + 1) * 0.5) + 10.0); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v14 + 184LL))(v14, &v203); v17 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_garageBtn_001.png"); v18 = CCMenuItemSpriteExtra::create((__int64)v17, 0, a1, (__int64)MenuLayer::onGarage, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v14 + 456LL))(v14, v18); v19 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v16 + 192LL))(v16); sub_1000262BC((float *)&v202, -110.0, 0.0); *(float32x2_t *)&v20 = sub_100026318(v19, &v202, &v203); v21 = (*(__int64 (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v18 + 184LL))(v18, &v203, v20); if ( (*(_BYTE *)(GameManager::sharedState(v21) + 927) & 1) == 0 ) { v22 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_chrSel_001.png"); *(_QWORD *)(a1 + 480) = v22; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v22); v23 = *(_QWORD *)(a1 + 480); v24 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v18 + 192LL))(v18); cocos2d::CCNode::convertToWorldSpace(v14, v24, &v202); sub_1000262BC((float *)&v201, -50.0, -50.0); *(float32x2_t *)&v25 = sub_100026318(&v202, &v201, &v203); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v23 + 184LL))(v23, &v203, v25); } v197 = v18; v26 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_creatorBtn_001.png"); v27 = CCMenuItemSpriteExtra::create((__int64)v26, 0, a1, (__int64)MenuLayer::onCreator, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v14 + 456LL))(v14, v27); v28 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v16 + 192LL))(v16); sub_1000262BC((float *)&v202, 110.0, 0.0); *(float32x2_t *)&v29 = sub_100026318(v28, &v202, &v203); v30 = (*(__int64 (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v27 + 184LL))(v27, &v203, v29); if ( (*(_BYTE *)(GameManager::sharedState(v30) + 928) & 1) == 0 ) { v31 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_lvlEdit_001.png"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v31); v32 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v27 + 192LL))(v27); cocos2d::CCNode::convertToWorldSpace(v14, v32, &v202); sub_1000262BC((float *)&v201, 50.0, -50.0); *(float32x2_t *)&v33 = sub_100026318(&v202, &v201, &v203); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v31 + 184LL))(v31, &v203, v33); } v198 = v16; v34 = cocos2d::CCDirector::sharedDirector(); v35 = sub_100207EA0(v34) + 45.0; v36 = cocos2d::CCMenu::create(); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v36); v37 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_achBtn_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v37 + 160LL))(v37, 1.0); v38 = CCMenuItemSpriteExtra::create((__int64)v37, 0, a1, (__int64)MenuLayer::onAchievements, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v36 + 456LL))(v36, v38); v39 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_optionsBtn_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v39 + 160LL))(v39, 1.0); v196 = CCMenuItemSpriteExtra::create((__int64)v39, 0, a1, (__int64)MenuLayer::onOptions, 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v36 + 456LL))(v36); v40 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_statsBtn_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v40 + 160LL))(v40, 1.0); v41 = CCMenuItemSpriteExtra::create((__int64)v40, 0, a1, (__int64)MenuLayer::onStats, 0); v42 = (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)v36 + 456LL))(v36, v41); v43 = GameManager::sharedState(v42); if ( (GameManager::safeModeEnabled(v43) & 1) == 0 ) { v44 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_ngBtn_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v44 + 160LL))(v44, 1.0); v45 = CCMenuItemSpriteExtra::create((__int64)v44, 0, a1, (__int64)MenuLayer::onNewgrounds, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v36 + 456LL))(v36, v45); } sub_1000262BC((float *)&v203, *(float *)&v204 * 0.5, v35); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v36 + 184LL))(v36, &v203); cocos2d::CCMenu::alignItemsHorizontallyWithPadding(v36, 5.0); v46 = cocos2d::CCDirector::sharedDirector(); v47 = sub_100207EA0(v46) + 30.0; v48 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"robtoplogo_small.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v48 + 160LL))(v48, 0.8); v49 = CCMenuItemSpriteExtra::create((__int64)v48, 0, a1, (__int64)sub_100304F4C, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v49, 1.1); v57 = sub_100270434((__int64)v49, v50, v51, v52, v53, v54, v55, v56, 0); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v57, 2); v58 = cocos2d::CCDirector::sharedDirector(); v59 = sub_100207EA8(v58); sub_1000262BC((float *)&v203, v59 + 50.0, v47 + -5.0); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v57 + 184LL))(v57, &v203); v60 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gj_fbIcon_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v60 + 160LL))(v60, 0.8); v61 = CCMenuItemSpriteExtra::create((__int64)v60, 0, a1, (__int64)sub_100304F70, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v61, 1.5); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v57 + 456LL))(v57, v61); v62 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gj_twIcon_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v62 + 160LL))(v62, 0.8); v63 = CCMenuItemSpriteExtra::create((__int64)v62, 0, a1, (__int64)sub_100304F94, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v63, 1.5); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v57 + 456LL))(v57, v63); v64 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gj_ytIcon_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v64 + 160LL))(v64, 0.8); v65 = CCMenuItemSpriteExtra::create((__int64)v64, 0, a1, (__int64)sub_100304FB8, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v65, 1.5); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v57 + 456LL))(v57, v65); v66 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gj_twitchIcon_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v66 + 160LL))(v66, 0.8); v67 = CCMenuItemSpriteExtra::create((__int64)v66, 0, a1, (__int64)sub_100304FDC, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v67, 1.5); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v57 + 456LL))(v57, v67); v68 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gj_discordIcon_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v68 + 160LL))(v68, 0.8); v69 = CCMenuItemSpriteExtra::create((__int64)v68, 0, a1, (__int64)sub_100305000, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v69, 1.5); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v57 + 456LL))(v57, v69); v70 = cocos2d::CCDirector::sharedDirector(); v71 = sub_100207EA8(v70); sub_1000262BC((float *)&v202, v71 + 22.0, v47 + 25.0); cocos2d::CCNode::convertToNodeSpace(v57, (__int64)&v202, &v203); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v61 + 184LL))(v61, &v203); v72 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v61 + 192LL))(v61); sub_1000262BC((float *)&v202, 29.0, 0.0); *(float32x2_t *)&v73 = sub_100026318(v72, &v202, &v203); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v63 + 184LL))(v63, &v203, v73); v74 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v63 + 192LL))(v63); sub_1000262BC((float *)&v202, 29.0, 0.0); *(float32x2_t *)&v75 = sub_100026318(v74, &v202, &v203); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v65 + 184LL))(v65, &v203, v75); v76 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v65 + 192LL))(v65); sub_1000262BC((float *)&v202, 29.0, 0.0); *(float32x2_t *)&v77 = sub_100026318(v76, &v202, &v203); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v67 + 184LL))(v67, &v203, v77); v78 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v65 + 192LL))(v65); sub_1000262BC((float *)&v202, 29.0, -29.0); *(float32x2_t *)&v79 = sub_100026318(v78, &v202, &v203); v80 = (*(__int64 (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v69 + 184LL))(v69, &v203, v79); v81 = GameManager::sharedState(v80); if ( (unsigned int)GameManager::safeModeEnabled(v81) ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v57 + 344LL))(v57, 0); v82 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_newsBtn_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v82 + 160LL))(v82, 0.85); v83 = CCMenuItemSpriteExtra::create((__int64)v82, 0, a1, (__int64)sub_100305024, 0); *(_QWORD *)(a1 + 488) = v82; v91 = sub_100270434((__int64)v83, v84, v85, v86, v87, v88, v89, v90, 0); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v91, 2); v92 = cocos2d::CCDirector::sharedDirector(); v93 = sub_100207EB0(v92); sub_1000262BC((float *)&v203, v93 + -43.0, v35); v94 = (*(__int64 (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v91 + 184LL))(v91, &v203); v95 = GameManager::sharedState(v94); v96 = GameManager::offlineModeEnabled(v95); if ( (_DWORD)v96 ) { (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v83 + 344LL))(v83, 0); v96 = (*(__int64 (__fastcall **)(void *, _QWORD))(*(_QWORD *)v83 + 1056LL))(v83, 0); } *(_BYTE *)(GameManager::sharedState(v96) + 600) = 0; if ( (unsigned int)PlatformToolbox::isControllerConnected() ) { v97 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"controllerBtn_Start_001.png"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v97); v98 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v198 + 192LL))(v198); cocos2d::CCNode::convertToWorldSpace(v14, v98, &v202); cocos2d::CCNode::convertToNodeSpace(a1, (__int64)&v202, &v203); sub_1000262BC((float *)&v201, 0.0, -66.0); *(float32x2_t *)&v99 = sub_100026318(&v203, &v201, &v202); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v97 + 184LL))(v97, &v202, v99); v100 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"controllerBtn_Y_001.png"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v100); v101 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v27 + 512LL))(v27); v102 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v27 + 192LL))(v27); cocos2d::CCNode::convertToWorldSpace(v101, v102, &v201); cocos2d::CCNode::convertToNodeSpace(a1, (__int64)&v201, &v202); sub_10002630C(&v203, (double *)&v202); sub_1000262BC((float *)&v201, 0.0, -45.0); *(float32x2_t *)&v103 = sub_100026318(&v203, &v201, &v202); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v100 + 184LL))(v100, &v202, v103); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v100 + 160LL))(v100, 0.8); v104 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"controllerBtn_X_001.png"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v104); v105 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v197 + 512LL))(v197); v106 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v197 + 192LL))(v197); cocos2d::CCNode::convertToWorldSpace(v105, v106, &v201); cocos2d::CCNode::convertToNodeSpace(a1, (__int64)&v201, &v202); sub_10002630C(&v203, (double *)&v202); sub_1000262BC((float *)&v201, 0.0, -45.0); *(float32x2_t *)&v107 = sub_100026318(&v203, &v201, &v202); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v104 + 184LL))(v104, &v202, v107); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v104 + 160LL))(v104, 0.8); v108 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"controllerBtn_DPad_Down_001.png"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v108); v109 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v196 + 512LL))(v196); v110 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v196 + 192LL))(v196); cocos2d::CCNode::convertToWorldSpace(v109, v110, &v201); cocos2d::CCNode::convertToNodeSpace(a1, (__int64)&v201, &v202); sub_10002630C(&v203, (double *)&v202); sub_1000262BC((float *)&v201, 0.0, -34.0); *(float32x2_t *)&v111 = sub_100026318(&v203, &v201, &v202); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v108 + 184LL))(v108, &v202, v111); v112 = (*(__int64 (__fastcall **)(void *, float))(*(_QWORD *)v108 + 160LL))(v108, 0.5); v113 = GameManager::sharedState(v112); GameManager::getGameVariable(v113, "0028"); if ( (v114 & 1) == 0 ) { v115 = GJAccountManager::sharedState(v114); if ( *(_DWORD *)(v115 + 352) <= *(_DWORD *)(v115 + 356) ) v116 = 0; else v116 = 15; v117 = (float)v116; v118 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"controllerBtn_LThumb_001.png"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v118); v119 = cocos2d::CCDirector::sharedDirector(); v120 = sub_100207EA8(v119); sub_1000262BC( (float *)&v202, v120 + 25.0, (float)((float)((float)(*((float *)&v204 + 1) * 0.5) + 15.0) + 10.0) + v117); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v118 + 184LL))(v118, &v202); v121 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"controllerBtn_A_001.png"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v121); v122 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v118 + 192LL))(v118); sub_1000262BC((float *)&v201, 0.0, -30.0); *(float32x2_t *)&v123 = sub_100026318(v122, &v201, &v202); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v121 + 184LL))(v121, &v202, v123); v124 = cocos2d::CCLabelBMFont::create_1("Mouse", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v124 + 160LL))(v124, 0.5); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v124); sub_1000262BC((float *)&v202, 0.0, 0.6); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v124 + 296LL))(v124, &v202); v125 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v118 + 192LL))(v118); sub_1000262BC((float *)&v201, 16.0, 1.0); *(float32x2_t *)&v126 = sub_100026318(v125, &v201, &v202); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v124 + 184LL))(v124, &v202, v126); v127 = cocos2d::CCLabelBMFont::create_1("Click", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v127 + 160LL))(v127, 0.5); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v127); sub_1000262BC((float *)&v202, 0.0, 0.6); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v127 + 296LL))(v127, &v202); v128 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v121 + 192LL))(v121); sub_1000262BC((float *)&v201, 16.0, 1.0); *(float32x2_t *)&v129 = sub_100026318(v128, &v201, &v202); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v127 + 184LL))(v127, &v202, v129); } } v130 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_profileButton_001.png"); v131 = CCMenuItemSpriteExtra::create((__int64)v130, 0, a1, (__int64)sub_10030506C, 0); *(_QWORD *)(a1 + 464) = v131; v132 = (*(__int64 (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v14 + 464LL))(v14, v131, 2); v133 = AppDelegate::get(v132); v134 = 45.0; if ( *(_BYTE *)(v133 + 37) ) v134 = 70.0; sub_1000262BC((float *)&v203, v134, 105.0); v135 = *(_QWORD *)(a1 + 464); cocos2d::CCNode::convertToNodeSpace(v14, (__int64)&v203, &v202); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v135 + 184LL))(v135, &v202); v136 = cocos2d::CCLabelBMFont::create_1(" ", "goldFont.fnt"); *(_QWORD *)(a1 + 456) = v136; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v136, 2); v137 = *(_QWORD *)(a1 + 456); sub_1000262BC((float *)&v201, 2.0, 36.0); *(float32x2_t *)&v138 = sub_100026318(&v203, &v201, &v202); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v137 + 184LL))(v137, &v202, v138); cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 456), 70.0, 0.7, 0.0); v140 = GameManager::sharedState(v139); v141 = GameManager::modUIRank(v140); if ( (_DWORD)v141 == 2 ) { v142 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"modBadge_02_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v142 + 160LL))(v142, 1.3); v143 = CCMenuItemSpriteExtra::create((__int64)v142, 0, a1, (__int64)sub_1003050CC, 0); *(_QWORD *)(a1 + 472) = v143; CCMenuItemSpriteExtra::setSizeMult((__int64)v143, 1.5); (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v14 + 464LL))(v14, *(_QWORD *)(a1 + 472), 2); v144 = *(_QWORD *)(a1 + 472); sub_1000262BC((float *)&v200, 0.0, 75.0); sub_100026318(&v203, &v200, &v201); cocos2d::CCNode::convertToNodeSpace(v14, (__int64)&v201, &v202); v141 = (*(__int64 (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v144 + 184LL))(v144, &v202); } v145 = GameManager::sharedState(v141); GameVariable = GameManager::getGameVariable(v145, "0048"); if ( (v146 & 1) == 0 && *(_BYTE *)(GameManager::sharedState(v146) + 927) == 1 ) { v148 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_viewProfileTxt_001.png"); *(_QWORD *)(a1 + 448) = v148; (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v148, 2); v149 = *(_QWORD *)(a1 + 448); sub_1000262BC((float *)&v201, 76.0, -1.0); *(float32x2_t *)&v150 = sub_100026318(&v203, &v201, &v202); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v149 + 184LL))(v149, &v202, v150); } v151 = sub_1003050E8(a1, GameVariable); *(_QWORD *)(GameManager::sharedState(v151) + 576) = a1; v152 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_dailyRewardBtn_001.png"); v153 = CCMenuItemSpriteExtra::create((__int64)v152, 0, a1, (__int64)sub_100305248, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v36 + 456LL))(v36, v153); v154 = cocos2d::CCDirector::sharedDirector(); v155 = sub_100207EB0(v154) + -40.0; v157 = AppDelegate::get(v156); v158 = 0.0; if ( *(_BYTE *)(v157 + 37) ) v158 = 25.0; sub_1000262BC((float *)&v201, v155 - v158, (float)(*((float *)&v204 + 1) * 0.5) + 20.0); cocos2d::CCNode::convertToNodeSpace(v36, (__int64)&v201, &v202); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v153 + 184LL))(v153, &v202); v159 = CCMenuItemSpriteExtra::setSizeMult((__int64)v153, 1.5); v160 = GameManager::sharedState(v159); if ( (GameManager::getUGV(v160, "30") & 1) == 0 ) { *(_BYTE *)(a1 + 432) = 1; v161 = cocos2d::CCDelayTime::create(0.01); v162 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, (__int64)sub_100305264, 0); v170 = sub_10021D420((__int64)v161, v163, v164, v165, v166, v167, v168, v169, v162); cocos2d::CCNode::runAction(a1, v170); } if ( (*(_BYTE *)(GameLevelManager::sharedState() + 1536) & 1) == 0 ) { v171 = cocos2d::CCDelayTime::create(0.01); v172 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, (__int64)sub_1003052AC, 0); v180 = sub_10021D420((__int64)v171, v173, v174, v175, v176, v177, v178, v179, v172); cocos2d::CCNode::runAction(a1, v180); } v181 = MusicDownloadManager::sharedState(); MusicDownloadManager::addMusicDownloadDelegate(v181, a1 + 424); v183 = GameManager::sharedState(v182); if ( (GameManager::offlineModeEnabled(v183) & 1) == 0 ) { v184 = MusicDownloadManager::sharedState(); MusicDownloadManager::tryUpdateNewsFeed(v184); sub_1003052C0(a1); v185 = GameLevelManager::sharedState(); sub_1000C7EEC(v185); } v186 = cocos2d::CCDelayTime::create(0.01); v187 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, (__int64)sub_1003053A0, 0); v195 = sub_10021D420((__int64)v186, v188, v189, v190, v191, v192, v193, v194, v187); cocos2d::CCNode::runAction(a1, v195); return v199; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source