// // PauseLayer::customSetup from 0x1003bf7e0 to 0x1003bfe9d (1725 bytes) // // 1 xrefs: // > @ 0x100b38b08 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:29:33 +0000 // __int64 __fastcall PauseLayer::customSetup(_QWORD **a1) { __int64 v2; // rax __int64 v3; // rax __int64 v4; // rsi __int64 v5; // rdi __int64 v6; // rdi float v7; // xmm0_4 __int64 v8; // rdi double v9; // xmm0_8 __int64 v10; // rax double v11; // xmm0_8 __int64 v12; // r15 __int64 v13; // rax std::string::pointer data; // rdi __int64 v15; // r14 __int64 v16; // r15 double v17; // xmm0_8 char *v18; // r12 __int64 v19; // rax char *v20; // r14 float *v21; // rax void *v22; // rax char *v23; // rax void *v24; // rax __int64 v25; // rax const char *v26; // rdi __int64 (__fastcall *v27)(); // r13 char *v28; // rax unsigned int v29; // r14d void *v30; // rsi __int64 v31; // rax double v32; // xmm0_8 char *v33; // rax void *v34; // rsi __int64 v35; // rax void *v36; // rsi __int64 v37; // rax double v38; // xmm0_8 char *v39; // rax void *v40; // rax __int64 v41; // rax double v42; // xmm0_8 __int64 v43; // rax char *v44; // r12 double v45; // xmm0_8 const std::string::value_type *v46; // rsi const std::string::value_type *v47; // rax __int64 v48; // rax __int64 v49; // rax __int64 v50; // rax char v51; // r15 std::string::pointer v52; // rdi char *v53; // r12 void *v54; // r13 float *v55; // rax char *v56; // r12 char *v57; // r14 __int64 v58; // rbx void *v59; // rax __int64 v60; // rax __int64 v61; // rsi __int64 v62; // r14 __int64 v63; // rdi __int64 v64; // rax double v65; // xmm0_8 char *v66; // rax __int64 v67; // r12 double v68; // xmm0_8 __int64 v69; // r14 __int64 v70; // rax char *v71; // rax __int64 v72; // r14 double v73; // xmm0_8 __int64 v74; // r14 __int64 v75; // rax double v76; // xmm0_8 char *v77; // r14 unsigned __int64 *v78; // r12 double v79; // xmm0_8 char *v80; // r14 unsigned __int64 *v81; // r12 __int64 v82; // xmm0_8 unsigned int v83; // r15d bool v84; // r14 double v85; // xmm0_8 const char *v86; // rcx const char *v87; // rcx bool v88; // bl unsigned int v89; // r13d unsigned __int8 *v90; // rax int v91; // ecx int v92; // edx int v93; // eax __int64 v94; // rax bool v95; // r14 __int64 v96; // r12 const char *CoinKey_1; // rax const char *v98; // rsi char v99; // r15 const char *v100; // rdi bool hasUserCoin; // al char *v102; // r12 float v103; // xmm0_4 int v104; // eax unsigned int v105; // r14d __int64 v106; // rax __int64 StartPosObjectsForCurrentMode; // rax __int64 v108; // r14 __int64 v109; // rax int v110; // eax __int64 v111; // r15 __int64 v112; // r14 __int64 v113; // rax double v114; // xmm0_8 char *v115; // r14 void *v116; // r14 double v117; // xmm0_8 unsigned __int8 *v118; // r14 void *v119; // r14 char *v120; // r12 void *v121; // r12 char *v122; // r14 void *v123; // r14 __int64 result; // rax char *v125; // r15 void *v126; // r12 __int64 v127; // r14 unsigned int *v128; // rax double v129; // xmm0_8 char *v130; // r15 void *v131; // r13 __int64 v132; // r12 unsigned int *v133; // rax double v134; // xmm0_8 char *v135; // r15 void *v136; // r13 __int64 v137; // r12 unsigned int *v138; // rax unsigned __int64 v139[2]; // [rsp+0h] [rbp-100h] BYREF float v140; // [rsp+10h] [rbp-F0h] BYREF unsigned __int64 v141; // [rsp+18h] [rbp-E8h] BYREF const char *v142; // [rsp+20h] [rbp-E0h] void *v143; // [rsp+28h] [rbp-D8h] void *v144; // [rsp+30h] [rbp-D0h] void *v145; // [rsp+38h] [rbp-C8h] const char *v146; // [rsp+40h] [rbp-C0h] unsigned int v147; // [rsp+48h] [rbp-B8h] BYREF char v148; // [rsp+4Ch] [rbp-B4h] BYREF __int64 v149; // [rsp+50h] [rbp-B0h] unsigned int v150; // [rsp+58h] [rbp-A8h] BYREF float v151; // [rsp+5Ch] [rbp-A4h] BYREF unsigned __int64 v152; // [rsp+60h] [rbp-A0h] BYREF unsigned int v153; // [rsp+68h] [rbp-98h] int v154; // [rsp+6Ch] [rbp-94h] __int64 v155; // [rsp+70h] [rbp-90h] float v156; // [rsp+7Ch] [rbp-84h] __int64 v157; // [rsp+80h] [rbp-80h] _QWORD **v158; // [rsp+88h] [rbp-78h] std::string v159; // [rsp+90h] [rbp-70h] BYREF unsigned __int64 v160; // [rsp+ACh] [rbp-54h] BYREF float v161; // [rsp+B4h] [rbp-4Ch] BYREF float v162; // [rsp+B8h] [rbp-48h] float v163; // [rsp+BCh] [rbp-44h] unsigned int *v164; // [rsp+C0h] [rbp-40h] unsigned __int64 v165; // [rsp+C8h] [rbp-38h] BYREF unsigned __int64 v166[6]; // [rsp+D0h] [rbp-30h] BYREF ((void (__fastcall *)(_QWORD **, void *))(*a1)[152])(a1, &unk_100A094B0); ((void (__fastcall *)(_QWORD **, __int64))(*a1)[146])(a1, 75); v2 = cocos2d::CCDirector::sharedDirector(a1, 75); cocos2d::CCDirector::getWinSize(&v161, v2); v3 = cocos2d::CCLayer::create(); a1[79] = (_QWORD *)v3; v4 = v3; ((void (__fastcall *)(_QWORD **, __int64))(*a1)[57])(a1, v3); sub_100278270((__int64)v139, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u); v5 = cocos2d::CCDirector::sharedDirector(v139, v4); *(float *)&v164 = sub_100479770(v5) + -20.0; v6 = cocos2d::CCDirector::sharedDirector(v5, v4); v7 = sub_100479760(v6); *(float *)&v164 = *(float *)&v164 - v7; v8 = cocos2d::CCDirector::sharedDirector(v6, v4); v9 = sub_100479740(v8); v163 = *(float *)&v9 + -20.0; v10 = cocos2d::CCDirector::sharedDirector(v8, v4); v11 = sub_100479750(v10); v163 = v163 - *(float *)&v11; sub_1002787F0((__m128 *)&v159, v139); v12 = cocos2d::extension::CCScale9Sprite::create_2("square04_001.png", &v159); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 912LL))(v12, 175); sub_100278260(&v140, *(float *)&v164, v163); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v12 + 320LL))(v12, &v140); (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1[79] + 464LL))(a1[79], v12, 0xFFFFFFFFLL); sub_100278250((float *)&v159, v161 * 0.5, v162 * 0.5); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v12 + 184LL))(v12, &v159); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v12 + 960LL))(v12, &unk_100A094B0); v13 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1936LL); if ( (*(_BYTE *)(v13 + 344) & 1) != 0 ) { sub_10001AD30(&v159, *(const void **)(v13 + 360), *(_QWORD *)(v13 + 352)); if ( (*(_BYTE *)&v159.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_3; } else { v159 = *(std::string *)(v13 + 344); if ( (*(_BYTE *)&v159.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_3: data = v159.__r_.__value_.__s.__data_; goto LABEL_6; } } data = v159.__r_.__value_.__l.__data_; LABEL_6: v15 = cocos2d::CCLabelBMFont::create_3(data, "bigFont.fnt"); if ( (*(_BYTE *)&v159.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v159.__r_.__value_.__l.__data_); v163 = v163 * 0.5; sub_100278250((float *)&v159, v161 * 0.5, (float)((float)(v162 * 0.5) + v163) + -20.0); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v15 + 184LL))(v15, &v159); (*(void (__fastcall **)(_QWORD *, __int64))(*a1[79] + 456LL))(a1[79], v15); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 344LL))(v15, 1); PauseLayer::setupProgressBars(a1); v16 = cocos2d::CCMenu::create(); v17 = (*(double (__fastcall **)(_QWORD *, __int64))(*a1[79] + 456LL))(a1[79], v16); v18 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_menuBtn_001.png", v17); if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1936LL) + 1140LL) == 2 || (v19 = GameManager::sharedState(), *(_DWORD *)(v19 + 1032) > *(_DWORD *)(v19 + 1036)) ) { v20 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_editBtn_001.png", v17); LODWORD(v157) = *(_DWORD *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v18 + 328LL))(v18); v21 = (float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v20 + 328LL))(v20); *(_QWORD *)&v17 = (unsigned int)v157; *(float *)&v17 = *(float *)&v157 / *v21; (*(void (__fastcall **)(char *, float))(*(_QWORD *)v20 + 160LL))(v20, *(float *)&v17); v22 = CCMenuItemSpriteExtra::create((__int64)v20, 0, (__int64)a1, (__int64)PauseLayer::onTryEdit, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v16 + 456LL))(v16, v22); } if ( *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 3272LL) + 341LL) == 1 ) { v23 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_replayFullBtn_001.png", v17); v24 = CCMenuItemSpriteExtra::create((__int64)v23, 0, (__int64)a1, (__int64)PauseLayer::onRestartFull, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v16 + 456LL))(v16, v24); } v25 = *(_QWORD *)(GameManager::sharedState() + 544); v26 = "GJ_practiceBtn_001.png"; if ( *(_BYTE *)(v25 + 12544) ) v26 = "GJ_normalBtn_001.png"; v27 = PauseLayer::onPracticeMode; if ( *(_BYTE *)(v25 + 12544) ) v27 = PauseLayer::onNormalMode; v28 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v26, v17); v29 = 0; v30 = CCMenuItemSpriteExtra::create((__int64)v28, 0, (__int64)a1, (__int64)v27, 0); v31 = *(_QWORD *)v16; v143 = v30; v32 = (*(double (__fastcall **)(__int64))(v31 + 456))(v16); v33 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_playBtn2_001.png", v32); v34 = CCMenuItemSpriteExtra::create((__int64)v33, 0, (__int64)a1, (__int64)PauseLayer::onResume, 0); v35 = *(_QWORD *)v16; v145 = v34; (*(void (__fastcall **)(__int64))(v35 + 456))(v16); v36 = CCMenuItemSpriteExtra::create((__int64)v18, 0, (__int64)a1, (__int64)PauseLayer::tryQuit, 0); v37 = *(_QWORD *)v16; v144 = v36; v38 = (*(double (__fastcall **)(__int64))(v37 + 456))(v16); v39 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_replayBtn_001.png", v38); v40 = CCMenuItemSpriteExtra::create((__int64)v39, 0, (__int64)a1, (__int64)PauseLayer::onRestart, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v16 + 456LL))(v16, v40); v41 = GameManager::sharedState(); cocos2d::CCMenu::alignItemsHorizontallyWithPadding( v16, flt_100A094A8[*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(v41 + 544) + 1936LL) + 1140LL) == 2]); *(_QWORD *)&v42 = *(unsigned int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 192LL))(v16); sub_100278250((float *)&v159, *(float *)&v42, (float)(v162 * 0.5) + -30.0); v43 = *(_QWORD *)v16; v157 = v16; (*(void (__fastcall **)(__int64, std::string *))(v43 + 184))(v16, &v159); if ( !*(_BYTE *)(GameManager::sharedState() + 930) && *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1936LL) + 1140LL) != 2 && !*(_BYTE *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 3272LL) + 341LL) ) { v44 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_practiceTxt_001.png", v42); (*(void (__fastcall **)(_QWORD *, char *))(*a1[79] + 456LL))(a1[79], v44); sub_100278250((float *)&v159, (float)(v161 * 0.5) + -190.0, (float)(v162 * 0.5) + -12.0); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v44 + 184LL))(v44, &v159); } v158 = a1; *(float *)&v164 = *(float *)&v164 * 0.5; sub_100278250( (float *)&v150, (float)((float)(v161 * 0.5) + *(float *)&v164) + -26.0, (float)((float)(v162 * 0.5) + v163) + -26.0); sub_100278250((float *)&v147, (float)((float)(v161 * 0.5) - *(float *)&v164) + 26.0, v151); LODWORD(v164) = *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1936LL) + 1140LL); strcpy((char *)&v159, "&GJ_plainBtn_001.png"); v45 = *(double *)"GJ_plainBtn_001.png"; v46 = "sideBtn_marker_001.png"; v47 = "sideBtn_hide_001.png"; switch ( (unsigned __int64)"sideBtn_hide_001.png" ) { case 0uLL: LABEL_23: v47 = "sideBtn_options_001.png"; goto LABEL_41; case 1uLL: goto LABEL_41; case 2uLL: LABEL_26: v48 = GameManager::sharedState(); v46 = "sideBtn_death_001.png"; if ( (unsigned __int8)GJGameLevel::isPlatformer(*(_QWORD *)(*(_QWORD *)(v48 + 544) + 1936LL), v45) ) goto LABEL_54; goto LABEL_38; case 3uLL: goto LABEL_38; case 4uLL: LABEL_32: if ( (_DWORD)v164 == 2 ) goto LABEL_54; v46 = "sideBtn_chat_001.png"; if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1936LL) + 1140LL) == 1 ) goto LABEL_54; goto LABEL_38; case 5uLL: LABEL_24: v46 = "sideBtn_quests_001.png"; if ( (_DWORD)v164 == 2 ) goto LABEL_54; goto LABEL_38; case 6uLL: LABEL_28: if ( (_DWORD)v164 != 2 ) goto LABEL_54; v49 = GameManager::sharedState(); v46 = "sideBtn_damageOn_001.png"; if ( (unsigned __int8)GameManager::getGameVariable(v49, "0173") ) v46 = "sideBtn_damageOff_001.png"; LABEL_38: v51 = 1; std::string::assign(&v159, v46); break; case 7uLL: LABEL_37: v50 = GameManager::sharedState(); v46 = "sideBtn_platUI_001.png"; if ( (unsigned __int8)GJGameLevel::isPlatformer(*(_QWORD *)(*(_QWORD *)(v50 + 544) + 1936LL), v45) ) goto LABEL_38; goto LABEL_54; case 8uLL: LABEL_35: v47 = "sideBtn_time_001.png"; if ( (_DWORD)v164 != 2 ) goto LABEL_54; goto LABEL_41; case 9uLL: LABEL_39: if ( *(_BYTE *)(*(_QWORD *)(GameManager::sharedState() + 544) + 12544LL) != 1 ) goto LABEL_54; v47 = "sideBtn_practiceUI_001.png"; LABEL_41: v51 = 0; std::string::assign(&v159, v47); break; } v52 = v159.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v159.__r_.__value_.__s.0 & 1) != 0 ) v52 = v159.__r_.__value_.__l.__data_; v53 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v52, v45); v54 = CCMenuItemSpriteExtra::create((__int64)v53, 0, (__int64)v158, (__int64)PauseLayer::onSideButtonPressed, 0); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v54 + 72LL))(v54, v29); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v157 + 456LL))(v157, v54); if ( v51 ) { cocos2d::CCNode::convertToNodeSpace((double *)&v165, v157, &v147); (*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v54 + 184LL))(v54, &v165); v55 = (float *)&v148; } else { cocos2d::CCNode::convertToNodeSpace((double *)&v165, v157, &v150); (*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v54 + 184LL))(v54, &v165); v55 = &v151; } *(_QWORD *)&v45 = *(unsigned int *)v55; *(float *)&v45 = *(float *)&v45 + -34.0; *v55 = *(float *)&v45; if ( v29 == 8 ) { *(_QWORD *)&v45 = *(unsigned int *)(*(_QWORD *)(GameManager::sharedState() + 544) + 13112LL); if ( *(float *)&v45 != 1.0 ) PauseLayer::onSideButtonPressed(v158, v54); } else if ( v29 == 5 ) { v158[83] = v53; if ( v53 ) { (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v53 + 560LL))(v53, 99); if ( ChallengesPage::canCollectQuests() ) { v56 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"exMark_001.png", v45); (*(void (__fastcall **)(_QWORD *, char *, __int64, __int64))(*v158[83] + 472LL))(v158[83], v56, 10, 99); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v56 + 160LL))(v56, 0.30000001); *(_QWORD *)&v45 = 1086324736; sub_100278250((float *)&v165, 6.0, 22.0); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v56 + 184LL))(v56, &v165); } } } LABEL_54: if ( (*(_BYTE *)&v159.__r_.__value_.__s.0 & 1) == 0 ) { if ( ++v29 == 10 ) goto LABEL_58; LABEL_22: strcpy((char *)&v159, "&GJ_plainBtn_001.png"); v45 = *(double *)"GJ_plainBtn_001.png"; v47 = "sideBtn_hide_001.png"; v46 = "sideBtn_marker_001.png"; switch ( (unsigned __int64)"sideBtn_hide_001.png" ) { case 0uLL: goto LABEL_23; case 1uLL: goto LABEL_41; case 2uLL: goto LABEL_26; case 3uLL: goto LABEL_38; case 4uLL: goto LABEL_32; case 5uLL: goto LABEL_24; case 6uLL: goto LABEL_28; case 7uLL: goto LABEL_37; case 8uLL: goto LABEL_35; case 9uLL: goto LABEL_39; } } operator delete(v159.__r_.__value_.__l.__data_); if ( ++v29 != 10 ) goto LABEL_22; LABEL_58: v57 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"hideBtn_001.png", v45); (*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v57 + 912LL))(v57, 0); v58 = (__int64)v158; v59 = CCMenuItemSpriteExtra::create((__int64)v57, 0, (__int64)v158, (__int64)sub_1003C1980, 0); v60 = cocos2d::CCMenu::createWithItem(v59); *(_QWORD *)(v58 + 656) = v60; v61 = v60; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v58 + 464LL))(v58, v60, 100); v62 = *(_QWORD *)(v58 + 656); v63 = cocos2d::CCDirector::sharedDirector(v58, v61); *(float *)&v164 = sub_100479770(v63) + -17.0; v64 = cocos2d::CCDirector::sharedDirector(v63, v61); v65 = sub_100479740(v64); (*(void (__fastcall **)(__int64, float, float))(*(_QWORD *)v62 + 200LL))(v62, *(float *)&v164, *(float *)&v65 + -15.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v58 + 656) + 344LL))(*(_QWORD *)(v58 + 656), 0); sub_100278250((float *)&v159, v161 * 0.5, (float)(v162 * 0.5) + -90.0); v66 = Slider::create_1(v58, (int)PauseLayer::musicSliderChanged, 0, 0.69999999); *(_QWORD *)(v58 + 640) = v66; Slider::setBarVisibility((__int64)v66); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v58 + 632) + 456LL))( *(_QWORD *)(v58 + 632), *(_QWORD *)(v58 + 640)); v67 = *(_QWORD *)(v58 + 640); sub_100278250((float *)v166, -100.0, 0.0); sub_100278350((double *)&v165, (unsigned __int64 *)&v159, v166); v68 = (*(double (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v67 + 184LL))(v67, &v165); v69 = *(_QWORD *)(v58 + 640); v70 = FMODAudioEngine::sharedEngine(v68); *(float *)&v68 = FMODAudioEngine::getBackgroundMusicVolume(v70); Slider::setValue(v69, *(float *)&v68); v71 = Slider::create_1(v58, (int)PauseLayer::sfxSliderChanged, 0, 0.69999999); *(_QWORD *)(v58 + 648) = v71; Slider::setBarVisibility((__int64)v71); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v58 + 632) + 456LL))( *(_QWORD *)(v58 + 632), *(_QWORD *)(v58 + 648)); v72 = *(_QWORD *)(v58 + 648); sub_100278250((float *)v166, 100.0, 0.0); sub_100278350((double *)&v165, (unsigned __int64 *)&v159, v166); v73 = (*(double (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v72 + 184LL))(v72, &v165); v74 = *(_QWORD *)(v58 + 648); v75 = FMODAudioEngine::sharedEngine(v73); v76 = sub_1003D3F10(v75); Slider::setValue(v74, *(float *)&v76); *(_QWORD *)(GameManager::sharedState() + 952) = v58 + 576; v77 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gj_songIcon_001.png", v76); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v77 + 160LL))(v77, 1.2); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v58 + 632) + 456LL))(*(_QWORD *)(v58 + 632), v77); v78 = (unsigned __int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v58 + 640) + 192LL))(*(_QWORD *)(v58 + 640)); sub_100278250((float *)v166, -90.0, 0.0); sub_100278350((double *)&v165, v78, v166); v79 = (*(double (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v77 + 184LL))(v77, &v165); v80 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_sfxIcon_001.png", v79); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v80 + 160LL))(v80, 1.2); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v58 + 632) + 456LL))(*(_QWORD *)(v58 + 632), v80); v81 = (unsigned __int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v58 + 648) + 192LL))(*(_QWORD *)(v58 + 648)); v82 = 3266576384LL; sub_100278250((float *)v166, -90.0, 0.0); sub_100278350((double *)&v165, v81, v166); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v80 + 184LL))(v80, &v165); v164 = *(unsigned int **)(*(_QWORD *)(GameManager::sharedState() + 544) + 1936LL); v155 = v164[241]; if ( (int)v155 > 0 && !*(_BYTE *)(*(_QWORD *)(GameManager::sharedState() + 544) + 12544LL) ) { v83 = v164[285]; if ( v83 != 2 ) { v154 = v164[242] - v164[243]; v84 = v154 == 1; *(_QWORD *)&v85 = LODWORD(v161); *(float *)&v85 = v161 * 0.5; sub_100278250((float *)&v165, v161 * 0.5, (float)((float)(v162 * 0.5) - v163) + 23.0); v149 = sub_1007FE900(&v165); v86 = "gjCoinUI_02_off_001.png"; if ( v83 == 1 ) v86 = "gjCoinUI_01_off_001.png"; v146 = v86; v87 = "gjCoinUI_02_on_001.png"; if ( v83 == 1 ) v87 = "gjCoinUI_01_on_001.png"; v142 = v87; v88 = v84 || v83 == 1; v155 = (unsigned int)-(int)v155; v89 = 1; v153 = v83; while ( 1 ) { v94 = GameManager::sharedState(); v95 = GJBaseGameLayer::didPickupItem(*(_QWORD *)(v94 + 544)); v96 = GameStatsManager::sharedState(); CoinKey_1 = (const char *)GJGameLevel::getCoinKey_1(v164, v89); if ( v83 == 1 ) { v98 = CoinKey_1; v99 = 1; v100 = "gjCoinUI_01_collected_001.png"; if ( !GameStatsManager::hasSecretCoin(v96) ) goto LABEL_75; } else { v98 = CoinKey_1; if ( v154 == 1 ) hasUserCoin = GameStatsManager::hasUserCoin(v96, CoinKey_1); else hasUserCoin = GameStatsManager::hasPendingUserCoin(v96, CoinKey_1); v99 = 1; v100 = "gjCoinUI_02_collected_001.png"; if ( !hasUserCoin ) { LABEL_75: v100 = v142; if ( !v95 ) v100 = v146; v99 = 0; } } v102 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v100, v85); *(_QWORD *)&v85 = 1066192077; (*(void (__fastcall **)(char *, const char *, float))(*(_QWORD *)v102 + 160LL))(v102, v98, 1.1); (*(void (__fastcall **)(_QWORD *, char *, __int64))(*v158[79] + 464LL))(v158[79], v102, 8); sub_1007FEBF0(v149, v102); if ( !v88 ) { BYTE2(v166[0]) = 75; LOWORD(v166[0]) = -20481; (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v102 + 960LL))(v102, v166); } if ( !v95 ) { v103 = 0.5; if ( !v99 ) v103 = 0.75; v104 = 191; if ( v99 ) v104 = 125; v105 = 191; if ( v99 ) v105 = 150; if ( v88 ) v105 = v104; else v103 = v103 * 0.5; v156 = v103; v90 = (unsigned __int8 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v102 + 944LL))(v102); v91 = (int)(float)((float)*v90 * v156); v92 = (int)(float)((float)v90[1] * v156); HIDWORD(v85) = 0; *(float *)&v85 = (float)v90[2] * v156; BYTE2(v166[0]) = (int)*(float *)&v85; BYTE1(v166[0]) = v92; LOBYTE(v166[0]) = v91; (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v102 + 960LL))(v102, v166); (*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v102 + 912LL))(v102, v105); } v93 = v89 + v155 + 1; ++v89; v83 = v153; if ( v93 == 1 ) { sub_1002782D0(v166, &v165); v82 = 1101004800; GameToolbox::alignItemsHorisontally(v149, v166, 0, 20.0); v58 = (__int64)v158; break; } } } } v106 = GameManager::sharedState(); StartPosObjectsForCurrentMode = GJBaseGameLayer::getStartPosObjectsForCurrentMode(*(_QWORD *)(v106 + 544)); *(_QWORD *)(v58 + 608) = StartPosObjectsForCurrentMode; cocos2d::CCObject::retain(StartPosObjectsForCurrentMode); if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(v58 + 608)) || *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1936LL) + 1140LL) == 2 ) { sub_100278250((float *)&v165, v161 * 0.5, (float)((float)(0.5 * v162) - v163) + 17.0); if ( *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 12432LL) ) { v108 = *(_QWORD *)(v58 + 608); v109 = GameManager::sharedState(); v110 = sub_1007FEFB0(v108, *(_QWORD *)(*(_QWORD *)(v109 + 544) + 12432LL)) + 1; } else { v110 = 0; } v111 = v157; *(_DWORD *)(v58 + 600) = v110; v112 = cocos2d::CCLabelBMFont::create_3("StartPos:", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v112 + 160LL))(v112, 0.5); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v58 + 632) + 456LL))(*(_QWORD *)(v58 + 632), v112); sub_100278250((float *)v166, *(float *)&v165 + -130.0, *((float *)&v165 + 1) + 1.0); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v112 + 184LL))(v112, v166); v113 = cocos2d::CCLabelBMFont::create_3("StartPos", "bigFont.fnt"); *(_QWORD *)(v58 + 592) = v113; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v58 + 632) + 456LL))(*(_QWORD *)(v58 + 632), v113); v114 = (*(double (__fastcall **)(_QWORD, unsigned __int64 *))(**(_QWORD **)(v58 + 592) + 184LL))( *(_QWORD *)(v58 + 592), &v165); v115 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_01_001.png", v114); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v115 + 160LL))(v115, 0.55000001); v116 = CCMenuItemSpriteExtra::create((__int64)v115, 0, v58, (__int64)PauseLayer::onChangeStartpos, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v111 + 456LL))(v111, v116); sub_100278250((float *)&v152, -75.0, 0.0); sub_100278350((double *)&v160, &v165, &v152); cocos2d::CCNode::convertToNodeSpace((double *)v166, v111, (unsigned int *)&v160); (*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v116 + 184LL))(v116, v166); CCMenuItemSpriteExtra::setSizeMult((__int64)v116, 1.4); v117 = (*(double (__fastcall **)(void *, __int64))(*(_QWORD *)v116 + 72LL))(v116, 0xFFFFFFFFLL); v118 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_01_001.png", v117); cocos2d::CCSprite::setFlipX(v118, 1u); (*(void (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v118 + 160LL))(v118, 0.55000001); v119 = CCMenuItemSpriteExtra::create((__int64)v118, 0, v58, (__int64)PauseLayer::onChangeStartpos, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v111 + 456LL))(v111, v119); sub_100278250((float *)&v152, 75.0, 0.0); sub_100278350((double *)&v160, &v165, &v152); cocos2d::CCNode::convertToNodeSpace((double *)v166, v111, (unsigned int *)&v160); (*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v119 + 184LL))(v119, v166); CCMenuItemSpriteExtra::setSizeMult((__int64)v119, 1.4); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v119 + 72LL))(v119, 1); sub_100278250((float *)&v160, 110.0, 0.0); sub_100278350((double *)v166, &v165, &v160); v120 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_menuBtn_001.png", COERCE_DOUBLE(1121714176)); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v120 + 160LL))(v120, 0.38499999); v121 = CCMenuItemSpriteExtra::create((__int64)v120, 0, v58, (__int64)PauseLayer::onShowStartposBrowser, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v111 + 456LL))(v111, v121); v82 = 0; sub_100278250((float *)&v141, 0.0, 0.0); sub_100278350((double *)&v152, v166, &v141); cocos2d::CCNode::convertToNodeSpace((double *)&v160, v111, (unsigned int *)&v152); (*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v121 + 184LL))(v121, &v160); if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1936LL) + 1140LL) == 2 ) { v122 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_plusBtn_001.png", 0.0); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v122 + 160LL))(v122, 0.495); v123 = CCMenuItemSpriteExtra::create((__int64)v122, 0, v58, (__int64)PauseLayer::onCreateStartpos, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v111 + 456LL))(v111, v123); v82 = 1106247680; sub_100278250((float *)&v141, 30.0, 0.0); sub_100278350((double *)&v152, v166, &v141); cocos2d::CCNode::convertToNodeSpace((double *)&v160, v111, (unsigned int *)&v152); (*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v123 + 184LL))(v123, &v160); } PauseLayer::onChangeStartpos(v58, 0); *(_BYTE *)(v58 + 616) = 0; } result = PlatformToolbox::isControllerConnected(*(double *)&v82); if ( (_BYTE)result ) { v125 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"controllerBtn_Start_001.png", *(double *)&v82); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v58 + 632) + 456LL))(*(_QWORD *)(v58 + 632), v125); v126 = v145; v127 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v145 + 512LL))(v145); v128 = (unsigned int *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v126 + 192LL))(v126); cocos2d::CCNode::convertToWorldSpace((double *)v166, v127, v128); cocos2d::CCNode::convertToNodeSpace((double *)&v165, v58, (unsigned int *)v166); sub_100278250((float *)&v160, 0.0, -37.0); sub_100278350((double *)v166, &v165, &v160); v129 = (*(double (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v125 + 184LL))(v125, v166); v130 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"controllerBtn_B_001.png", v129); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v58 + 632) + 456LL))(*(_QWORD *)(v58 + 632), v130); v131 = v144; v132 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v144 + 512LL))(v144); v133 = (unsigned int *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v131 + 192LL))(v131); cocos2d::CCNode::convertToWorldSpace((double *)&v160, v132, v133); cocos2d::CCNode::convertToNodeSpace((double *)v166, v58, (unsigned int *)&v160); sub_100278300(&v165, v166); sub_100278250((float *)&v160, 0.0, -30.0); sub_100278350((double *)v166, &v165, &v160); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v130 + 184LL))(v130, v166); v134 = (*(double (__fastcall **)(char *, float))(*(_QWORD *)v130 + 160LL))(v130, 0.80000001); v135 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"controllerBtn_X_001.png", v134); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v58 + 632) + 456LL))(*(_QWORD *)(v58 + 632), v135); v136 = v143; v137 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v143 + 512LL))(v143); v138 = (unsigned int *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v136 + 192LL))(v136); cocos2d::CCNode::convertToWorldSpace((double *)&v160, v137, v138); cocos2d::CCNode::convertToNodeSpace((double *)v166, v58, (unsigned int *)&v160); sub_100278300(&v165, v166); sub_100278250((float *)&v160, 0.0, -30.0); sub_100278350((double *)v166, &v165, &v160); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v135 + 184LL))(v135, v166); return (*(__int64 (__fastcall **)(char *, float))(*(_QWORD *)v135 + 160LL))(v135, 0.80000001); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source