//
// sub_100110828 from 0x100110828 to 0x100111008 (2016 bytes)
//
// 1 xrefs:
// > EditLevelLayer::init @ 0x10010f828
//
// 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 10:59:08 +0000
//
void __fastcall sub_100110828(__int64 *a1)
{
__int64 v2; // x0
_QWORD *WinSize; // x0
__int64 v4; // x20
__int64 v5; // x21
__int64 v6; // x0
__int64 v7; // x22
__int64 v8; // x0
__int64 v9; // x23
__int64 v10; // x28
__int64 v11; // x26
__int64 v12; // x24
std::string *p_p; // x0
__int64 v14; // x27
float *v15; // x0
__n128 v16; // q0
std::string *v17; // x0
__int64 v18; // x28
float *v19; // x0
__n128 v20; // q0
__int64 v21; // x8
const std::string::value_type *v22; // x1
std::string *v23; // x0
__int64 v24; // x25
__n128 v25; // q0
float32x2_t *v26; // x26
double v27; // d0
float v28; // s8
__int64 v29; // x0
__int64 v30; // x0
float v31; // s0
__int64 v32; // x0
__int64 CString; // x0
__int64 v34; // x20
_DWORD *v35; // x8
int v36; // w9
const char *v37; // x0
__int64 v38; // x0
int v39; // w8
__int64 v40; // x0
__int64 v41; // x21
__int64 v42; // x0
float v43; // s8
__int64 v44; // x0
float v45; // s0
float *v46; // x0
__int64 v47; // x0
float v48; // s1
double v49; // d0
__int64 v50; // x0
__int64 v51; // x0
float v52; // s1
double v53; // d0
float v54; // s8
__n128 v55; // q0
float *v56; // x0
_DWORD *v57; // x8
int v58; // w26
bool v59; // w25
int v60; // w9
__int64 v61; // [xsp+18h] [xbp-A8h]
__int64 v62; // [xsp+20h] [xbp-A0h]
float32x2_t v63; // [xsp+28h] [xbp-98h] BYREF
float32x2_t v64; // [xsp+30h] [xbp-90h] BYREF
float32x2_t v65; // [xsp+38h] [xbp-88h] BYREF
std::string __p; // [xsp+40h] [xbp-80h] BYREF
__int64 v67; // [xsp+58h] [xbp-68h] BYREF
v2 = cocos2d::CCDirector::sharedDirector(a1);
WinSize = cocos2d::CCDirector::getWinSize(&v67, v2);
v4 = sub_1002E736C(WinSize);
v5 = cocos2d::CCNode::create(v4);
v6 = (*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 456))(a1, v5);
v7 = cocos2d::CCNode::create(v6);
v8 = (*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 456))(a1, v7);
v9 = cocos2d::CCNode::create(v8);
(*(void (__fastcall **)(__int64 *, __int64))(*a1 + 456))(a1, v9);
v10 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_timeIcon_001.png");
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 456LL))(v5, v10);
v11 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_noteIcon_001.png");
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 456LL))(v7, v11);
v12 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png");
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 456LL))(v9, v12);
GJGameLevel::lengthKeyToString(*(_DWORD *)(a1[59] + 900), &__p);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
p_p = &__p;
else
p_p = (std::string *)__p.__r_.__value_.__r.__words[0];
v14 = cocos2d::CCLabelBMFont::create_1(p_p, "bigFont.fnt");
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
v61 = v11;
v62 = v10;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 456LL))(v5, v14);
v15 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 328LL))(v14);
v16.n128_u32[0] = 0.5;
if ( (float)(100.0 / *v15) <= 0.5 )
v16.n128_f32[0] = 100.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 328LL))(v14);
(*(void (__fastcall **)(__int64, __n128))(*(_QWORD *)v14 + 160LL))(v14, v16);
sub_1000CF274(a1[59], (__int64)&__p);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v17 = &__p;
else
v17 = (std::string *)__p.__r_.__value_.__r.__words[0];
v18 = cocos2d::CCLabelBMFont::create_1(v17, "bigFont.fnt");
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 456LL))(v7, v18);
v19 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 328LL))(v18);
v20.n128_u32[0] = 0.5;
if ( (float)(100.0 / *v19) <= 0.5 )
v20.n128_f32[0] = 100.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 328LL))(v18);
(*(void (__fastcall **)(__int64, __n128))(*(_QWORD *)v18 + 160LL))(v18, v20);
sub_100009900(&__p, "");
v21 = a1[59];
if ( (*(_BYTE *)(v21 + 785) & 1) != 0 )
{
v22 = "Uploaded";
LABEL_19:
std::string::assign(&__p, v22);
goto LABEL_20;
}
if ( *(_DWORD *)(v21 + 776) - *(_DWORD *)(v21 + 780) == 1 )
{
v22 = "Verified";
goto LABEL_19;
}
std::string::assign(&__p, "Unverified");
if ( *(int *)(a1[59] + 964) >= 1 )
{
std::string::assign(&__p, "Unverified\nReq. Coins: ");
v57 = (_DWORD *)a1[59];
v58 = v57[252] - v57[253];
v59 = v58 == 1;
if ( v58 != 1 )
{
std::string::append(&__p, "1");
v57 = (_DWORD *)a1[59];
}
v60 = v57[241];
if ( v60 >= 2 )
{
if ( v57[255] - v57[256] != 1 )
{
if ( v58 != 1 )
std::string::append(&__p, ", ");
std::string::append(&__p, "2");
v59 = 0;
v57 = (_DWORD *)a1[59];
v60 = v57[241];
}
if ( v60 >= 3 && v57[258] - v57[259] != 1 )
{
if ( !v59 )
std::string::append(&__p, ", ");
std::string::append(&__p, "3");
}
}
}
LABEL_20:
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v23 = &__p;
else
v23 = (std::string *)__p.__r_.__value_.__r.__words[0];
v24 = cocos2d::CCLabelBMFont::create_1(v23, "bigFont.fnt");
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 456LL))(v9, v24);
v25 = cocos2d::CCLabelBMFont::limitLabelWidth(v24, 100.0, 0.5, 0.0);
v26 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v12 + 192LL))(v12, v25);
sub_1000262BC((float *)&v64, 0.0, 2.0);
*(float32x2_t *)&v27 = sub_100026318(v26, &v64, &v65);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v12 + 184LL))(v12, &v65, v27);
sub_1002E7674(v4);
sub_1002E74E0(v4, v62);
sub_1002E74E0(v4, v14);
sub_1000262F4(&v65, &dbl_1009F3A20);
GameToolbox::alignItemsHorisontally(v4, &v65, 0, 4.0);
sub_1002E7674(v4);
sub_1002E74E0(v4, v61);
sub_1002E74E0(v4, v18);
sub_1000262F4(&v65, &dbl_1009F3A20);
GameToolbox::alignItemsHorisontally(v4, &v65, 0, 4.0);
sub_1002E7674(v4);
sub_1002E74E0(v4, v12);
sub_1002E74E0(v4, v24);
sub_1000262F4(&v65, &dbl_1009F3A20);
GameToolbox::alignItemsHorisontally(v4, &v65, 0, 4.0);
sub_1002E7674(v4);
sub_1002E74E0(v4, v5);
sub_1002E74E0(v4, v7);
sub_1002E74E0(v4, v9);
v28 = *(float *)&v67;
v30 = cocos2d::CCDirector::sharedDirector(v29);
v31 = sub_100207EA0(v30);
sub_1000262BC((float *)&v65, v28 * 0.5, v31 + 55.0);
GameToolbox::alignItemsHorisontally(v4, &v65, 0, 140.0);
v32 = sub_1003065B0("Version: %i", *(_DWORD *)(a1[59] + 788));
CString = cocos2d::CCString::getCString(v32);
v34 = cocos2d::CCLabelBMFont::create_1(CString, "goldFont.fnt");
(*(void (__fastcall **)(__int64 *, __int64))(*a1 + 456))(a1, v34);
v35 = (_DWORD *)a1[59];
v36 = v35[82] - v35[83];
if ( v36 )
{
v38 = sub_1003065B0("ID: %i", v36);
v37 = (const char *)cocos2d::CCString::getCString(v38);
v35 = (_DWORD *)a1[59];
}
else
{
v37 = "ID: na";
}
v39 = v35[247] - v35[248];
if ( v39 )
{
v40 = sub_1003065B0("%s (%i)", v37, v39);
v37 = (const char *)cocos2d::CCString::getCString(v40);
}
v41 = cocos2d::CCLabelBMFont::create_1(v37, "goldFont.fnt");
v42 = (*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 456))(a1, v41);
v43 = *(float *)&v67;
v44 = cocos2d::CCDirector::sharedDirector(v42);
v45 = sub_100207EA0(v44);
v46 = sub_1000262BC((float *)&v65, v43 * 0.5, v45 + 14.0);
v47 = AppDelegate::get(v46);
v48 = 10.0;
if ( !*(_BYTE *)(v47 + 37) )
v48 = 0.0;
sub_1000262BC((float *)&v63, -75.0, v48);
*(float32x2_t *)&v49 = sub_100026318(&v65, &v63, &v64);
v50 = (*(__int64 (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v34 + 184LL))(v34, &v64, v49);
v51 = AppDelegate::get(v50);
v52 = 10.0;
if ( !*(_BYTE *)(v51 + 37) )
v52 = 0.0;
sub_1000262BC((float *)&v63, 75.0, v52);
*(float32x2_t *)&v53 = sub_100026318(&v65, &v63, &v64);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v41 + 184LL))(v41, &v64, v53);
v54 = 0.6;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v34 + 160LL))(v34, 0.6);
v55.n128_u32[0] = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v41 + 328LL))(v41);
if ( v55.n128_f32[0] > 150.0 )
{
v56 = (float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v41 + 328LL))(v41, v55.n128_f32[0]);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v41 + 160LL))(v41, 150.0 / *v56);
}
if ( (*(float (__fastcall **)(__int64, __n128))(*(_QWORD *)v41 + 168LL))(v41, v55) < 0.6 )
v54 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v41 + 168LL))(v41);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v41 + 160LL))(v41, v54);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}