//
// StarInfoPopup::init from 0x100232088 to 0x1002327f4 (1900 bytes)
//
// 1 xrefs:
// > StarInfoPopup::create @ 0x100232028
//
// 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:01:17 +0000
//
__int64 __fastcall StarInfoPopup::init(
__int64 a1,
__int64 a2,
unsigned int a3,
unsigned int a4,
__int64 a5,
__int64 a6,
unsigned int a7,
int a8,
int a9,
int a10,
char a11)
{
__int64 result; // x0
__int64 v20; // x0
unsigned int v21; // w28
__int64 v22; // x21
__int64 v23; // x0
__int64 v24; // x0
char *v25; // x1
int v26; // w22
void **v27; // x23
void **v28; // x8
void **v29; // x9
__int64 v30; // x0
__int64 CString; // x0
__int64 v32; // x21
int i; // w23
double v34; // d0
__int64 v35; // x28
__int64 v36; // x0
__int64 v37; // x22
void **v38; // x0
__int64 v39; // x28
double v40; // d0
void **v41; // x8
__int64 v42; // x0
__int64 v43; // x0
__int64 v44; // x19
void **v45; // x8
__int64 v46; // x0
__int64 v47; // x0
__int64 v48; // x19
void **v49; // x8
__int64 v50; // x0
__int64 v51; // x0
__int64 v52; // x19
__int64 v53; // x0
__int64 v54; // x19
__int64 v55; // x20
__n128 v56; // q0
unsigned int v57; // [xsp+1Ch] [xbp-E4h]
int v58; // [xsp+28h] [xbp-D8h]
unsigned int v59; // [xsp+30h] [xbp-D0h]
float32x2_t v60; // [xsp+38h] [xbp-C8h] BYREF
float32x2_t v61; // [xsp+40h] [xbp-C0h] BYREF
float32x2_t v62; // [xsp+48h] [xbp-B8h] BYREF
void *__p[2]; // [xsp+50h] [xbp-B0h] BYREF
char v64; // [xsp+67h] [xbp-99h]
void *v65[2]; // [xsp+68h] [xbp-98h] BYREF
char v66; // [xsp+7Fh] [xbp-81h]
float v67[4]; // [xsp+80h] [xbp-80h] BYREF
result = FLAlertLayer::init_1(a1, 75);
if ( (_DWORD)result )
{
v58 = a8;
v57 = result;
v20 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v20, v67);
sub_1000262CC((float *)v65, 0.0, 0.0, 80.0, 80.0);
v21 = a7;
v22 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v65);
sub_1000262C4((float *)v65, 380.0, 210.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v22 + 320LL))(v22, v65);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v22,
0xFFFFFFFFLL);
sub_1000262BC((float *)v65, v67[0] * 0.5, v67[1] * 0.5);
v23 = (*(__int64 (__fastcall **)(__int64, void **))(*(_QWORD *)v22 + 184LL))(v22, v65);
v24 = cocos2d::CCMenu::create(v23);
*(_QWORD *)(a1 + 552) = v24;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v24, 10);
if ( a11 )
v25 = "Platformer";
else
v25 = "Classic";
sub_100009900(v65, v25);
v26 = v66;
v27 = (void **)v65[0];
v59 = v21;
GameToolbox::pointsToString(a4 + a3 + (_DWORD)a5 + (_DWORD)a6 + v21, (__int64)__p);
if ( v26 >= 0 )
v28 = v65;
else
v28 = v27;
if ( v64 >= 0 )
v29 = __p;
else
v29 = (void **)__p[0];
v30 = sub_1003065B0("%s: %s", (const char *)v28, (const char *)v29);
CString = cocos2d::CCString::getCString(v30);
v32 = cocos2d::CCLabelBMFont::create_1(CString, "goldFont.fnt");
if ( v64 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v32);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v32 + 160LL))(v32, 0.7);
sub_1000262BC((float *)__p, v67[0] * 0.5, (float)((float)(v67[1] * 0.5) + 105.0) + -20.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v32 + 184LL))(v32, __p);
sub_1000262BC((float *)&v62, (float)(v67[0] * 0.5) + -147.5, (float)(v67[1] * 0.5) + 25.0);
for ( i = 0; i != 6; ++i )
{
sub_1000262BC((float *)__p, (float)(unsigned int)i * 59.0, 0.0);
*(float32x2_t *)&v34 = sub_100026318(&v62, (float32x2_t *)__p, &v61);
if ( i > 2 )
{
v35 = a5;
if ( i != 3 )
{
v35 = a6;
if ( i != 4 )
v35 = v59;
}
}
else
{
v35 = a2;
if ( i )
{
v35 = a3;
if ( i != 1 )
v35 = a4;
}
}
if ( i )
v36 = (unsigned int)i;
else
v36 = 0xFFFFFFFFLL;
v37 = GJDifficultySprite::create(v36, 1, v34);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v37 + 160LL))(v37, 0.9);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v37 + 184LL))(v37, &v61);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v37);
GameToolbox::pointsToString(v35, (__int64)__p);
if ( v64 >= 0 )
v38 = __p;
else
v38 = (void **)__p[0];
v39 = cocos2d::CCLabelBMFont::create_1(v38, "goldFont.fnt");
if ( v64 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v39 + 160LL))(v39, 0.6);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v39);
sub_1000262BC((float *)&v60, 0.0, -40.0);
*(float32x2_t *)&v40 = sub_100026318(&v61, &v60, (float32x2_t *)__p);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v39 + 184LL))(v39, __p, v40);
}
sub_1000262BC(
(float *)&v61,
(float)((float)(v67[0] * 0.5) + 190.0) + -12.0,
(float)((float)(v67[1] * 0.5) + -105.0) + 14.0);
if ( a9 >= 1 )
{
GameToolbox::pointsToString((unsigned int)a9, (__int64)__p);
if ( v64 >= 0 )
v41 = __p;
else
v41 = (void **)__p[0];
v42 = sub_1003065B0("Gauntlet: %s", (const char *)v41);
v43 = cocos2d::CCString::getCString(v42);
v44 = cocos2d::CCLabelBMFont::create_1(v43, "goldFont.fnt");
if ( v64 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v44);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 160LL))(v44, 0.4);
sub_1000262BC((float *)__p, 1.0, 0.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v44 + 296LL))(v44, __p);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v44 + 184LL))(v44, &v61);
v61.f32[1] = v61.f32[1] + 16.0;
}
if ( v58 >= 1 )
{
GameToolbox::pointsToString((unsigned int)v58, (__int64)__p);
if ( v64 >= 0 )
v45 = __p;
else
v45 = (void **)__p[0];
v46 = sub_1003065B0("Daily: %s", (const char *)v45);
v47 = cocos2d::CCString::getCString(v46);
v48 = cocos2d::CCLabelBMFont::create_1(v47, "goldFont.fnt");
if ( v64 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v48);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v48 + 160LL))(v48, 0.4);
sub_1000262BC((float *)__p, 1.0, 0.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v48 + 296LL))(v48, __p);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v48 + 184LL))(v48, &v61);
v61.f32[1] = v61.f32[1] + 16.0;
}
if ( a10 >= 1 )
{
GameToolbox::pointsToString((unsigned int)a10, (__int64)__p);
if ( v64 >= 0 )
v49 = __p;
else
v49 = (void **)__p[0];
v50 = sub_1003065B0("Map: %s", (const char *)v49);
v51 = cocos2d::CCString::getCString(v50);
v52 = cocos2d::CCLabelBMFont::create_1(v51, "goldFont.fnt");
if ( v64 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v52);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 160LL))(v52, 0.4);
sub_1000262BC((float *)__p, 1.0, 0.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v52 + 296LL))(v52, __p);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v52 + 184LL))(v52, &v61);
v61.f32[1] = v61.f32[1] + 16.0;
}
v53 = sub_100067FAC((__int64)"OK");
v54 = CCMenuItemSpriteExtra::create(v53, 0, a1, sub_10023288C, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v54);
v55 = *(_QWORD *)(a1 + 552);
sub_1000262BC((float *)&v60, v67[0] * 0.5, (float)((float)(v67[1] * 0.5) + -105.0) + 25.0);
cocos2d::CCNode::convertToNodeSpace(__p, v55, &v60, v56);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v54 + 184LL))(v54, __p);
if ( v66 < 0 )
operator delete(v65[0]);
return v57;
}
return result;
}