//
// GameStatsManager::createSpecialChestItems from 0x100327780 to 0x10032b49c (15644 bytes)
//
// 1 xrefs:
// > GameStatsManager::init @ 0x1003256a0
//
// 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
//
void __fastcall GameStatsManager::createSpecialChestItems(GameStatsManager *a1)
{
cocos2d::CCDictionary *v2; // x0
cocos2d::CCDictionary *v3; // x0
cocos2d::CCDictionary *v4; // x0
cocos2d::CCDictionary *m_allSpecialChests; // x20
GJRewardItem *Special; // x21
cocos2d::CCDictionary *v7; // x20
GJRewardItem *v8; // x21
cocos2d::CCDictionary *v9; // x20
GJRewardItem *v10; // x21
cocos2d::CCDictionary *v11; // x20
GJRewardItem *v12; // x21
cocos2d::CCDictionary *v13; // x20
GJRewardItem *v14; // x21
cocos2d::CCDictionary *v15; // x20
GJRewardItem *v16; // x21
cocos2d::CCObject *v17; // x20
cocos2d::CCDictionary *v18; // x21
GJRewardItem *v19; // x22
__int64 v20; // x0
cocos2d::CCDictionary *v21; // x20
GJRewardItem *v22; // x21
cocos2d::CCObject *v23; // x20
cocos2d::CCDictionary *v24; // x21
GJRewardItem *v25; // x22
__int64 v26; // x0
cocos2d::CCObject *v27; // x20
cocos2d::CCDictionary *v28; // x21
GJRewardItem *v29; // x22
__int64 v30; // x0
cocos2d::CCObject *v31; // x20
cocos2d::CCDictionary *v32; // x21
GJRewardItem *v33; // x22
__int64 v34; // x0
cocos2d::CCObject *v35; // x20
cocos2d::CCDictionary *v36; // x21
GJRewardItem *v37; // x22
__int64 v38; // x0
cocos2d::CCObject *v39; // x20
cocos2d::CCDictionary *v40; // x21
GJRewardItem *v41; // x22
__int64 v42; // x0
cocos2d::CCObject *v43; // x20
cocos2d::CCDictionary *v44; // x21
GJRewardItem *v45; // x22
__int64 v46; // x0
cocos2d::CCObject *v47; // x20
cocos2d::CCDictionary *v48; // x21
GJRewardItem *v49; // x22
__int64 v50; // x0
cocos2d::CCObject *v51; // x20
cocos2d::CCDictionary *v52; // x21
GJRewardItem *v53; // x22
__int64 v54; // x0
cocos2d::CCObject *v55; // x20
cocos2d::CCDictionary *v56; // x21
GJRewardItem *v57; // x22
__int64 v58; // x0
cocos2d::CCObject *v59; // x20
cocos2d::CCDictionary *v60; // x21
GJRewardItem *v61; // x22
__int64 v62; // x0
cocos2d::CCObject *v63; // x20
cocos2d::CCDictionary *v64; // x21
GJRewardItem *v65; // x22
__int64 v66; // x0
cocos2d::CCObject *v67; // x20
cocos2d::CCDictionary *v68; // x21
GJRewardItem *v69; // x22
__int64 v70; // x0
cocos2d::CCObject *v71; // x20
cocos2d::CCDictionary *v72; // x21
GJRewardItem *v73; // x22
__int64 v74; // x0
cocos2d::CCObject *v75; // x20
cocos2d::CCDictionary *v76; // x21
GJRewardItem *v77; // x22
__int64 v78; // x0
cocos2d::CCObject *v79; // x20
cocos2d::CCDictionary *v80; // x21
GJRewardItem *v81; // x22
__int64 v82; // x0
cocos2d::CCObject *v83; // x20
cocos2d::CCDictionary *v84; // x21
GJRewardItem *v85; // x22
__int64 v86; // x0
cocos2d::CCObject *v87; // x20
cocos2d::CCDictionary *v88; // x21
GJRewardItem *v89; // x22
__int64 v90; // x0
cocos2d::CCObject *v91; // x20
cocos2d::CCDictionary *v92; // x21
GJRewardItem *v93; // x22
__int64 v94; // x0
cocos2d::CCObject *v95; // x20
cocos2d::CCDictionary *v96; // x21
GJRewardItem *v97; // x22
__int64 v98; // x0
cocos2d::CCObject *v99; // x20
cocos2d::CCDictionary *v100; // x21
GJRewardItem *v101; // x22
__int64 v102; // x0
cocos2d::CCObject *v103; // x20
cocos2d::CCDictionary *v104; // x21
GJRewardItem *v105; // x22
__int64 v106; // x0
cocos2d::CCObject *v107; // x20
cocos2d::CCDictionary *v108; // x21
GJRewardItem *v109; // x22
__int64 v110; // x0
cocos2d::CCObject *v111; // x20
cocos2d::CCDictionary *v112; // x21
GJRewardItem *v113; // x22
__int64 v114; // x0
cocos2d::CCObject *v115; // x20
cocos2d::CCDictionary *v116; // x21
GJRewardItem *v117; // x22
__int64 v118; // x0
cocos2d::CCObject *v119; // x20
cocos2d::CCDictionary *v120; // x21
GJRewardItem *v121; // x22
__int64 v122; // x0
cocos2d::CCObject *v123; // x20
cocos2d::CCDictionary *v124; // x21
GJRewardItem *v125; // x22
__int64 v126; // x0
cocos2d::CCObject *v127; // x20
cocos2d::CCDictionary *v128; // x21
GJRewardItem *v129; // x22
__int64 v130; // x0
cocos2d::CCObject *v131; // x20
cocos2d::CCDictionary *v132; // x21
GJRewardItem *v133; // x22
__int64 v134; // x0
cocos2d::CCObject *v135; // x20
cocos2d::CCDictionary *v136; // x21
GJRewardItem *v137; // x22
__int64 v138; // x0
cocos2d::CCObject *v139; // x20
cocos2d::CCDictionary *v140; // x21
GJRewardItem *v141; // x22
__int64 v142; // x0
cocos2d::CCObject *v143; // x20
cocos2d::CCDictionary *v144; // x21
GJRewardItem *v145; // x22
__int64 v146; // x0
cocos2d::CCObject *v147; // x20
cocos2d::CCDictionary *v148; // x21
GJRewardItem *v149; // x22
__int64 v150; // x0
cocos2d::CCObject *v151; // x20
cocos2d::CCDictionary *v152; // x21
GJRewardItem *v153; // x22
__int64 v154; // x0
cocos2d::CCObject *v155; // x20
cocos2d::CCDictionary *v156; // x21
GJRewardItem *v157; // x22
__int64 v158; // x0
cocos2d::CCObject *v159; // x20
cocos2d::CCDictionary *v160; // x21
GJRewardItem *v161; // x22
__int64 v162; // x0
cocos2d::CCObject *v163; // x20
cocos2d::CCDictionary *v164; // x21
GJRewardItem *v165; // x22
__int64 v166; // x0
cocos2d::CCObject *v167; // x20
cocos2d::CCDictionary *v168; // x21
GJRewardItem *v169; // x22
__int64 v170; // x0
cocos2d::CCObject *v171; // x20
cocos2d::CCDictionary *v172; // x21
GJRewardItem *v173; // x22
__int64 v174; // x0
cocos2d::CCObject *v175; // x20
cocos2d::CCDictionary *v176; // x21
GJRewardItem *v177; // x22
__int64 v178; // x0
cocos2d::CCObject *v179; // x20
cocos2d::CCDictionary *v180; // x21
GJRewardItem *v181; // x22
__int64 v182; // x0
cocos2d::CCObject *v183; // x20
cocos2d::CCDictionary *v184; // x21
GJRewardItem *v185; // x22
__int64 v186; // x0
cocos2d::CCObject *v187; // x20
cocos2d::CCDictionary *v188; // x21
GJRewardItem *v189; // x22
__int64 v190; // x0
cocos2d::CCObject *v191; // x20
cocos2d::CCDictionary *v192; // x21
GJRewardItem *v193; // x22
__int64 v194; // x0
cocos2d::CCObject *v195; // x20
cocos2d::CCDictionary *v196; // x21
GJRewardItem *v197; // x22
__int64 v198; // x0
cocos2d::CCObject *v199; // x20
cocos2d::CCDictionary *v200; // x21
GJRewardItem *v201; // x22
__int64 v202; // x0
cocos2d::CCObject *v203; // x20
cocos2d::CCDictionary *v204; // x21
GJRewardItem *v205; // x22
__int64 v206; // x0
cocos2d::CCObject *v207; // x20
cocos2d::CCDictionary *v208; // x21
GJRewardItem *v209; // x22
__int64 v210; // x0
cocos2d::CCObject *v211; // x20
cocos2d::CCDictionary *v212; // x21
GJRewardItem *v213; // x22
__int64 v214; // x0
cocos2d::CCObject *v215; // x20
cocos2d::CCDictionary *v216; // x21
GJRewardItem *v217; // x22
__int64 v218; // x0
cocos2d::CCObject *v219; // x20
cocos2d::CCDictionary *v220; // x21
GJRewardItem *v221; // x22
__int64 v222; // x0
cocos2d::CCObject *v223; // x20
cocos2d::CCDictionary *v224; // x21
GJRewardItem *v225; // x22
__int64 v226; // x0
cocos2d::CCObject *v227; // x20
cocos2d::CCDictionary *v228; // x21
GJRewardItem *v229; // x22
__int64 v230; // x0
__int64 v231; // x21
std::string *v232; // x0
void *v233; // x24
unsigned __int64 size; // x25
int v235; // w26
__int64 v236; // x0
cocos2d::CCObject *v237; // x20
cocos2d::CCDictionary *v238; // x21
GJRewardItem *v239; // x22
cocos2d::CCObject *v240; // x20
cocos2d::CCDictionary *v241; // x21
GJRewardItem *v242; // x22
cocos2d::CCDictionary *v243; // x20
GJRewardItem *v244; // x21
cocos2d::CCObject *v245; // x20
cocos2d::CCDictionary *v246; // x21
GJRewardItem *v247; // x22
cocos2d::CCObject *v248; // x20
cocos2d::CCDictionary *v249; // x21
GJRewardItem *v250; // x22
cocos2d::CCObject *v251; // x20
cocos2d::CCDictionary *v252; // x21
GJRewardItem *v253; // x22
cocos2d::CCObject *v254; // x20
cocos2d::CCDictionary *v255; // x21
GJRewardItem *v256; // x22
cocos2d::CCObject *v257; // x20
cocos2d::CCDictionary *v258; // x21
GJRewardItem *v259; // x22
cocos2d::CCObject *v260; // x20
cocos2d::CCDictionary *v261; // x21
GJRewardItem *v262; // x22
cocos2d::CCObject *v263; // x20
cocos2d::CCDictionary *v264; // x21
GJRewardItem *v265; // x22
cocos2d::CCObject *v266; // x20
cocos2d::CCDictionary *v267; // x21
GJRewardItem *v268; // x22
cocos2d::CCObject *v269; // x20
cocos2d::CCDictionary *v270; // x21
GJRewardItem *v271; // x22
cocos2d::CCObject *v272; // x20
cocos2d::CCDictionary *v273; // x21
GJRewardItem *v274; // x22
cocos2d::CCObject *v275; // x20
cocos2d::CCDictionary *v276; // x21
GJRewardItem *v277; // x22
cocos2d::CCObject *v278; // x20
cocos2d::CCDictionary *v279; // x21
GJRewardItem *v280; // x22
cocos2d::CCObject *v281; // x20
cocos2d::CCDictionary *v282; // x21
GJRewardItem *v283; // x22
__int64 v284; // x20
__int64 v285; // x0
cocos2d::CCArray *v286; // x0
cocos2d::ccArray *data; // x8
__int64 num; // x9
cocos2d::CCString **arr; // x21
unsigned __int64 v290; // x22
char *CString; // x0
__int64 v292; // x20
void *v293[2]; // [xsp+10h] [xbp-2D0h] BYREF
__int64 v294; // [xsp+20h] [xbp-2C0h]
std::string __dst; // [xsp+30h] [xbp-2B0h] BYREF
void *v296[2]; // [xsp+48h] [xbp-298h] BYREF
char v297; // [xsp+5Fh] [xbp-281h]
void *v298[2]; // [xsp+60h] [xbp-280h] BYREF
char v299; // [xsp+77h] [xbp-269h]
void *v300[2]; // [xsp+78h] [xbp-268h] BYREF
char v301; // [xsp+8Fh] [xbp-251h]
void *v302[2]; // [xsp+90h] [xbp-250h] BYREF
char v303; // [xsp+A7h] [xbp-239h]
void *v304[2]; // [xsp+A8h] [xbp-238h] BYREF
char v305; // [xsp+BFh] [xbp-221h]
void *v306[2]; // [xsp+C0h] [xbp-220h] BYREF
char v307; // [xsp+D7h] [xbp-209h]
void *v308[2]; // [xsp+D8h] [xbp-208h] BYREF
char v309; // [xsp+EFh] [xbp-1F1h]
void *v310[2]; // [xsp+F0h] [xbp-1F0h] BYREF
char v311; // [xsp+107h] [xbp-1D9h]
void *v312[2]; // [xsp+108h] [xbp-1D8h] BYREF
char v313; // [xsp+11Fh] [xbp-1C1h]
void *v314[2]; // [xsp+120h] [xbp-1C0h] BYREF
char v315; // [xsp+137h] [xbp-1A9h]
void *v316[2]; // [xsp+138h] [xbp-1A8h] BYREF
char v317; // [xsp+14Fh] [xbp-191h]
void *v318[2]; // [xsp+150h] [xbp-190h] BYREF
char v319; // [xsp+167h] [xbp-179h]
void *v320[2]; // [xsp+168h] [xbp-178h] BYREF
char v321; // [xsp+17Fh] [xbp-161h]
void *v322[2]; // [xsp+180h] [xbp-160h] BYREF
char v323; // [xsp+197h] [xbp-149h]
void *v324[2]; // [xsp+198h] [xbp-148h] BYREF
char v325; // [xsp+1AFh] [xbp-131h]
void *v326[2]; // [xsp+1B0h] [xbp-130h] BYREF
char v327; // [xsp+1C7h] [xbp-119h]
void *__p[2]; // [xsp+1C8h] [xbp-118h] BYREF
char v329; // [xsp+1DFh] [xbp-101h]
void *v330[2]; // [xsp+1E0h] [xbp-100h] BYREF
char v331; // [xsp+1F7h] [xbp-E9h]
void *v332[2]; // [xsp+1F8h] [xbp-E8h] BYREF
char v333; // [xsp+20Fh] [xbp-D1h]
std::string __str; // [xsp+210h] [xbp-D0h] BYREF
void *v335[2]; // [xsp+228h] [xbp-B8h] BYREF
char v336; // [xsp+23Fh] [xbp-A1h]
std::string v337; // [xsp+240h] [xbp-A0h] BYREF
__int128 v338; // [xsp+258h] [xbp-88h] BYREF
__int64 v339; // [xsp+268h] [xbp-78h]
char v340; // [xsp+277h] [xbp-69h] BYREF
void **v341; // [xsp+278h] [xbp-68h] BYREF
if ( a1->m_allSpecialChestItems )
return;
v2 = cocos2d::CCDictionary::create();
a1->m_allSpecialChestItems = v2;
cocos2d::CCObject::retain(v2);
v3 = cocos2d::CCDictionary::create();
a1->m_allSpecialChests = v3;
cocos2d::CCObject::retain(v3);
v4 = cocos2d::CCDictionary::create();
a1->m_specialChestsLite = v4;
cocos2d::CCObject::retain(v4);
m_allSpecialChests = a1->m_allSpecialChests;
Special = GJRewardItem::createSpecial(Small, 0, 10, FireShard, 3, (SpecialRewardItem)0, 0, 3, 30);
GameStatsManager::getGauntletRewardKey(&v338, Special, 1);
cocos2d::CCDictionary::setObject_1(m_allSpecialChests, Special, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v7 = a1->m_allSpecialChests;
v8 = GJRewardItem::createSpecial(Small, 0, 10, IceShard, 3, (SpecialRewardItem)0, 0, 3, 35);
GameStatsManager::getGauntletRewardKey(&v338, v8, 2);
cocos2d::CCDictionary::setObject_1(v7, v8, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v9 = a1->m_allSpecialChests;
v10 = GJRewardItem::createSpecial(Small, 0, 10, PoisonShard, 3, (SpecialRewardItem)0, 0, 3, 34);
GameStatsManager::getGauntletRewardKey(&v338, v10, 3);
cocos2d::CCDictionary::setObject_1(v9, v10, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v11 = a1->m_allSpecialChests;
v12 = GJRewardItem::createSpecial(Small, 0, 10, ShadowShard, 3, (SpecialRewardItem)0, 0, 3, 36);
GameStatsManager::getGauntletRewardKey(&v338, v12, 4);
cocos2d::CCDictionary::setObject_1(v11, v12, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v13 = a1->m_allSpecialChests;
v14 = GJRewardItem::createSpecial(Small, 0, 10, LavaShard, 3, (SpecialRewardItem)0, 0, 3, 29);
GameStatsManager::getGauntletRewardKey(&v338, v14, 5);
cocos2d::CCDictionary::setObject_1(v13, v14, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v15 = a1->m_allSpecialChests;
v16 = GJRewardItem::createSpecial(Small, 500, 10, (SpecialRewardItem)0, 0, (SpecialRewardItem)0, 0, 3, 37);
GameStatsManager::getGauntletRewardKey(&v338, v16, 6);
cocos2d::CCDictionary::setObject_1(v15, v16, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v17 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 16)->m_unlockType = 8;
sub_10024A2D0((__int64)v17);
GJRewardObject::create(CustomItem, 1, 1)->m_unlockType = GJItem;
sub_10024A2D0((__int64)v17);
GJRewardObject::create(Diamonds, 10, 0);
sub_10024A2D0((__int64)v17);
v18 = a1->m_allSpecialChests;
v19 = GJRewardItem::create_1();
v19->m_rewardType = Large;
sub_10015C71C((__int64)v19, v17);
GameStatsManager::getGauntletRewardKey(&v338, v20, 7);
cocos2d::CCDictionary::setObject_1(v18, v19, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v21 = a1->m_allSpecialChests;
v22 = GJRewardItem::createSpecial(Large, 0, 10, (SpecialRewardItem)0, 0, (SpecialRewardItem)0, 0, 9, 10);
GameStatsManager::getGauntletRewardKey(&v338, v22, 8);
cocos2d::CCDictionary::setObject_1(v21, v22, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v23 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 138)->m_unlockType = 1;
sub_10024A2D0((__int64)v23);
GJRewardObject::create(Diamonds, 50, 0);
sub_10024A2D0((__int64)v23);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v23);
v24 = a1->m_allSpecialChests;
v25 = GJRewardItem::create_1();
v25->m_rewardType = Large;
sub_10015C71C((__int64)v25, v23);
GameStatsManager::getGauntletRewardKey(&v338, v26, 9);
cocos2d::CCDictionary::setObject_1(v24, v25, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v27 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 139)->m_unlockType = 1;
sub_10024A2D0((__int64)v27);
GJRewardObject::create(Diamonds, 50, 0);
sub_10024A2D0((__int64)v27);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v27);
v28 = a1->m_allSpecialChests;
v29 = GJRewardItem::create_1();
v29->m_rewardType = Large;
sub_10015C71C((__int64)v29, v27);
GameStatsManager::getGauntletRewardKey(&v338, v30, 10);
cocos2d::CCDictionary::setObject_1(v28, v29, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v31 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 43)->m_unlockType = 5;
sub_10024A2D0((__int64)v31);
GJRewardObject::create(Diamonds, 50, 0);
sub_10024A2D0((__int64)v31);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v31);
v32 = a1->m_allSpecialChests;
v33 = GJRewardItem::create_1();
v33->m_rewardType = Large;
sub_10015C71C((__int64)v33, v31);
GameStatsManager::getGauntletRewardKey(&v338, v34, 11);
cocos2d::CCDictionary::setObject_1(v32, v33, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v35 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 141)->m_unlockType = 1;
sub_10024A2D0((__int64)v35);
GJRewardObject::create(Diamonds, 50, 0);
sub_10024A2D0((__int64)v35);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v35);
v36 = a1->m_allSpecialChests;
v37 = GJRewardItem::create_1();
v37->m_rewardType = Large;
sub_10015C71C((__int64)v37, v35);
GameStatsManager::getGauntletRewardKey(&v338, v38, 12);
cocos2d::CCDictionary::setObject_1(v36, v37, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v39 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 142)->m_unlockType = 1;
sub_10024A2D0((__int64)v39);
GJRewardObject::create(Diamonds, 50, 0);
sub_10024A2D0((__int64)v39);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v39);
v40 = a1->m_allSpecialChests;
v41 = GJRewardItem::create_1();
v41->m_rewardType = Large;
sub_10015C71C((__int64)v41, v39);
GameStatsManager::getGauntletRewardKey(&v338, v42, 13);
cocos2d::CCDictionary::setObject_1(v40, v41, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v43 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 17)->m_unlockType = Death;
sub_10024A2D0((__int64)v43);
GJRewardObject::create(Diamonds, 50, 0);
sub_10024A2D0((__int64)v43);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v43);
v44 = a1->m_allSpecialChests;
v45 = GJRewardItem::create_1();
v45->m_rewardType = Large;
sub_10015C71C((__int64)v45, v43);
GameStatsManager::getGauntletRewardKey(&v338, v46, 14);
cocos2d::CCDictionary::setObject_1(v44, v45, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v47 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 49)->m_unlockType = 4;
sub_10024A2D0((__int64)v47);
GJRewardObject::create(Diamonds, 50, 0);
sub_10024A2D0((__int64)v47);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v47);
v48 = a1->m_allSpecialChests;
v49 = GJRewardItem::create_1();
v49->m_rewardType = Large;
sub_10015C71C((__int64)v49, v47);
GameStatsManager::getGauntletRewardKey(&v338, v50, 15);
cocos2d::CCDictionary::setObject_1(v48, v49, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v51 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 67)->m_unlockType = 5;
sub_10024A2D0((__int64)v51);
GJRewardObject::create(Diamonds, 70, 0);
sub_10024A2D0((__int64)v51);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v51);
v52 = a1->m_allSpecialChests;
v53 = GJRewardItem::create_1();
v53->m_rewardType = Large;
sub_10015C71C((__int64)v53, v51);
GameStatsManager::getGauntletRewardKey(&v338, v54, 16);
cocos2d::CCDictionary::setObject_1(v52, v53, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v55 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 312)->m_unlockType = 1;
sub_10024A2D0((__int64)v55);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v55);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v55);
v56 = a1->m_allSpecialChests;
v57 = GJRewardItem::create_1();
v57->m_rewardType = Large;
sub_10015C71C((__int64)v57, v55);
GameStatsManager::getGauntletRewardKey(&v338, v58, 17);
cocos2d::CCDictionary::setObject_1(v56, v57, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v59 = sub_10024A15C();
GJRewardObject::create(Diamonds, 40, 0);
sub_10024A2D0((__int64)v59);
GJRewardObject::create(EarthShard, 3, 0);
sub_10024A2D0((__int64)v59);
GJRewardObject::create(MetalShard, 3, 0);
sub_10024A2D0((__int64)v59);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v59);
v60 = a1->m_allSpecialChests;
v61 = GJRewardItem::create_1();
v61->m_rewardType = Large;
sub_10015C71C((__int64)v61, v59);
GameStatsManager::getGauntletRewardKey(&v338, v62, 18);
cocos2d::CCDictionary::setObject_1(v60, v61, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v63 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 315)->m_unlockType = 1;
sub_10024A2D0((__int64)v63);
GJRewardObject::create(Diamonds, 30, 0);
sub_10024A2D0((__int64)v63);
GJRewardObject::create(BloodShard, 3, 0);
sub_10024A2D0((__int64)v63);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v63);
v64 = a1->m_allSpecialChests;
v65 = GJRewardItem::create_1();
v65->m_rewardType = Large;
sub_10015C71C((__int64)v65, v63);
GameStatsManager::getGauntletRewardKey(&v338, v66, 19);
cocos2d::CCDictionary::setObject_1(v64, v65, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v67 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 96)->m_unlockType = 4;
sub_10024A2D0((__int64)v67);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v67);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v67);
v68 = a1->m_allSpecialChests;
v69 = GJRewardItem::create_1();
v69->m_rewardType = Large;
sub_10015C71C((__int64)v69, v67);
GameStatsManager::getGauntletRewardKey(&v338, v70, 20);
cocos2d::CCDictionary::setObject_1(v68, v69, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v71 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 137)->m_unlockType = Bird;
sub_10024A2D0((__int64)v71);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v71);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v71);
v72 = a1->m_allSpecialChests;
v73 = GJRewardItem::create_1();
v73->m_rewardType = Large;
sub_10015C71C((__int64)v73, v71);
GameStatsManager::getGauntletRewardKey(&v338, v74, 21);
cocos2d::CCDictionary::setObject_1(v72, v73, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v75 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 476)->m_unlockType = 1;
sub_10024A2D0((__int64)v75);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v75);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v75);
v76 = a1->m_allSpecialChests;
v77 = GJRewardItem::create_1();
v77->m_rewardType = Large;
sub_10015C71C((__int64)v77, v75);
GameStatsManager::getGauntletRewardKey(&v338, v78, 22);
cocos2d::CCDictionary::setObject_1(v76, v77, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v79 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 467)->m_unlockType = 1;
sub_10024A2D0((__int64)v79);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v79);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v79);
v80 = a1->m_allSpecialChests;
v81 = GJRewardItem::create_1();
v81->m_rewardType = Large;
sub_10015C71C((__int64)v81, v79);
GameStatsManager::getGauntletRewardKey(&v338, v82, 23);
cocos2d::CCDictionary::setObject_1(v80, v81, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v83 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 41)->m_unlockType = Bird;
sub_10024A2D0((__int64)v83);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v83);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v83);
v84 = a1->m_allSpecialChests;
v85 = GJRewardItem::create_1();
v85->m_rewardType = Large;
sub_10015C71C((__int64)v85, v83);
GameStatsManager::getGauntletRewardKey(&v338, v86, 24);
cocos2d::CCDictionary::setObject_1(v84, v85, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v87 = sub_10024A15C();
GJRewardObject::create(Diamonds, 40, 0);
sub_10024A2D0((__int64)v87);
GJRewardObject::create(SoulShard, 3, 0);
sub_10024A2D0((__int64)v87);
GJRewardObject::create(LightShard, 3, 0);
sub_10024A2D0((__int64)v87);
v88 = a1->m_allSpecialChests;
v89 = GJRewardItem::create_1();
v89->m_rewardType = Large;
sub_10015C71C((__int64)v89, v87);
GameStatsManager::getGauntletRewardKey(&v338, v90, 25);
cocos2d::CCDictionary::setObject_1(v88, v89, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v91 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 94)->m_unlockType = Dart;
sub_10024A2D0((__int64)v91);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v91);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v91);
v92 = a1->m_allSpecialChests;
v93 = GJRewardItem::create_1();
v93->m_rewardType = Large;
sub_10015C71C((__int64)v93, v91);
GameStatsManager::getGauntletRewardKey(&v338, v94, 26);
cocos2d::CCDictionary::setObject_1(v92, v93, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v95 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 142)->m_unlockType = 4;
sub_10024A2D0((__int64)v95);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v95);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v95);
v96 = a1->m_allSpecialChests;
v97 = GJRewardItem::create_1();
v97->m_rewardType = Large;
sub_10015C71C((__int64)v97, v95);
GameStatsManager::getGauntletRewardKey(&v338, v98, 27);
cocos2d::CCDictionary::setObject_1(v96, v97, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v99 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 436)->m_unlockType = 1;
sub_10024A2D0((__int64)v99);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v99);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v99);
v100 = a1->m_allSpecialChests;
v101 = GJRewardItem::create_1();
v101->m_rewardType = Large;
sub_10015C71C((__int64)v101, v99);
GameStatsManager::getGauntletRewardKey(&v338, v102, 28);
cocos2d::CCDictionary::setObject_1(v100, v101, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v103 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 326)->m_unlockType = 1;
sub_10024A2D0((__int64)v103);
GJRewardObject::create(Diamonds, 40, 0);
sub_10024A2D0((__int64)v103);
GJRewardObject::create(BloodShard, 3, 0);
sub_10024A2D0((__int64)v103);
v104 = a1->m_allSpecialChests;
v105 = GJRewardItem::create_1();
v105->m_rewardType = Large;
sub_10015C71C((__int64)v105, v103);
GameStatsManager::getGauntletRewardKey(&v338, v106, 29);
cocos2d::CCDictionary::setObject_1(v104, v105, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v107 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 316)->m_unlockType = 1;
sub_10024A2D0((__int64)v107);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v107);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v107);
v108 = a1->m_allSpecialChests;
v109 = GJRewardItem::create_1();
v109->m_rewardType = Large;
sub_10015C71C((__int64)v109, v107);
GameStatsManager::getGauntletRewardKey(&v338, v110, 30);
cocos2d::CCDictionary::setObject_1(v108, v109, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v111 = sub_10024A15C();
GJRewardObject::create(Diamonds, 40, 0);
sub_10024A2D0((__int64)v111);
GJRewardObject::create(SoulShard, 5, 0);
sub_10024A2D0((__int64)v111);
v112 = a1->m_allSpecialChests;
v113 = GJRewardItem::create_1();
v113->m_rewardType = Large;
sub_10015C71C((__int64)v113, v111);
GameStatsManager::getGauntletRewardKey(&v338, v114, 31);
cocos2d::CCDictionary::setObject_1(v112, v113, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v115 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 67)->m_unlockType = 9;
sub_10024A2D0((__int64)v115);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v115);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v115);
v116 = a1->m_allSpecialChests;
v117 = GJRewardItem::create_1();
v117->m_rewardType = Large;
sub_10015C71C((__int64)v117, v115);
GameStatsManager::getGauntletRewardKey(&v338, v118, 32);
cocos2d::CCDictionary::setObject_1(v116, v117, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v119 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 397)->m_unlockType = 1;
sub_10024A2D0((__int64)v119);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v119);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v119);
v120 = a1->m_allSpecialChests;
v121 = GJRewardItem::create_1();
v121->m_rewardType = Large;
sub_10015C71C((__int64)v121, v119);
GameStatsManager::getGauntletRewardKey(&v338, v122, 33);
cocos2d::CCDictionary::setObject_1(v120, v121, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v123 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 244)->m_unlockType = 1;
sub_10024A2D0((__int64)v123);
GJRewardObject::create(Diamonds, 70, 0);
sub_10024A2D0((__int64)v123);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v123);
v124 = a1->m_allSpecialChests;
v125 = GJRewardItem::create_1();
v125->m_rewardType = Large;
sub_10015C71C((__int64)v125, v123);
GameStatsManager::getGauntletRewardKey(&v338, v126, 34);
cocos2d::CCDictionary::setObject_1(v124, v125, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v127 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 16)->m_unlockType = GJItem|0x1;
sub_10024A2D0((__int64)v127);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v127);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v127);
v128 = a1->m_allSpecialChests;
v129 = GJRewardItem::create_1();
v129->m_rewardType = Large;
sub_10015C71C((__int64)v129, v127);
GameStatsManager::getGauntletRewardKey(&v338, v130, 35);
cocos2d::CCDictionary::setObject_1(v128, v129, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v131 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 31)->m_unlockType = GJItem|0x1;
sub_10024A2D0((__int64)v131);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v131);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v131);
v132 = a1->m_allSpecialChests;
v133 = GJRewardItem::create_1();
v133->m_rewardType = Large;
sub_10015C71C((__int64)v133, v131);
GameStatsManager::getGauntletRewardKey(&v338, v134, 36);
cocos2d::CCDictionary::setObject_1(v132, v133, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v135 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 90)->m_unlockType = Dart;
sub_10024A2D0((__int64)v135);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v135);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v135);
v136 = a1->m_allSpecialChests;
v137 = GJRewardItem::create_1();
v137->m_rewardType = Large;
sub_10015C71C((__int64)v137, v135);
GameStatsManager::getGauntletRewardKey(&v338, v138, 37);
cocos2d::CCDictionary::setObject_1(v136, v137, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v139 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 63)->m_unlockType = Dart;
sub_10024A2D0((__int64)v139);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v139);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v139);
v140 = a1->m_allSpecialChests;
v141 = GJRewardItem::create_1();
v141->m_rewardType = Large;
sub_10015C71C((__int64)v141, v139);
GameStatsManager::getGauntletRewardKey(&v338, v142, 38);
cocos2d::CCDictionary::setObject_1(v140, v141, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v143 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 303)->m_unlockType = 1;
sub_10024A2D0((__int64)v143);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v143);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v143);
v144 = a1->m_allSpecialChests;
v145 = GJRewardItem::create_1();
v145->m_rewardType = Large;
sub_10015C71C((__int64)v145, v143);
GameStatsManager::getGauntletRewardKey(&v338, v146, 39);
cocos2d::CCDictionary::setObject_1(v144, v145, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v147 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 166)->m_unlockType = 4;
sub_10024A2D0((__int64)v147);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v147);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v147);
v148 = a1->m_allSpecialChests;
v149 = GJRewardItem::create_1();
v149->m_rewardType = Large;
sub_10015C71C((__int64)v149, v147);
GameStatsManager::getGauntletRewardKey(&v338, v150, 40);
cocos2d::CCDictionary::setObject_1(v148, v149, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v151 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 425)->m_unlockType = 1;
sub_10024A2D0((__int64)v151);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v151);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v151);
v152 = a1->m_allSpecialChests;
v153 = GJRewardItem::create_1();
v153->m_rewardType = Large;
sub_10015C71C((__int64)v153, v151);
GameStatsManager::getGauntletRewardKey(&v338, v154, 41);
cocos2d::CCDictionary::setObject_1(v152, v153, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v155 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 377)->m_unlockType = 1;
sub_10024A2D0((__int64)v155);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v155);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v155);
v156 = a1->m_allSpecialChests;
v157 = GJRewardItem::create_1();
v157->m_rewardType = Large;
sub_10015C71C((__int64)v157, v155);
GameStatsManager::getGauntletRewardKey(&v338, v158, 42);
cocos2d::CCDictionary::setObject_1(v156, v157, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v159 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 408)->m_unlockType = 1;
sub_10024A2D0((__int64)v159);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v159);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v159);
v160 = a1->m_allSpecialChests;
v161 = GJRewardItem::create_1();
v161->m_rewardType = Large;
sub_10015C71C((__int64)v161, v159);
GameStatsManager::getGauntletRewardKey(&v338, v162, 43);
cocos2d::CCDictionary::setObject_1(v160, v161, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v163 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 453)->m_unlockType = 1;
sub_10024A2D0((__int64)v163);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v163);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v163);
v164 = a1->m_allSpecialChests;
v165 = GJRewardItem::create_1();
v165->m_rewardType = Large;
sub_10015C71C((__int64)v165, v163);
GameStatsManager::getGauntletRewardKey(&v338, v166, 44);
cocos2d::CCDictionary::setObject_1(v164, v165, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v167 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 49)->m_unlockType = Dart;
sub_10024A2D0((__int64)v167);
GJRewardObject::create(Diamonds, 60, 0);
sub_10024A2D0((__int64)v167);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v167);
v168 = a1->m_allSpecialChests;
v169 = GJRewardItem::create_1();
v169->m_rewardType = Large;
sub_10015C71C((__int64)v169, v167);
GameStatsManager::getGauntletRewardKey(&v338, v170, 45);
cocos2d::CCDictionary::setObject_1(v168, v169, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v171 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 103)->m_unlockType = 5;
sub_10024A2D0((__int64)v171);
GJRewardObject::create(Diamonds, 30, 0);
sub_10024A2D0((__int64)v171);
GJRewardObject::create(LightShard, 3, 0);
sub_10024A2D0((__int64)v171);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v171);
v172 = a1->m_allSpecialChests;
v173 = GJRewardItem::create_1();
v173->m_rewardType = Large;
sub_10015C71C((__int64)v173, v171);
GameStatsManager::getGauntletRewardKey(&v338, v174, 46);
cocos2d::CCDictionary::setObject_1(v172, v173, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v175 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 119)->m_unlockType = Bird;
sub_10024A2D0((__int64)v175);
GJRewardObject::create(SoulShard, 3, 0);
sub_10024A2D0((__int64)v175);
GJRewardObject::create(Diamonds, 50, 0);
sub_10024A2D0((__int64)v175);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v175);
v176 = a1->m_allSpecialChests;
v177 = GJRewardItem::create_1();
v177->m_rewardType = Large;
sub_10015C71C((__int64)v177, v175);
GameStatsManager::getGauntletRewardKey(&v338, v178, 47);
cocos2d::CCDictionary::setObject_1(v176, v177, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v179 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 82)->m_unlockType = 5;
sub_10024A2D0((__int64)v179);
GJRewardObject::create(Diamonds, 50, 0);
sub_10024A2D0((__int64)v179);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v179);
v180 = a1->m_allSpecialChests;
v181 = GJRewardItem::create_1();
v181->m_rewardType = Large;
sub_10015C71C((__int64)v181, v179);
GameStatsManager::getGauntletRewardKey(&v338, v182, 48);
cocos2d::CCDictionary::setObject_1(v180, v181, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v183 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 482)->m_unlockType = 1;
sub_10024A2D0((__int64)v183);
GJRewardObject::create(Diamonds, 30, 0);
sub_10024A2D0((__int64)v183);
GJRewardObject::create(EarthShard, 3, 0);
sub_10024A2D0((__int64)v183);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v183);
v184 = a1->m_allSpecialChests;
v185 = GJRewardItem::create_1();
v185->m_rewardType = Large;
sub_10015C71C((__int64)v185, v183);
GameStatsManager::getGauntletRewardKey(&v338, v186, 49);
cocos2d::CCDictionary::setObject_1(v184, v185, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v187 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 90)->m_unlockType = 4;
sub_10024A2D0((__int64)v187);
GJRewardObject::create(Diamonds, 50, 0);
sub_10024A2D0((__int64)v187);
GJRewardObject::create(MetalShard, 3, 0);
sub_10024A2D0((__int64)v187);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v187);
v188 = a1->m_allSpecialChests;
v189 = GJRewardItem::create_1();
v189->m_rewardType = Large;
sub_10015C71C((__int64)v189, v187);
GameStatsManager::getGauntletRewardKey(&v338, v190, 50);
cocos2d::CCDictionary::setObject_1(v188, v189, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v191 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 452)->m_unlockType = 1;
sub_10024A2D0((__int64)v191);
GJRewardObject::create(Diamonds, 50, 0);
sub_10024A2D0((__int64)v191);
GJRewardObject::create(EarthShard, 3, 0);
sub_10024A2D0((__int64)v191);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v191);
v192 = a1->m_allSpecialChests;
v193 = GJRewardItem::create_1();
v193->m_rewardType = Large;
sub_10015C71C((__int64)v193, v191);
GameStatsManager::getGauntletRewardKey(&v338, v194, 51);
cocos2d::CCDictionary::setObject_1(v192, v193, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v195 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 117)->m_unlockType = 4;
sub_10024A2D0((__int64)v195);
GJRewardObject::create(Diamonds, 50, 0);
sub_10024A2D0((__int64)v195);
GJRewardObject::create(SoulShard, 3, 0);
sub_10024A2D0((__int64)v195);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v195);
v196 = a1->m_allSpecialChests;
v197 = GJRewardItem::create_1();
v197->m_rewardType = Large;
sub_10015C71C((__int64)v197, v195);
GameStatsManager::getGauntletRewardKey(&v338, v198, 52);
cocos2d::CCDictionary::setObject_1(v196, v197, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v199 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 133)->m_unlockType = Bird;
sub_10024A2D0((__int64)v199);
GJRewardObject::create(Diamonds, 50, 0);
sub_10024A2D0((__int64)v199);
GJRewardObject::create(MetalShard, 3, 0);
sub_10024A2D0((__int64)v199);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v199);
v200 = a1->m_allSpecialChests;
v201 = GJRewardItem::create_1();
v201->m_rewardType = Large;
sub_10015C71C((__int64)v201, v199);
GameStatsManager::getGauntletRewardKey(&v338, v202, 53);
cocos2d::CCDictionary::setObject_1(v200, v201, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v203 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 7)->m_unlockType = GJItem|Col1;
sub_10024A2D0((__int64)v203);
GJRewardObject::create(Diamonds, 75, 0);
sub_10024A2D0((__int64)v203);
GJRewardObject::create(LightShard, 3, 0);
sub_10024A2D0((__int64)v203);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v203);
v204 = a1->m_allSpecialChests;
v205 = GJRewardItem::create_1();
v205->m_rewardType = Large;
sub_10015C71C((__int64)v205, v203);
GameStatsManager::getGauntletRewardKey(&v338, v206, 54);
cocos2d::CCDictionary::setObject_1(v204, v205, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v207 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 484)->m_unlockType = 1;
sub_10024A2D0((__int64)v207);
GJRewardObject::create(Diamonds, 40, 0);
sub_10024A2D0((__int64)v207);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v207);
v208 = a1->m_allSpecialChests;
v209 = GJRewardItem::create_1();
v209->m_rewardType = Large;
sub_10015C71C((__int64)v209, v207);
GameStatsManager::getGauntletRewardKey(&v338, v210, 55);
cocos2d::CCDictionary::setObject_1(v208, v209, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v211 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 59)->m_unlockType = 5;
sub_10024A2D0((__int64)v211);
GJRewardObject::create(Diamonds, 80, 0);
sub_10024A2D0((__int64)v211);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v211);
v212 = a1->m_allSpecialChests;
v213 = GJRewardItem::create_1();
v213->m_rewardType = Large;
sub_10015C71C((__int64)v213, v211);
GameStatsManager::getGauntletRewardKey(&v338, v214, 56);
cocos2d::CCDictionary::setObject_1(v212, v213, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v215 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 102)->m_unlockType = 4;
sub_10024A2D0((__int64)v215);
GJRewardObject::create(Diamonds, 40, 0);
sub_10024A2D0((__int64)v215);
GJRewardObject::create(MetalShard, 2, 0);
sub_10024A2D0((__int64)v215);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v215);
v216 = a1->m_allSpecialChests;
v217 = GJRewardItem::create_1();
v217->m_rewardType = Large;
sub_10015C71C((__int64)v217, v215);
GameStatsManager::getGauntletRewardKey(&v338, v218, 57);
cocos2d::CCDictionary::setObject_1(v216, v217, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v219 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 120)->m_unlockType = Bird;
sub_10024A2D0((__int64)v219);
GJRewardObject::create(Diamonds, 80, 0);
sub_10024A2D0((__int64)v219);
GJRewardObject::create(SoulShard, 3, 0);
sub_10024A2D0((__int64)v219);
GJRewardObject::create(GoldKey, 1, 0);
sub_10024A2D0((__int64)v219);
v220 = a1->m_allSpecialChests;
v221 = GJRewardItem::create_1();
v221->m_rewardType = Large;
sub_10015C71C((__int64)v221, v219);
GameStatsManager::getGauntletRewardKey(&v338, v222, 58);
cocos2d::CCDictionary::setObject_1(v220, v221, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v223 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 115)->m_unlockType = 4;
sub_10024A2D0((__int64)v223);
GJRewardObject::create(Diamonds, 70, 0);
sub_10024A2D0((__int64)v223);
GJRewardObject::create(BloodShard, 2, 0);
sub_10024A2D0((__int64)v223);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v223);
v224 = a1->m_allSpecialChests;
v225 = GJRewardItem::create_1();
v225->m_rewardType = Large;
sub_10015C71C((__int64)v225, v223);
GameStatsManager::getGauntletRewardKey(&v338, v226, 59);
cocos2d::CCDictionary::setObject_1(v224, v225, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v227 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 372)->m_unlockType = 1;
sub_10024A2D0((__int64)v227);
GJRewardObject::create(Diamonds, 50, 0);
sub_10024A2D0((__int64)v227);
GJRewardObject::create(LightShard, 3, 0);
sub_10024A2D0((__int64)v227);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v227);
v228 = a1->m_allSpecialChests;
v229 = GJRewardItem::create_1();
v229->m_rewardType = Large;
sub_10015C71C((__int64)v229, v227);
GameStatsManager::getGauntletRewardKey(&v338, v230, 60);
cocos2d::CCDictionary::setObject_1(v228, v229, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v231 = 1;
do
{
GauntletNode::nameForType(v231, &v338);
std::operator+(&v337, "Complete the ", &v338);
v232 = std::string::append(&v337, " gauntlet");
v233 = (void *)v232->__r_.__value_.__r.__words[0];
size = v232->__r_.__value_.__l.__size_;
LODWORD(v341) = v232->__r_.__value_.__r.__words[2];
*(_DWORD *)((char *)&v341 + 3) = *(_DWORD *)((char *)&v232->__r_.__value_.__r.__words[2] + 3);
v235 = SHIBYTE(v232->__r_.__value_.__r.__words[2]);
v232->__r_.__value_.__l.__size_ = 0;
v232->__r_.__value_.__r.__words[2] = 0;
v232->__r_.__value_.__r.__words[0] = 0;
if ( SHIBYTE(v337.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v337.__r_.__value_.__l.__data_);
GameStatsManager::getGauntletRewardKey(v335, v232, v231);
if ( v235 < 0 )
{
sub_1000097D0(&__str, v233, size);
}
else
{
__str.__r_.__value_.__r.__words[0] = (std::string::size_type)v233;
__str.__r_.__value_.__l.__size_ = size;
LODWORD(__str.__r_.__value_.__r.__words[2]) = (_DWORD)v341;
*(_DWORD *)((char *)&__str.__r_.__value_.__r.__words[2] + 3) = *(_DWORD *)((char *)&v341 + 3);
*((_BYTE *)&__str.__r_.__value_.__s + 23) = v235;
}
v337.__r_.__value_.__r.__words[0] = (std::string::size_type)v335;
v236 = sub_100341EB8(&a1->m_specialRewardDescriptions, v335, &unk_10064538B, &v337, &v340);
std::string::operator=((std::string *)(v236 + 40), &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
if ( v336 < 0 )
{
operator delete(v335[0]);
if ( (v235 & 0x80000000) == 0 )
goto LABEL_133;
}
else if ( (v235 & 0x80000000) == 0 )
{
goto LABEL_133;
}
operator delete(v233);
LABEL_133:
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v231 = (unsigned int)(v231 + 1);
}
while ( (_DWORD)v231 != 61 );
v237 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 103)->m_unlockType = 1;
sub_10024A2D0((__int64)v237);
v238 = a1->m_allSpecialChests;
v239 = GJRewardItem::create_1();
v239->m_rewardType = Small;
sub_10015C71C((__int64)v239, v237);
sub_100009900(&v338, "0001");
cocos2d::CCDictionary::setObject_1(v238, v239, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v240 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 106)->m_unlockType = 1;
sub_10024A2D0((__int64)v240);
GJRewardObject::create(CustomItem, 1, 12)->m_unlockType = Death;
sub_10024A2D0((__int64)v240);
GJRewardObject::create(CustomItem, 1, 5)->m_unlockType = GJItem;
sub_10024A2D0((__int64)v240);
v241 = a1->m_allSpecialChests;
v242 = GJRewardItem::create_1();
v242->m_rewardType = Large;
sub_10015C71C((__int64)v242, v240);
sub_100009900(&v338, "0002");
cocos2d::CCDictionary::setObject_1(v241, v242, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v243 = a1->m_allSpecialChests;
v244 = GJRewardItem::createSpecial(Small, 0, 0, (SpecialRewardItem)0, 0, (SpecialRewardItem)0, 0, 12, 3);
sub_100009900(&v338, "0003");
cocos2d::CCDictionary::setObject_1(v243, v244, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v245 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 23)->m_unlockType = 5;
sub_10024A2D0((__int64)v245);
GJRewardObject::create(CustomItem, 1, 2)->m_unlockType = GJItem;
sub_10024A2D0((__int64)v245);
v246 = a1->m_allSpecialChests;
v247 = GJRewardItem::create_1();
v247->m_rewardType = Large;
sub_10015C71C((__int64)v247, v245);
sub_100009900(&v338, "0004");
cocos2d::CCDictionary::setObject_1(v246, v247, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v248 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 104)->m_unlockType = 1;
sub_10024A2D0((__int64)v248);
v249 = a1->m_allSpecialChests;
v250 = GJRewardItem::create_1();
v250->m_rewardType = Large;
sub_10015C71C((__int64)v250, v248);
sub_100009900(&v338, "0005");
cocos2d::CCDictionary::setObject_1(v249, v250, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v251 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 27)->m_unlockType = Bird;
sub_10024A2D0((__int64)v251);
v252 = a1->m_allSpecialChests;
v253 = GJRewardItem::create_1();
v253->m_rewardType = Large;
sub_10015C71C((__int64)v253, v251);
sub_100009900(&v338, "0006");
cocos2d::CCDictionary::setObject_1(v252, v253, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
sub_100009900(v332, "0007");
GameStatsManager::addSimpleSpecialChestReward(a1, v332, 1, 111, 0);
if ( v333 < 0 )
operator delete(v332[0]);
sub_100009900(v330, "0008");
GameStatsManager::addSimpleSpecialChestReward(a1, v330, 4, 50, 0);
if ( v331 < 0 )
operator delete(v330[0]);
sub_100009900(__p, "0009");
GameStatsManager::addSimpleSpecialChestReward(a1, __p, 5, 41, 0);
if ( v329 < 0 )
operator delete(__p[0]);
sub_100009900(v326, "0010");
GameStatsManager::addSimpleSpecialChestReward(a1, v326, 1, 149, 0);
if ( v327 < 0 )
operator delete(v326[0]);
sub_100009900(v324, "0011");
GameStatsManager::addSimpleSpecialChestReward(a1, v324, 1, 150, 0);
if ( v325 < 0 )
operator delete(v324[0]);
sub_100009900(v322, "0024");
GameStatsManager::addSimpleSpecialChestReward(a1, v322, 1, 483, 0);
if ( v323 < 0 )
operator delete(v322[0]);
sub_100009900(v320, "0012");
GameStatsManager::addSimpleSpecialChestReward(a1, v320, 1, 151, 0);
if ( v321 < 0 )
operator delete(v320[0]);
sub_100009900(v318, "0013");
GameStatsManager::addSimpleSpecialChestReward(a1, v318, 3, 52, 0);
if ( v319 < 0 )
operator delete(v318[0]);
sub_100009900(v316, "0014");
GameStatsManager::addSimpleSpecialChestReward(a1, v316, 4, 52, 0);
if ( v317 < 0 )
operator delete(v316[0]);
sub_100009900(v314, "0015");
GameStatsManager::addSimpleSpecialChestReward(a1, v314, 1, 152, 0);
if ( v315 < 0 )
operator delete(v314[0]);
sub_100009900(v312, "0016");
GameStatsManager::addSimpleSpecialChestReward(a1, v312, 2, 85, 0);
if ( v313 < 0 )
operator delete(v312[0]);
sub_100009900(v310, "0017");
GameStatsManager::addSimpleSpecialChestReward(a1, v310, 6, 36, 0);
if ( v311 < 0 )
operator delete(v310[0]);
sub_100009900(v308, "0018");
GameStatsManager::addSimpleSpecialChestReward(a1, v308, 5, 44, 0);
if ( v309 < 0 )
operator delete(v308[0]);
sub_100009900(v306, "0019");
GameStatsManager::addSimpleSpecialChestReward(a1, v306, 2, 92, 0);
if ( v307 < 0 )
operator delete(v306[0]);
sub_100009900(v304, "0020");
GameStatsManager::addSimpleSpecialChestReward(a1, v304, 1, 153, 0);
if ( v305 < 0 )
operator delete(v304[0]);
sub_100009900(v302, "0021");
GameStatsManager::addSimpleSpecialChestReward(a1, v302, 4, 53, 0);
if ( v303 < 0 )
operator delete(v302[0]);
sub_100009900(v300, "0022");
GameStatsManager::addSimpleSpecialChestReward(a1, v300, 1, 154, 0);
if ( v301 < 0 )
operator delete(v300[0]);
sub_100009900(v298, "0023");
GameStatsManager::addSimpleSpecialChestReward(a1, v298, 1, 160, 0);
if ( v299 < 0 )
operator delete(v298[0]);
v254 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 19)->m_unlockType = GJItem|0x1;
sub_10024A2D0((__int64)v254);
GJRewardObject::create(Diamonds, 300, 0);
sub_10024A2D0((__int64)v254);
GJRewardObject::create(FireShard, 10, 0);
sub_10024A2D0((__int64)v254);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v254);
v255 = a1->m_allSpecialChests;
v256 = GJRewardItem::create_1();
v256->m_rewardType = Key25Treasure;
sub_10015C71C((__int64)v256, v254);
GameStatsManager::getPathRewardKey(&v338);
cocos2d::CCDictionary::setObject_1(v255, v256, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v257 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 48)->m_unlockType = 8;
sub_10024A2D0((__int64)v257);
GJRewardObject::create(CustomItem, 1, 83)->m_unlockType = Col1;
sub_10024A2D0((__int64)v257);
GJRewardObject::create(IceShard, 10, 0);
sub_10024A2D0((__int64)v257);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v257);
v258 = a1->m_allSpecialChests;
v259 = GJRewardItem::create_1();
v259->m_rewardType = Key25Treasure;
sub_10015C71C((__int64)v259, v257);
GameStatsManager::getPathRewardKey(&v338);
cocos2d::CCDictionary::setObject_1(v258, v259, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v260 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 146)->m_unlockType = Bird;
sub_10024A2D0((__int64)v260);
GJRewardObject::create(Diamonds, 300, 0);
sub_10024A2D0((__int64)v260);
GJRewardObject::create(PoisonShard, 10, 0);
sub_10024A2D0((__int64)v260);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v260);
v261 = a1->m_allSpecialChests;
v262 = GJRewardItem::create_1();
v262->m_rewardType = Key25Treasure;
sub_10015C71C((__int64)v262, v260);
GameStatsManager::getPathRewardKey(&v338);
cocos2d::CCDictionary::setObject_1(v261, v262, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v263 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 40)->m_unlockType = 8;
sub_10024A2D0((__int64)v263);
GJRewardObject::create(CustomItem, 1, 104)->m_unlockType = Col1;
sub_10024A2D0((__int64)v263);
GJRewardObject::create(ShadowShard, 10, 0);
sub_10024A2D0((__int64)v263);
v264 = a1->m_allSpecialChests;
v265 = GJRewardItem::create_1();
v265->m_rewardType = Key25Treasure;
sub_10015C71C((__int64)v265, v263);
GameStatsManager::getPathRewardKey(&v338);
cocos2d::CCDictionary::setObject_1(v264, v265, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v266 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 94)->m_unlockType = 4;
sub_10024A2D0((__int64)v266);
GJRewardObject::create(Diamonds, 300, 0);
sub_10024A2D0((__int64)v266);
GJRewardObject::create(LavaShard, 10, 0);
sub_10024A2D0((__int64)v266);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v266);
v267 = a1->m_allSpecialChests;
v268 = GJRewardItem::create_1();
v268->m_rewardType = Key25Treasure;
sub_10015C71C((__int64)v268, v266);
GameStatsManager::getPathRewardKey(&v338);
cocos2d::CCDictionary::setObject_1(v267, v268, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v269 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 91)->m_unlockType = 4;
sub_10024A2D0((__int64)v269);
GJRewardObject::create(CustomItem, 1, 61)->m_unlockType = Col1;
sub_10024A2D0((__int64)v269);
GJRewardObject::create(EarthShard, 10, 0);
sub_10024A2D0((__int64)v269);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v269);
v270 = a1->m_allSpecialChests;
v271 = GJRewardItem::create_1();
v271->m_rewardType = Key25Treasure;
sub_10015C71C((__int64)v271, v269);
GameStatsManager::getPathRewardKey(&v338);
cocos2d::CCDictionary::setObject_1(v270, v271, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v272 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 98)->m_unlockType = 4;
sub_10024A2D0((__int64)v272);
GJRewardObject::create(Diamonds, 300, 0);
sub_10024A2D0((__int64)v272);
GJRewardObject::create(BloodShard, 10, 0);
sub_10024A2D0((__int64)v272);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v272);
v273 = a1->m_allSpecialChests;
v274 = GJRewardItem::create_1();
v274->m_rewardType = Key25Treasure;
sub_10015C71C((__int64)v274, v272);
GameStatsManager::getPathRewardKey(&v338);
cocos2d::CCDictionary::setObject_1(v273, v274, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v275 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 359)->m_unlockType = 1;
sub_10024A2D0((__int64)v275);
GJRewardObject::create(CustomItem, 1, 102)->m_unlockType = Col2;
sub_10024A2D0((__int64)v275);
GJRewardObject::create(MetalShard, 10, 0);
sub_10024A2D0((__int64)v275);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v275);
v276 = a1->m_allSpecialChests;
v277 = GJRewardItem::create_1();
v277->m_rewardType = Key25Treasure;
sub_10015C71C((__int64)v277, v275);
GameStatsManager::getPathRewardKey(&v338);
cocos2d::CCDictionary::setObject_1(v276, v277, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v278 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 66)->m_unlockType = 8;
sub_10024A2D0((__int64)v278);
GJRewardObject::create(Diamonds, 300, 0);
sub_10024A2D0((__int64)v278);
GJRewardObject::create(LightShard, 10, 0);
sub_10024A2D0((__int64)v278);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v278);
v279 = a1->m_allSpecialChests;
v280 = GJRewardItem::create_1();
v280->m_rewardType = Key25Treasure;
sub_10015C71C((__int64)v280, v278);
GameStatsManager::getPathRewardKey(&v338);
cocos2d::CCDictionary::setObject_1(v279, v280, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v281 = sub_10024A15C();
GJRewardObject::create(CustomItem, 1, 36)->m_unlockType = GJItem|0x1;
sub_10024A2D0((__int64)v281);
GJRewardObject::create(CustomItem, 1, 76)->m_unlockType = Col1;
sub_10024A2D0((__int64)v281);
GJRewardObject::create(SoulShard, 10, 0);
sub_10024A2D0((__int64)v281);
GJRewardObject::create(BonusKey, 1, 0);
sub_10024A2D0((__int64)v281);
v282 = a1->m_allSpecialChests;
v283 = GJRewardItem::create_1();
v283->m_rewardType = Key25Treasure;
sub_10015C71C((__int64)v283, v281);
GameStatsManager::getPathRewardKey(&v338);
cocos2d::CCDictionary::setObject_1(v282, v283, &v338);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v284 = 1;
do
{
GJPathsLayer::nameForPath(&v338, v284);
std::operator+(&v337, "Complete the Path of ", &v338);
GameStatsManager::getPathRewardKey(v296);
if ( SHIBYTE(v337.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&__dst, v337.__r_.__value_.__l.__data_, v337.__r_.__value_.__l.__size_);
else
__dst = v337;
v341 = v296;
v285 = sub_100341EB8(&a1->m_specialRewardDescriptions, v296, &unk_10064538B, &v341, &v340);
std::string::operator=((std::string *)(v285 + 40), &__dst);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( v297 < 0 )
operator delete(v296[0]);
if ( SHIBYTE(v337.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v337.__r_.__value_.__l.__data_);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
v284 = (unsigned int)(v284 + 1);
}
while ( (_DWORD)v284 != 11 );
*(_QWORD *)&v338 = 0x110000000DLL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x2800000009LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x440000000DLL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x2C00000007LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x3700000007LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x5300000007LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x5C00000007LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x3F00000006LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x7400000006LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x8A00000006LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x9300000006LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x3200000005LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x3F00000005LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x5A00000005LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x5B00000005LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x7200000005LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x7900000004LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x9200000004LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x9B00000004LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x9E00000004LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x2500000008LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0xD200000001LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0xE700000001LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x13500000001LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x15700000001LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x18600000001LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x19900000001LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x1B800000001LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x1BD00000001LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x1E500000001LL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x60000000ELL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
*(_QWORD *)&v338 = 0x80000000ELL;
sub_10001BC04((__int64 **)&a1->m_wraithIcons, (__int64)&v338, &v338);
v286 = cocos2d::CCDictionary::allKeys(a1->m_allSpecialChests);
if ( v286 )
{
data = v286->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (cocos2d::CCString **)data->arr;
v290 = (unsigned __int64)&arr[num - 1];
while ( (unsigned __int64)arr <= v290 && *arr )
{
CString = (char *)cocos2d::CCString::getCString(*arr);
sub_100009900(&v338, CString);
v292 = cocos2d::CCDictionary::objectForKey_1(a1->m_allSpecialChests, &v338);
if ( SHIBYTE(v339) < 0 )
{
sub_1000097D0(v293, (void *)v338, *((unsigned __int64 *)&v338 + 1));
}
else
{
*(_OWORD *)v293 = v338;
v294 = v339;
}
GameStatsManager::linkSpecialChestUnlocks(a1, v292, v293);
if ( SHIBYTE(v294) < 0 )
operator delete(v293[0]);
if ( SHIBYTE(v339) < 0 )
operator delete((void *)v338);
++arr;
}
}
}
}