//
// StartPosBrowser::init from 0x7d6db0 to 0x7d7114 (868 bytes)
//
// 2 xrefs:
// > StartPosBrowser::create @ 0x7d7290
// > ??> @ 0x6f3e8
//
// 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 12:54:21 +0000
//
__int64 __fastcall StartPosBrowser::init(cocos2d::CCNode **this, cocos2d::CCArray *a2, int a3)
{
unsigned __int8 v5; // w0
unsigned int v6; // w25
cocos2d::CCDirector *v7; // x0
cocos2d::CCDirector *v8; // x0
__int64 v9; // x22
void (__fastcall *v10)(__int64, _BYTE *); // x23
void (__fastcall *v11)(__int64, _BYTE *); // x23
const char *v12; // x2
__int64 v13; // x22
void (__fastcall *v14)(__int64, _BYTE *); // x26
cocos2d::CCMenu *v15; // x0
__int64 v16; // x0
__int64 v17; // x0
__int64 v18; // x22
cocos2d::CCNode *v19; // x27
void (__fastcall *v20)(__int64, __int64 *); // x26
const char *v21; // x2
__int64 v22; // x0
__int64 v23; // x22
void (__fastcall *v24)(__int64, _BYTE *); // x23
__int64 v25; // x22
void (__fastcall *v26)(__int64, _BYTE *); // x23
__int64 v29; // [xsp+88h] [xbp+88h] BYREF
__int64 v30; // [xsp+90h] [xbp+90h] BYREF
_BYTE v31[16]; // [xsp+98h] [xbp+98h] BYREF
v5 = FLAlertLayer::init((FLAlertLayer *)this, 150);
v6 = v5;
if ( v5 )
{
v7 = (cocos2d::CCDirector *)(&dword_0 + 1);
*((_DWORD *)this + 174) = a3;
*((_BYTE *)this + 596) = 1;
*(this + 85) = a2;
if ( a2 )
v7 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(a2);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize(&v29, v8);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v31, 0.0, 0.0, 80.0, 80.0);
v9 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v31);
v10 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v9 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v31, 400.0, 280.0);
v10(v9, v31);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v9, 0xFFFFFFFFLL);
v11 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v9 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, *(float *)&v29 * 0.5, *((float *)&v29 + 1) * 0.5);
v11(v9, v31);
v13 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Select StartPos", "goldFont.fnt", v12);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v13, 10);
v14 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v13 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v31,
*(float *)&v29 * 0.5,
(float)((float)(*((float *)&v29 + 1) * 0.5) + 140.0) - 20.0);
v14(v13, v31);
v15 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 0.8);
v16 = cocos2d::CCMenu::create(v15);
*(this + 69) = (cocos2d::CCNode *)v16;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v16, 10);
*((_DWORD *)this + 160) = -1;
v17 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_closeBtn_001.png",
(const char *)0xFFFFFFFFLL);
v18 = CCMenuItemSpriteExtra::create(v17, 0, (__int64)this, (__int64)StartPosBrowser::onClose, 0);
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v18);
CCMenuItemSpriteExtra::setSizeMult(v18, 1.6);
v19 = *(this + 69);
v20 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v31,
(float)((float)(*(float *)&v29 * 0.5) + -200.0) + 10.0,
(float)((float)(*((float *)&v29 + 1) * 0.5) + 140.0) - 10.0);
cocos2d::CCNode::convertToNodeSpace(&v30, v19, (const cocos2d::CCPoint *)v31);
v20(v18, &v30);
v22 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "goldFont.fnt", v21);
*(this + 88) = (cocos2d::CCNode *)v22;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v22, 10);
v23 = (__int64)*(this + 88);
v24 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v23 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v31,
(float)((float)(*(float *)&v29 * 0.5) + 200.0) - 15.0,
(float)((float)(*((float *)&v29 + 1) * 0.5) + 140.0) - 8.0);
v24(v23, v31);
v25 = (__int64)*(this + 88);
v26 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v25 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, 1.0, 1.0);
v26(v25, v31);
(*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)*(this + 88) + 160LL))(*(this + 88), 0.5);
StartPosBrowser::setupList((StartPosBrowser *)this);
}
return v6;
}