//
// SecretGame01Layer::init from 0xbc8cc4 to 0xbc8ebc (504 bytes)
//
// 3 xrefs:
// > SecretGame01Layer::create @ 0xbc8f4c
// > ??> @ 0xf2020
// > ??> @ 0x14e0680
//
// 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 SecretGame01Layer::init(SecretGame01Layer *this)
{
cocos2d::CCDirector *v2; // x0
unsigned int v3; // w22
cocos2d::CCDirector *v4; // x0
cocos2d::CCMenu *WinSize; // x0
__int64 v6; // x0
__int64 v7; // x2
cocos2d::CCArray *v8; // x0
cocos2d::CCObject *v9; // x0
cocos2d::CCArray *v10; // x0
cocos2d::CCObject *v11; // x0
const char *v12; // x1
__int64 v13; // x24
float v14; // s2
void (__fastcall *v15)(__int64, _BYTE *); // x25
__int64 v16; // x24
void (__fastcall *v17)(__int64, _BYTE *); // x25
__int64 v18; // x0
void (__fastcall *v19)(__int64, _BYTE *); // x2
__int64 v20; // x21
void (__fastcall *v21)(__int64, float); // x23
float *v22; // x0
__int64 v24; // [xsp+58h] [xbp+58h] BYREF
_BYTE v25[8]; // [xsp+60h] [xbp+60h] BYREF
v2 = (cocos2d::CCDirector *)(unsigned __int8)cocos2d::CCLayer::init(this);
v3 = (unsigned __int8)v2;
if ( (_BYTE)v2 )
{
v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2);
WinSize = (cocos2d::CCMenu *)cocos2d::CCDirector::getWinSize(&v24, v4);
v6 = cocos2d::CCMenu::create(WinSize);
v7 = *(_QWORD *)this;
*((_QWORD *)this + 53) = v6;
(*(void (__fastcall **)(SecretGame01Layer *))(v7 + 456))(this);
v8 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 53) + 1000LL))(
*((_QWORD *)this + 53),
0);
v9 = (cocos2d::CCObject *)cocos2d::CCArray::create(v8);
*((_QWORD *)this + 51) = v9;
v10 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v9);
v11 = (cocos2d::CCObject *)cocos2d::CCArray::create(v10);
*((_QWORD *)this + 52) = v11;
cocos2d::CCObject::retain(v11);
v13 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare20_001.png", v12);
v14 = *(float *)&v24;
*((_QWORD *)this + 57) = v13;
v15 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v13 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, (float)(v14 * 0.5) + -50.0, 40.0);
v15(v13, v25);
v16 = *((_QWORD *)this + 57);
v17 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v16 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, 0.0, 0.5);
v17(v16, v25);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 57) + 144LL))(*((_QWORD *)this + 57), 0.6);
v18 = *((_QWORD *)this + 57);
v19 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v18 + 960LL);
memset(v25, 100, 3);
v19(v18, v25);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 57) + 912LL))(*((_QWORD *)this + 57), 100);
v20 = *((_QWORD *)this + 57);
v21 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v20 + 128LL);
v22 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v20 + 328LL))(v20);
v21(v20, 100.0 / *v22);
(*(void (__fastcall **)(SecretGame01Layer *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 57));
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 57) + 344LL))(*((_QWORD *)this + 57), 0);
cocos2d::CCNode::scheduleUpdate(this);
}
return v3;
}