// // SecretLayer2::init from 0x100496170 to 0x100496fae (3646 bytes) // // 2 xrefs: // > SecretLayer2::create @ 0x100496131 // > @ 0x100b503c8 // // 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:30:49 +0000 // __int64 __fastcall SecretLayer2::init(int *a1, double a2) { __int64 result; // rax __int64 v4; // rax __int64 v5; // rax __int64 v6; // rax __int64 v7; // rsi _QWORD *v8; // rax _QWORD *v9; // rdi __int64 v10; // rax const char *v11; // rsi __int64 v12; // rdi __int64 v13; // r14 char *v14; // r15 __int64 v15; // rax const char *v16; // rsi __int64 v17; // rdi __int64 v18; // r14 char *v19; // r15 __int64 v20; // rax const char *v21; // rsi __int64 v22; // rdi __int64 v23; // r14 char *v24; // r15 __int64 v25; // rax const char *v26; // rsi __int64 v27; // rdi __int64 v28; // r14 char *v29; // r15 __int64 v30; // rax const char *v31; // rsi __int64 v32; // rdi __int64 v33; // r14 char *v34; // r15 __int64 v35; // rax const char *v36; // rsi __int64 v37; // rdi __int64 v38; // r14 char *v39; // r15 __int64 v40; // rax __int64 v41; // r14 void *v42; // r15 __int64 v43; // rax __int64 v44; // r14 void *v45; // r15 float *v46; // r14 __int64 v47; // r14 __int64 v48; // rax __int64 v49; // r15 __int64 v50; // rdi std::string::pointer data; // rsi void *v52; // r15 void *v53; // rax _QWORD *v54; // rdi __int64 v55; // r14 double updated; // xmm0_8 char *v57; // rax void *v58; // r15 int v59; // edx int v60; // ecx int v61; // r8d int v62; // r9d __int64 v63; // r14 __int64 v64; // rax __int64 v65; // rax float v66; // xmm1_4 double v67; // xmm0_8 char *v68; // r15 char *v69; // r12 void *v70; // rax __int64 v71; // r15 __int64 v72; // rax const char *v73; // rdi char *v74; // rax _WORD *v75; // rax __int64 v76; // r15 double v77; // xmm0_8 __int64 v78; // rax char *v79; // r15 void *v80; // rax __int64 v81; // r12 __int64 v82; // r14 __int64 v83; // r15 unsigned __int64 *v84; // r14 __int64 v85; // xmm0_8 __int64 v86; // rax char *v87; // r15 __int64 v88; // rax __int64 CString; // rax __int64 v90; // r15 __int64 v91; // rax unsigned int v92; // r14d __int64 v93; // rax __int64 v94; // rax __int64 v95; // rax __int64 MainLevel; // rax _OWORD *v97; // r14 __int64 v98; // rax __int64 v99; // rax char v100; // [rsp+0h] [rbp-D0h] unsigned __int64 v101; // [rsp+8h] [rbp-C8h] BYREF __m128 v102; // [rsp+10h] [rbp-C0h] BYREF unsigned __int64 v103; // [rsp+20h] [rbp-B0h] BYREF void *v104[3]; // [rsp+28h] [rbp-A8h] BYREF std::string v105; // [rsp+40h] [rbp-90h] BYREF std::string v106; // [rsp+58h] [rbp-78h] BYREF unsigned __int64 v107[2]; // [rsp+70h] [rbp-60h] BYREF unsigned __int64 v108; // [rsp+80h] [rbp-50h] BYREF unsigned __int64 v109; // [rsp+88h] [rbp-48h] BYREF unsigned __int64 v110; // [rsp+90h] [rbp-40h] BYREF float v111; // [rsp+98h] [rbp-38h] __int64 v112; // [rsp+9Ch] [rbp-34h] BYREF unsigned __int8 v113; // [rsp+A7h] [rbp-29h] result = cocos2d::CCLayer::init(a1); if ( !(_BYTE)result ) return result; v113 = result; v4 = cocos2d::CCTextureCache::sharedTextureCache(a1); cocos2d::CCTextureCache::addImage(v4, "SecretSheet.png", 0); v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile_2(v5, "SecretSheet.plist", a2); v6 = GameManager::sharedState(); strcpy((char *)v104, " secretLoop02.mp3"); GameManager::fadeInMusic(*(__m128 *)"secretLoop02.mp3", v6, (unsigned __int8 *)v104); if ( ((__int64)v104[0] & 1) != 0 ) operator delete(v104[2]); (*(void (__fastcall **)(int *, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); (*(void (__fastcall **)(int *, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 1); v7 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v112, v7); v8 = cocos2d::CCDictionary::create(); *((_QWORD *)a1 + 60) = v8; v9 = v8; cocos2d::CCObject::retain((__int64)v8); v10 = AchievementManager::sharedState(v9, v7); v11 = "geometry.ach.v2.secret01"; v12 = v10; if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v10, "geometry.ach.v2.secret01") ) { v13 = *((_QWORD *)a1 + 60); v14 = (char *)cocos2d::CCNode::create(); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v14 + 72LL))(v14, 1); v12 = v13; v11 = v14; cocos2d::CCDictionary::setObject_1(v13, (__int64)v14, 1); } v15 = AchievementManager::sharedState(v12, v11); v16 = "geometry.ach.secret06"; v17 = v15; if ( (unsigned __int8)AchievementManager::isAchievementEarned(v15, "geometry.ach.secret06") ) { v16 = "geometry.ach.v2.secret03"; v17 = AchievementManager::sharedState(v17, "geometry.ach.secret06"); if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v17, "geometry.ach.v2.secret03") ) { v18 = *((_QWORD *)a1 + 60); v19 = (char *)cocos2d::CCNode::create(); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v19 + 72LL))(v19, 3); v17 = v18; v16 = v19; cocos2d::CCDictionary::setObject_1(v18, (__int64)v19, 3); } } v20 = AchievementManager::sharedState(v17, v16); v21 = "geometry.ach.v2.secret05"; v22 = v20; if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v20, "geometry.ach.v2.secret05") ) { v23 = *((_QWORD *)a1 + 60); v24 = (char *)cocos2d::CCNode::create(); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v24 + 72LL))(v24, 5); v22 = v23; v21 = v24; cocos2d::CCDictionary::setObject_1(v23, (__int64)v24, 5); } v25 = AchievementManager::sharedState(v22, v21); v26 = "geometry.ach.v2.secret06"; v27 = v25; if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v25, "geometry.ach.v2.secret06") ) { v28 = *((_QWORD *)a1 + 60); v29 = (char *)cocos2d::CCNode::create(); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v29 + 72LL))(v29, 6); v27 = v28; v26 = v29; cocos2d::CCDictionary::setObject_1(v28, (__int64)v29, 6); } v30 = AchievementManager::sharedState(v27, v26); v31 = "geometry.ach.v2.secret08"; v32 = v30; if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v30, "geometry.ach.v2.secret08") ) { v33 = *((_QWORD *)a1 + 60); v34 = (char *)cocos2d::CCNode::create(); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v34 + 72LL))(v34, 8); v32 = v33; v31 = v34; cocos2d::CCDictionary::setObject_1(v33, (__int64)v34, 8); } v35 = AchievementManager::sharedState(v32, v31); v36 = "geometry.ach.v2.secret09"; v37 = v35; if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v35, "geometry.ach.v2.secret09") ) { v38 = *((_QWORD *)a1 + 60); v39 = (char *)cocos2d::CCNode::create(); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v39 + 72LL))(v39, 9); v37 = v38; v36 = v39; cocos2d::CCDictionary::setObject_1(v38, (__int64)v39, 9); } v40 = AchievementManager::sharedState(v37, v36); if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v40, "geometry.ach.v2.secret10") ) { v41 = *((_QWORD *)a1 + 60); v42 = cocos2d::CCNode::create(); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v42 + 72LL))(v42, 10); cocos2d::CCDictionary::setObject_1(v41, (__int64)v42, 10); } v43 = GameManager::sharedState(); if ( !(unsigned __int8)GameManager::getUGV(v43, "1") ) { v44 = *((_QWORD *)a1 + 60); v45 = cocos2d::CCNode::create(); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v45 + 72LL))(v45, 20); cocos2d::CCDictionary::setObject_1(v44, (__int64)v45, 20); } v46 = (float *)cocos2d::CCSprite::create_1((__int64)"GJ_gradientBG.png"); sub_100278250((float *)v107, 0.0, 0.0); (*(void (__fastcall **)(float *, unsigned __int64 *))(*(_QWORD *)v46 + 296LL))(v46, v107); (*(void (__fastcall **)(int *, float *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v46, 4294967293LL); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v46 + 128LL))(v46, (float)(*(float *)&v112 + 10.0) / v46[108]); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v46 + 144LL))( v46, (float)(*((float *)&v112 + 1) + 10.0) / v46[109]); sub_100278250((float *)v107, -5.0, -5.0); (*(void (__fastcall **)(float *, unsigned __int64 *))(*(_QWORD *)v46 + 184LL))(v46, v107); BYTE2(v107[0]) = 100; LOWORD(v107[0]) = 75; (*(void (__fastcall **)(float *, unsigned __int64 *))(*(_QWORD *)v46 + 960LL))(v46, v107); sub_100278270((__int64)v107, 0.0, 0.0, (__m128)0x42200000u, (__m128)0x42200000u); v47 = cocos2d::CCLabelBMFont::create_3("Vault of Secrets", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v47 + 160LL))(v47, 1.0); (*(void (__fastcall **)(int *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v47); sub_100278250(v102.f32, *(float *)&v112 * 0.5, *((float *)&v112 + 1) + -24.0); (*(void (__fastcall **)(__int64, __m128 *))(*(_QWORD *)v47 + 184LL))(v47, &v102); sub_100278250((float *)&v101, *(float *)&v112 * 0.5, (float)(*((float *)&v112 + 1) * 0.5) + 50.0); v48 = cocos2d::CCLabelBMFont::create_3(" ", "bigFont.fnt"); *((_QWORD *)a1 + 58) = v48; (*(void (__fastcall **)(int *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v48); v49 = *((_QWORD *)a1 + 58); sub_100278250((float *)&v110, 0.0, 43.0); sub_100278350((double *)v102.i64, &v101, &v110); (*(void (__fastcall **)(__int64, __m128 *))(*(_QWORD *)v49 + 184LL))(v49, &v102); if ( !a1[110] ) { v111 = (float)((float)a1[112] * -0.050000001) + 1.0; if ( (float)((float)rand() * 4.6566129e-10) > v111 ) SecretLayer2::selectAThread(a1); if ( !a1[110] ) { SecretLayer2::getBasicMessage(&v106, a1); v50 = *((_QWORD *)a1 + 58); if ( (*(_BYTE *)&v106.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_26; LABEL_28: data = v106.__r_.__value_.__s.__data_; goto LABEL_29; } } SecretLayer2::getThreadMessage(&v106); v50 = *((_QWORD *)a1 + 58); if ( (*(_BYTE *)&v106.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_28; LABEL_26: data = v106.__r_.__value_.__l.__data_; LABEL_29: (*(void (__fastcall **)(__int64, std::string::pointer))(*(_QWORD *)v50 + 928LL))(v50, data); cocos2d::CCLabelBMFont::limitLabelWidth(*((_QWORD *)a1 + 58), 320.0, 0.60000002, 0.0); if ( (*(_BYTE *)&v106.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v106.__r_.__value_.__l.__data_); sub_1002787F0(&v102, v107); v52 = cocos2d::extension::CCScale9Sprite::create_2((__int64)"square02b_small.png", (unsigned __int64 *)&v102); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v52 + 912LL))(v52, 100); sub_100278260(v102.f32, 200.0, 40.0); (*(void (__fastcall **)(void *, __m128 *))(*(_QWORD *)v52 + 320LL))(v52, &v102); (*(void (__fastcall **)(int *, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v52, 4294967294LL); (*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v52 + 184LL))(v52, &v101); (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v52 + 960LL))(v52, &unk_100A0BA00); v53 = CCTextInputNode::create((__int64)"...", (__int64)"Thonburi", 0x18u, (__int64)"bigFont.fnt", 180.0, 50.0); *((_QWORD *)a1 + 57) = v53; (*(void (__fastcall **)(int *, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v53, 20); v54 = *((_QWORD **)a1 + 57); v54[73] = a1 + 102; (*(void (__fastcall **)(_QWORD *, unsigned __int64 *))(*v54 + 184LL))(v54, &v101); CCTextInputNode::setMaxLabelScale(*((_QWORD *)a1 + 57), 0.69999999); CCTextInputNode::setMaxLabelWidth(*((_QWORD *)a1 + 57), 180.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)a1 + 57) + 576LL) + 344LL))( *(_QWORD *)(*((_QWORD *)a1 + 57) + 576LL), 0); v55 = *((_QWORD *)a1 + 57); *(_DWORD *)(v55 + 592) = 100; v105.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x68u); v105.__r_.__value_.__r.__words[0] = 105; v105.__r_.__value_.__l.__size_ = 97; strcpy( v105.__r_.__value_.__l.__data_, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~"); CCTextInputNode::setAllowedChars(v55, &v105); if ( (*(_BYTE *)&v105.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v105.__r_.__value_.__l.__data_); updated = SecretLayer2::updateSearchLabel(a1, ""); v57 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_01_001.png", updated); v58 = CCMenuItemSpriteExtra::create((__int64)v57, 0, (__int64)a1, (__int64)SecretLayer2::onBack, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v58, 1.5); v63 = sub_1008735E0((_DWORD)v58, 0, v59, v60, v61, v62); (*(void (__fastcall **)(int *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v63, 1); v64 = cocos2d::CCDirector::sharedDirector(); v111 = sub_100479760(v64) + 24.0; v65 = cocos2d::CCDirector::sharedDirector(); v66 = sub_100479740(v65) + -23.0; sub_100278250((float *)&v110, v111, v66); v67 = (*(double (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v63 + 184LL))(v63, &v110); if ( (unsigned __int8)PlatformToolbox::isControllerConnected(v67) ) GameToolbox::addBackButton(a1, v58); v68 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_secretLock2_001.png", v67); v69 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_secretLock2_2_001.png", v67); (*(void (__fastcall **)(char *, char *, __int64))(*(_QWORD *)v68 + 464LL))(v68, v69, 0xFFFFFFFFLL); cocos2d::CCNode::convertToNodeSpace((double *)&v110, (__int64)v68, (unsigned int *)&unk_100BE3F98); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v69 + 184LL))(v69, &v110); v70 = CCMenuItemSpriteExtra::create((__int64)v68, 0, (__int64)a1, (__int64)SecretLayer2::onSubmit, 0); *((_QWORD *)a1 + 59) = v70; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v63 + 456LL))(v63, v70); v71 = *((_QWORD *)a1 + 59); sub_100278250((float *)&v109, *(float *)&v112 * 0.5, (float)(*((float *)&v112 + 1) * 0.5) + -20.0); cocos2d::CCNode::convertToNodeSpace((double *)&v110, v63, (unsigned int *)&v109); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v71 + 184LL))(v71, &v110); CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)a1 + 59), 0.69999999); v72 = GameManager::sharedState(); v73 = "secretDoor_closed_001.png"; if ( (unsigned __int8)GameManager::getUGV(v72, "4") ) v73 = "secretDoor_open_001.png"; v74 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v73, COERCE_DOUBLE(1060320051)); v75 = CCMenuItemSpriteExtra::create((__int64)v74, 0, (__int64)a1, (__int64)SecretLayer2::onDoor, 0); *((_QWORD *)a1 + 64) = v75; v75[204] = 256; (*(void (__fastcall **)(__int64, _WORD *))(*(_QWORD *)v63 + 456LL))(v63, v75); v76 = *((_QWORD *)a1 + 64); *(_QWORD *)&v77 = (unsigned int)v112; *(float *)&v77 = *(float *)&v112 + -45.0; sub_100278250((float *)&v109, *(float *)&v112 + -45.0, 45.0); cocos2d::CCNode::convertToNodeSpace((double *)&v110, v63, (unsigned int *)&v109); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v76 + 184LL))(v76, &v110); v78 = sub_1007FE900(v76); *((_QWORD *)a1 + 63) = v78; cocos2d::CCObject::retain(v78); v79 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_playBtn2_001.png", v77); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v79 + 160LL))(v79, 0.5); v80 = CCMenuItemSpriteExtra::create((__int64)v79, 0, (__int64)a1, (__int64)SecretLayer2::onSecretLevel, 0); *((_QWORD *)a1 + 62) = v80; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v63 + 456LL))(v63, v80); sub_100278250((float *)&v110, *(float *)&v112 + -45.0, 130.0); v81 = *((_QWORD *)a1 + 62); cocos2d::CCNode::convertToNodeSpace((double *)&v109, v63, (unsigned int *)&v110); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v81 + 184LL))(v81, &v109); v82 = cocos2d::CCLabelBMFont::create_3("The", "bigFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v82 + 160LL))(v82, 0.40000001); (*(void (__fastcall **)(int *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v82); sub_100278250((float *)&v108, 0.0, 46.0); sub_100278350((double *)&v109, &v110, &v108); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v82 + 184LL))(v82, &v109); sub_1007FEBF0(*((_QWORD *)a1 + 63), v82); v83 = cocos2d::CCLabelBMFont::create_3("Challenge", "bigFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v83 + 160LL))(v83, 0.40000001); (*(void (__fastcall **)(int *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v83); v84 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v82 + 192LL))(v82); v85 = 0; sub_100278250((float *)&v108, 0.0, -15.0); sub_100278350((double *)&v109, v84, &v108); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v83 + 184LL))(v83, &v109); sub_1007FEBF0(*((_QWORD *)a1 + 63), v83); v86 = GameStatsManager::sharedState(); if ( (int)GameStatsManager::getStat(v86, "13", (__m128)0LL) <= 199 ) { sub_100278250((float *)&v108, 3.0, -30.0); sub_100278350((double *)&v109, &v110, &v108); v87 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_diamondsIcon_001.png", COERCE_DOUBLE(1077936128)); (*(void (__fastcall **)(int *, char *))(*(_QWORD *)a1 + 456LL))(a1, v87); sub_100278250((float *)&v103, 12.0, -1.0); sub_100278350((double *)&v108, &v109, &v103); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v87 + 184LL))(v87, &v108); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v87 + 160LL))(v87, 0.69999999); sub_1007FEBF0(*((_QWORD *)a1 + 63), v87); v88 = sub_10088E820("%i", v100); CString = cocos2d::CCString::getCString(v88); v90 = cocos2d::CCLabelBMFont::create_3(CString, "bigFont.fnt"); (*(void (__fastcall **)(int *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v90); sub_100278250((float *)&v103, -8.5, 0.0); sub_100278350((double *)&v108, &v109, &v103); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v90 + 184LL))(v90, &v108); v85 = 1053609165; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v90 + 160LL))(v90, 0.40000001); sub_1007FEBF0(*((_QWORD *)a1 + 63), v90); } v91 = GameManager::sharedState(); if ( !(unsigned __int8)GameManager::getUGV(v91, "1") ) { v92 = 0; (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)a1 + 62) + 1056LL))(*((_QWORD *)a1 + 62), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)a1 + 62) + 344LL))(*((_QWORD *)a1 + 62), 0); if ( (unsigned int)sub_1007FEF90(*((_QWORD *)a1 + 63)) ) { do { v93 = sub_1007FEFE0(*((_QWORD *)a1 + 63), v92); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v93 + 344LL))(v93, 0); ++v92; } while ( v92 < (unsigned int)sub_1007FEF90(*((_QWORD *)a1 + 63)) ); } } v94 = GameManager::sharedState(); if ( !(unsigned __int8)GameManager::getUGV(v94, "4") ) { v95 = GameLevelManager::sharedState(*(double *)&v85); MainLevel = GameLevelManager::getMainLevel(v95, 3001, 1); if ( (int)GJGameLevel::getNormalPercent(MainLevel) >= 100 ) { v97 = cocos2d::CCDelayTime::create((__m128)0x3F4CCCCDu); v98 = cocos2d::CCCallFunc::create(a1, SecretLayer2::showCompletedLevel, 0); v99 = sub_10039EB60((__int64)v97, v98, 0); cocos2d::CCNode::runAction((__int64)a1, v99); } } return v113; }
GD Web Decomp Icon

GD Web Decomp

Raw Source