// // SecretLayer6::init from 0xbc8fa8 to 0xbc9340 (920 bytes) // // 3 xrefs: // > SecretLayer6::create @ 0xbc9398 // > @ 0xe6920 // > @ 0x14e00f0 // // 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:03:33 +0000 // __int64 __fastcall SecretLayer6::init(SecretLayer6 *this) { cocos2d::CCTextureCache *v2; // x0 unsigned int v3; // w23 cocos2d::CCTextureCache *v5; // x0 cocos2d::CCSpriteFrameCache *v6; // x0 cocos2d::CCSpriteFrameCache *v7; // x0 GameManager *v8; // x0 __int64 v9; // x22 cocos2d::CCDirector *v10; // x0 cocos2d::CCDirector *v11; // x0 const char *v12; // x1 float *v13; // x20 void (__fastcall *v14)(float *, _BYTE *); // x25 void (__fastcall *v15)(float *, _BYTE *); // x24 void (__fastcall *v16)(float *, _BYTE *); // x2 const char *v17; // x2 __int64 v18; // x20 __int64 (__fastcall *v19)(__int64, _BYTE *); // x24 SecretGame01Layer *v20; // x0 __int64 v21; // x0 const char *v22; // x1 __int64 v23; // x0 cocos2d::CCMenu *v24; // x24 cocos2d::CCDirector **v25; // x20 __int64 (__fastcall *v26)(cocos2d::CCDirector **, _BYTE *); // x25 cocos2d::CCDirector *v27; // x0 cocos2d::CCDirector *ScreenLeft; // x0 float v29; // s0 float v30; // s9 cocos2d::CCDirector *v31; // x0 float v32; // s0 PlatformToolbox *v33; // x0 unsigned __int64 isControllerConnected; // x0 cocos2d::CCMenuItem *v35; // x2 cocos2d::CCSequence *v36; // x20 cocos2d::CCFiniteTimeAction *v37; // x0 cocos2d::CCAction *v38; // x0 __int64 v39; // [xsp+60h] [xbp+60h] BYREF _BYTE v40[8]; // [xsp+68h] [xbp+68h] BYREF __int64 v41[2]; // [xsp+70h] [xbp+70h] BYREF void *v42; // [xsp+80h] [xbp+80h] v2 = (cocos2d::CCTextureCache *)(unsigned __int8)cocos2d::CCLayer::init(this); v3 = (unsigned __int8)v2; if ( (_BYTE)v2 ) { v5 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v2); v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCTextureCache::addImage(v5, "SecretSheet.png", 0); v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6); v8 = (GameManager *)cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v7, "SecretSheet.plist"); v9 = GameManager::sharedState(v8); v41[0] = 0; v41[1] = 0; v42 = nullptr; std::string::__init(v41, "secretLoop03.mp3", 0x10u); GameManager::fadeInMusic(v9, (unsigned __int8 *)v41); if ( (v41[0] & 1) != 0 ) operator delete(v42); (*(void (__fastcall **)(SecretLayer6 *, __int64))(*(_QWORD *)this + 1072LL))(this, 1); v10 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(SecretLayer6 *, __int64))(*(_QWORD *)this + 1088LL))( this, 1); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(&v39, v11); v13 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v12); v14 = *(void (__fastcall **)(float *, _BYTE *))(*(_QWORD *)v13 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, 0.0, 0.0); v14(v13, v40); (*(void (__fastcall **)(SecretLayer6 *, float *, __int64))(*(_QWORD *)this + 464LL))(this, v13, 4294967293LL); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v13 + 128LL))(v13, (float)(*(float *)&v39 + 10.0) / v13[108]); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v13 + 144LL))( v13, (float)(*((float *)&v39 + 1) + 10.0) / v13[109]); v15 = *(void (__fastcall **)(float *, _BYTE *))(*(_QWORD *)v13 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, -5.0, -5.0); v15(v13, v40); v16 = *(void (__fastcall **)(float *, _BYTE *))(*(_QWORD *)v13 + 960LL); v40[0] = 30; v40[1] = 0; v40[2] = 60; v16(v13, v40); v18 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"...", "goldFont.fnt", v17); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 1.0); (*(void (__fastcall **)(SecretLayer6 *, __int64))(*(_QWORD *)this + 456LL))(this, v18); v19 = *(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v18 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, *(float *)&v39 * 0.5, *((float *)&v39 + 1) - 24.0); v20 = (SecretGame01Layer *)v19(v18, v40); v21 = SecretGame01Layer::create(v20); *((_QWORD *)this + 51) = v21; (*(void (__fastcall **)(SecretLayer6 *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v21, 100); v23 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v22); v24 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v23, 0, (__int64)this, (__int64)SecretLayer6::onBack, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v24, 1.5); v25 = (cocos2d::CCDirector **)cocos2d::CCMenu::create(v24, nullptr); (*(void (__fastcall **)(SecretLayer6 *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))(this, v25, 1); v26 = *((__int64 (__fastcall **)(cocos2d::CCDirector **, _BYTE *))*v25 + 23); v27 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v25); ScreenLeft = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v27); v30 = v29; v31 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenLeft); cocos2d::CCDirector::getScreenTop(v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, v30 + 24.0, v32 - 23.0); v33 = (PlatformToolbox *)v26(v25, v40); isControllerConnected = (unsigned __int8)PlatformToolbox::isControllerConnected(v33); if ( (_BYTE)isControllerConnected ) isControllerConnected = GameToolbox::addBackButton(this, v24, v35); v36 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)isControllerConnected, 0.5); v37 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, SecretLayer6::startGame01, 0); v38 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v36, v37, 0); cocos2d::CCNode::runAction(this, v38); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source