//
// ItemInfoPopup::init from 0x1003a4eb8 to 0x1003a5de8 (3888 bytes)
//
// 1 xrefs:
// > ItemInfoPopup::create @ 0x1003a3264
//
// 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:03:49 +0000
//
__int64 __fastcall ItemInfoPopup::init(__int64 a1, __int64 a2, __int64 a3)
{
__int64 inited; // x19
__int64 v7; // x0
void *v8; // x24
void *v9; // x23
float32x2_t *v10; // x8
void *v11; // x0
char *CString; // x0
const char *v13; // x0
void *v14; // x23
__int64 v15; // x0
__int64 v16; // x8
__int64 v17; // x23
int v18; // w23
const std::string::value_type *v19; // x1
std::string *v20; // x0
void *v21; // x23
double v22; // d0
void *v23; // x23
double v24; // d0
__int64 v25; // x0
void *v26; // x0
__int64 v27; // x23
__int64 v28; // x0
__int64 v29; // x0
__int64 ItemUnlockState; // x0
int v31; // w23
__int64 v32; // x24
__int64 v33; // x0
__int64 v34; // x0
__int64 isIconUnlocked; // x24
std::string *v36; // x0
float32x2_t *v37; // x8
void *v38; // x0
const std::string::value_type *v39; // x0
unsigned int v40; // w8
const std::string::value_type *v41; // x1
void *v42; // x0
std::string *v43; // x8
float32x2_t *v44; // x9
void *v45; // x0
const std::string::value_type *v46; // x0
_QWORD *SpecialUnlockDescription; // x0
float32x2_t *v48; // x8
void *v49; // x0
const std::string::value_type *v50; // x0
unsigned int v51; // w8
const std::string::value_type *v52; // x0
__int64 v53; // x0
std::string *v54; // x8
float32x2_t *v55; // x9
void *v56; // x0
const std::string::value_type *v57; // x0
_BOOL4 v58; // w8
int v59; // w9
int v60; // w8
float32x2_t *v61; // x8
void *v62; // x0
const std::string::value_type *v63; // x0
std::string::size_type size; // x8
unsigned int v65; // w8
const std::string::value_type *v66; // x1
float32x2_t *v67; // x8
void *v68; // x0
const std::string::value_type *v69; // x0
void *v70; // x24
double v71; // d0
std::string *v72; // x0
void *v73; // x25
double v74; // d0
float32x2_t *v75; // x25
double v76; // d0
std::string *v77; // x0
void *v78; // x24
double v79; // d0
__int64 v80; // x0
__int64 v81; // x0
_QWORD *v82; // x0
std::string *v83; // x8
void *v84; // x0
const char *v85; // x0
void *v86; // x21
void *v87; // x22
__int64 v89; // [xsp+10h] [xbp-160h] BYREF
float32x2_t v90; // [xsp+18h] [xbp-158h] BYREF
std::string __dst; // [xsp+20h] [xbp-150h] BYREF
std::string v92; // [xsp+38h] [xbp-138h] BYREF
std::string v93; // [xsp+50h] [xbp-120h] BYREF
std::string v94; // [xsp+70h] [xbp-100h] BYREF
std::string v95; // [xsp+88h] [xbp-E8h] BYREF
void *__p[2]; // [xsp+A0h] [xbp-D0h] BYREF
__int64 v97; // [xsp+B0h] [xbp-C0h]
__int128 v98; // [xsp+C0h] [xbp-B0h] BYREF
__int64 v99; // [xsp+D0h] [xbp-A0h]
void *v100[2]; // [xsp+D8h] [xbp-98h] BYREF
char v101; // [xsp+EFh] [xbp-81h]
float32x2_t v102[2]; // [xsp+F0h] [xbp-80h] BYREF
char v103; // [xsp+107h] [xbp-69h]
float32x2_t v104; // [xsp+108h] [xbp-68h] BYREF
float32x2_t v105; // [xsp+110h] [xbp-60h] BYREF
__int64 v106; // [xsp+118h] [xbp-58h] BYREF
inited = FLAlertLayer::init_1((_DWORD *)a1, 150);
if ( !(_DWORD)inited )
return inited;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1);
*(_DWORD *)(a1 + 660) = a2;
*(_DWORD *)(a1 + 664) = a3;
v7 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v7, &v106);
sub_1000262CC((float *)v102, 0.0, 0.0, 80.0, 80.0);
v8 = cocos2d::extension::CCScale9Sprite::create((__int64)"GJ_square01.png", (__int64)v102);
sub_1000262C4((float *)v102, 300.0, 230.0);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v8 + 320LL))(v8, v102);
(*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v8,
4294967294LL);
sub_1000262BC((float *)&v105, *(float *)&v106 * 0.5, *((float *)&v106 + 1) * 0.5);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v8 + 184LL))(v8, &v105);
sub_1000262BC((float *)v102, 0.0, -22.0);
sub_100026318(&v105, v102, &v104);
sub_1000262CC((float *)v102, 0.0, 0.0, 80.0, 80.0);
v9 = cocos2d::extension::CCScale9Sprite::create((__int64)"GJ_square01.png", (__int64)v102);
(*(void (__fastcall **)(void *, _BYTE *))(*(_QWORD *)v9 + 960LL))(v9, algn_10076DC6E);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v9 + 912LL))(v9, 60);
sub_1000262C4((float *)v102, 260.0, 90.0);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v9 + 320LL))(v9, v102);
(*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v9,
0xFFFFFFFFLL);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v9 + 184LL))(v9, &v104);
sub_1003A5F50(v102, a2, a3);
if ( v103 >= 0 )
v10 = v102;
else
v10 = (float32x2_t *)v102[0];
v11 = sub_1003065B0("%s %i", (const char *)v10, a2);
CString = (char *)cocos2d::CCString::getCString((__int64)v11);
sub_100009900(v100, CString);
if ( v101 >= 0 )
v13 = (const char *)v100;
else
v13 = (const char *)v100[0];
v14 = cocos2d::CCLabelBMFont::create_1(v13, "goldFont.fnt");
sub_1000262BC((float *)&v98, v105.f32[0], (float)(v105.f32[1] + 115.0) + -16.0);
(*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v14 + 184LL))(v14, &v98);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v14);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v14 + 160LL))(v14, 0.8);
v15 = AchievementManager::sharedState();
AchievementManager::achievementForUnlock(v15, a2, a3, &v98);
v16 = HIBYTE(v99);
if ( v99 < 0 )
v16 = *((_QWORD *)&v98 + 1);
if ( v16 )
{
v17 = AchievementManager::sharedState();
if ( SHIBYTE(v99) < 0 )
{
sub_1000097D0(__p, (void *)v98, *((unsigned __int64 *)&v98 + 1));
}
else
{
*(_OWORD *)__p = v98;
v97 = v99;
}
v18 = AchievementManager::limitForAchievement(v17, (char *)__p);
if ( SHIBYTE(v97) < 0 )
operator delete(__p[0]);
if ( (unsigned int)(v18 - 2) <= 2 )
{
sub_100009900(&v95, "gj_subzeroLogo_001.png");
if ( v18 == 4 )
{
v19 = "GJ_md_001.png";
}
else
{
if ( v18 != 2 )
goto LABEL_22;
v19 = "gj_worldLogo_001.png";
}
std::string::assign(&v95, v19);
LABEL_22:
if ( (v95.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v20 = &v95;
else
v20 = (std::string *)v95.__r_.__value_.__r.__words[0];
v21 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v20);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v21);
sub_1000262BC((float *)&v94, 0.0, 1.0);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v21 + 296LL))(v21, &v94);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v21 + 160LL))(v21, 0.4);
sub_1000262BC((float *)&v93, -140.0, 105.0);
*(float32x2_t *)&v22 = sub_100026318(&v105, (float32x2_t *)&v93, (float32x2_t *)&v94);
(*(void (__fastcall **)(void *, std::string *, double))(*(_QWORD *)v21 + 184LL))(v21, &v94, v22);
if ( SHIBYTE(v95.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v95.__r_.__value_.__l.__data_);
}
}
v23 = GJItemIcon::create(a3, a2, 11513775, 0xFFFFFF, 0, 1, 1);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v23 + 160LL))(v23, 1.25);
(*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v23, 12);
sub_1000262BC((float *)&v94, 0.0, 56.0);
*(float32x2_t *)&v24 = sub_100026318(&v105, (float32x2_t *)&v94, (float32x2_t *)&v95);
(*(void (__fastcall **)(void *, std::string *, double))(*(_QWORD *)v23 + 184LL))(v23, &v95, v24);
*(_QWORD *)(a1 + 552) = cocos2d::CCMenu::create();
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584));
v25 = sub_100067FAC((__int64)"OK");
v26 = CCMenuItemSpriteExtra::create(v25, 0, a1, (__int64)sub_1003A6054, 0);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v26);
v27 = *(_QWORD *)(a1 + 552);
sub_1000262BC((float *)&v95, *(float *)&v106 * 0.5, (float)((float)(*((float *)&v106 + 1) * 0.5) + -115.0) + 25.0);
v28 = (*(__int64 (__fastcall **)(__int64, std::string *))(*(_QWORD *)v27 + 184LL))(v27, &v95);
v29 = GameStatsManager::sharedState(v28);
ItemUnlockState = GameStatsManager::getItemUnlockState(v29, a2, a3);
v31 = ItemUnlockState;
v32 = GameManager::sharedState(ItemUnlockState);
v33 = GameManager::sharedState(v32);
v34 = GameManager::unlockTypeToIconType(v33, a3);
isIconUnlocked = GameManager::isIconUnlocked(v32, a2, v34);
sub_100009900(&v95, "");
sub_100009900(&v94, "");
v36 = (std::string *)sub_100009900(&v93, "");
if ( v31 > 4 )
{
if ( v31 > 6 )
{
if ( v31 == 7 )
{
std::string::assign(&v93, "Mechanic Shop");
v42 = sub_1003065B0("You can buy this %s at the Mechanic!");
}
else
{
if ( v31 != 8 )
goto LABEL_59;
std::string::assign(&v93, "Diamond Shop");
v42 = sub_1003065B0("You can buy this %s in the diamond shop!");
}
}
else if ( v31 == 5 )
{
std::string::assign(&v93, "Secret Shop");
v42 = sub_1003065B0("There may or may not exist a shop where you can buy this %s.");
}
else
{
std::string::assign(&v93, "Community Shop");
v42 = sub_1003065B0("You can buy this %s in the community shop!");
}
goto LABEL_58;
}
if ( v31 > 2 )
{
if ( v31 == 3 )
{
std::string::assign(&v93, "Special Chest");
v48 = v102;
if ( v103 < 0 )
v48 = (float32x2_t *)v102[0];
v49 = sub_1003065B0("You can find this %s in a special chest!", (const char *)v48);
v50 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v49);
std::string::assign(&v95, v50);
std::string::assign(&v94, "");
v51 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 10.0) - 1;
if ( v51 >= 9 )
v41 = "IMPOSSIBRU!";
else
v41 = off_100945830[v51];
goto LABEL_137;
}
std::string::assign(&v93, "Shop");
v42 = sub_1003065B0("You can buy this %s in the shop!");
LABEL_58:
v52 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v42);
v36 = std::string::assign(&v95, v52);
goto LABEL_59;
}
if ( v31 == 1 )
{
sub_1003A36F8(a2, a3, &v92);
if ( SHIBYTE(v93.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v93.__r_.__value_.__l.__data_);
v93 = v92;
sub_1003A37E4(a2, a3, &v92);
if ( (v92.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v43 = &v92;
else
v43 = (std::string *)v92.__r_.__value_.__r.__words[0];
v44 = v102;
if ( v103 < 0 )
v44 = (float32x2_t *)v102[0];
v45 = sub_1003065B0("%s to unlock this %s!", (const char *)v43, (const char *)v44);
v46 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v45);
SpecialUnlockDescription = std::string::assign(&v95, v46);
if ( SHIBYTE(v92.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v92.__r_.__value_.__l.__data_);
goto LABEL_93;
}
if ( v31 == 2 )
{
std::string::assign(&v93, "Secret Chest");
v37 = v102;
if ( v103 < 0 )
v37 = (float32x2_t *)v102[0];
v38 = sub_1003065B0("You can find this %s in a secret chest!", (const char *)v37);
v39 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v38);
std::string::assign(&v95, v39);
std::string::assign(&v94, "");
v40 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 10.0) - 1;
if ( v40 >= 9 )
v41 = "A key... My kingdom for a key...";
else
v41 = off_1009457E8[v40];
LABEL_137:
v36 = std::string::assign(&v94, v41);
}
LABEL_59:
v53 = GameStatsManager::sharedState(v36);
SpecialUnlockDescription = GameStatsManager::getSpecialUnlockDescription(&v92, v53, a2, a3, isIconUnlocked);
if ( SHIBYTE(v92.__r_.__value_.__r.__words[2]) < 0 )
{
if ( !v92.__r_.__value_.__l.__size_ )
{
LABEL_67:
operator delete(v92.__r_.__value_.__l.__data_);
goto LABEL_68;
}
v54 = (std::string *)v92.__r_.__value_.__r.__words[0];
LABEL_64:
v55 = v102;
if ( v103 < 0 )
v55 = (float32x2_t *)v102[0];
v56 = sub_1003065B0("%s to unlock this %s!", (const char *)v54, (const char *)v55);
v57 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v56);
std::string::assign(&v95, v57);
SpecialUnlockDescription = std::string::assign(&v94, "");
if ( (SHIBYTE(v92.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_68;
goto LABEL_67;
}
if ( *((_BYTE *)&v92.__r_.__value_.__s + 23) )
{
v54 = &v92;
goto LABEL_64;
}
LABEL_68:
v58 = v31 == 0;
if ( v31 )
v59 = 0;
else
v59 = isIconUnlocked;
if ( v59 == 1 )
{
if ( (a3 & 0xFFFFFFFE) == 2 )
v60 = 4;
else
v60 = 2;
if ( (_DWORD)a3 == 1 )
v60 = 5;
if ( v60 > (int)a2 )
{
std::string::assign(&v93, "Default");
v61 = v102;
if ( v103 < 0 )
v61 = (float32x2_t *)v102[0];
v62 = sub_1003065B0("This %s is unlocked by default.", (const char *)v61);
v63 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v62);
SpecialUnlockDescription = std::string::assign(&v95, v63);
goto LABEL_93;
}
v58 = 1;
}
if ( (isIconUnlocked & 1) == 0 && v58 )
{
size = HIBYTE(v95.__r_.__value_.__r.__words[2]);
if ( (v95.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
size = v95.__r_.__value_.__l.__size_;
if ( !size )
{
v65 = llroundf(vcvts_n_f32_s32(rand(), 0x1Fu) * 10.0) - 1;
if ( v65 >= 0xA )
v66 = "Soon...";
else
v66 = off_100945878[v65];
std::string::assign(&v93, v66);
v67 = v102;
if ( v103 < 0 )
v67 = (float32x2_t *)v102[0];
v68 = sub_1003065B0("This %s can be unlocked in update 2.21.", (const char *)v67);
v69 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v68);
SpecialUnlockDescription = std::string::assign(&v95, v69);
}
}
LABEL_93:
if ( SHIBYTE(v95.__r_.__value_.__r.__words[2]) < 0 )
{
if ( !v95.__r_.__value_.__l.__size_ )
goto LABEL_106;
sub_1000097D0(&__dst, v95.__r_.__value_.__l.__data_, v95.__r_.__value_.__l.__size_);
}
else
{
if ( !*((_BYTE *)&v95.__r_.__value_.__s + 23) )
goto LABEL_106;
__dst = v95;
}
sub_1000262BC((float *)&v92, 0.5, 1.0);
v70 = TextArea::create((__int64)&__dst, (__int64)"bigFont.fnt", (double *)&v92, 0, 0, 1.0, 600.0, 42.0);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
(*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v70, 10);
sub_1000262BC((float *)&v90, 0.0, -2.0);
*(float32x2_t *)&v71 = sub_100026318(&v104, &v90, (float32x2_t *)&v92);
(*(void (__fastcall **)(void *, std::string *, double))(*(_QWORD *)v70 + 184LL))(v70, &v92, v71);
SpecialUnlockDescription = (_QWORD *)(*(__int64 (__fastcall **)(void *, float))(*(_QWORD *)v70 + 160LL))(v70, 0.4);
if ( SHIBYTE(v94.__r_.__value_.__r.__words[2]) < 0 )
{
if ( !v94.__r_.__value_.__l.__size_ )
goto LABEL_106;
v72 = (std::string *)v94.__r_.__value_.__r.__words[0];
}
else
{
if ( !*((_BYTE *)&v94.__r_.__value_.__s + 23) )
goto LABEL_106;
v72 = &v94;
}
v73 = cocos2d::CCLabelBMFont::create_1((const char *)v72, "chatFont.fnt");
sub_1000262BC((float *)&v90, 0.0, -35.0);
*(float32x2_t *)&v74 = sub_100026318(&v104, &v90, (float32x2_t *)&v92);
(*(void (__fastcall **)(void *, std::string *, double))(*(_QWORD *)v73 + 184LL))(v73, &v92, v74);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v73);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v73 + 160LL))(v73, 0.6);
(*(void (__fastcall **)(void *, _BYTE *))(*(_QWORD *)v73 + 1072LL))(v73, algn_10076DC6E);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v73 + 1024LL))(v73, 75);
v75 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v70 + 192LL))(v70);
sub_1000262BC((float *)&v90, 0.0, 5.0);
*(float32x2_t *)&v76 = sub_100026318(v75, &v90, (float32x2_t *)&v92);
SpecialUnlockDescription = (_QWORD *)(*(__int64 (__fastcall **)(void *, std::string *, double))(*(_QWORD *)v70 + 184LL))(
v70,
&v92,
v76);
LABEL_106:
if ( SHIBYTE(v93.__r_.__value_.__r.__words[2]) < 0 )
{
if ( !v93.__r_.__value_.__l.__size_ )
goto LABEL_113;
v77 = (std::string *)v93.__r_.__value_.__r.__words[0];
}
else
{
if ( !*((_BYTE *)&v93.__r_.__value_.__s + 23) )
goto LABEL_113;
v77 = &v93;
}
v78 = cocos2d::CCLabelBMFont::create_1((const char *)v77, "goldFont.fnt");
sub_1000262BC((float *)&v90, 0.0, 30.0);
*(float32x2_t *)&v79 = sub_100026318(&v104, &v90, (float32x2_t *)&v92);
(*(void (__fastcall **)(void *, std::string *, double))(*(_QWORD *)v78 + 184LL))(v78, &v92, v79);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v78);
SpecialUnlockDescription = (_QWORD *)cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v78, 180.0, 0.55, 0.0);
if ( v31 == 4 )
SpecialUnlockDescription = (_QWORD *)(*(__int64 (__fastcall **)(void *, float))(*(_QWORD *)v78 + 160LL))(v78, 0.6);
LABEL_113:
v80 = GameStatsManager::sharedState(SpecialUnlockDescription);
v81 = sub_10006DC28(v80, a2, a3);
*(_DWORD *)(a1 + 668) = v81;
if ( (_DWORD)v81 )
{
v82 = (_QWORD *)GameStatsManager::sharedState(v81);
sub_10006DC7C(v82, *(_DWORD *)(a1 + 668), &v92);
if ( SHIBYTE(v92.__r_.__value_.__r.__words[2]) < 0 )
{
if ( !v92.__r_.__value_.__l.__size_ )
{
LABEL_122:
operator delete(v92.__r_.__value_.__l.__data_);
goto LABEL_123;
}
v83 = (std::string *)v92.__r_.__value_.__r.__words[0];
LABEL_119:
v84 = sub_1003065B0("By %s", (const char *)v83);
v85 = (const char *)cocos2d::CCString::getCString((__int64)v84);
v86 = cocos2d::CCLabelBMFont::create_1(v85, "goldFont.fnt");
sub_1000262BC(
(float *)&v90,
(float)((float)(*(float *)&v106 * 0.5) + 150.0) + -60.0,
(float)((float)(*((float *)&v106 + 1) * 0.5) + -115.0) + 21.0);
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v86, 100.0, 0.5, 0.0);
v87 = CCMenuItemSpriteExtra::create((__int64)v86, 0, a1, (__int64)sub_1003A6090, 0);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v87);
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), (__int64)&v90, &v89);
(*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v87 + 184LL))(v87, &v89);
if ( *(int *)(a1 + 668) <= 0 )
{
BYTE2(v89) = -1;
LOWORD(v89) = -166;
(*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v86 + 1072LL))(v86, &v89);
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v87 + 1056LL))(v87, 0);
}
if ( (SHIBYTE(v92.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
goto LABEL_123;
goto LABEL_122;
}
if ( *((_BYTE *)&v92.__r_.__value_.__s + 23) )
{
v83 = &v92;
goto LABEL_119;
}
}
LABEL_123:
if ( SHIBYTE(v93.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v93.__r_.__value_.__l.__data_);
if ( SHIBYTE(v94.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v94.__r_.__value_.__l.__data_);
if ( SHIBYTE(v95.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v95.__r_.__value_.__l.__data_);
if ( SHIBYTE(v99) < 0 )
operator delete((void *)v98);
if ( v101 < 0 )
operator delete(v100[0]);
if ( v103 < 0 )
operator delete(*(void **)v102);
return inited;
}