// // PauseLayer::customSetup from 0x1001be0b8 to 0x1001bf5e0 (5416 bytes) // // 1 xrefs: // > @ 0x1008e82d0 // // 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:00:14 +0000 // __int64 __fastcall PauseLayer::customSetup(_QWORD *a1) { __int64 v2; // x0 __int64 v3; // x0 _QWORD *WinSize; // x0 __int64 v5; // x0 float *v6; // x0 __int64 v7; // x0 double v8; // d0 float v9; // s8 __int64 v10; // x0 __int64 v11; // x0 double v12; // d0 float v13; // s8 __int64 v14; // x0 __int64 v15; // x0 float v16; // s9 __int64 v17; // x0 __int64 v18; // x0 float v19; // s9 __int64 v20; // x21 __int64 v21; // x0 __int64 v22; // x8 std::string *p_p; // x0 __int64 v24; // x20 float v25; // s10 __int64 v26; // x0 __int64 v27; // x21 __int64 v28; // x22 __int64 v29; // x0 __int64 v30; // x0 __int64 v31; // x20 float v32; // s9 float *v33; // x0 __int64 v34; // x0 __int64 v35; // x0 __int64 v36; // x0 __int64 v37; // x0 __int64 v38; // x0 bool v39; // zf const char *v40; // x0 __int64 (__fastcall *v41)(); // x20 __int64 v42; // x0 __int64 v43; // x0 __int64 v44; // x0 __int64 v45; // x0 __int64 v46; // x0 __int64 v47; // x0 float v48; // s0 float *v49; // x0 __int64 v50; // x0 __int64 v51; // x0 __int64 v52; // x20 float v53; // s8 float v54; // s13 float v55; // s0 float *v56; // x0 float v57; // s8 float v58; // s0 float *v59; // x0 __int64 v60; // x24 int v61; // w27 _QWORD *v62; // x0 const std::string::value_type *v63; // x1 __int64 v64; // x0 const std::string::value_type *v65; // x1 int v66; // w26 __int64 v67; // x0 bool isPlatformer; // w0 __int64 v69; // x0 bool v70; // w0 __int64 v71; // x0 __int64 v72; // x0 int v73; // w0 std::string *v74; // x0 __int64 v75; // x28 __int64 v76; // x20 __n128 v77; // q0 __int64 v78; // x0 float *v79; // x8 __int64 v80; // x20 __int64 v81; // x0 __int64 v82; // x0 __int64 v83; // x0 __int64 v84; // x20 __int64 v85; // x0 double v86; // d0 float v87; // s8 __int64 v88; // x0 __int64 v89; // x0 float v90; // s0 float v91; // s8 __int64 v92; // x0 float v93; // s0 __int64 v94; // x20 double v95; // d0 __int64 v96; // x20 __int64 v97; // x0 __n128 v98; // q0 __int64 v99; // x20 double v100; // d0 __int64 v101; // x20 __int64 v102; // x0 __n128 v103; // q0 __int64 v104; // x0 __int64 v105; // x20 float32x2_t *v106; // x24 double v107; // d0 __int64 v108; // x20 float32x2_t *v109; // x24 double v110; // d0 __int64 v111; // x0 __int64 v112; // x0 _DWORD *v113; // x24 int v114; // w22 int v115; // w23 int v116; // w20 float *v117; // x0 __int64 v118; // x0 const char *v119; // x11 const char *v120; // x8 _BOOL4 v121; // w28 __int64 v122; // x26 __int64 v123; // x0 __int64 v124; // x0 int v125; // w27 __int64 v126; // x20 __int64 CoinKey_1; // x1 int v128; // w25 const char *v129; // x0 __int64 v130; // x20 __n128 v131; // q0 float v132; // s0 char v133; // w8 char v134; // w9 unsigned __int8 v135; // w25 float v136; // s12 _BYTE *v137; // x0 unsigned int v138; // s0 unsigned int v139; // s1 unsigned int v140; // s2 __int64 v141; // x0 __int64 StartPosObjectsForCurrentMode; // x0 __int64 v143; // x0 __int64 v144; // x0 float *v145; // x0 __int64 v146; // x0 __int64 v147; // x8 __int64 v148; // x20 __int64 v149; // x0 __int64 v150; // x20 __int64 v151; // x0 __int64 v152; // x25 __int64 v153; // x25 __n128 v154; // q0 __n128 v155; // q0 __int64 v156; // x24 __int64 v157; // x20 __n128 v158; // q0 __n128 v159; // q0 __int64 v160; // x20 __int64 v161; // x20 __n128 v162; // q0 __int64 v163; // x0 __int64 v164; // x20 __int64 v165; // x20 __n128 v166; // q0 __int64 result; // x0 __int64 v168; // x20 __int64 v169; // x21 __int64 v170; // x0 __n128 v171; // q0 double v172; // d0 __int64 v173; // x20 __int64 v174; // x21 __int64 v175; // x0 __n128 v176; // q0 double v177; // d0 __int64 v178; // x20 __int64 v179; // x21 __int64 v180; // x0 __n128 v181; // q0 double v182; // d0 __int64 v183; // [xsp+0h] [xbp-140h] __int64 v184; // [xsp+8h] [xbp-138h] __int64 v185; // [xsp+10h] [xbp-130h] const char *v186; // [xsp+18h] [xbp-128h] const char *v187; // [xsp+20h] [xbp-120h] int v188; // [xsp+2Ch] [xbp-114h] __int64 v189; // [xsp+30h] [xbp-110h] float32x2_t v190; // [xsp+38h] [xbp-108h] BYREF float32x2_t v191; // [xsp+40h] [xbp-100h] BYREF float32x2_t v192; // [xsp+48h] [xbp-F8h] BYREF float32x2_t v193; // [xsp+50h] [xbp-F0h] BYREF float32x2_t v194; // [xsp+58h] [xbp-E8h] BYREF float v195; // [xsp+60h] [xbp-E0h] BYREF int v196; // [xsp+64h] [xbp-DCh] BYREF float v197; // [xsp+68h] [xbp-D8h] BYREF float v198; // [xsp+6Ch] [xbp-D4h] BYREF std::string __p; // [xsp+70h] [xbp-D0h] BYREF float v200; // [xsp+88h] [xbp-B8h] BYREF float v201[4]; // [xsp+90h] [xbp-B0h] BYREF __int64 v202; // [xsp+A0h] [xbp-A0h] BYREF (*(void (__fastcall **)(_QWORD *, void *))(*a1 + 1216LL))(a1, &unk_100760E58); v2 = (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 1168LL))(a1, 75); v3 = cocos2d::CCDirector::sharedDirector(v2); WinSize = cocos2d::CCDirector::getWinSize(&v202, v3); v5 = cocos2d::CCLayer::create(WinSize); a1[79] = v5; (*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 456LL))(a1, v5); v6 = sub_1000262CC(v201, 0.0, 0.0, 80.0, 80.0); v7 = cocos2d::CCDirector::sharedDirector(v6); v8 = sub_100207EB0(v7); v9 = *(float *)&v8 + -20.0; v11 = cocos2d::CCDirector::sharedDirector(v10); v12 = sub_100207EA8(v11); v13 = v9 - *(float *)&v12; v15 = cocos2d::CCDirector::sharedDirector(v14); v16 = sub_100207E98(v15) + -20.0; v18 = cocos2d::CCDirector::sharedDirector(v17); v19 = v16 - sub_100207EA0(v18); sub_1000264D4(&__p, (__int64)v201); v20 = cocos2d::extension::CCScale9Sprite::create("square04_001.png", &__p); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v20 + 912LL))(v20, 175); sub_1000262C4(&v200, v13, v19); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v20 + 320LL))(v20, &v200); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[79] + 464LL))(a1[79], v20, 0xFFFFFFFFLL); sub_1000262BC((float *)&__p, *(float *)&v202 * 0.5, *((float *)&v202 + 1) * 0.5); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v20 + 184LL))(v20, &__p); v21 = (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)v20 + 960LL))(v20, &unk_100760E58); v22 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v21) + 544) + 1936LL); if ( *(char *)(v22 + 367) < 0 ) sub_1000097D0(&__p, *(void **)(v22 + 344), *(_QWORD *)(v22 + 352)); else __p = *(std::string *)(v22 + 344); if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_p = &__p; else p_p = (std::string *)__p.__r_.__value_.__r.__words[0]; v24 = cocos2d::CCLabelBMFont::create_1(p_p, "bigFont.fnt"); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); v25 = v19 * 0.5; sub_1000262BC( (float *)&__p, *(float *)&v202 * 0.5, (float)((float)(v19 * 0.5) + (float)(*((float *)&v202 + 1) * 0.5)) + -20.0); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v24 + 184LL))(v24, &__p); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[79] + 456LL))(a1[79], v24); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v24 + 344LL))(v24, 1); v26 = PauseLayer::setupProgressBars(a1); v27 = cocos2d::CCMenu::create(v26); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[79] + 456LL))(a1[79], v27); v28 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_menuBtn_001.png"); v29 = GameManager::sharedState(v28); if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(v29 + 544) + 1936LL) + 1140LL) == 2 || (v30 = GameManager::sharedState(v29), *(_DWORD *)(v30 + 1032) > *(_DWORD *)(v30 + 1036)) ) { v31 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_editBtn_001.png"); v32 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v28 + 328LL))(v28); v33 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v31 + 328LL))(v31); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 160LL))(v31, v32 / *v33); v34 = CCMenuItemSpriteExtra::create(v31, 0, a1, PauseLayer::onTryEdit, 0); v30 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v27 + 456LL))(v27, v34); } v35 = GameManager::sharedState(v30); if ( *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(v35 + 544) + 3272LL) + 341LL) == 1 ) { v36 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_replayFullBtn_001.png"); v37 = CCMenuItemSpriteExtra::create(v36, 0, a1, PauseLayer::onRestartFull, 0); v35 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v27 + 456LL))(v27, v37); } v38 = GameManager::sharedState(v35); v39 = *(_BYTE *)(*(_QWORD *)(v38 + 544) + 12544LL) == 0; if ( *(_BYTE *)(*(_QWORD *)(v38 + 544) + 12544LL) ) v40 = "GJ_normalBtn_001.png"; else v40 = "GJ_practiceBtn_001.png"; if ( v39 ) v41 = PauseLayer::onPracticeMode; else v41 = PauseLayer::onNormalMode; v42 = cocos2d::CCSprite::createWithSpriteFrameName(v40); v185 = CCMenuItemSpriteExtra::create(v42, 0, a1, v41, 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v27 + 456LL))(v27); v43 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_playBtn2_001.png"); v183 = CCMenuItemSpriteExtra::create(v43, 0, a1, PauseLayer::onResume, 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v27 + 456LL))(v27); v184 = CCMenuItemSpriteExtra::create(v28, 0, a1, sub_1001BF94C, 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v27 + 456LL))(v27); v44 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_replayBtn_001.png"); v45 = CCMenuItemSpriteExtra::create(v44, 0, a1, PauseLayer::onRestart, 0); v46 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v27 + 456LL))(v27, v45); v47 = GameManager::sharedState(v46); v48 = 15.0; if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(v47 + 544) + 1936LL) + 1140LL) == 2 ) v48 = 10.0; cocos2d::CCMenu::alignItemsHorizontallyWithPadding(v27, v48); v49 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 192LL))(v27); sub_1000262BC((float *)&__p, *v49, (float)(*((float *)&v202 + 1) * 0.5) + -30.0); v50 = (*(__int64 (__fastcall **)(__int64, std::string *))(*(_QWORD *)v27 + 184LL))(v27, &__p); v51 = GameManager::sharedState(v50); if ( (*(_BYTE *)(v51 + 930) & 1) == 0 ) { v51 = GameManager::sharedState(v51); if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(v51 + 544) + 1936LL) + 1140LL) != 2 ) { v51 = GameManager::sharedState(v51); if ( (*(_BYTE *)(*(_QWORD *)(*(_QWORD *)(v51 + 544) + 3272LL) + 341LL) & 1) == 0 ) { v52 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_practiceTxt_001.png"); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[79] + 456LL))(a1[79], v52); sub_1000262BC( (float *)&__p, (float)(*(float *)&v202 * 0.5) + -190.0, (float)(*((float *)&v202 + 1) * 0.5) + -12.0); v51 = (*(__int64 (__fastcall **)(__int64, std::string *))(*(_QWORD *)v52 + 184LL))(v52, &__p); } } } v53 = v13 * 0.5; v54 = (float)(v53 + (float)(*(float *)&v202 * 0.5)) + -26.0; if ( *(_BYTE *)(AppDelegate::get(v51) + 37) ) v55 = 10.0; else v55 = 0.0; v56 = sub_1000262BC(&v197, v54 - v55, (float)(v25 + (float)(*((float *)&v202 + 1) * 0.5)) + -26.0); v57 = (float)((float)(*(float *)&v202 * 0.5) - v53) + 26.0; if ( *(_BYTE *)(AppDelegate::get(v56) + 37) ) v58 = 10.0; else v58 = 0.0; v59 = sub_1000262BC(&v195, v57 + v58, v198); v60 = 0; v61 = *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v59) + 544) + 1936LL) + 1140LL); do { v62 = sub_100009900(&__p, "GJ_plainBtn_001.png"); if ( (int)v60 <= 4 ) { if ( (int)v60 > 1 ) { if ( (_DWORD)v60 == 2 ) { v67 = GameManager::sharedState(v62); isPlatformer = GJGameLevel::isPlatformer(*(_QWORD *)(*(_QWORD *)(v67 + 544) + 1936LL)); v63 = "sideBtn_death_001.png"; if ( isPlatformer ) goto LABEL_74; } else { v63 = "sideBtn_marker_001.png"; if ( (_DWORD)v60 != 3 ) { if ( v61 == 2 ) goto LABEL_74; v64 = GameManager::sharedState(v62); v63 = "sideBtn_chat_001.png"; if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(v64 + 544) + 1936LL) + 1140LL) == 1 ) goto LABEL_74; } } goto LABEL_62; } if ( (_DWORD)v60 ) v65 = "sideBtn_hide_001.png"; else v65 = "sideBtn_options_001.png"; LABEL_48: std::string::assign(&__p, v65); v66 = 0; goto LABEL_63; } if ( (int)v60 <= 6 ) { if ( (_DWORD)v60 == 5 ) { v63 = "sideBtn_quests_001.png"; if ( v61 == 2 ) goto LABEL_74; } else { if ( v61 != 2 ) goto LABEL_74; v72 = GameManager::sharedState(v62); GameManager::getGameVariable(v72, "0173"); if ( v73 ) v63 = "sideBtn_damageOff_001.png"; else v63 = "sideBtn_damageOn_001.png"; } } else { if ( (_DWORD)v60 != 7 ) { if ( (_DWORD)v60 == 8 ) { v65 = "sideBtn_time_001.png"; if ( v61 != 2 ) goto LABEL_74; } else { v71 = GameManager::sharedState(v62); v65 = "sideBtn_practiceUI_001.png"; if ( *(_BYTE *)(*(_QWORD *)(v71 + 544) + 12544LL) != 1 ) goto LABEL_74; } goto LABEL_48; } v69 = GameManager::sharedState(v62); v70 = GJGameLevel::isPlatformer(*(_QWORD *)(*(_QWORD *)(v69 + 544) + 1936LL)); v63 = "sideBtn_platUI_001.png"; if ( !v70 ) goto LABEL_74; } LABEL_62: std::string::assign(&__p, v63); v66 = 1; LABEL_63: if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v74 = &__p; else v74 = (std::string *)__p.__r_.__value_.__r.__words[0]; v75 = cocos2d::CCSprite::createWithSpriteFrameName(v74); v76 = CCMenuItemSpriteExtra::create(v75, 0, a1, PauseLayer::onSideButtonPressed, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v76 + 72LL))(v76, v60); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v27 + 456LL))(v27, v76); if ( v66 ) { cocos2d::CCNode::convertToNodeSpace(&v194, v27, &v195, v77); v78 = (*(__int64 (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v76 + 184LL))(v76, &v194); v79 = (float *)&v196; } else { cocos2d::CCNode::convertToNodeSpace(&v194, v27, &v197, v77); v78 = (*(__int64 (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v76 + 184LL))(v76, &v194); v79 = &v198; } *v79 = *v79 + -34.0; if ( (_DWORD)v60 == 8 ) { if ( *(float *)(*(_QWORD *)(GameManager::sharedState(v78) + 544) + 13112LL) != 1.0 ) PauseLayer::onSideButtonPressed(a1, v76); } else if ( (_DWORD)v60 == 5 ) { a1[83] = v75; sub_1001BFE2C(a1); } LABEL_74: if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); v60 = (unsigned int)(v60 + 1); } while ( (_DWORD)v60 != 10 ); v80 = cocos2d::CCSprite::createWithSpriteFrameName("hideBtn_001.png"); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v80 + 912LL))(v80, 0); v81 = CCMenuItemSpriteExtra::create(v80, 0, a1, sub_1001BFED8, 0); v82 = cocos2d::CCMenu::createWithItem(v81); a1[82] = v82; v83 = (*(__int64 (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v82, 100); v84 = a1[82]; v85 = cocos2d::CCDirector::sharedDirector(v83); v86 = sub_100207EB0(v85); v87 = *(float *)&v86 + -17.0; v89 = AppDelegate::get(v88); v90 = 0.0; if ( *(_BYTE *)(v89 + 37) ) v90 = 10.0; v91 = v87 - v90; v92 = cocos2d::CCDirector::sharedDirector(v89); v93 = sub_100207E98(v92); (*(void (__fastcall **)(__int64, float, float))(*(_QWORD *)v84 + 200LL))(v84, v91, v93 + -15.0); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)a1[82] + 344LL))(a1[82], 0); sub_1000262BC((float *)&__p, *(float *)&v202 * 0.5, (float)(*((float *)&v202 + 1) * 0.5) + -90.0); a1[80] = Slider::create_1(a1, PauseLayer::musicSliderChanged, 0, 0.7); Slider::setBarVisibility(); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)a1[79] + 456LL))(a1[79], a1[80]); v94 = a1[80]; sub_1000262BC((float *)&v193, -100.0, 0.0); *(float32x2_t *)&v95 = sub_100026318((float32x2_t *)&__p, &v193, &v194); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v94 + 184LL))(v94, &v194, v95); v96 = a1[80]; v97 = FMODAudioEngine::sharedEngine(); v98.n128_f32[0] = FMODAudioEngine::getBackgroundMusicVolume(v97); Slider::setValue(v96, v98); a1[81] = Slider::create_1(a1, PauseLayer::sfxSliderChanged, 0, 0.7); Slider::setBarVisibility(); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)a1[79] + 456LL))(a1[79], a1[81]); v99 = a1[81]; sub_1000262BC((float *)&v193, 100.0, 0.0); *(float32x2_t *)&v100 = sub_100026318((float32x2_t *)&__p, &v193, &v194); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v99 + 184LL))(v99, &v194, v100); v101 = a1[81]; v102 = FMODAudioEngine::sharedEngine(); v103.n128_f32[0] = FMODAudioEngine::getEffectsVolume(v102); Slider::setValue(v101, v103); *(_QWORD *)(GameManager::sharedState(v104) + 952) = a1 + 72; v105 = cocos2d::CCSprite::createWithSpriteFrameName("gj_songIcon_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v105 + 160LL))(v105, 1.2); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[79] + 456LL))(a1[79], v105); v106 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)a1[80] + 192LL))(a1[80]); sub_1000262BC((float *)&v193, -90.0, 0.0); *(float32x2_t *)&v107 = sub_100026318(v106, &v193, &v194); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v105 + 184LL))(v105, &v194, v107); v108 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sfxIcon_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v108 + 160LL))(v108, 1.2); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[79] + 456LL))(a1[79], v108); v109 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)a1[81] + 192LL))(a1[81]); sub_1000262BC((float *)&v193, -90.0, 0.0); *(float32x2_t *)&v110 = sub_100026318(v109, &v193, &v194); v111 = (*(__int64 (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v108 + 184LL))(v108, &v194, v110); v112 = GameManager::sharedState(v111); v113 = *(_DWORD **)(*(_QWORD *)(v112 + 544) + 1936LL); v114 = v113[241]; if ( v114 > 0 ) { v112 = GameManager::sharedState(v112); if ( (*(_BYTE *)(*(_QWORD *)(v112 + 544) + 12544LL) & 1) == 0 ) { v115 = v113[285]; if ( v115 != 2 ) { v116 = v113[242] - v113[243]; v117 = sub_1000262BC( (float *)&v194, *(float *)&v202 * 0.5, (float)((float)(*((float *)&v202 + 1) * 0.5) - v25) + 23.0); v118 = sub_1002E736C(v117); v189 = v118; if ( v115 == 1 ) v119 = "gjCoinUI_01_off_001.png"; else v119 = "gjCoinUI_02_off_001.png"; v120 = "gjCoinUI_02_on_001.png"; if ( v115 == 1 ) v120 = "gjCoinUI_01_on_001.png"; v186 = v120; v187 = v119; v188 = v116; v121 = v116 == 1 || v115 == 1; v122 = 1; while ( 1 ) { v123 = GameManager::sharedState(v118); v124 = sub_1002854F0(*(_QWORD *)(v123 + 544), v122); v125 = v124; v126 = GameStatsManager::sharedState(v124); CoinKey_1 = GJGameLevel::getCoinKey_1((__int64)v113, v122); if ( v115 == 1 ) { if ( (GameStatsManager::hasSecretCoin(v126, CoinKey_1) & 1) == 0 ) goto LABEL_98; v128 = 1; v129 = "gjCoinUI_01_collected_001.png"; } else { if ( v188 == 1 ) { if ( (GameStatsManager::hasUserCoin(v126, CoinKey_1) & 1) == 0 ) goto LABEL_98; } else if ( (GameStatsManager::hasPendingUserCoin(v126, CoinKey_1) & 1) == 0 ) { LABEL_98: v128 = 0; if ( v125 ) v129 = v186; else v129 = v187; goto LABEL_101; } v128 = 1; v129 = "gjCoinUI_02_collected_001.png"; } LABEL_101: v130 = cocos2d::CCSprite::createWithSpriteFrameName(v129); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v130 + 160LL))(v130, 1.1); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[79] + 464LL))(a1[79], v130, 8); v131 = sub_1002E74E0(v189, v130); if ( !v121 ) { v193.i8[2] = 75; v193.i16[0] = -20481; v118 = (*(__int64 (__fastcall **)(__int64, float32x2_t *, __n128))(*(_QWORD *)v130 + 960LL))( v130, &v193, v131); } if ( (v125 & 1) == 0 ) { if ( v128 ) v132 = 0.5; else v132 = 0.75; if ( v128 ) v133 = 125; else v133 = -65; if ( v128 ) v134 = -106; else v134 = -65; if ( v121 ) v135 = v133; else v135 = v134; if ( v121 ) v136 = v132; else v136 = v132 * 0.5; v137 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v130 + 944LL))(v130); LOBYTE(v138) = *v137; LOBYTE(v139) = v137[1]; LOBYTE(v140) = v137[2]; v193.i8[2] = (int)(float)(v136 * (float)v140); v193.i16[0] = (int)(float)(v136 * (float)v138) | ((unsigned __int16)(int)(float)(v136 * (float)v139) << 8); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v130 + 960LL))(v130, &v193); v118 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v130 + 912LL))(v130, v135); } v122 = (unsigned int)(v122 + 1); if ( !--v114 ) { sub_1000262F4(&v193, (double *)&v194); GameToolbox::alignItemsHorisontally(v189, &v193, 0, 20.0); break; } } } } } v141 = GameManager::sharedState(v112); StartPosObjectsForCurrentMode = GJBaseGameLayer::getStartPosObjectsForCurrentMode(*(_QWORD *)(v141 + 544)); a1[76] = StartPosObjectsForCurrentMode; cocos2d::CCObject::retain(StartPosObjectsForCurrentMode); v143 = sub_1002E757C(a1[76]); if ( (_DWORD)v143 || (v144 = GameManager::sharedState(v143), *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(v144 + 544) + 1936LL) + 1140LL) == 2) ) { v145 = sub_1000262BC( (float *)&v194, *(float *)&v202 * 0.5, (float)((float)(*((float *)&v202 + 1) * 0.5) - v25) + 17.0); v146 = GameManager::sharedState(v145); v147 = *(_QWORD *)(*(_QWORD *)(v146 + 544) + 12432LL); if ( v147 ) { v148 = a1[76]; v149 = GameManager::sharedState(v146); LODWORD(v147) = sub_1002E7588(v148, *(_QWORD *)(*(_QWORD *)(v149 + 544) + 12432LL)) + 1; } *((_DWORD *)a1 + 150) = v147; v150 = cocos2d::CCLabelBMFont::create_1("StartPos:", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v150 + 160LL))(v150, 0.5); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[79] + 456LL))(a1[79], v150); sub_1000262BC((float *)&v193, v194.f32[0] + -130.0, v194.f32[1] + 1.0); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v150 + 184LL))(v150, &v193); v151 = cocos2d::CCLabelBMFont::create_1("StartPos", "bigFont.fnt"); a1[74] = v151; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[79] + 456LL))(a1[79], v151); (*(void (__fastcall **)(_QWORD, float32x2_t *))(*(_QWORD *)a1[74] + 184LL))(a1[74], &v194); v152 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v152 + 160LL))(v152, 0.55); v153 = CCMenuItemSpriteExtra::create(v152, 0, a1, PauseLayer::onChangeStartpos, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v27 + 456LL))(v27, v153); sub_1000262BC((float *)&v191, -75.0, 0.0); v154.n128_u64[0] = (unsigned __int64)sub_100026318(&v194, &v191, &v192); cocos2d::CCNode::convertToNodeSpace(&v193, v27, &v192, v154); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v153 + 184LL))(v153, &v193); v155 = CCMenuItemSpriteExtra::setSizeMult(1.6); (*(void (__fastcall **)(__int64, __int64, __n128))(*(_QWORD *)v153 + 72LL))(v153, 0xFFFFFFFFLL, v155); v156 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v156, 1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v156 + 160LL))(v156, 0.55); v157 = CCMenuItemSpriteExtra::create(v156, 0, a1, PauseLayer::onChangeStartpos, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v27 + 456LL))(v27, v157); sub_1000262BC((float *)&v191, 75.0, 0.0); v158.n128_u64[0] = (unsigned __int64)sub_100026318(&v194, &v191, &v192); cocos2d::CCNode::convertToNodeSpace(&v193, v27, &v192, v158); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v157 + 184LL))(v157, &v193); v159 = CCMenuItemSpriteExtra::setSizeMult(1.6); (*(void (__fastcall **)(__int64, __int64, __n128))(*(_QWORD *)v157 + 72LL))(v157, 1, v159); sub_1000262BC((float *)&v192, 110.0, 0.0); sub_100026318(&v194, &v192, &v193); v160 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_menuBtn_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v160 + 160LL))(v160, 0.385); v161 = CCMenuItemSpriteExtra::create(v160, 0, a1, sub_1001C0230, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v27 + 456LL))(v27, v161); sub_1000262BC((float *)&v190, 0.0, 0.0); v162.n128_u64[0] = (unsigned __int64)sub_100026318(&v193, &v190, &v191); cocos2d::CCNode::convertToNodeSpace(&v192, v27, &v191, v162); v163 = (*(__int64 (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v161 + 184LL))(v161, &v192); if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v163) + 544) + 1936LL) + 1140LL) == 2 ) { v164 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plusBtn_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v164 + 160LL))(v164, 0.495); v165 = CCMenuItemSpriteExtra::create(v164, 0, a1, PauseLayer::onCreateStartpos, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v27 + 456LL))(v27, v165); sub_1000262BC((float *)&v190, 30.0, 0.0); v166.n128_u64[0] = (unsigned __int64)sub_100026318(&v193, &v190, &v191); cocos2d::CCNode::convertToNodeSpace(&v192, v27, &v191, v166); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v165 + 184LL))(v165, &v192); } v144 = PauseLayer::onChangeStartpos(a1, 0); *((_BYTE *)a1 + 616) = 0; } result = PlatformToolbox::isControllerConnected(v144); if ( (_DWORD)result ) { v168 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_Start_001.png"); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[79] + 456LL))(a1[79], v168); v169 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v183 + 512LL))(v183); v170 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v183 + 192LL))(v183); cocos2d::CCNode::convertToWorldSpace(&v193, v169, v170); cocos2d::CCNode::convertToNodeSpace(&v194, a1, &v193, v171); sub_1000262BC((float *)&v192, 0.0, -37.0); *(float32x2_t *)&v172 = sub_100026318(&v194, &v192, &v193); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v168 + 184LL))(v168, &v193, v172); v173 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_B_001.png"); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[79] + 456LL))(a1[79], v173); v174 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v184 + 512LL))(v184); v175 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v184 + 192LL))(v184); cocos2d::CCNode::convertToWorldSpace(&v192, v174, v175); cocos2d::CCNode::convertToNodeSpace(&v193, a1, &v192, v176); sub_10002630C(&v194, (double *)&v193); sub_1000262BC((float *)&v192, 0.0, -30.0); *(float32x2_t *)&v177 = sub_100026318(&v194, &v192, &v193); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v173 + 184LL))(v173, &v193, v177); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v173 + 160LL))(v173, 0.8); v178 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_X_001.png"); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[79] + 456LL))(a1[79], v178); v179 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v185 + 512LL))(v185); v180 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v185 + 192LL))(v185); cocos2d::CCNode::convertToWorldSpace(&v192, v179, v180); cocos2d::CCNode::convertToNodeSpace(&v193, a1, &v192, v181); sub_10002630C(&v194, (double *)&v193); sub_1000262BC((float *)&v192, 0.0, -30.0); *(float32x2_t *)&v182 = sub_100026318(&v194, &v192, &v193); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v178 + 184LL))(v178, &v193, v182); return (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v178 + 160LL))(v178, 0.8); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source