// // SecretLayer3::init from 0x1003aaa84 to 0x1003abbe0 (4444 bytes) // // 2 xrefs: // > sub_1003AA9D8 @ 0x1003aaa38 // > @ 0x100945fc8 // // 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:51 +0000 // bool __fastcall SecretLayer3::init(__int64 a1) { _BOOL8 v2; // x19 __int64 v3; // x21 void *v4; // x0 _DWORD *v5; // x0 __int64 v6; // x0 __int64 v7; // x0 __int64 v8; // x21 int v9; // w19 __int64 v10; // x0 float *v11; // x21 void *v12; // x21 void *v13; // x22 void *v14; // x22 void *v15; // x23 float v16; // s0 __int64 v17; // x0 _QWORD *v18; // x25 __int64 v19; // x0 __int64 v20; // x24 __int64 v21; // x28 void *v22; // x0 __int64 CString; // x0 __int64 v24; // x0 __int64 v25; // x28 void *v26; // x0 __int64 v27; // x0 _QWORD *v28; // x0 void *v29; // x0 _DWORD *v30; // x0 _QWORD *v31; // x0 void *v32; // x0 _DWORD *v33; // x0 void *v34; // x24 float32x2_t *v35; // x25 double v36; // d0 float *v37; // x0 _OWORD *v38; // x25 float *v39; // x0 char v40; // w0 __int64 v41; // x1 __int64 v42; // x2 __int64 v43; // x3 __int64 v44; // x4 __int64 v45; // x5 __int64 v46; // x6 __int64 v47; // x7 __int64 v48; // x0 _DWORD *v49; // x0 float *v50; // x0 _OWORD *v51; // x25 float *v52; // x0 char v53; // w0 __int64 v54; // x1 __int64 v55; // x2 __int64 v56; // x3 __int64 v57; // x4 __int64 v58; // x5 __int64 v59; // x6 __int64 v60; // x7 __int64 v61; // x0 _DWORD *v62; // x0 void *v63; // x24 float32x2_t *v64; // x25 double v65; // d0 void *v66; // x23 float32x2_t *v67; // x22 double v68; // d0 void *v69; // x22 float32x2_t *v70; // x23 double v71; // d0 __int64 v72; // x0 __int64 v73; // x0 __int64 v74; // x22 float32x2_t *v75; // x23 double v76; // d0 __int64 v77; // x0 __int64 v78; // x0 void *v79; // x22 float32x2_t *v80; // x23 double v81; // d0 __int64 v82; // x0 __int64 v83; // x0 __int64 UGV; // x0 __int64 v85; // x0 void *v86; // x0 __int64 v87; // x22 float32x2_t *v88; // x23 double v89; // d0 __int64 v90; // x22 _QWORD *v91; // x0 float32x2_t *v92; // x23 _QWORD *v93; // x0 __int64 v94; // x0 __int64 v95; // x0 void *v96; // x0 void *v97; // x23 double v98; // d0 __int64 v99; // x0 __int64 v100; // x0 void *v101; // x0 void *v102; // x23 double v103; // d0 __int64 v104; // x0 __int64 v105; // x0 void *v106; // x0 void *v107; // x23 double v108; // d0 __int64 v109; // x0 __int64 v110; // x0 unsigned int v111; // w23 __int64 v112; // x24 __int64 v113; // x23 __int64 isSpecialChestUnlocked; // x0 char v115; // w23 __int64 v116; // x23 __int64 v117; // x23 _QWORD *v118; // x23 __int64 v119; // x0 __int64 v120; // x0 char *v121; // x24 float v122; // s9 __int64 v123; // x0 __int64 v124; // x22 char v125; // w0 char v126; // w22 __int64 v127; // x22 __int64 v128; // x0 __int64 v129; // x23 __int64 v130; // x23 _QWORD *v131; // x23 char *v132; // x24 __int64 v133; // x24 float v134; // s8 __int64 v135; // x0 __int64 v136; // x23 float32x2_t *v137; // x21 __int64 v138; // x0 __int64 v139; // x0 void *v140; // x0 void *v141; // x21 __int64 v142; // x1 __int64 v143; // x2 __int64 v144; // x3 __int64 v145; // x4 __int64 v146; // x5 __int64 v147; // x6 __int64 v148; // x7 __int64 v149; // x22 __int64 v150; // x0 float v151; // s8 __int64 v152; // x0 float v153; // s0 _BOOL4 v155; // [xsp+14h] [xbp-14Ch] float32x2_t v156; // [xsp+18h] [xbp-148h] BYREF std::string v157; // [xsp+20h] [xbp-140h] BYREF void *v158[2]; // [xsp+38h] [xbp-128h] BYREF char v159; // [xsp+4Fh] [xbp-111h] void *v160[2]; // [xsp+50h] [xbp-110h] BYREF char v161; // [xsp+67h] [xbp-F9h] std::string __str; // [xsp+68h] [xbp-F8h] BYREF void *v163[2]; // [xsp+80h] [xbp-E0h] BYREF char v164; // [xsp+97h] [xbp-C9h] void *__p[2]; // [xsp+98h] [xbp-C8h] BYREF char v166; // [xsp+AFh] [xbp-B1h] float32x2_t v167; // [xsp+B0h] [xbp-B0h] BYREF float32x2_t v168; // [xsp+B8h] [xbp-A8h] BYREF float32x2_t v169; // [xsp+C0h] [xbp-A0h] BYREF __int64 v170; // [xsp+C8h] [xbp-98h] BYREF void *v171[2]; // [xsp+D0h] [xbp-90h] BYREF char v172; // [xsp+E7h] [xbp-79h] v2 = cocos2d::CCLayer::init((_WORD *)a1); if ( !v2 ) return v2; v3 = cocos2d::CCTexture2D::defaultAlphaPixelFormat(); cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(0); v4 = cocos2d::CCTextureCache::sharedTextureCache(); v5 = cocos2d::CCTextureCache::addImage((__int64)v4, "DungeonSheet.png"); v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v5); cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v6, "DungeonSheet.plist"); v7 = cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(v3); v8 = GameManager::sharedState(v7); sub_100009900(v171, "secretLoop02.mp3"); GameManager::fadeInMusic(v8, v171); v155 = v2; if ( v172 < 0 ) operator delete(v171[0]); v9 = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 1); v10 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v10, &v170); v11 = (float *)cocos2d::CCSprite::create((__int64)"GJ_gradientBG.png"); sub_1000262BC((float *)&v169, 0.0, 0.0); (*(void (__fastcall **)(float *, float32x2_t *))(*(_QWORD *)v11 + 296LL))(v11, &v169); (*(void (__fastcall **)(__int64, float *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v11, 4294967293LL); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v11 + 128LL))(v11, (float)(*(float *)&v170 + 10.0) / v11[108]); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v11 + 144LL))( v11, (float)(*((float *)&v170 + 1) + 10.0) / v11[109]); sub_1000262BC((float *)&v169, -5.0, -5.0); (*(void (__fastcall **)(float *, float32x2_t *))(*(_QWORD *)v11 + 184LL))(v11, &v169); v169.i8[2] = 30; v169.i16[0] = 1280; (*(void (__fastcall **)(float *, float32x2_t *))(*(_QWORD *)v11 + 960LL))(v11, &v169); v12 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"dungeon_gate_001.png"); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v12, 2); sub_1000262BC((float *)&v169, *(float *)&v170 * 0.5, (float)(*((float *)&v170 + 1) * 0.5) + -5.0); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v12 + 184LL))(v12, &v169); v13 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"dungeon_foreground_001.png"); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v13, 3); sub_1000262BC((float *)&v169, *(float *)&v170 * 0.5, 15.0); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v13 + 184LL))(v13, &v169); v14 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"Fire_02_looped_001.png"); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v14, 4); sub_1000262BC((float *)&v169, (float)(*(float *)&v170 * 0.5) + -160.0, (float)(*((float *)&v170 + 1) * 0.5) + 50.0); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v14 + 184LL))(v14, &v169); v15 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"Fire_02_looped_001.png"); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v15, 3); v16 = (*(float (__fastcall **)(void *))(*(_QWORD *)v14 + 168LL))(v14); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v15 + 160LL))(v15, v16 + v16); v17 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v14 + 192LL))(v14); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v15 + 184LL))(v15, v17); v169.i8[2] = 0; v169.i16[0] = 255; (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v14 + 960LL))(v14, &v169); v169.i8[2] = 0; v169.i16[0] = -1; (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v15 + 960LL))(v15, &v169); v18 = sub_1002E736C(); v19 = (__int64)sub_1002E736C(); v20 = v19; do { v21 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v19); v22 = sub_1003065B0("Fire_02_looped_%03i.png", v9); CString = cocos2d::CCString::getCString((__int64)v22); cocos2d::CCSpriteFrameCache::spriteFrameByName(v21, CString); v24 = sub_1002E74E0((__int64)v18); v25 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v24); v26 = sub_1003065B0("Fire_02_2_looped_%03i.png", v9); v27 = cocos2d::CCString::getCString((__int64)v26); cocos2d::CCSpriteFrameCache::spriteFrameByName(v25, v27); v19 = sub_1002E74E0(v20); ++v9; } while ( v9 != 10 ); v28 = cocos2d::CCAnimation::createWithSpriteFrames((__int64)v18, 0.08); v29 = cocos2d::CCAnimate::create((__int64)v28); v30 = cocos2d::CCRepeatForever::create((__int64)v29); cocos2d::CCNode::runAction((__int64)v14, (__int64)v30); v31 = cocos2d::CCAnimation::createWithSpriteFrames(v20, 0.08); v32 = cocos2d::CCAnimate::create((__int64)v31); v33 = cocos2d::CCRepeatForever::create((__int64)v32); cocos2d::CCNode::runAction((__int64)v15, (__int64)v33); v34 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"dungeonShine_001.png"); v35 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v14 + 192LL))(v14); sub_1000262BC((float *)&v168, 0.0, -10.0); *(float32x2_t *)&v36 = sub_100026318(v35, &v168, &v169); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v34 + 184LL))(v34, &v169, v36); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v34, 5); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v34 + 160LL))(v34, 1.2); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v34 + 1080LL))(v34, 0x100000302LL); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v34 + 912LL))(v34, 200); v169.i8[2] = 0; v169.i16[0] = -14081; (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v34 + 960LL))(v34, &v169); v37 = cocos2d::CCFadeTo::create(160, 1.6); v38 = cocos2d::CCEaseInOut::create((__int64)v37, 1.3); v39 = cocos2d::CCFadeTo::create(225, 1.6); v40 = (unsigned __int8)cocos2d::CCEaseInOut::create((__int64)v39, 1.3); v48 = sub_10021D420((__int64)v38, v41, v42, v43, v44, v45, v46, v47, v40); v49 = cocos2d::CCRepeatForever::create(v48); cocos2d::CCNode::runAction((__int64)v34, (__int64)v49); v50 = cocos2d::CCScaleTo::create_1(1.0, 1.0); v51 = cocos2d::CCEaseInOut::create((__int64)v50, 1.5); v52 = cocos2d::CCScaleTo::create_1(1.0, 1.2); v53 = (unsigned __int8)cocos2d::CCEaseInOut::create((__int64)v52, 1.5); v61 = sub_10021D420((__int64)v51, v54, v55, v56, v57, v58, v59, v60, v53); v62 = cocos2d::CCRepeatForever::create(v61); cocos2d::CCNode::runAction((__int64)v34, (__int64)v62); v63 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"dungeonTorch_001.png"); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v63, 6); v64 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v14 + 192LL))(v14); sub_1000262BC((float *)&v168, -1.0, -10.0); *(float32x2_t *)&v65 = sub_100026318(v64, &v168, &v169); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v63 + 184LL))(v63, &v169, v65); v66 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"dungeonShine_001.png"); v67 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v14 + 192LL))(v14); sub_1000262BC((float *)&v168, 0.0, -14.0); *(float32x2_t *)&v68 = sub_100026318(v67, &v168, &v169); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v66 + 184LL))(v66, &v169, v68); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v66, 7); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v66 + 160LL))(v66, 0.6); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v66 + 1080LL))(v66, 0x100000302LL); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v66 + 912LL))(v66, 175); v169.i8[2] = 0; v169.i16[0] = -26881; (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v66 + 960LL))(v66, &v169); v69 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"dungeon_bars_bottom_001.png"); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v69, 12); v70 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v12 + 192LL))(v12); sub_1000262BC((float *)&v168, 0.0, -52.0); *(float32x2_t *)&v71 = sub_100026318(v70, &v168, &v169); v72 = (*(__int64 (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v69 + 184LL))(v69, &v169, v71); v73 = sub_1003ABC78(v72); *(_QWORD *)(a1 + 416) = v73; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v73, 9); v74 = *(_QWORD *)(a1 + 416); v75 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v12 + 192LL))(v12); sub_1000262BC((float *)&v168, -2.0, 10.0); *(float32x2_t *)&v76 = sub_100026318(v75, &v168, &v169); v77 = (*(__int64 (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v74 + 184LL))(v74, &v169, v76); v78 = GameManager::sharedState(v77); if ( (GameManager::getUGV(v78, "13") & 1) != 0 ) (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 416) + 344LL))(*(_QWORD *)(a1 + 416), 0); v79 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"secretEyes_01_001.png"); *(_QWORD *)(a1 + 440) = v79; v80 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v12 + 192LL))(v12); sub_1000262BC((float *)&v168, 13.5, 6.0); *(float32x2_t *)&v81 = sub_100026318(v80, &v168, &v169); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v79 + 184LL))(v79, &v169, v81); v82 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 440), 10); v83 = GameManager::sharedState(v82); UGV = GameManager::getUGV(v83, "12"); if ( (_DWORD)UGV && (v85 = GameManager::sharedState(UGV), (GameManager::getUGV(v85, "13") & 1) == 0) ) sub_1003ABCF4(a1); else (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 440) + 344LL))(*(_QWORD *)(a1 + 440), 0); v86 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"secretBody_01_001.png"); *(_QWORD *)(a1 + 448) = v86; (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v86, 9); v87 = *(_QWORD *)(a1 + 448); v88 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 192LL))(*(_QWORD *)(a1 + 440)); sub_1000262BC((float *)&v168, 0.0, -2.0); *(float32x2_t *)&v89 = sub_100026318(v88, &v168, &v169); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v87 + 184LL))(v87, &v169, v89); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 448) + 344LL))(*(_QWORD *)(a1 + 448), 0); v90 = cocos2d::CCMenu::create(); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v90, 12); v91 = sub_1002E736C(); *(_QWORD *)(a1 + 432) = v91; cocos2d::CCObject::retain((__int64)v91); v92 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v12 + 192LL))(v12); sub_1000262BC((float *)&v167, 160.0, 20.0); sub_100026318(v92, &v167, &v168); v93 = cocos2d::CCNode::convertToNodeSpace(v90, (__int64)&v168, &v169); v94 = GameManager::sharedState(v93); v95 = GameManager::getUGV(v94, "14"); if ( (v95 & 1) == 0 ) { v96 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"secretLock01_001.png"); v97 = CCMenuItemSpriteExtra::create((__int64)v96, 0, a1, (__int64)SecretLayer3::onClick, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v90 + 456LL))(v90, v97); sub_1000262BC((float *)&v167, -30.0, -25.0); *(float32x2_t *)&v98 = sub_100026318(&v169, &v167, &v168); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v97 + 184LL))(v97, &v168, v98); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v97 + 72LL))(v97, 1); v95 = sub_1002E74E0(*(_QWORD *)(a1 + 432)); } v99 = GameManager::sharedState(v95); v100 = GameManager::getUGV(v99, "15"); if ( (v100 & 1) == 0 ) { v101 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"secretLock02_001.png"); v102 = CCMenuItemSpriteExtra::create((__int64)v101, 0, a1, (__int64)SecretLayer3::onClick, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v90 + 456LL))(v90, v102); sub_1000262BC((float *)&v167, 0.0, 25.0); *(float32x2_t *)&v103 = sub_100026318(&v169, &v167, &v168); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v102 + 184LL))(v102, &v168, v103); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v102 + 72LL))(v102, 2); v100 = sub_1002E74E0(*(_QWORD *)(a1 + 432)); } v104 = GameManager::sharedState(v100); v105 = GameManager::getUGV(v104, "16"); if ( (v105 & 1) == 0 ) { v106 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"secretLock03_001.png"); v107 = CCMenuItemSpriteExtra::create((__int64)v106, 0, a1, (__int64)SecretLayer3::onClick, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v90 + 456LL))(v90, v107); sub_1000262BC((float *)&v167, 30.0, -25.0); *(float32x2_t *)&v108 = sub_100026318(&v169, &v167, &v168); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v107 + 184LL))(v107, &v168, v108); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v107 + 72LL))(v107, 3); v105 = sub_1002E74E0(*(_QWORD *)(a1 + 432)); } v109 = GameManager::sharedState(v105); v110 = GameManager::getUGV(v109, "12"); if ( (v110 & 1) == 0 ) { v110 = sub_1002E757C(*(_QWORD *)(a1 + 432)); if ( (_DWORD)v110 ) { v111 = 0; do { v112 = sub_1002E75A0(*(_QWORD *)(a1 + 432), v111); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v112 + 1056LL))(v112, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v112 + 344LL))(v112, 0); ++v111; v110 = sub_1002E757C(*(_QWORD *)(a1 + 432)); } while ( v111 < (unsigned int)v110 ); } } v113 = GameStatsManager::sharedState(v110); sub_100009900(__p, "0001"); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v113, __p); v115 = isSpecialChestUnlocked; if ( v166 < 0 ) { operator delete(__p[0]); if ( (v115 & 1) != 0 ) goto LABEL_31; } else if ( (isSpecialChestUnlocked & 1) != 0 ) { goto LABEL_31; } v116 = GameStatsManager::sharedState(isSpecialChestUnlocked); sub_100009900(v163, "0001"); v117 = sub_1003D4D88(v116, v163); if ( v164 < 0 ) operator delete(v163[0]); v118 = GJChestSprite::create(*(unsigned int *)(v117 + 64)); GJChestSprite::switchToState(v118, 2, 0); (*(void (__fastcall **)(_QWORD *, float))(*v118 + 160LL))(v118, 0.6); v119 = (*(__int64 (__fastcall **)(_QWORD *))(*v118 + 488LL))(v118); v120 = sub_1002E75A0(v119, 0); v168.i8[2] = -1; v168.i16[0] = -14136; (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v120 + 960LL))(v120, &v168); v121 = (char *)CCMenuItemSpriteExtra::create((__int64)v118, 0, a1, (__int64)sub_1003AC8A0, 0); sub_100009900(&__str, "chestClick.ogg"); std::string::operator=((std::string *)(v121 + 440), &__str); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); sub_1000262C4((float *)&v168, 60.0, 48.0); (*(void (__fastcall **)(char *, float32x2_t *))(*(_QWORD *)v121 + 320LL))(v121, &v168); v122 = *(float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v121 + 328LL))(v121) * 0.5; v123 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v121 + 328LL))(v121); sub_1000262BC((float *)&v168, v122, *(float *)(v123 + 4) * 0.5); (*(void (__fastcall **)(_QWORD *, float32x2_t *))(*v118 + 184LL))(v118, &v168); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v90 + 456LL))(v90, v121); sub_1000262BC((float *)&v167, *(float *)&v170 + -80.0, 60.0); cocos2d::CCNode::convertToNodeSpace(v90, (__int64)&v167, &v168); isSpecialChestUnlocked = (*(__int64 (__fastcall **)(char *, float32x2_t *))(*(_QWORD *)v121 + 184LL))(v121, &v168); LABEL_31: v124 = GameStatsManager::sharedState(isSpecialChestUnlocked); sub_100009900(v160, "0002"); v125 = GameStatsManager::isSpecialChestUnlocked(v124, v160); v126 = v125; if ( (v161 & 0x80000000) == 0 ) { if ( (v125 & 1) != 0 ) goto LABEL_41; LABEL_35: v127 = cocos2d::CCMenu::create(); v128 = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v127, 10); v129 = GameStatsManager::sharedState(v128); sub_100009900(v158, "0002"); v130 = sub_1003D4D88(v129, v158); if ( v159 < 0 ) operator delete(v158[0]); v131 = GJChestSprite::create(*(unsigned int *)(v130 + 64)); GJChestSprite::switchToState(v131, 2, 0); (*(void (__fastcall **)(_QWORD *, float))(*v131 + 160LL))(v131, 0.6); v132 = (char *)CCMenuItemSpriteExtra::create((__int64)v131, 0, a1, (__int64)sub_1003AC98C, 0); *(_QWORD *)(a1 + 456) = v132; sub_100009900(&v157, "chestClick.ogg"); std::string::operator=((std::string *)(v132 + 440), &v157); if ( SHIBYTE(v157.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v157.__r_.__value_.__l.__data_); v133 = *(_QWORD *)(a1 + 456); sub_1000262C4((float *)&v168, 60.0, 48.0); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v133 + 320LL))(v133, &v168); v134 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 328LL))(*(_QWORD *)(a1 + 456)) * 0.5; v135 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 328LL))(*(_QWORD *)(a1 + 456)); sub_1000262BC((float *)&v168, v134, *(float *)(v135 + 4) * 0.5); (*(void (__fastcall **)(_QWORD *, float32x2_t *))(*v131 + 184LL))(v131, &v168); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v127 + 456LL))(v127, *(_QWORD *)(a1 + 456)); v136 = *(_QWORD *)(a1 + 456); v137 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v12 + 192LL))(v12); sub_1000262BC((float *)&v156, 0.0, -24.0); sub_100026318(v137, &v156, &v167); cocos2d::CCNode::convertToNodeSpace(v127, (__int64)&v167, &v168); v138 = (*(__int64 (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v136 + 184LL))(v136, &v168); *(_WORD *)(*(_QWORD *)(a1 + 456) + 408LL) = 256; v139 = GameManager::sharedState(v138); if ( (GameManager::getUGV(v139, "13") & 1) == 0 ) { (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 456) + 1056LL))(*(_QWORD *)(a1 + 456), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 456) + 344LL))(*(_QWORD *)(a1 + 456), 0); } goto LABEL_41; } operator delete(v160[0]); if ( (v126 & 1) == 0 ) goto LABEL_35; LABEL_41: v140 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_03_001.png"); v141 = CCMenuItemSpriteExtra::create((__int64)v140, 0, a1, (__int64)sub_1003ACA78, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v141, 1.5); v149 = sub_100270434((__int64)v141, v142, v143, v144, v145, v146, v147, v148, 0); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v149, 1); v150 = cocos2d::CCDirector::sharedDirector(); v151 = sub_100207EA8(v150) + 24.0; v152 = cocos2d::CCDirector::sharedDirector(); v153 = sub_100207E98(v152); sub_1000262BC((float *)&v168, v151, v153 + -23.0); (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v149 + 184LL))(v149, &v168); if ( (unsigned int)PlatformToolbox::isControllerConnected() ) GameToolbox::addBackButton(a1, (__int64)v141); return v155; }
GD Web Decomp Icon

GD Web Decomp

Raw Source