//
// AchievementBar::init from 0x10026a7c8 to 0x10026b6a4 (3804 bytes)
//
// 1 xrefs:
// > AchievementBar::create @ 0x10026a774
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall AchievementBar::init(AchievementBar *a1, const char *a2, const char *a3, const char *a4, bool a5)
{
_BOOL4 v5; // w21
_BOOL4 v10; // w19
cocos2d::CCDirector *v11; // x0
cocos2d::CCLayerColor *v12; // x0
__n128 v13; // q0
cocos2d::CCLayerColor *m_layerColor; // x23
__n128 v15; // q1
char *v16; // x1
int v17; // w23
void **v18; // x24
void **v19; // x0
cocos2d::extension::CCScale9Sprite *v20; // x23
cocos2d::CCSprite *v21; // x0
__n128 v22; // q0
__n128 v23; // q1
cocos2d::extension::CCScale9Sprite *v24; // x26
__int64 v25; // x0
cocos2d::CCSprite *v26; // x23
GJItemIcon *v27; // x25
float *v28; // x0
float v29; // s8
const char *v30; // x27
cocos2d::CCObject *v31; // x25
std::string *p_str; // x8
std::string::size_type size; // x28
std::string *v34; // x9
std::string::size_type v35; // x11
std::string *v36; // x10
__int64 v37; // x8
__int64 v38; // x22
std::string::size_type v39; // x26
std::string *v40; // x1
__int64 v41; // x24
bool v42; // zf
std::string::size_type v43; // x11
std::string *v44; // x8
_BYTE *v45; // x9
_BYTE *v46; // x10
std::string::size_type v47; // x11
__int64 v48; // x8
cocos2d::CCString *v49; // x0
char *CString; // x26
cocos2d::CCString *v51; // x0
int v52; // w25
bool v53; // w27
UnlockType v54; // w26
const char *v55; // x8
cocos2d::CCNode *v56; // x26
float v57; // s9
char *v58; // x1
std::string *v59; // x1
cocos2d::CCLabelBMFont *v60; // x24
__n128 v61; // q0
__n128 v62; // q1
__n128 v63; // q0
float *v64; // x0
char *v65; // x1
__n128 v66; // q0
__n128 v67; // q1
cocos2d::CCObject *v68; // x22
__n128 v69; // q0
__n128 v70; // q1
__n128 v71; // q0
__n128 v72; // q1
float v73; // s13
float v74; // s10
__n128 v75; // q0
__n128 v76; // q1
unsigned __int32 data; // s9
__n128 v78; // q0
__n128 v79; // q1
__n128 v80; // q0
float v81; // s10
float v82; // s11
__n128 v83; // q1
__n128 v84; // q0
__n128 v85; // q1
float v86; // s9
__n128 v87; // q0
__n128 v88; // q1
__n128 v89; // q0
__n128 v90; // q1
float width; // s10
float v92; // s9
float v93; // s11
__n128 v94; // q1
__n128 v95; // q0
float v96; // s11
__n128 v97; // q0
__n128 v98; // q1
bool v100; // w27
bool v101; // w27
bool v102; // w27
bool v103; // w27
bool v104; // w27
bool v105; // w27
bool v106; // w27
bool v107; // w27
bool v108; // w27
bool v109; // w27
bool v110; // w27
_BOOL4 v111; // w26
cocos2d::CCString *v112; // x0
const char *v113; // [xsp+8h] [xbp-138h]
const char *v114; // [xsp+10h] [xbp-130h]
int v115; // [xsp+18h] [xbp-128h] BYREF
float v116; // [xsp+1Ch] [xbp-124h]
void *__p[2]; // [xsp+20h] [xbp-120h] BYREF
char v118; // [xsp+37h] [xbp-109h]
std::string __str; // [xsp+38h] [xbp-108h] BYREF
int v120; // [xsp+50h] [xbp-F0h] BYREF
void *v121[2]; // [xsp+58h] [xbp-E8h] BYREF
char v122; // [xsp+6Fh] [xbp-D1h]
float v123; // [xsp+70h] [xbp-D0h]
std::allocator __a[23]; // [xsp+78h] [xbp-C8h] BYREF
char v125; // [xsp+8Fh] [xbp-B1h]
std::string v126; // [xsp+90h] [xbp-B0h] BYREF
cocos2d::CCRect v127; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
cocos2d::CCRect v128; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
v5 = a5;
v10 = cocos2d::CCNodeRGBA::init(a1);
if ( !v10 )
return v10;
v114 = a2;
v11 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v11);
LODWORD(v126.__r_.__value_.__l.__data_) = 0;
v12 = cocos2d::CCLayerColor::create((const cocos2d::ccColor4B *)&v126, 0.0, 0.0);
a1->m_layerColor = v12;
v13 = ((__n128 (__fastcall *)(AchievementBar *, cocos2d::CCLayerColor *))a1->addChild)(a1, v12);
m_layerColor = a1->m_layerColor;
v13.n128_f32[0] = v123 * 0.5;
v15.n128_u32[0] = 1109393408;
sub_100022980(v13, v15, &v126);
((void (__fastcall *)(cocos2d::CCLayerColor *, std::string *))m_layerColor->setPosition)(m_layerColor, &v126);
if ( v5 )
v16 = "GJ_square02.png";
else
v16 = "GJ_square01.png";
sub_100009900(v121, v16);
v17 = v122;
v18 = (void **)v121[0];
sub_100022990((float *)&v126, 0.0, 0.0, 80.0, 80.0);
if ( v17 >= 0 )
v19 = v121;
else
v19 = v18;
v20 = cocos2d::extension::CCScale9Sprite::create((const char *)v19, v127);
sub_100022988((float *)&v126, 300.0, 80.0);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, std::string *))v20->setContentSize)(v20, &v126);
((void (__fastcall *)(cocos2d::CCLayerColor *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_layerColor->addChild_0)(
a1->m_layerColor,
v20,
1);
a1->m_bg = v20;
v21 = cocos2d::CCSprite::createWithSpriteFrameName("achievementGlow_001.png");
a1->m_achievementGlowSprite = v21;
((void (__fastcall *)(cocos2d::CCSprite *, float))v21->setScale)(v21, 4.0);
((void (__fastcall *)(cocos2d::CCLayerColor *, cocos2d::CCSprite *, __int64))a1->m_layerColor->addChild_0)(
a1->m_layerColor,
a1->m_achievementGlowSprite,
0xFFFFFFFFLL);
v22 = ((__n128 (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_achievementGlowSprite->setBlendFunc)(
a1->m_achievementGlowSprite,
0x100000302LL);
v22.n128_u32[0] = 1109393408;
v23.n128_u32[0] = 1109393408;
sub_100022980(v22, v23, &v120);
sub_100022990((float *)&v126, 0.0, 0.0, 80.0, 80.0);
v24 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v128);
sub_100022988((float *)&v126, 300.0, 80.0);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, std::string *))v24->setContentSize)(v24, &v126);
((void (__fastcall *)(cocos2d::CCLayerColor *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_layerColor->addChild_0)(
a1->m_layerColor,
v24,
100);
v25 = ((__int64 (__fastcall *)(cocos2d::extension::CCScale9Sprite *))v20->getPosition)(v20);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v24->setPosition)(v24, v25);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, _QWORD))v24->setOpacity)(v24, 0);
cocos2d::extension::CCScale9Sprite::setBlendAdditive(v24, 1);
a1->m_bg2 = v24;
v26 = cocos2d::CCSprite::createWithSpriteFrameName("playerSquare_001.png");
if ( v5 )
{
v27 = (GJItemIcon *)cocos2d::CCSprite::createWithSpriteFrameName(a4);
v28 = (float *)((__int64 (__fastcall *)(GJItemIcon *))v27->getContentSize)(v27);
v29 = 0.0;
((void (__fastcall *)(GJItemIcon *, float))v27->setScale)(v27, 30.0 / *v28);
v30 = a3;
goto LABEL_67;
}
v29 = 0.0;
if ( !a4 )
{
LABEL_65:
v30 = nullptr;
goto LABEL_66;
}
sub_100009900(&__str, (char *)a4);
v113 = a3;
v31 = sub_10024A15C();
if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
p_str = &__str;
else
p_str = (std::string *)__str.__r_.__value_.__r.__words[0];
if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
size = HIBYTE(__str.__r_.__value_.__r.__words[2]);
else
size = __str.__r_.__value_.__l.__size_;
if ( size )
{
v34 = (std::string *)((char *)p_str + size);
v35 = size;
v36 = p_str;
while ( v36->__r_.__value_.__s.__data_[0] != 95 )
{
v36 = (std::string *)((char *)v36 + 1);
if ( !--v35 )
{
v36 = (std::string *)((char *)p_str + size);
break;
}
}
v37 = (char *)v36 - (char *)p_str;
if ( v36 == v34 )
v38 = -1;
else
v38 = v37;
}
else
{
v38 = -1;
}
v39 = 0;
do
{
std::string::basic_string(&v126, &__str, v39, v38 - v39, __a);
if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 )
{
if ( v39 == size && !v126.__r_.__value_.__l.__size_ )
goto LABEL_36;
v40 = (std::string *)v126.__r_.__value_.__r.__words[0];
}
else
{
if ( v39 == size && !*((_BYTE *)&v126.__r_.__value_.__s + 23) )
goto LABEL_36;
v40 = &v126;
}
sub_100009900(__a, (char *)v40);
sub_100268E48((__int128 *)__a);
sub_10024A2D0((__int64)v31);
if ( v125 < 0 )
operator delete(*(void **)&__a[0].std::__non_trivial_if);
LABEL_36:
if ( v38 == -1 )
goto LABEL_37;
v39 = v38 + 1;
v43 = __str.__r_.__value_.__l.__size_;
if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v44 = &__str;
else
v44 = (std::string *)__str.__r_.__value_.__r.__words[0];
if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v43 = HIBYTE(__str.__r_.__value_.__r.__words[2]);
if ( v43 <= v39 )
{
LABEL_37:
v41 = -1;
}
else
{
v45 = (char *)v44 + v43;
v46 = (char *)v44 + v39;
v47 = ~v38 + v43;
while ( *v46 != 95 )
{
++v46;
if ( !--v47 )
{
v46 = v45;
break;
}
}
v48 = v46 - (_BYTE *)v44;
if ( v46 == v45 )
v41 = -1;
else
v41 = v48;
}
if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v126.__r_.__value_.__l.__data_);
v42 = v38 == -1;
v38 = v41;
}
while ( !v42 );
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
a3 = v113;
if ( (unsigned int)sub_10024A36C((__int64)v31) < 2 )
goto LABEL_65;
v49 = (cocos2d::CCString *)sub_10024A388((__int64)v31, 0);
CString = (char *)cocos2d::CCString::getCString(v49);
v51 = (cocos2d::CCString *)sub_10024A388((__int64)v31, 1u);
v52 = cocos2d::CCString::intValue(v51);
sub_100009900(&v126, CString);
sub_100009900(__a, "ship");
v53 = sub_1000045BC(&v126, __a);
if ( v125 < 0 )
operator delete(*(void **)&__a[0].std::__non_trivial_if);
if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v126.__r_.__value_.__l.__data_);
v29 = 0.0;
if ( v53 )
{
v54 = 4;
v55 = "Ship";
}
else
{
sub_100009900(&v126, CString);
sub_100009900(__a, "ball");
v100 = sub_1000045BC(&v126, __a);
if ( v125 < 0 )
operator delete(*(void **)&__a[0].std::__non_trivial_if);
if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v126.__r_.__value_.__l.__data_);
if ( v100 )
{
v54 = 5;
v55 = "Ball";
}
else
{
sub_100009900(&v126, CString);
sub_100009900(__a, "bird");
v101 = sub_1000045BC(&v126, __a);
if ( v125 < 0 )
operator delete(*(void **)&__a[0].std::__non_trivial_if);
if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v126.__r_.__value_.__l.__data_);
if ( v101 )
{
v29 = -8.0;
v54 = Bird;
v55 = "UFO";
}
else
{
sub_100009900(&v126, CString);
sub_100009900(__a, "dart");
v102 = sub_1000045BC(&v126, __a);
if ( v125 < 0 )
operator delete(*(void **)&__a[0].std::__non_trivial_if);
if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v126.__r_.__value_.__l.__data_);
if ( v102 )
{
v54 = Dart;
v55 = "Wave";
}
else
{
sub_100009900(&v126, CString);
sub_100009900(__a, "robot");
v103 = sub_1000045BC(&v126, __a);
if ( v125 < 0 )
operator delete(*(void **)&__a[0].std::__non_trivial_if);
if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v126.__r_.__value_.__l.__data_);
if ( v103 )
{
v54 = 8;
v55 = "Robot";
}
else
{
sub_100009900(&v126, CString);
sub_100009900(__a, "spider");
v104 = sub_1000045BC(&v126, __a);
if ( v125 < 0 )
operator delete(*(void **)&__a[0].std::__non_trivial_if);
if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v126.__r_.__value_.__l.__data_);
if ( v104 )
{
v54 = 9;
v55 = "Spider";
}
else
{
sub_100009900(&v126, CString);
sub_100009900(__a, "death");
v105 = sub_1000045BC(&v126, __a);
if ( v125 < 0 )
operator delete(*(void **)&__a[0].std::__non_trivial_if);
if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v126.__r_.__value_.__l.__data_);
if ( v105 )
{
v54 = Death;
v55 = "Death Effect";
}
else
{
sub_100009900(&v126, CString);
sub_100009900(__a, "special");
v106 = sub_1000045BC(&v126, __a);
if ( v125 < 0 )
operator delete(*(void **)&__a[0].std::__non_trivial_if);
if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v126.__r_.__value_.__l.__data_);
if ( v106 )
{
v54 = Streak;
v55 = "Trail";
}
else
{
sub_100009900(&v126, CString);
sub_100009900(__a, "color");
v107 = sub_1000045BC(&v126, __a);
if ( v125 < 0 )
operator delete(*(void **)&__a[0].std::__non_trivial_if);
if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v126.__r_.__value_.__l.__data_);
if ( v107 )
{
v54 = Col1;
v55 = "Main Color";
}
else
{
sub_100009900(&v126, CString);
sub_100009900(__a, "color2");
v108 = sub_1000045BC(&v126, __a);
if ( v125 < 0 )
operator delete(*(void **)&__a[0].std::__non_trivial_if);
if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v126.__r_.__value_.__l.__data_);
if ( v108 )
{
v54 = Col2;
v55 = "Secondary Color";
}
else
{
sub_100009900(&v126, CString);
sub_100009900(__a, "swing");
v109 = sub_1000045BC(&v126, __a);
if ( v125 < 0 )
operator delete(*(void **)&__a[0].std::__non_trivial_if);
if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v126.__r_.__value_.__l.__data_);
if ( v109 )
{
v54 = GJItem|0x1;
v55 = "Swing";
}
else
{
sub_100009900(&v126, CString);
sub_100009900(__a, "jetpack");
v110 = sub_1000045BC(&v126, __a);
if ( v125 < 0 )
operator delete(*(void **)&__a[0].std::__non_trivial_if);
if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v126.__r_.__value_.__l.__data_);
if ( v110 )
{
v54 = GJItem|Col1;
v55 = "Jetpack";
}
else
{
sub_100009900(&v126, CString);
sub_100009900(__a, "shipfire");
v111 = sub_1000045BC(&v126, __a);
if ( v125 < 0 )
operator delete(*(void **)&__a[0].std::__non_trivial_if);
if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v126.__r_.__value_.__l.__data_);
v55 = "Icon";
if ( v111 )
{
v55 = "Ship Fire";
v54 = GJItem|Col2;
}
else
{
v54 = 1;
}
}
}
a3 = v113;
}
}
}
}
}
}
}
}
}
}
v112 = (cocos2d::CCString *)sub_100268F4C("Unlocked new %s!", v55);
v30 = cocos2d::CCString::getCString(v112);
v27 = GJItemIcon::create(
v54,
v52,
(cocos2d::ccColor3B)-5263441,
(cocos2d::ccColor3B)-1,
0,
0,
1,
(cocos2d::ccColor3B)-1);
if ( !v27 )
LABEL_66:
v27 = (GJItemIcon *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_achImage_001.png");
LABEL_67:
((void (__fastcall *)(GJItemIcon *, int *))v27->setPosition)(v27, &v120);
((void (__fastcall *)(cocos2d::CCLayerColor *, GJItemIcon *, __int64))a1->m_layerColor->addChild_0)(
a1->m_layerColor,
v27,
3);
a1->m_achievementSprite = v27;
v56 = cocos2d::CCNode::create();
((void (__fastcall *)(cocos2d::CCLayerColor *, cocos2d::CCNode *, __int64))a1->m_layerColor->addChild_0)(
a1->m_layerColor,
v56,
2);
if ( v5 )
v57 = 0.8;
else
v57 = 0.7;
if ( v5 )
v58 = "goldFont.fnt";
else
v58 = "bigFont.fnt";
sub_100009900(&v126, v58);
if ( (v126.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v59 = &v126;
else
v59 = (std::string *)v126.__r_.__value_.__r.__words[0];
v60 = cocos2d::CCLabelBMFont::create_1(v114, (const char *)v59);
v61 = ((__n128 (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *))v56->addChild)(v56, v60);
v61.n128_u32[0] = 0;
v62.n128_u32[0] = 0.5;
sub_100022980(v61, v62, __a);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::allocator *))v60->setAnchorPoint)(v60, __a);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v60->setScale)(v60, v57);
a1->m_titleLabel = v60;
v63.n128_u32[0] = *(_DWORD *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v60->getContentSize)(v60);
if ( v63.n128_f32[0] > 200.0 )
{
v64 = (float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *, float))v60->getContentSize)(v60, v63.n128_f32[0]);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v60->setScale)(v60, 200.0 / *v64);
}
if ( v57 > ((float (__fastcall *)(cocos2d::CCLabelBMFont *, __n128))v60->getScale)(v60, v63) )
v57 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v60->getScale)(v60);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v60->setScale)(v60, v57);
if ( v30 )
v65 = (char *)v30;
else
v65 = (char *)a3;
sub_100009900(__p, v65);
v66.n128_u32[0] = 0;
v67.n128_u32[0] = 1.0;
sub_100022980(v66, v67, __a);
v68 = TextArea::create((__int64)__p, (__int64)"chatFont.fnt", (__int64 *)__a, 0, 1.0, 200.0, 20.0);
if ( v118 < 0 )
operator delete(__p[0]);
v69 = ((__n128 (__fastcall *)(cocos2d::CCNode *, cocos2d::CCObject *))v56->addChild)(v56, v68);
v69.n128_u32[0] = 0;
v70.n128_u32[0] = 0.5;
sub_100022980(v69, v70, __a);
v71 = ((__n128 (__fastcall *)(cocos2d::CCObject *, std::allocator *))v68->__vftable[3].update)(v68, __a);
v71.n128_u32[0] = 0;
v72.n128_u32[0] = 5.0;
sub_100022980(v71, v72, __a);
((void (__fastcall *)(cocos2d::CCObject *, std::allocator *))v68->__vftable[2].isEqual)(v68, __a);
v68[11].m_uAutoReleaseCount = 1098907648;
a1->m_achievementDescription = (TextArea *)v68;
v73 = *(float *)(((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v60->getContentSize)(v60) + 4);
v74 = *(float *)(((__int64 (__fastcall *)(cocos2d::CCObject *))v68->__vftable[3].setTag)(v68) + 4);
v75.n128_u32[0] = 0;
v76.n128_u32[0] = 1.0;
sub_100022980(v75, v76, &__str);
data = (unsigned __int32)__str.__r_.__value_.__l.__data_;
v78.n128_u32[0] = 0;
v79.n128_u32[0] = 1.0;
sub_100022980(v78, v79, &v115);
v81 = v74 + 17.0;
v82 = (float)(v73 + v81) * 0.5;
v83.n128_u32[0] = 2.5;
if ( !v5 )
v83.n128_f32[0] = 0.0;
v83.n128_f32[0] = v83.n128_f32[0] + (float)((float)((float)(v82 - (float)(v73 * 0.5)) + v116) + 2.0);
v80.n128_u32[0] = data;
sub_100022980(v80, v83, __a);
v84 = ((__n128 (__fastcall *)(cocos2d::CCLabelBMFont *, std::allocator *))v60->setPosition)(v60, __a);
v84.n128_u32[0] = 0;
v85.n128_u32[0] = -1.0;
sub_100022980(v84, v85, &__str);
v86 = *(float *)&__str.__r_.__value_.__l.__data_;
v87.n128_u32[0] = 0;
v88.n128_u32[0] = -1.0;
sub_100022980(v87, v88, &v115);
v89.n128_f32[0] = v86 + 1.0;
v90.n128_f32[0] = (float)((float)((float)((float)(v81 * 0.5) - v82) + 15.0) + v116) + -1.0;
sub_100022980(v89, v90, __a);
((void (__fastcall *)(cocos2d::CCObject *, std::allocator *))v68->__vftable[2].isEqual)(v68, __a);
((void (__fastcall *)(cocos2d::CCSprite *, float))v26->setScale)(v26, 1.0);
if ( !v5 )
((void (__fastcall *)(GJItemIcon *, float))v27->setScale)(v27, 1.0);
width = v26->m_obRect.size.width;
v92 = ((float (__fastcall *)(cocos2d::CCSprite *))v26->getScale)(v26);
v93 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v60->getContentSize)(v60);
v94.n128_f32[0] = v93 * ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v60->getScale)(v60);
v95.n128_u32[0] = (unsigned __int32)v68[12].__vftable;
if ( v94.n128_f32[0] >= v95.n128_f32[0] )
{
v96 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v60->getContentSize)(v60);
v95.n128_f32[0] = v96 * ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v60->getScale)(v60);
}
v95.n128_f32[0] = (float)((float)(width * v92) * 0.5)
- (float)((float)((float)((float)((float)(width * v92) * 0.5) + (float)(v95.n128_f32[0] + 5.0)) + 30.0)
* 0.5);
v94.n128_f32[0] = v29;
sub_100022980(v95, v94, __a);
((void (__fastcall *)(GJItemIcon *, std::allocator *))v27->setPosition)(v27, __a);
v97.n128_f32[0] = *(float *)((__int64 (__fastcall *)(GJItemIcon *))v27->getPosition)(v27) + 30.0;
v98.n128_u32[0] = 0;
sub_100022980(v97, v98, __a);
((void (__fastcall *)(cocos2d::CCNode *, std::allocator *))v56->setPosition)(v56, __a);
a1->m_unkUnused = 1118568448;
if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v126.__r_.__value_.__l.__data_);
if ( v122 < 0 )
operator delete(v121[0]);
return v10;
}