// // SecretLayer::init from 0xa61550 to 0xa61f84 (2612 bytes) // // 3 xrefs: // > SecretLayer::create @ 0xa6202c // > @ 0x8f170 // > @ 0x148e9d0 // // 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 13:00:15 +0000 // __int64 __fastcall SecretLayer::init(SecretLayer *this) { GameManager *v2; // x0 unsigned int v3; // w23 __int64 v5; // x20 cocos2d::CCDirector *v6; // x0 cocos2d::CCDirector *v7; // x0 cocos2d::CCDictionary *WinSize; // x0 cocos2d::CCObject *v9; // x0 AchievementManager *v10; // x0 AchievementManager *v11; // x0 cocos2d::CCDictionary *v12; // x20 cocos2d::CCObject *v13; // x0 AchievementManager *v14; // x0 AchievementManager *v15; // x0 cocos2d::CCDictionary *v16; // x20 cocos2d::CCObject *v17; // x0 AchievementManager *v18; // x0 AchievementManager *v19; // x0 cocos2d::CCDictionary *v20; // x20 cocos2d::CCObject *v21; // x0 AchievementManager *v22; // x0 AchievementManager *v23; // x0 cocos2d::CCDictionary *v24; // x20 cocos2d::CCObject *v25; // x0 AchievementManager *v26; // x0 AchievementManager *v27; // x0 cocos2d::CCDictionary *v28; // x20 cocos2d::CCObject *v29; // x0 AchievementManager *v30; // x0 AchievementManager *v31; // x0 cocos2d::CCDictionary *v32; // x20 cocos2d::CCObject *v33; // x0 AchievementManager *v34; // x0 AchievementManager *v35; // x0 cocos2d::CCDictionary *v36; // x20 cocos2d::CCObject *v37; // x0 AchievementManager *v38; // x0 AchievementManager *v39; // x0 AchievementManager *isAchievementEarned; // x0 AchievementManager *v41; // x0 AchievementManager *v42; // x0 AchievementManager *v43; // x0 AchievementManager *v44; // x0 AchievementManager *v45; // x0 AchievementManager *v46; // x0 AchievementManager *v47; // x0 _BOOL8 v48; // x0 const char *v49; // x1 float *v50; // x21 void (__fastcall *v51)(float *, __int64 *); // x2 const char *v52; // x2 __int64 v53; // x21 const char *v54; // x2 __int64 v55; // x0 __int64 v56; // x2 __int64 v57; // x21 __int64 v58; // x21 const char *v59; // x4 __int64 v60; // x0 __int64 v61; // x21 const char *v62; // x1 __int64 v63; // x0 cocos2d::CCMenu *v64; // x24 cocos2d::CCDirector **v65; // x21 __int64 (__fastcall *v66)(cocos2d::CCDirector **, __int64 *); // x26 cocos2d::CCDirector *v67; // x0 cocos2d::CCDirector *ScreenLeft; // x0 float v69; // s0 float v70; // s9 cocos2d::CCDirector *v71; // x0 float v72; // s0 PlatformToolbox *v73; // x0 const char *v74; // x1 cocos2d::CCMenuItem *v75; // x2 __int64 v76; // x0 __int64 v77; // x0 __int64 v78; // x24 void (__fastcall *v79)(__int64, __int64 *); // x26 GameManager *v80; // x0 cocos2d::CCDictionary *v81; // x20 cocos2d::CCObject *v82; // x0 cocos2d::CCDictionary *v83; // x20 cocos2d::CCObject *v84; // x0 cocos2d::CCDictionary *v85; // x20 cocos2d::CCObject *v86; // x0 cocos2d::CCDictionary *v87; // x20 cocos2d::CCObject *v88; // x0 cocos2d::CCDictionary *v89; // x20 cocos2d::CCObject *v90; // x0 cocos2d::CCDictionary *v91; // x20 cocos2d::CCObject *v92; // x0 cocos2d::CCDictionary *v93; // x20 cocos2d::CCObject *v94; // x0 cocos2d::CCDictionary *v95; // x20 cocos2d::CCObject *v96; // x0 cocos2d::CCDictionary *v97; // x20 cocos2d::CCObject *v98; // x0 cocos2d::CCDictionary *v99; // x20 cocos2d::CCObject *v100; // x0 cocos2d::CCDictionary *v101; // x20 cocos2d::CCObject *v102; // x0 cocos2d::CCDictionary *v103; // x20 cocos2d::CCObject *v104; // x0 void (__fastcall *v105)(float *, __int64 *); // [xsp+88h] [xbp+88h] void (__fastcall *v106)(float *, __int64 *); // [xsp+88h] [xbp+88h] void (__fastcall *v107)(__int64, __int64 *); // [xsp+88h] [xbp+88h] void (__fastcall *v108)(__int64, __int64 *); // [xsp+88h] [xbp+88h] __int64 v109; // [xsp+90h] [xbp+90h] BYREF _BYTE v110[8]; // [xsp+98h] [xbp+98h] BYREF _BYTE v111[8]; // [xsp+A0h] [xbp+A0h] BYREF _BYTE v112[8]; // [xsp+A8h] [xbp+A8h] BYREF _BYTE v113[16]; // [xsp+B0h] [xbp+B0h] BYREF __int64 v114[2]; // [xsp+C0h] [xbp+C0h] BYREF __int64 v115; // [xsp+D0h] [xbp+D0h] BYREF __int64 v116; // [xsp+D8h] [xbp+D8h] void *v117; // [xsp+E0h] [xbp+E0h] v2 = (GameManager *)(unsigned __int8)cocos2d::CCLayer::init(this); v3 = (unsigned __int8)v2; if ( (_BYTE)v2 ) { v5 = GameManager::sharedState(v2); v115 = 0; v116 = 0; v117 = nullptr; std::string::__init(&v115, "secretLoop.mp3", 0xEu); GameManager::fadeInMusic(v5, (unsigned __int8 *)&v115); if ( (v115 & 1) != 0 ) operator delete(v117); (*(void (__fastcall **)(SecretLayer *, __int64))(*(_QWORD *)this + 1072LL))(this, 1); v6 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(SecretLayer *, __int64))(*(_QWORD *)this + 1088LL))(this, 1); v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); WinSize = (cocos2d::CCDictionary *)cocos2d::CCDirector::getWinSize(&v109, v7); v9 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(WinSize); *((_QWORD *)this + 59) = v9; v10 = (AchievementManager *)cocos2d::CCObject::retain(v9); v11 = (AchievementManager *)AchievementManager::sharedState(v10); if ( !AchievementManager::isAchievementEarned(v11, "geometry.ach.secret06") ) { v103 = *((cocos2d::CCDictionary **)this + 59); v104 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 6); cocos2d::CCDictionary::setObject(v103, v104, 6); } v12 = *((cocos2d::CCDictionary **)this + 59); v13 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 101); v14 = (AchievementManager *)cocos2d::CCDictionary::setObject(v12, v13, 101); v15 = (AchievementManager *)AchievementManager::sharedState(v14); if ( !AchievementManager::isAchievementEarned(v15, "geometry.ach.secret07") ) { v101 = *((cocos2d::CCDictionary **)this + 59); v102 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 7); cocos2d::CCDictionary::setObject(v101, v102, 7); } v16 = *((cocos2d::CCDictionary **)this + 59); v17 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 102); v18 = (AchievementManager *)cocos2d::CCDictionary::setObject(v16, v17, 102); v19 = (AchievementManager *)AchievementManager::sharedState(v18); if ( !AchievementManager::isAchievementEarned(v19, "geometry.ach.secret08") ) { v99 = *((cocos2d::CCDictionary **)this + 59); v100 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 8); cocos2d::CCDictionary::setObject(v99, v100, 8); } v20 = *((cocos2d::CCDictionary **)this + 59); v21 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 103); v22 = (AchievementManager *)cocos2d::CCDictionary::setObject(v20, v21, 103); v23 = (AchievementManager *)AchievementManager::sharedState(v22); if ( !AchievementManager::isAchievementEarned(v23, "geometry.ach.secret09") ) { v97 = *((cocos2d::CCDictionary **)this + 59); v98 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 9); cocos2d::CCDictionary::setObject(v97, v98, 9); } v24 = *((cocos2d::CCDictionary **)this + 59); v25 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 104); v26 = (AchievementManager *)cocos2d::CCDictionary::setObject(v24, v25, 104); v27 = (AchievementManager *)AchievementManager::sharedState(v26); if ( !AchievementManager::isAchievementEarned(v27, "geometry.ach.secret10") ) { v95 = *((cocos2d::CCDictionary **)this + 59); v96 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 10); cocos2d::CCDictionary::setObject(v95, v96, 10); } v28 = *((cocos2d::CCDictionary **)this + 59); v29 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 105); v30 = (AchievementManager *)cocos2d::CCDictionary::setObject(v28, v29, 105); v31 = (AchievementManager *)AchievementManager::sharedState(v30); if ( !AchievementManager::isAchievementEarned(v31, "geometry.ach.secret13") ) { v93 = *((cocos2d::CCDictionary **)this + 59); v94 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 13); cocos2d::CCDictionary::setObject(v93, v94, 13); } v32 = *((cocos2d::CCDictionary **)this + 59); v33 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 120); v34 = (AchievementManager *)cocos2d::CCDictionary::setObject(v32, v33, 120); v35 = (AchievementManager *)AchievementManager::sharedState(v34); if ( !AchievementManager::isAchievementEarned(v35, "geometry.ach.secret14") ) { v91 = *((cocos2d::CCDictionary **)this + 59); v92 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 14); cocos2d::CCDictionary::setObject(v91, v92, 14); } v36 = *((cocos2d::CCDictionary **)this + 59); v37 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 121); v38 = (AchievementManager *)cocos2d::CCDictionary::setObject(v36, v37, 121); v39 = (AchievementManager *)AchievementManager::sharedState(v38); isAchievementEarned = (AchievementManager *)AchievementManager::isAchievementEarned(v39, "geometry.ach.secret15"); if ( !(_BYTE)isAchievementEarned ) { v89 = *((cocos2d::CCDictionary **)this + 59); v90 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 15); isAchievementEarned = (AchievementManager *)cocos2d::CCDictionary::setObject(v89, v90, 15); } v41 = (AchievementManager *)AchievementManager::sharedState(isAchievementEarned); v42 = (AchievementManager *)AchievementManager::isAchievementEarned(v41, "geometry.ach.secret16"); if ( !(_BYTE)v42 ) { v87 = *((cocos2d::CCDictionary **)this + 59); v88 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 16); v42 = (AchievementManager *)cocos2d::CCDictionary::setObject(v87, v88, 16); } v43 = (AchievementManager *)AchievementManager::sharedState(v42); v44 = (AchievementManager *)AchievementManager::isAchievementEarned(v43, "geometry.ach.secret17"); if ( !(_BYTE)v44 ) { v85 = *((cocos2d::CCDictionary **)this + 59); v86 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 17); v44 = (AchievementManager *)cocos2d::CCDictionary::setObject(v85, v86, 17); } v45 = (AchievementManager *)AchievementManager::sharedState(v44); v46 = (AchievementManager *)AchievementManager::isAchievementEarned(v45, "geometry.ach.secret19"); if ( !(_BYTE)v46 ) { v83 = *((cocos2d::CCDictionary **)this + 59); v84 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 19); v46 = (AchievementManager *)cocos2d::CCDictionary::setObject(v83, v84, 19); } v47 = (AchievementManager *)AchievementManager::sharedState(v46); v48 = AchievementManager::isAchievementEarned(v47, "geometry.ach.v2.secret03"); if ( !v48 ) { v80 = (GameManager *)GameManager::sharedState((GameManager *)v48); if ( (unsigned __int8)GameManager::getUGV(v80, &byte_120A098) ) { v81 = *((cocos2d::CCDictionary **)this + 59); v82 = (cocos2d::CCObject *)SecretLayer::nodeWithTag(this, 11); cocos2d::CCDictionary::setObject(v81, v82, 11); } } v50 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v49); v105 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v50 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, 0.0, 0.0); v105(v50, v114); (*(void (__fastcall **)(SecretLayer *, float *, __int64))(*(_QWORD *)this + 464LL))(this, v50, 4294967293LL); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v50 + 128LL))(v50, (float)(*(float *)&v109 + 10.0) / v50[108]); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v50 + 144LL))( v50, (float)(*((float *)&v109 + 1) + 10.0) / v50[109]); v106 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v50 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, -5.0, -5.0); v106(v50, v114); v51 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v50 + 960LL); LOWORD(v114[0]) = 19200; BYTE2(v114[0]) = 100; v51(v50, v114); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v113, 0.0, 0.0, 40.0, 40.0); v53 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"The Vault", "goldFont.fnt", v52); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v53 + 160LL))(v53, 1.0); (*(void (__fastcall **)(SecretLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v53); v107 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, *(float *)&v109 * 0.5, *((float *)&v109 + 1) - 24.0); v107(v53, v114); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v110, *(float *)&v109 * 0.5, (float)(*((float *)&v109 + 1) * 0.5) + 50.0); v55 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v54); v56 = *(_QWORD *)this; *((_QWORD *)this + 57) = v55; (*(void (__fastcall **)(SecretLayer *))(v56 + 456))(this); v57 = *((_QWORD *)this + 57); v108 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v57 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v112, 0.0, 43.0); cocos2d::CCPoint::operator+(v114, v110); v108(v57, v114); SecretLayer::getMessage(this, &v115); SecretLayer::updateMessageLabel((__int64)this, (char *)&v115); if ( (v115 & 1) != 0 ) operator delete(v117); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v114, (const cocos2d::CCRect *)v113); v58 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v114); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v58 + 912LL))(v58, 100); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v111, 200.0, 40.0); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v58 + 320LL))(v58, v111); (*(void (__fastcall **)(SecretLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v58, 4294967294LL); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v58 + 184LL))(v58, v110); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v58 + 960LL))(v58, &unk_1172828); v60 = CCTextInputNode::create( (CCTextInputNode *)"...", 180.0, 50.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", v59); *((_QWORD *)this + 56) = v60; (*(void (__fastcall **)(SecretLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v60, 20); *(_QWORD *)(*((_QWORD *)this + 56) + 584LL) = (char *)this + 408; (*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 56) + 184LL))(*((_QWORD *)this + 56), v110); CCTextInputNode::setMaxLabelScale(*((CCTextInputNode **)this + 56), 0.7); CCTextInputNode::setMaxLabelWidth(*((CCTextInputNode **)this + 56), 180.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 56) + 576LL) + 344LL))( *(_QWORD *)(*((_QWORD *)this + 56) + 576LL), 0); *(_DWORD *)(*((_QWORD *)this + 56) + 592LL) = 20; v115 = 0; v61 = *((_QWORD *)this + 56); v116 = 0; v117 = nullptr; std::string::__init(&v115, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", 0x3Fu); CCTextInputNode::setAllowedChars(v61, (__int64)&v115); if ( (v115 & 1) != 0 ) operator delete(v117); SecretLayer::updateSearchLabel(this, &byte_11B8890); v63 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v62); v64 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v63, 0, (__int64)this, (__int64)SecretLayer::onBack, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v64, 1.5); v65 = (cocos2d::CCDirector **)cocos2d::CCMenu::create(v64, nullptr); (*(void (__fastcall **)(SecretLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))(this, v65, 1); v66 = *((__int64 (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v65 + 23); v67 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v65); ScreenLeft = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v67); v70 = v69; v71 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenLeft); cocos2d::CCDirector::getScreenTop(v71); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, v70 + 24.0, v72 - 23.0); v73 = (PlatformToolbox *)v66(v65, v114); if ( (unsigned __int8)PlatformToolbox::isControllerConnected(v73) ) GameToolbox::addBackButton(this, v64, v75); v76 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_secretLock_001.png", v74); v77 = CCMenuItemSpriteExtra::create(v76, 0, (__int64)this, (__int64)SecretLayer::onSubmit, 0); *((_QWORD *)this + 58) = v77; (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v65 + 57))(v65, v77); v78 = *((_QWORD *)this + 58); v79 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v78 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v112, *(float *)&v109 * 0.5, (float)(*((float *)&v109 + 1) * 0.5) + -20.0); cocos2d::CCNode::convertToNodeSpace(v114, (cocos2d::CCNode *)v65, (const cocos2d::CCPoint *)v112); v79(v78, v114); CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 58), 0.7); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source