// // ItemInfoPopup::init from 0x8be214 to 0x8bf630 (5148 bytes) // // 2 xrefs: // > ItemInfoPopup::create @ 0x8bf7c8 // > @ 0xac870 // // 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:56:30 +0000 // __int64 __fastcall ItemInfoPopup::init(__int64 a1, unsigned int a2, unsigned int a3) { unsigned __int8 v6; // w0 unsigned int v7; // w25 cocos2d::CCDirector *v9; // x0 cocos2d::CCDirector *v10; // x0 __int64 v11; // x23 void (__fastcall *v12)(__int64, __int64 *); // x28 __int64 v13; // x23 void (__fastcall *v14)(__int64, __int64 *); // x27 char *v15; // x1 cocos2d::CCString *v16; // x0 size_t v17; // x0 const char *v18; // x2 cocos2d::CCLabelBMFont *v19; // x0 __int64 v20; // x23 void (__fastcall *v21)(__int64, __int64 *); // x27 AchievementManager *v22; // x0 __int64 v23; // x0 __int64 BrowserItem; // x27 __int64 (__fastcall *v25)(__int64, __int64 *); // x28 cocos2d::CCMenu *v26; // x0 __int64 v27; // x0 __int64 v28; // x3 const char *v29; // x1 __int64 v30; // x2 __int64 v31; // x3 bool v32; // w4 __int64 v33; // x5 const char *v34; // x6 __int64 v35; // x0 __int64 v36; // x0 __int64 v37; // x27 __int64 (__fastcall *v38)(__int64, __int64 *); // x24 GameStatsManager *v39; // x0 __int64 v40; // x0 GameManager *ItemUnlockState; // x0 int v42; // w24 GameManager *v43; // x27 GameManager *v44; // x0 unsigned int v45; // w0 GameStatsManager *v46; // x0 __int64 v47; // x0 const char *v48; // x2 char *v49; // x1 char *v50; // x2 cocos2d::CCString *v51; // x0 char *v52; // x0 char *v53; // x1 cocos2d::CCString *v54; // x0 char *v55; // x0 cocos2d::CCLabelBMFont *v56; // x0 cocos2d::CCLabelBMFont *v57; // x27 void (__fastcall *v58)(cocos2d::CCLabelBMFont *, __int64 *); // x28 __int64 v59; // x0 GameStatsManager *v60; // x0 AchievementManager *v61; // x23 int v62; // w23 const char *v63; // x1 char *v64; // x0 __int64 v65; // x27 void (__fastcall *v66)(__int64, __int64 *); // x23 void (__fastcall *v67)(__int64, __int64 *); // x28 int v68; // w3 char *v69; // x0 char *v70; // x4 __int64 v71; // x2 size_t v72; // x2 char *v73; // x1 char *v74; // x2 cocos2d::CCString *v75; // x0 char *v76; // x0 __int64 v77; // x27 void (__fastcall *v78)(__int64, __int64 *); // x28 cocos2d::CCLabelBMFont *v79; // x0 GameStatsManager *v80; // x0 cocos2d::CCString *v81; // x0 cocos2d::CCLabelBMFont *v82; // x0 const char *v83; // x2 cocos2d::CCLabelBMFont *v84; // x22 __int64 v85; // x21 void (__fastcall *v86)(__int64, __int64 *); // x23 __int64 v87; // x28 __int64 v88; // x28 char *v89; // x1 cocos2d::CCString *v90; // x0 char *v91; // x0 char *v92; // x1 char *v93; // x1 char *v94; // x1 char *v95; // x1 char *v96; // x1 cocos2d::CCString *v97; // x0 char *v98; // x0 int v99; // w0 char *v100; // x1 cocos2d::CCString *v101; // x0 char *v102; // x0 int v103; // w0 void (__fastcall *v104)(cocos2d::CCLabelBMFont *, __int64 *); // x3 unsigned __int64 v105; // x0 unsigned __int64 v106; // x0 unsigned __int8 isIconUnlocked; // [xsp+7Fh] [xbp+7Fh] int v108; // [xsp+80h] [xbp+80h] char *CString; // [xsp+98h] [xbp+98h] int v110[2]; // [xsp+98h] [xbp+98h] void (__fastcall *v111)(__int64, __int64 *); // [xsp+A8h] [xbp+A8h] void (__fastcall *v112)(__int64, __int64 *); // [xsp+A8h] [xbp+A8h] __int64 v113; // [xsp+B0h] [xbp+B0h] BYREF float v114[2]; // [xsp+B8h] [xbp+B8h] BYREF __int64 v115; // [xsp+C0h] [xbp+C0h] BYREF char v116[8]; // [xsp+C8h] [xbp+C8h] BYREF __int64 v117[2]; // [xsp+D0h] [xbp+D0h] BYREF __int64 v118[2]; // [xsp+E0h] [xbp+E0h] BYREF char *v119; // [xsp+F0h] [xbp+F0h] __int64 v120[2]; // [xsp+F8h] [xbp+F8h] BYREF void *v121; // [xsp+108h] [xbp+108h] AchievementManager *v122; // [xsp+110h] [xbp+110h] BYREF size_t v123; // [xsp+118h] [xbp+118h] void *v124; // [xsp+120h] [xbp+120h] AchievementManager *v125; // [xsp+128h] [xbp+128h] BYREF size_t v126; // [xsp+130h] [xbp+130h] void *v127; // [xsp+138h] [xbp+138h] __int64 v128; // [xsp+140h] [xbp+140h] BYREF const char *v129; // [xsp+148h] [xbp+148h] void *v130; // [xsp+150h] [xbp+150h] __int64 v131; // [xsp+158h] [xbp+158h] BYREF __int64 v132; // [xsp+160h] [xbp+160h] void *v133; // [xsp+168h] [xbp+168h] __int64 v134; // [xsp+170h] [xbp+170h] BYREF __int64 v135; // [xsp+178h] [xbp+178h] void *v136; // [xsp+180h] [xbp+180h] __int64 v137[3]; // [xsp+188h] [xbp+188h] BYREF __int64 v138; // [xsp+1A0h] [xbp+1A0h] BYREF const char *v139; // [xsp+1A8h] [xbp+1A8h] char *v140; // [xsp+1B0h] [xbp+1B0h] v6 = FLAlertLayer::init((FLAlertLayer *)a1, 150); v7 = v6; if ( !v6 ) return v7; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); v9 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1); *(_DWORD *)(a1 + 660) = a2; *(_DWORD *)(a1 + 664) = a3; v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); cocos2d::CCDirector::getWinSize(&v113, v10); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v117, 0.0, 0.0, 80.0, 80.0); v11 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v117); v12 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v11 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v117, 300.0, 230.0); v12(v11, v117); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v11, 4294967294LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, *(float *)&v113 * 0.5, *((float *)&v113 + 1) * 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v11 + 184LL))(v11, v114); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v117, 0.0, -22.0); cocos2d::CCPoint::operator+(&v115, v114); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v117, 0.0, 0.0, 80.0, 80.0); v13 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v117); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v13 + 960LL))(v13, &unk_114C9B0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 912LL))(v13, 60); v14 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v13 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v117, 260.0, 90.0); v14(v13, v117); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v13, 0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v13 + 184LL))(v13, &v115); ItemInfoPopup::nameForUnlockType(a2, a3, v118); v15 = (char *)v118 + 1; if ( (v118[0] & 1) != 0 ) v15 = v119; v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s %i", v15, a2); CString = (char *)cocos2d::CCString::getCString(v16); v120[0] = 0; v120[1] = 0; v121 = nullptr; v17 = strlen(CString); std::string::__init(v120, CString, v17); v19 = (cocos2d::CCLabelBMFont *)((char *)v120 + 1); if ( (v120[0] & 1) != 0 ) v19 = (cocos2d::CCLabelBMFont *)v121; v20 = cocos2d::CCLabelBMFont::create(v19, "goldFont.fnt", v18); v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v20 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v117, v114[0], (float)(v114[1] + 115.0) - 16.0); v21(v20, v117); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v20); v22 = (AchievementManager *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v20 + 160LL))(v20, 0.8); v23 = AchievementManager::sharedState(v22); AchievementManager::achievementForUnlock(v23, a2, a3, (__int64 *)&v122); if ( ((unsigned __int8)v122 & 1) != 0 ) { if ( !v123 ) goto LABEL_9; } else if ( !((unsigned __int8)v122 >> 1) ) { goto LABEL_9; } v61 = (AchievementManager *)AchievementManager::sharedState((AchievementManager *)(unsigned __int8)v122); v125 = nullptr; v126 = 0; v127 = nullptr; if ( ((unsigned __int8)v122 & 1) != 0 ) { std::string::__init((__int64 *)&v125, v124, v123); } else { v127 = v124; v125 = v122; v126 = v123; } v62 = AchievementManager::limitForAchievement(v61, (char *)&v125); if ( ((unsigned __int8)v125 & 1) != 0 ) operator delete(v127); if ( (unsigned int)(v62 - 2) <= 2 ) { v138 = 0; v139 = nullptr; v140 = nullptr; std::string::__init(&v138, "gj_subzeroLogo_001.png", 0x16u); if ( v62 == 2 ) { std::string::assign(&v138, "gj_worldLogo_001.png"); } else if ( v62 == 4 ) { std::string::assign(&v138, "GJ_md_001.png"); } if ( (v138 & 1) != 0 ) v64 = v140; else v64 = (char *)&v138 + 1; v65 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v64, v63); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v65); v66 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v65 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v117, 0.0, 1.0); v66(v65, v117); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v65 + 160LL))(v65, 0.4); v67 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v65 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v116, -140.0, 105.0); cocos2d::CCPoint::operator+(v117, v114); v67(v65, v117); if ( (v138 & 1) != 0 ) operator delete(v140); } LABEL_9: BrowserItem = GJItemIcon::createBrowserItem(a3, a2); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)BrowserItem + 160LL))(BrowserItem, 1.25); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), BrowserItem, 12); v25 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)BrowserItem + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v116, 0.0, 56.0); cocos2d::CCPoint::operator+(v117, v114); v26 = (cocos2d::CCMenu *)v25(BrowserItem, v117); v27 = cocos2d::CCMenu::create(v26); v28 = *(_QWORD *)(a1 + 584); *(_QWORD *)(a1 + 552) = v27; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v28 + 464LL))(v28, v27, 10); v35 = ButtonSprite::create((ButtonSprite *)"OK", v29, v30, v31, v32, v33, v34); v36 = CCMenuItemSpriteExtra::create(v35, 0, a1, (__int64)ItemInfoPopup::onClose, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v36); v37 = *(_QWORD *)(a1 + 552); v38 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v37 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v117, *(float *)&v113 * 0.5, (float)((float)(*((float *)&v113 + 1) * 0.5) + -115.0) + 25.0); v39 = (GameStatsManager *)v38(v37, v117); v40 = GameStatsManager::sharedState(v39); ItemUnlockState = (GameManager *)GameStatsManager::getItemUnlockState(v40, a2, a3); v42 = (int)ItemUnlockState; v43 = (GameManager *)GameManager::sharedState(ItemUnlockState); v44 = (GameManager *)GameManager::sharedState(v43); v45 = GameManager::unlockTypeToIconType(v44, a3); isIconUnlocked = GameManager::isIconUnlocked((__int64)v43, a2, v45); v128 = 0; v129 = nullptr; v130 = nullptr; std::string::__init(&v128, &byte_11B8890, 0); v131 = 0; v132 = 0; v133 = nullptr; std::string::__init(&v131, &byte_11B8890, 0); v134 = 0; v135 = 0; v136 = nullptr; v46 = (GameStatsManager *)std::string::__init(&v134, &byte_11B8890, 0); switch ( v42 ) { case 5: std::string::assign(&v134, "Secret Shop"); v89 = (char *)v118 + 1; if ( (v118[0] & 1) != 0 ) v89 = v119; v90 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"There may or may not exist a shop where you can buy<" "/c> this %s.", v89); goto LABEL_114; case 6: std::string::assign(&v134, "Community Shop"); v93 = (char *)v118 + 1; if ( (v118[0] & 1) != 0 ) v93 = v119; v90 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"You can buy this %s in the community shop!", v93); goto LABEL_114; case 7: std::string::assign(&v134, "Mechanic Shop"); v94 = (char *)v118 + 1; if ( (v118[0] & 1) != 0 ) v94 = v119; v90 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"You can buy this %s at the Mechanic!", v94); goto LABEL_114; case 8: std::string::assign(&v134, "Diamond Shop"); v95 = (char *)v118 + 1; if ( (v118[0] & 1) != 0 ) v95 = v119; v90 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"You can buy this %s in the diamond shop!", v95); goto LABEL_114; case 4: std::string::assign(&v134, "Shop"); v92 = (char *)v118 + 1; if ( (v118[0] & 1) != 0 ) v92 = v119; v90 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"You can buy this %s in the shop!", v92); LABEL_114: v91 = (char *)cocos2d::CCString::getCString(v90); v46 = (GameStatsManager *)std::string::assign(&v128, v91); break; case 2: std::string::assign(&v134, "Secret Chest"); v96 = (char *)v118 + 1; if ( (v118[0] & 1) != 0 ) v96 = v119; v97 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"You can find this %s in a secret chest!", v96); v98 = (char *)cocos2d::CCString::getCString(v97); std::string::assign(&v128, v98); std::string::assign(&v131, &byte_11B8890); v99 = (int)(float)((float)((float)rand() * 4.6566e-10) * 10.0) - 1; switch ( v99 ) { case 0: v46 = (GameStatsManager *)std::string::assign(&v131, "Nothing happened."); break; case 1: v46 = (GameStatsManager *)std::string::assign(&v131, "Without a key, it cannot be."); break; case 2: v46 = (GameStatsManager *)std::string::assign(&v131, "Why you click?"); break; case 3: v46 = (GameStatsManager *)std::string::assign(&v131, "You are not yet ready."); break; case 4: v46 = (GameStatsManager *)std::string::assign(&v131, "A key, you must have."); break; case 5: v46 = (GameStatsManager *)std::string::assign(&v131, "The lock wont budge."); break; case 6: v46 = (GameStatsManager *)std::string::assign(&v131, "A demon guards it. Find him."); break; case 7: v46 = (GameStatsManager *)std::string::assign(&v131, "You have no power here."); break; case 8: v46 = (GameStatsManager *)std::string::assign(&v131, "Forget about this one."); break; default: v46 = (GameStatsManager *)std::string::assign(&v131, "A key... My kingdom for a key..."); break; } break; case 3: std::string::assign(&v134, "Special Chest"); v100 = (char *)v118 + 1; if ( (v118[0] & 1) != 0 ) v100 = v119; v101 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"You can find this %s in a special chest!", v100); v102 = (char *)cocos2d::CCString::getCString(v101); std::string::assign(&v128, v102); std::string::assign(&v131, &byte_11B8890); v103 = (int)(float)((float)((float)rand() * 4.6566e-10) * 10.0) - 1; switch ( v103 ) { case 0: v46 = (GameStatsManager *)std::string::assign(&v131, "That wont work."); break; case 1: v46 = (GameStatsManager *)std::string::assign(&v131, "You must do something."); break; case 2: v46 = (GameStatsManager *)std::string::assign(&v131, "It cannot be done."); break; case 3: v46 = (GameStatsManager *)std::string::assign(&v131, "Prove that you are worthy."); break; case 4: v46 = (GameStatsManager *)std::string::assign(&v131, "Need. More. Power."); break; case 5: v46 = (GameStatsManager *)std::string::assign(&v131, "Player used tap.\nIt's not very effective."); break; case 6: v46 = (GameStatsManager *)std::string::assign(&v131, "A wild lock appeared!"); break; case 7: v46 = (GameStatsManager *)std::string::assign(&v131, "You are not ready."); break; case 8: v46 = (GameStatsManager *)std::string::assign(&v131, "ehehehehehe..."); break; default: v46 = (GameStatsManager *)std::string::assign(&v131, "IMPOSSIBRU!"); break; } break; case 1: GJGarageLayer::titleForUnlock(a2, a3, v137); if ( (v134 & 1) != 0 ) { *(_BYTE *)v136 = 0; v135 = 0; if ( (v134 & 1) != 0 ) { v68 = 1; v69 = (char *)&v134 + 1; v70 = (char *)v136; goto LABEL_66; } v105 = (unsigned __int8)v134 >> 1; if ( v105 > 0x16 ) { v106 = (v105 + 16) & 0xFFFFFFFFFFFFFFF0LL; if ( v106 != 23 ) { v69 = (char *)operator new(v106); v68 = v134 & 1; if ( (v134 & 1) == 0 ) { v71 = (unsigned __int8)v134 >> 1; v70 = (char *)&v134 + 1; goto LABEL_67; } v70 = (char *)v136; LABEL_66: v71 = v135; LABEL_67: v72 = v71 + 1; if ( v72 ) { v108 = v68; *(_QWORD *)v110 = v70; memcpy(v69, v70, v72); v68 = v108; v70 = *(char **)v110; } if ( v68 ) operator delete(v70); } } } v136 = (void *)v137[2]; v134 = v137[0]; v135 = v137[1]; GJGarageLayer::descriptionForUnlock(a2, a3, &v138); v73 = (char *)&v138 + 1; if ( (v138 & 1) != 0 ) v73 = v140; v74 = (char *)v118 + 1; if ( (v118[0] & 1) != 0 ) v74 = v119; v75 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s to unlock this %s!", v73, v74); v76 = (char *)cocos2d::CCString::getCString(v75); std::string::assign(&v128, v76); if ( (v138 & 1) != 0 ) operator delete(v140); goto LABEL_30; default: break; } v47 = GameStatsManager::sharedState(v46); GameStatsManager::getSpecialUnlockDescription(&v138, v47, a2, a3, isIconUnlocked); if ( (v138 & 1) != 0 ) { if ( !v139 ) { LABEL_108: operator delete(v140); goto LABEL_23; } v49 = v140; } else { if ( !((int)(unsigned __int8)v138 >> 1) ) goto LABEL_23; v49 = (char *)&v138 + 1; } v50 = (char *)v118 + 1; if ( (v118[0] & 1) != 0 ) v50 = v119; v51 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s to unlock this %s!", v49, v50); v52 = (char *)cocos2d::CCString::getCString(v51); std::string::assign(&v128, v52); std::string::assign(&v131, &byte_11B8890); if ( (v138 & 1) != 0 ) goto LABEL_108; LABEL_23: if ( isIconUnlocked ) { if ( v42 || !ItemInfoPopup::isUnlockedByDefault(a1, a2, a3) ) goto LABEL_30; std::string::assign(&v134, "Default"); v53 = (char *)v118 + 1; if ( (v118[0] & 1) != 0 ) v53 = v119; v54 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"This %s is unlocked by default.", v53); goto LABEL_29; } if ( v42 ) goto LABEL_30; if ( (v128 & 1) != 0 ) { v48 = v129; if ( v129 ) goto LABEL_78; goto LABEL_115; } if ( !((int)(unsigned __int8)v128 >> 1) ) { LABEL_115: switch ( llroundf((float)((float)rand() * 4.6566e-10) * 10.0) ) { case 1u: std::string::assign(&v134, "Not yet"); break; case 2u: std::string::assign(&v134, "Huh?"); break; case 3u: std::string::assign(&v134, "Stay tuned!"); break; case 4u: std::string::assign(&v134, "Coming soon!"); break; case 5u: std::string::assign(&v134, "In the oven"); break; case 6u: std::string::assign(&v134, "It's cooking"); break; case 7u: std::string::assign(&v134, "Wait for it"); break; case 8u: std::string::assign(&v134, "Not now"); break; case 9u: std::string::assign(&v134, "Unavailable"); break; case 0xAu: std::string::assign(&v134, "Almost there"); break; default: std::string::assign(&v134, "Soon..."); break; } if ( (v118[0] & 1) != 0 ) v54 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"This %s can be unlocked in update 2.21.", v119); else v54 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"This %s can be unlocked in update 2.21.", (const char *)v118 + 1); LABEL_29: v55 = (char *)cocos2d::CCString::getCString(v54); std::string::assign(&v128, v55); LABEL_30: if ( (v128 & 1) == 0 ) { if ( !((int)(unsigned __int8)v128 >> 1) ) goto LABEL_32; goto LABEL_96; } v48 = v129; if ( !v129 ) goto LABEL_32; LABEL_78: v138 = 0; v139 = nullptr; v140 = nullptr; std::string::__init(&v138, v130, (size_t)v48); goto LABEL_79; } LABEL_96: v138 = v128; v139 = v129; v140 = (char *)v130; LABEL_79: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v117, 0.5, 1.0); v77 = TextArea::create((char *)&v138, "bigFont.fnt", (const cocos2d::CCPoint *)v117, 0, 0, 1.0, 600.0, 42.0); if ( (v138 & 1) != 0 ) operator delete(v140); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v77, 10); v78 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v77 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v116, 0.0, -2.0); cocos2d::CCPoint::operator+(v117, &v115); v78(v77, v117); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v77 + 160LL))(v77, 0.4); if ( (v131 & 1) != 0 ) { if ( !v132 ) goto LABEL_32; v79 = (cocos2d::CCLabelBMFont *)v133; } else { if ( !((int)(unsigned __int8)v131 >> 1) ) goto LABEL_32; v79 = (cocos2d::CCLabelBMFont *)((char *)&v131 + 1); } v87 = cocos2d::CCLabelBMFont::create(v79, "chatFont.fnt", v48); v111 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v87 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v116, 0.0, -35.0); cocos2d::CCPoint::operator+(v117, &v115); v111(v87, v117); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v87); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v87 + 160LL))(v87, 0.6); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v87 + 1072LL))(v87, &unk_114C9B0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v87 + 1024LL))(v87, 75); v112 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v77 + 184LL); v88 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v77 + 192LL))(v77); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v116, 0.0, 5.0); cocos2d::CCPoint::operator+(v117, v88); v112(v77, v117); LABEL_32: if ( (v134 & 1) != 0 ) { v56 = (cocos2d::CCLabelBMFont *)v135; if ( !v135 ) goto LABEL_37; v56 = (cocos2d::CCLabelBMFont *)v136; } else { v56 = (cocos2d::CCLabelBMFont *)((char *)&v134 + 1); if ( !((int)(unsigned __int8)v134 >> 1) ) goto LABEL_37; } v57 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v56, "goldFont.fnt", v48); v58 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v57 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v116, 0.0, 30.0); cocos2d::CCPoint::operator+(v117, &v115); v58(v57, v117); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v57); v56 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::limitLabelWidth(v57, 180.0, 0.55, 0.0); if ( v42 == 4 ) v56 = (cocos2d::CCLabelBMFont *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v57 + 160LL))( v57, 0.6); LABEL_37: v59 = GameStatsManager::sharedState(v56); v60 = (GameStatsManager *)GameStatsManager::accountIDForIcon(v59, a2, a3); *(_DWORD *)(a1 + 668) = (_DWORD)v60; if ( (_DWORD)v60 ) { v80 = (GameStatsManager *)GameStatsManager::sharedState(v60); GameStatsManager::usernameForAccountID(&v138, v80, *(_DWORD *)(a1 + 668)); if ( (v138 & 1) != 0 ) { if ( !v139 ) { LABEL_103: operator delete(v140); goto LABEL_38; } v81 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"By %s", v140); } else { if ( !((int)(unsigned __int8)v138 >> 1) ) goto LABEL_38; v81 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"By %s", (const char *)&v138 + 1); } v82 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v81); v84 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v82, "goldFont.fnt", v83); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v116, (float)((float)(*(float *)&v113 * 0.5) + 150.0) - 60.0, (float)((float)(*((float *)&v113 + 1) * 0.5) + -115.0) + 21.0); cocos2d::CCLabelBMFont::limitLabelWidth(v84, 100.0, 0.5, 0.0); v85 = CCMenuItemSpriteExtra::create((__int64)v84, 0, a1, (__int64)ItemInfoPopup::onCredit, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v85); v86 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v85 + 184LL); cocos2d::CCNode::convertToNodeSpace(v117, *(cocos2d::CCNode **)(a1 + 552), (const cocos2d::CCPoint *)v116); v86(v85, v117); if ( *(int *)(a1 + 668) <= 0 ) { v104 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v84 + 1072LL); LOWORD(v117[0]) = -166; BYTE2(v117[0]) = -1; v104(v84, v117); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v85 + 1056LL))(v85, 0); } if ( (v138 & 1) == 0 ) goto LABEL_38; goto LABEL_103; } LABEL_38: if ( (v134 & 1) != 0 ) operator delete(v136); if ( (v131 & 1) != 0 ) operator delete(v133); if ( (v128 & 1) != 0 ) operator delete(v130); if ( ((unsigned __int8)v122 & 1) != 0 ) operator delete(v124); if ( (v120[0] & 1) != 0 ) operator delete(v121); if ( (v118[0] & 1) != 0 ) operator delete(v119); return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source