//
// GameStatsManager::createSpecialChestItems from 0x7bf38c to 0x7c585c (25808 bytes)
//
// 2 xrefs:
// > GameStatsManager::init @ 0x7c58dc
// > ??> @ 0x374b8
//
// 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 GameStatsManager::createSpecialChestItems(GameStatsManager *a1)
{
cocos2d::CCDictionary *v2; // x0
cocos2d::CCDictionary *v3; // x0
cocos2d::CCDictionary *v4; // x0
cocos2d::CCDictionary *m_allSpecialChests; // x22
GJRewardItem *Special; // x20
void *v7; // x0
cocos2d::CCDictionary *v8; // x23
GJRewardItem *v9; // x22
void *v10; // x0
cocos2d::CCDictionary *v11; // x23
GJRewardItem *v12; // x22
void *v13; // x0
cocos2d::CCDictionary *v14; // x23
GJRewardItem *v15; // x22
void *v16; // x0
cocos2d::CCDictionary *v17; // x23
GJRewardItem *v18; // x22
void *v19; // x0
cocos2d::CCDictionary *v20; // x23
GJRewardItem *v21; // x22
cocos2d::CCArray *v22; // x0
cocos2d::CCArray *v23; // x22
GJRewardObject *ItemUnlock; // x0
GJRewardObject *v25; // x0
GJRewardObject *v26; // x0
cocos2d::CCDictionary *v27; // x23
GJRewardItem *v28; // x22
void *v29; // x0
cocos2d::CCDictionary *v30; // x23
GJRewardItem *v31; // x22
cocos2d::CCArray *v32; // x0
cocos2d::CCArray *v33; // x22
GJRewardObject *v34; // x0
GJRewardObject *v35; // x0
GJRewardObject *v36; // x0
cocos2d::CCDictionary *v37; // x23
GJRewardItem *v38; // x22
cocos2d::CCArray *v39; // x0
cocos2d::CCArray *v40; // x22
GJRewardObject *v41; // x0
GJRewardObject *v42; // x0
GJRewardObject *v43; // x0
cocos2d::CCDictionary *v44; // x23
GJRewardItem *v45; // x22
cocos2d::CCArray *v46; // x0
cocos2d::CCArray *v47; // x22
GJRewardObject *v48; // x0
GJRewardObject *v49; // x0
GJRewardObject *v50; // x0
cocos2d::CCDictionary *v51; // x23
GJRewardItem *v52; // x22
cocos2d::CCArray *v53; // x0
cocos2d::CCArray *v54; // x22
GJRewardObject *v55; // x0
GJRewardObject *v56; // x0
GJRewardObject *v57; // x0
cocos2d::CCDictionary *v58; // x23
GJRewardItem *v59; // x22
cocos2d::CCArray *v60; // x0
cocos2d::CCArray *v61; // x22
GJRewardObject *v62; // x0
GJRewardObject *v63; // x0
GJRewardObject *v64; // x0
cocos2d::CCDictionary *v65; // x23
GJRewardItem *v66; // x22
cocos2d::CCArray *v67; // x0
cocos2d::CCArray *v68; // x22
GJRewardObject *v69; // x0
GJRewardObject *v70; // x0
GJRewardObject *v71; // x0
cocos2d::CCDictionary *v72; // x23
GJRewardItem *v73; // x22
cocos2d::CCArray *v74; // x0
cocos2d::CCArray *v75; // x22
GJRewardObject *v76; // x0
GJRewardObject *v77; // x0
GJRewardObject *v78; // x0
cocos2d::CCDictionary *v79; // x23
GJRewardItem *v80; // x22
cocos2d::CCArray *v81; // x0
cocos2d::CCArray *v82; // x22
GJRewardObject *v83; // x0
GJRewardObject *v84; // x0
GJRewardObject *v85; // x0
cocos2d::CCDictionary *v86; // x23
GJRewardItem *v87; // x22
cocos2d::CCArray *v88; // x0
cocos2d::CCArray *v89; // x22
GJRewardObject *v90; // x0
GJRewardObject *v91; // x0
GJRewardObject *v92; // x0
cocos2d::CCDictionary *v93; // x23
GJRewardItem *v94; // x22
cocos2d::CCArray *v95; // x0
cocos2d::CCArray *v96; // x22
GJRewardObject *v97; // x0
GJRewardObject *v98; // x0
GJRewardObject *v99; // x0
GJRewardObject *v100; // x0
cocos2d::CCDictionary *v101; // x23
GJRewardItem *v102; // x22
cocos2d::CCArray *v103; // x0
cocos2d::CCArray *v104; // x22
GJRewardObject *v105; // x0
GJRewardObject *v106; // x0
GJRewardObject *v107; // x0
GJRewardObject *v108; // x0
cocos2d::CCDictionary *v109; // x23
GJRewardItem *v110; // x22
cocos2d::CCArray *v111; // x0
cocos2d::CCArray *v112; // x22
GJRewardObject *v113; // x0
GJRewardObject *v114; // x0
GJRewardObject *v115; // x0
cocos2d::CCDictionary *v116; // x23
GJRewardItem *v117; // x22
cocos2d::CCArray *v118; // x0
cocos2d::CCArray *v119; // x22
GJRewardObject *v120; // x0
GJRewardObject *v121; // x0
GJRewardObject *v122; // x0
cocos2d::CCDictionary *v123; // x23
GJRewardItem *v124; // x22
cocos2d::CCArray *v125; // x0
cocos2d::CCArray *v126; // x22
GJRewardObject *v127; // x0
GJRewardObject *v128; // x0
GJRewardObject *v129; // x0
cocos2d::CCDictionary *v130; // x23
GJRewardItem *v131; // x22
cocos2d::CCArray *v132; // x0
cocos2d::CCArray *v133; // x22
GJRewardObject *v134; // x0
GJRewardObject *v135; // x0
GJRewardObject *v136; // x0
cocos2d::CCDictionary *v137; // x23
GJRewardItem *v138; // x22
cocos2d::CCArray *v139; // x0
cocos2d::CCArray *v140; // x22
GJRewardObject *v141; // x0
GJRewardObject *v142; // x0
GJRewardObject *v143; // x0
cocos2d::CCDictionary *v144; // x23
GJRewardItem *v145; // x22
cocos2d::CCArray *v146; // x0
cocos2d::CCArray *v147; // x22
GJRewardObject *v148; // x0
GJRewardObject *v149; // x0
GJRewardObject *v150; // x0
cocos2d::CCDictionary *v151; // x23
GJRewardItem *v152; // x22
cocos2d::CCArray *v153; // x0
cocos2d::CCArray *v154; // x22
GJRewardObject *v155; // x0
GJRewardObject *v156; // x0
GJRewardObject *v157; // x0
cocos2d::CCDictionary *v158; // x23
GJRewardItem *v159; // x22
cocos2d::CCArray *v160; // x0
cocos2d::CCArray *v161; // x22
GJRewardObject *v162; // x0
GJRewardObject *v163; // x0
GJRewardObject *v164; // x0
cocos2d::CCDictionary *v165; // x23
GJRewardItem *v166; // x22
cocos2d::CCArray *v167; // x0
cocos2d::CCArray *v168; // x22
GJRewardObject *v169; // x0
GJRewardObject *v170; // x0
GJRewardObject *v171; // x0
cocos2d::CCDictionary *v172; // x23
GJRewardItem *v173; // x22
cocos2d::CCArray *v174; // x0
cocos2d::CCArray *v175; // x22
GJRewardObject *v176; // x0
GJRewardObject *v177; // x0
GJRewardObject *v178; // x0
cocos2d::CCDictionary *v179; // x23
GJRewardItem *v180; // x22
cocos2d::CCArray *v181; // x0
cocos2d::CCArray *v182; // x22
GJRewardObject *v183; // x0
GJRewardObject *v184; // x0
GJRewardObject *v185; // x0
cocos2d::CCDictionary *v186; // x23
GJRewardItem *v187; // x22
cocos2d::CCArray *v188; // x0
cocos2d::CCArray *v189; // x22
GJRewardObject *v190; // x0
GJRewardObject *v191; // x0
cocos2d::CCDictionary *v192; // x23
GJRewardItem *v193; // x22
cocos2d::CCArray *v194; // x0
cocos2d::CCArray *v195; // x22
GJRewardObject *v196; // x0
GJRewardObject *v197; // x0
GJRewardObject *v198; // x0
cocos2d::CCDictionary *v199; // x23
GJRewardItem *v200; // x22
cocos2d::CCArray *v201; // x0
cocos2d::CCArray *v202; // x22
GJRewardObject *v203; // x0
GJRewardObject *v204; // x0
GJRewardObject *v205; // x0
cocos2d::CCDictionary *v206; // x23
GJRewardItem *v207; // x22
cocos2d::CCArray *v208; // x0
cocos2d::CCArray *v209; // x22
GJRewardObject *v210; // x0
GJRewardObject *v211; // x0
GJRewardObject *v212; // x0
cocos2d::CCDictionary *v213; // x23
GJRewardItem *v214; // x22
cocos2d::CCArray *v215; // x0
cocos2d::CCArray *v216; // x22
GJRewardObject *v217; // x0
GJRewardObject *v218; // x0
GJRewardObject *v219; // x0
cocos2d::CCDictionary *v220; // x23
GJRewardItem *v221; // x22
cocos2d::CCArray *v222; // x0
cocos2d::CCArray *v223; // x22
GJRewardObject *v224; // x0
GJRewardObject *v225; // x0
GJRewardObject *v226; // x0
cocos2d::CCDictionary *v227; // x23
GJRewardItem *v228; // x22
cocos2d::CCArray *v229; // x0
cocos2d::CCArray *v230; // x22
GJRewardObject *v231; // x0
GJRewardObject *v232; // x0
GJRewardObject *v233; // x0
cocos2d::CCDictionary *v234; // x23
GJRewardItem *v235; // x22
cocos2d::CCArray *v236; // x0
cocos2d::CCArray *v237; // x22
GJRewardObject *v238; // x0
GJRewardObject *v239; // x0
GJRewardObject *v240; // x0
cocos2d::CCDictionary *v241; // x23
GJRewardItem *v242; // x22
cocos2d::CCArray *v243; // x0
cocos2d::CCArray *v244; // x22
GJRewardObject *v245; // x0
GJRewardObject *v246; // x0
GJRewardObject *v247; // x0
cocos2d::CCDictionary *v248; // x23
GJRewardItem *v249; // x22
cocos2d::CCArray *v250; // x0
cocos2d::CCArray *v251; // x22
GJRewardObject *v252; // x0
GJRewardObject *v253; // x0
GJRewardObject *v254; // x0
cocos2d::CCDictionary *v255; // x23
GJRewardItem *v256; // x22
cocos2d::CCArray *v257; // x0
cocos2d::CCArray *v258; // x22
GJRewardObject *v259; // x0
GJRewardObject *v260; // x0
GJRewardObject *v261; // x0
cocos2d::CCDictionary *v262; // x23
GJRewardItem *v263; // x22
cocos2d::CCArray *v264; // x0
cocos2d::CCArray *v265; // x22
GJRewardObject *v266; // x0
GJRewardObject *v267; // x0
GJRewardObject *v268; // x0
cocos2d::CCDictionary *v269; // x23
GJRewardItem *v270; // x22
cocos2d::CCArray *v271; // x0
cocos2d::CCArray *v272; // x22
GJRewardObject *v273; // x0
GJRewardObject *v274; // x0
GJRewardObject *v275; // x0
cocos2d::CCDictionary *v276; // x23
GJRewardItem *v277; // x22
cocos2d::CCArray *v278; // x0
cocos2d::CCArray *v279; // x22
GJRewardObject *v280; // x0
GJRewardObject *v281; // x0
GJRewardObject *v282; // x0
cocos2d::CCDictionary *v283; // x23
GJRewardItem *v284; // x22
cocos2d::CCArray *v285; // x0
cocos2d::CCArray *v286; // x22
GJRewardObject *v287; // x0
GJRewardObject *v288; // x0
GJRewardObject *v289; // x0
cocos2d::CCDictionary *v290; // x23
GJRewardItem *v291; // x22
cocos2d::CCArray *v292; // x0
cocos2d::CCArray *v293; // x22
GJRewardObject *v294; // x0
GJRewardObject *v295; // x0
GJRewardObject *v296; // x0
GJRewardObject *v297; // x0
cocos2d::CCDictionary *v298; // x23
GJRewardItem *v299; // x22
cocos2d::CCArray *v300; // x0
cocos2d::CCArray *v301; // x22
GJRewardObject *v302; // x0
GJRewardObject *v303; // x0
GJRewardObject *v304; // x0
GJRewardObject *v305; // x0
cocos2d::CCDictionary *v306; // x23
GJRewardItem *v307; // x22
cocos2d::CCArray *v308; // x0
cocos2d::CCArray *v309; // x22
GJRewardObject *v310; // x0
GJRewardObject *v311; // x0
GJRewardObject *v312; // x0
cocos2d::CCDictionary *v313; // x23
GJRewardItem *v314; // x22
cocos2d::CCArray *v315; // x0
cocos2d::CCArray *v316; // x22
GJRewardObject *v317; // x0
GJRewardObject *v318; // x0
GJRewardObject *v319; // x0
GJRewardObject *v320; // x0
cocos2d::CCDictionary *v321; // x23
GJRewardItem *v322; // x22
cocos2d::CCArray *v323; // x0
cocos2d::CCArray *v324; // x22
GJRewardObject *v325; // x0
GJRewardObject *v326; // x0
GJRewardObject *v327; // x0
GJRewardObject *v328; // x0
cocos2d::CCDictionary *v329; // x23
GJRewardItem *v330; // x22
cocos2d::CCArray *v331; // x0
cocos2d::CCArray *v332; // x22
GJRewardObject *v333; // x0
GJRewardObject *v334; // x0
GJRewardObject *v335; // x0
GJRewardObject *v336; // x0
cocos2d::CCDictionary *v337; // x23
GJRewardItem *v338; // x22
cocos2d::CCArray *v339; // x0
cocos2d::CCArray *v340; // x22
GJRewardObject *v341; // x0
GJRewardObject *v342; // x0
GJRewardObject *v343; // x0
GJRewardObject *v344; // x0
cocos2d::CCDictionary *v345; // x23
GJRewardItem *v346; // x22
cocos2d::CCArray *v347; // x0
cocos2d::CCArray *v348; // x22
GJRewardObject *v349; // x0
GJRewardObject *v350; // x0
GJRewardObject *v351; // x0
GJRewardObject *v352; // x0
cocos2d::CCDictionary *v353; // x23
GJRewardItem *v354; // x22
cocos2d::CCArray *v355; // x0
cocos2d::CCArray *v356; // x22
GJRewardObject *v357; // x0
GJRewardObject *v358; // x0
GJRewardObject *v359; // x0
GJRewardObject *v360; // x0
cocos2d::CCDictionary *v361; // x23
GJRewardItem *v362; // x22
cocos2d::CCArray *v363; // x0
cocos2d::CCArray *v364; // x22
GJRewardObject *v365; // x0
GJRewardObject *v366; // x0
GJRewardObject *v367; // x0
cocos2d::CCDictionary *v368; // x23
GJRewardItem *v369; // x22
cocos2d::CCArray *v370; // x0
cocos2d::CCArray *v371; // x22
GJRewardObject *v372; // x0
GJRewardObject *v373; // x0
GJRewardObject *v374; // x0
cocos2d::CCDictionary *v375; // x23
GJRewardItem *v376; // x22
cocos2d::CCArray *v377; // x0
cocos2d::CCArray *v378; // x22
GJRewardObject *v379; // x0
GJRewardObject *v380; // x0
GJRewardObject *v381; // x0
GJRewardObject *v382; // x0
cocos2d::CCDictionary *v383; // x23
GJRewardItem *v384; // x22
cocos2d::CCArray *v385; // x0
cocos2d::CCArray *v386; // x22
GJRewardObject *v387; // x0
GJRewardObject *v388; // x0
GJRewardObject *v389; // x0
GJRewardObject *v390; // x0
cocos2d::CCDictionary *v391; // x23
GJRewardItem *v392; // x22
cocos2d::CCArray *v393; // x0
cocos2d::CCArray *v394; // x22
GJRewardObject *v395; // x0
GJRewardObject *v396; // x0
GJRewardObject *v397; // x0
GJRewardObject *v398; // x0
cocos2d::CCDictionary *v399; // x23
GJRewardItem *v400; // x22
cocos2d::CCArray *v401; // x0
cocos2d::CCArray *v402; // x22
GJRewardObject *v403; // x0
GJRewardObject *v404; // x0
GJRewardObject *v405; // x0
GJRewardObject *v406; // x0
cocos2d::CCDictionary *v407; // x23
GJRewardItem *v408; // x22
unsigned int *v409; // x1
void *v410; // x0
unsigned int i; // w23
void *v412; // x0
char *v413; // x0
__int64 v414; // x1
void *v415; // x0
cocos2d::CCArray *v416; // x0
__int64 *v417; // x0
void *v418; // x0
unsigned int *v419; // x2
int v420; // w1
int v421; // w2
cocos2d::CCArray *v422; // x23
GJRewardObject *v423; // x0
cocos2d::CCDictionary *v424; // x27
GJRewardItem *v425; // x23
cocos2d::CCArray *v426; // x0
cocos2d::CCArray *v427; // x23
GJRewardObject *v428; // x0
GJRewardObject *v429; // x0
GJRewardObject *v430; // x0
cocos2d::CCDictionary *v431; // x27
GJRewardItem *v432; // x23
void *v433; // x0
cocos2d::CCDictionary *v434; // x27
GJRewardItem *v435; // x23
cocos2d::CCArray *v436; // x0
cocos2d::CCArray *v437; // x23
GJRewardObject *v438; // x0
GJRewardObject *v439; // x0
cocos2d::CCDictionary *v440; // x27
GJRewardItem *v441; // x23
cocos2d::CCArray *v442; // x0
cocos2d::CCArray *v443; // x23
GJRewardObject *v444; // x0
cocos2d::CCDictionary *v445; // x27
GJRewardItem *v446; // x23
cocos2d::CCArray *v447; // x0
cocos2d::CCArray *v448; // x23
GJRewardObject *v449; // x0
cocos2d::CCDictionary *v450; // x27
GJRewardItem *v451; // x23
void *v452; // x0
void *v453; // x0
void *v454; // x0
void *v455; // x0
void *v456; // x0
void *v457; // x0
void *v458; // x0
void *v459; // x0
void *v460; // x0
void *v461; // x0
void *v462; // x0
void *v463; // x0
void *v464; // x0
void *v465; // x0
void *v466; // x0
void *v467; // x0
void *v468; // x0
void *v469; // x0
cocos2d::CCArray *v470; // x0
cocos2d::CCArray *v471; // x23
GJRewardObject *v472; // x0
GJRewardObject *v473; // x0
GJRewardObject *v474; // x0
GJRewardObject *v475; // x0
cocos2d::CCDictionary *v476; // x27
GJRewardItem *v477; // x23
cocos2d::CCArray *v478; // x0
cocos2d::CCArray *v479; // x23
GJRewardObject *v480; // x0
GJRewardObject *v481; // x0
GJRewardObject *v482; // x0
GJRewardObject *v483; // x0
cocos2d::CCDictionary *v484; // x27
GJRewardItem *v485; // x23
cocos2d::CCArray *v486; // x0
cocos2d::CCArray *v487; // x23
GJRewardObject *v488; // x0
GJRewardObject *v489; // x0
GJRewardObject *v490; // x0
GJRewardObject *v491; // x0
cocos2d::CCDictionary *v492; // x27
GJRewardItem *v493; // x23
cocos2d::CCArray *v494; // x0
cocos2d::CCArray *v495; // x23
GJRewardObject *v496; // x0
GJRewardObject *v497; // x0
GJRewardObject *v498; // x0
cocos2d::CCDictionary *v499; // x27
GJRewardItem *v500; // x23
cocos2d::CCArray *v501; // x0
cocos2d::CCArray *v502; // x23
GJRewardObject *v503; // x0
GJRewardObject *v504; // x0
GJRewardObject *v505; // x0
GJRewardObject *v506; // x0
cocos2d::CCDictionary *v507; // x27
GJRewardItem *v508; // x23
cocos2d::CCArray *v509; // x0
cocos2d::CCArray *v510; // x23
GJRewardObject *v511; // x0
GJRewardObject *v512; // x0
GJRewardObject *v513; // x0
GJRewardObject *v514; // x0
cocos2d::CCDictionary *v515; // x27
GJRewardItem *v516; // x23
cocos2d::CCArray *v517; // x0
cocos2d::CCArray *v518; // x23
GJRewardObject *v519; // x0
GJRewardObject *v520; // x0
GJRewardObject *v521; // x0
GJRewardObject *v522; // x0
cocos2d::CCDictionary *v523; // x27
GJRewardItem *v524; // x23
cocos2d::CCArray *v525; // x0
cocos2d::CCArray *v526; // x23
GJRewardObject *v527; // x0
GJRewardObject *v528; // x0
GJRewardObject *v529; // x0
GJRewardObject *v530; // x0
cocos2d::CCDictionary *v531; // x27
GJRewardItem *v532; // x23
cocos2d::CCArray *v533; // x0
cocos2d::CCArray *v534; // x23
GJRewardObject *v535; // x0
GJRewardObject *v536; // x0
GJRewardObject *v537; // x0
GJRewardObject *v538; // x0
cocos2d::CCDictionary *v539; // x27
GJRewardItem *v540; // x23
cocos2d::CCArray *v541; // x0
cocos2d::CCArray *v542; // x23
GJRewardObject *v543; // x0
GJRewardObject *v544; // x0
GJRewardObject *v545; // x0
GJRewardObject *v546; // x0
cocos2d::CCDictionary *v547; // x27
GJRewardItem *v548; // x23
unsigned int *v549; // x1
void *v550; // x0
char *v551; // x23
char *v552; // x0
void *v553; // x0
void *v554; // x0
void *v555; // x0
unsigned int *v556; // x1
int v557; // w2
unsigned int *v558; // x1
int v559; // w2
unsigned int *v560; // x1
int v561; // w2
unsigned int *v562; // x1
int v563; // w2
cocos2d::CCArray *v564; // x0
cocos2d::ccArray *data; // x1
cocos2d::CCString **arr; // x23
__int64 v567; // x0
char *v568; // x25
cocos2d::CCString *j; // x0
char *CString; // x0
__int64 v571; // x27
void *v572; // x0
char *v573; // x0
int v574; // w2
unsigned int *v575; // x1
int v576; // w2
unsigned int *v577; // x1
int v578; // w2
unsigned int *v579; // x1
int v580; // w2
unsigned int *v581; // x1
int v582; // w2
unsigned int *v583; // x1
int v584; // w2
unsigned int *v585; // x1
int v586; // w2
unsigned int *v587; // x1
int v588; // w2
unsigned int *v589; // x1
int v590; // w2
unsigned int *v591; // x1
int v592; // w2
unsigned int *v593; // x1
int v594; // w2
unsigned int *v595; // x1
int v596; // w2
unsigned int *v597; // x1
int v598; // w2
unsigned int *v599; // x1
int v600; // w2
unsigned int *v601; // x1
int v602; // w2
unsigned int *v603; // x1
int v604; // w2
unsigned int *v605; // x1
int v606; // w2
unsigned int *v607; // x1
int v608; // w2
unsigned int *v609; // x1
int v610; // w2
unsigned int *v611; // x1
int v612; // w2
unsigned int *v613; // x1
int v614; // w2
unsigned int *v615; // x1
int v616; // w2
unsigned int *v617; // x1
int v618; // w2
unsigned int *v619; // x1
int v620; // w2
unsigned int *v621; // x1
int v622; // w2
unsigned int *v623; // x1
int v624; // w2
unsigned int *v625; // x1
int v626; // w2
unsigned int *v627; // x1
int v628; // w2
unsigned int *v629; // x1
int v630; // w2
unsigned int *v631; // x1
int v632; // w2
unsigned int *v633; // x1
int v634; // w2
unsigned int *v635; // x1
int v636; // w2
unsigned int *v637; // x1
int v638; // w2
unsigned int *v639; // x1
int v640; // w2
unsigned int *v641; // x1
int v642; // w2
unsigned int *v643; // x1
int v644; // w2
unsigned int *v645; // x1
int v646; // w2
unsigned int *v647; // x1
int v648; // w2
unsigned int *v649; // x1
int v650; // w2
int v651; // w2
int v652; // w2
unsigned int *v653; // x1
int v654; // w2
unsigned int *v655; // x1
int v656; // w2
unsigned int *v657; // x1
int v658; // w2
unsigned int *v659; // x1
int v660; // w2
unsigned int *v661; // x1
int v662; // w2
unsigned int *v663; // x1
int v664; // w2
unsigned int *v665; // x1
int v666; // w2
unsigned int *v667; // x1
int v668; // w2
unsigned int *v669; // x1
int v670; // w2
unsigned int *v671; // x1
int v672; // w2
unsigned int *v673; // x1
int v674; // w2
unsigned int *v675; // x1
int v676; // w2
unsigned int *v677; // x1
int v678; // w2
unsigned int *v679; // x1
int v680; // w2
unsigned int *v681; // x1
int v682; // w2
unsigned int *v683; // x1
int v684; // w2
unsigned int *v685; // x1
int v686; // w2
unsigned int *v687; // x1
int v688; // w2
unsigned int *v689; // x1
int v690; // w2
unsigned int *v691; // x1
int v692; // w2
unsigned int *v693; // x1
int v694; // w2
unsigned int *v695; // x1
int v696; // w2
unsigned int *v697; // x1
int v698; // w2
unsigned int *v699; // x1
int v700; // w2
unsigned int *v701; // x1
int v702; // w2
unsigned int *v703; // x1
int v704; // w2
unsigned int *v705; // x1
int v706; // w2
unsigned int *v707; // x1
int v708; // w2
unsigned int *v709; // x1
int v710; // w2
unsigned int *v711; // x1
int v712; // w2
unsigned int *v713; // x1
int v714; // w2
unsigned int *v715; // x1
int v716; // w2
unsigned int *v717; // x1
int v718; // w2
unsigned int *v719; // x1
int v720; // w2
unsigned int *v721; // x1
int v722; // w2
unsigned int *v723; // x1
int v724; // w2
unsigned int *v725; // x1
int v726; // w2
unsigned int *v727; // x1
int v728; // w2
unsigned int *v729; // x1
int v730; // w2
unsigned int *v731; // x1
int v732; // w2
unsigned int *v733; // x1
int v734; // w2
unsigned int *v735; // x1
int v736; // w2
unsigned int *v737; // x1
int v738; // w2
unsigned int *v739; // x1
int v740; // w2
unsigned int *v741; // x1
int v742; // w2
unsigned int *v743; // x1
int v744; // w2
unsigned int *v745; // x1
int v746; // w2
unsigned int *v747; // x1
int v748; // w2
unsigned int *v749; // x1
int v750; // w2
unsigned int *v751; // x1
int v752; // w2
unsigned int *v753; // x1
int v754; // w2
unsigned int *v755; // x1
int v756; // w2
unsigned int *v757; // x1
int v758; // w2
unsigned int *v759; // x1
int v760; // w2
unsigned int *v761; // x1
int v762; // w2
unsigned int *v763; // x1
int v764; // w2
unsigned int *v765; // x1
int v766; // w2
unsigned int *v767; // x1
int v768; // w2
_QWORD v769[2]; // [xsp+10h] [xbp+0h] BYREF
__int64 v770; // [xsp+70h] [xbp+60h] BYREF
__int64 v771; // [xsp+78h] [xbp+68h] BYREF
__int64 v772; // [xsp+80h] [xbp+70h] BYREF
std::string v773; // [xsp+88h] [xbp+78h] BYREF
__int64 v774; // [xsp+90h] [xbp+80h] 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(a1, 1u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)m_allSpecialChests, Special);
v7 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v589 = (unsigned int *)(v774 - 8);
do
v590 = __ldaxr(v589);
while ( __stlxr(v590 - 1, v589) );
}
else
{
v590 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v590 - 1;
}
if ( v590 <= 0 )
operator delete(v7);
}
v8 = a1->m_allSpecialChests;
v9 = GJRewardItem::createSpecial(Small, 0, 10, IceShard, 3, (SpecialRewardItem)0, 0, 3, 35);
GameStatsManager::getGauntletRewardKey(a1, 2u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v8, v9);
v10 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v587 = (unsigned int *)(v774 - 8);
do
v588 = __ldaxr(v587);
while ( __stlxr(v588 - 1, v587) );
}
else
{
v588 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v588 - 1;
}
if ( v588 <= 0 )
operator delete(v10);
}
v11 = a1->m_allSpecialChests;
v12 = GJRewardItem::createSpecial(Small, 0, 10, PoisonShard, 3, (SpecialRewardItem)0, 0, 3, 34);
GameStatsManager::getGauntletRewardKey(a1, 3u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v11, v12);
v13 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v585 = (unsigned int *)(v774 - 8);
do
v586 = __ldaxr(v585);
while ( __stlxr(v586 - 1, v585) );
}
else
{
v586 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v586 - 1;
}
if ( v586 <= 0 )
operator delete(v13);
}
v14 = a1->m_allSpecialChests;
v15 = GJRewardItem::createSpecial(Small, 0, 10, ShadowShard, 3, (SpecialRewardItem)0, 0, 3, 36);
GameStatsManager::getGauntletRewardKey(a1, 4u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v14, v15);
v16 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v583 = (unsigned int *)(v774 - 8);
do
v584 = __ldaxr(v583);
while ( __stlxr(v584 - 1, v583) );
}
else
{
v584 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v584 - 1;
}
if ( v584 <= 0 )
operator delete(v16);
}
v17 = a1->m_allSpecialChests;
v18 = GJRewardItem::createSpecial(Small, 0, 10, LavaShard, 3, (SpecialRewardItem)0, 0, 3, 29);
GameStatsManager::getGauntletRewardKey(a1, 5u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v17, v18);
v19 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v737 = (unsigned int *)(v774 - 8);
do
v738 = __ldaxr(v737);
while ( __stlxr(v738 - 1, v737) );
}
else
{
v738 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v738 - 1;
}
if ( v738 <= 0 )
operator delete(v19);
}
v20 = a1->m_allSpecialChests;
v21 = GJRewardItem::createSpecial(Small, 500, 10, (SpecialRewardItem)0, 0, (SpecialRewardItem)0, 0, 3, 37);
GameStatsManager::getGauntletRewardKey(a1, 6u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v20, v21);
v22 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v705 = (unsigned int *)(v774 - 8);
do
v706 = __ldaxr(v705);
while ( __stlxr(v706 - 1, v705) );
}
else
{
v706 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v706 - 1;
}
if ( v706 <= 0 )
operator delete(v22);
}
v23 = (cocos2d::CCArray *)cocos2d::CCArray::create(v22);
ItemUnlock = GJRewardObject::createItemUnlock((UnlockType)8, 16);
cocos2d::CCArray::addObject(v23, ItemUnlock);
v25 = GJRewardObject::createItemUnlock(GJItem, 1);
cocos2d::CCArray::addObject(v23, v25);
v26 = GJRewardObject::create(Diamonds, 10, 0);
cocos2d::CCArray::addObject(v23, v26);
v27 = a1->m_allSpecialChests;
v28 = GJRewardItem::createWithObjects(Large, v23);
GameStatsManager::getGauntletRewardKey(a1, 7u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v27, v28);
v29 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v721 = (unsigned int *)(v774 - 8);
do
v722 = __ldaxr(v721);
while ( __stlxr(v722 - 1, v721) );
}
else
{
v722 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v722 - 1;
}
if ( v722 <= 0 )
operator delete(v29);
}
v30 = a1->m_allSpecialChests;
v31 = GJRewardItem::createSpecial(Large, 0, 10, (SpecialRewardItem)0, 0, (SpecialRewardItem)0, 0, 9, 10);
GameStatsManager::getGauntletRewardKey(a1, 8u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v30, v31);
v32 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v673 = (unsigned int *)(v774 - 8);
do
v674 = __ldaxr(v673);
while ( __stlxr(v674 - 1, v673) );
}
else
{
v674 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v674 - 1;
}
if ( v674 <= 0 )
operator delete(v32);
}
v33 = (cocos2d::CCArray *)cocos2d::CCArray::create(v32);
v34 = GJRewardObject::createItemUnlock((UnlockType)1, 138);
cocos2d::CCArray::addObject(v33, v34);
v35 = GJRewardObject::create(Diamonds, 50, 0);
cocos2d::CCArray::addObject(v33, v35);
v36 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v33, v36);
v37 = a1->m_allSpecialChests;
v38 = GJRewardItem::createWithObjects(Large, v33);
GameStatsManager::getGauntletRewardKey(a1, 9u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v37, v38);
v39 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v729 = (unsigned int *)(v774 - 8);
do
v730 = __ldaxr(v729);
while ( __stlxr(v730 - 1, v729) );
}
else
{
v730 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v730 - 1;
}
if ( v730 <= 0 )
operator delete(v39);
}
v40 = (cocos2d::CCArray *)cocos2d::CCArray::create(v39);
v41 = GJRewardObject::createItemUnlock((UnlockType)1, 139);
cocos2d::CCArray::addObject(v40, v41);
v42 = GJRewardObject::create(Diamonds, 50, 0);
cocos2d::CCArray::addObject(v40, v42);
v43 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v40, v43);
v44 = a1->m_allSpecialChests;
v45 = GJRewardItem::createWithObjects(Large, v40);
GameStatsManager::getGauntletRewardKey(a1, 0xAu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v44, v45);
v46 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v689 = (unsigned int *)(v774 - 8);
do
v690 = __ldaxr(v689);
while ( __stlxr(v690 - 1, v689) );
}
else
{
v690 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v690 - 1;
}
if ( v690 <= 0 )
operator delete(v46);
}
v47 = (cocos2d::CCArray *)cocos2d::CCArray::create(v46);
v48 = GJRewardObject::createItemUnlock((UnlockType)5, 43);
cocos2d::CCArray::addObject(v47, v48);
v49 = GJRewardObject::create(Diamonds, 50, 0);
cocos2d::CCArray::addObject(v47, v49);
v50 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v47, v50);
v51 = a1->m_allSpecialChests;
v52 = GJRewardItem::createWithObjects(Large, v47);
GameStatsManager::getGauntletRewardKey(a1, 0xBu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v51, v52);
v53 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v713 = (unsigned int *)(v774 - 8);
do
v714 = __ldaxr(v713);
while ( __stlxr(v714 - 1, v713) );
}
else
{
v714 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v714 - 1;
}
if ( v714 <= 0 )
operator delete(v53);
}
v54 = (cocos2d::CCArray *)cocos2d::CCArray::create(v53);
v55 = GJRewardObject::createItemUnlock((UnlockType)1, 141);
cocos2d::CCArray::addObject(v54, v55);
v56 = GJRewardObject::create(Diamonds, 50, 0);
cocos2d::CCArray::addObject(v54, v56);
v57 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v54, v57);
v58 = a1->m_allSpecialChests;
v59 = GJRewardItem::createWithObjects(Large, v54);
GameStatsManager::getGauntletRewardKey(a1, 0xCu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v58, v59);
v60 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v657 = (unsigned int *)(v774 - 8);
do
v658 = __ldaxr(v657);
while ( __stlxr(v658 - 1, v657) );
}
else
{
v658 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v658 - 1;
}
if ( v658 <= 0 )
operator delete(v60);
}
v61 = (cocos2d::CCArray *)cocos2d::CCArray::create(v60);
v62 = GJRewardObject::createItemUnlock((UnlockType)1, 142);
cocos2d::CCArray::addObject(v61, v62);
v63 = GJRewardObject::create(Diamonds, 50, 0);
cocos2d::CCArray::addObject(v61, v63);
v64 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v61, v64);
v65 = a1->m_allSpecialChests;
v66 = GJRewardItem::createWithObjects(Large, v61);
GameStatsManager::getGauntletRewardKey(a1, 0xDu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v65, v66);
v67 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v757 = (unsigned int *)(v774 - 8);
do
v758 = __ldaxr(v757);
while ( __stlxr(v758 - 1, v757) );
}
else
{
v758 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v758 - 1;
}
if ( v758 <= 0 )
operator delete(v67);
}
v68 = (cocos2d::CCArray *)cocos2d::CCArray::create(v67);
v69 = GJRewardObject::createItemUnlock(Death, 17);
cocos2d::CCArray::addObject(v68, v69);
v70 = GJRewardObject::create(Diamonds, 50, 0);
cocos2d::CCArray::addObject(v68, v70);
v71 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v68, v71);
v72 = a1->m_allSpecialChests;
v73 = GJRewardItem::createWithObjects(Large, v68);
GameStatsManager::getGauntletRewardKey(a1, 0xEu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v72, v73);
v74 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v709 = (unsigned int *)(v774 - 8);
do
v710 = __ldaxr(v709);
while ( __stlxr(v710 - 1, v709) );
}
else
{
v710 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v710 - 1;
}
if ( v710 <= 0 )
operator delete(v74);
}
v75 = (cocos2d::CCArray *)cocos2d::CCArray::create(v74);
v76 = GJRewardObject::createItemUnlock((UnlockType)4, 49);
cocos2d::CCArray::addObject(v75, v76);
v77 = GJRewardObject::create(Diamonds, 50, 0);
cocos2d::CCArray::addObject(v75, v77);
v78 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v75, v78);
v79 = a1->m_allSpecialChests;
v80 = GJRewardItem::createWithObjects(Large, v75);
GameStatsManager::getGauntletRewardKey(a1, 0xFu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v79, v80);
v81 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v741 = (unsigned int *)(v774 - 8);
do
v742 = __ldaxr(v741);
while ( __stlxr(v742 - 1, v741) );
}
else
{
v742 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v742 - 1;
}
if ( v742 <= 0 )
operator delete(v81);
}
v82 = (cocos2d::CCArray *)cocos2d::CCArray::create(v81);
v83 = GJRewardObject::createItemUnlock((UnlockType)5, 67);
cocos2d::CCArray::addObject(v82, v83);
v84 = GJRewardObject::create(Diamonds, 70, 0);
cocos2d::CCArray::addObject(v82, v84);
v85 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v82, v85);
v86 = a1->m_allSpecialChests;
v87 = GJRewardItem::createWithObjects(Large, v82);
GameStatsManager::getGauntletRewardKey(a1, 0x10u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v86, v87);
v88 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v677 = (unsigned int *)(v774 - 8);
do
v678 = __ldaxr(v677);
while ( __stlxr(v678 - 1, v677) );
}
else
{
v678 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v678 - 1;
}
if ( v678 <= 0 )
operator delete(v88);
}
v89 = (cocos2d::CCArray *)cocos2d::CCArray::create(v88);
v90 = GJRewardObject::createItemUnlock((UnlockType)1, 312);
cocos2d::CCArray::addObject(v89, v90);
v91 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v89, v91);
v92 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v89, v92);
v93 = a1->m_allSpecialChests;
v94 = GJRewardItem::createWithObjects(Large, v89);
GameStatsManager::getGauntletRewardKey(a1, 0x11u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v93, v94);
v95 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v749 = (unsigned int *)(v774 - 8);
do
v750 = __ldaxr(v749);
while ( __stlxr(v750 - 1, v749) );
}
else
{
v750 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v750 - 1;
}
if ( v750 <= 0 )
operator delete(v95);
}
v96 = (cocos2d::CCArray *)cocos2d::CCArray::create(v95);
v97 = GJRewardObject::create(Diamonds, 40, 0);
cocos2d::CCArray::addObject(v96, v97);
v98 = GJRewardObject::create(EarthShard, 3, 0);
cocos2d::CCArray::addObject(v96, v98);
v99 = GJRewardObject::create(MetalShard, 3, 0);
cocos2d::CCArray::addObject(v96, v99);
v100 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v96, v100);
v101 = a1->m_allSpecialChests;
v102 = GJRewardItem::createWithObjects(Large, v96);
GameStatsManager::getGauntletRewardKey(a1, 0x12u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v101, v102);
v103 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v693 = (unsigned int *)(v774 - 8);
do
v694 = __ldaxr(v693);
while ( __stlxr(v694 - 1, v693) );
}
else
{
v694 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v694 - 1;
}
if ( v694 <= 0 )
operator delete(v103);
}
v104 = (cocos2d::CCArray *)cocos2d::CCArray::create(v103);
v105 = GJRewardObject::createItemUnlock((UnlockType)1, 315);
cocos2d::CCArray::addObject(v104, v105);
v106 = GJRewardObject::create(Diamonds, 30, 0);
cocos2d::CCArray::addObject(v104, v106);
v107 = GJRewardObject::create(BloodShard, 3, 0);
cocos2d::CCArray::addObject(v104, v107);
v108 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v104, v108);
v109 = a1->m_allSpecialChests;
v110 = GJRewardItem::createWithObjects(Large, v104);
GameStatsManager::getGauntletRewardKey(a1, 0x13u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v109, v110);
v111 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v725 = (unsigned int *)(v774 - 8);
do
v726 = __ldaxr(v725);
while ( __stlxr(v726 - 1, v725) );
}
else
{
v726 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v726 - 1;
}
if ( v726 <= 0 )
operator delete(v111);
}
v112 = (cocos2d::CCArray *)cocos2d::CCArray::create(v111);
v113 = GJRewardObject::createItemUnlock((UnlockType)4, 96);
cocos2d::CCArray::addObject(v112, v113);
v114 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v112, v114);
v115 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v112, v115);
v116 = a1->m_allSpecialChests;
v117 = GJRewardItem::createWithObjects(Large, v112);
GameStatsManager::getGauntletRewardKey(a1, 0x14u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v116, v117);
v118 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v661 = (unsigned int *)(v774 - 8);
do
v662 = __ldaxr(v661);
while ( __stlxr(v662 - 1, v661) );
}
else
{
v662 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v662 - 1;
}
if ( v662 <= 0 )
operator delete(v118);
}
v119 = (cocos2d::CCArray *)cocos2d::CCArray::create(v118);
v120 = GJRewardObject::createItemUnlock(Bird, 137);
cocos2d::CCArray::addObject(v119, v120);
v121 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v119, v121);
v122 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v119, v122);
v123 = a1->m_allSpecialChests;
v124 = GJRewardItem::createWithObjects(Large, v119);
GameStatsManager::getGauntletRewardKey(a1, 0x15u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v123, v124);
v125 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v753 = (unsigned int *)(v774 - 8);
do
v754 = __ldaxr(v753);
while ( __stlxr(v754 - 1, v753) );
}
else
{
v754 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v754 - 1;
}
if ( v754 <= 0 )
operator delete(v125);
}
v126 = (cocos2d::CCArray *)cocos2d::CCArray::create(v125);
v127 = GJRewardObject::createItemUnlock((UnlockType)1, 476);
cocos2d::CCArray::addObject(v126, v127);
v128 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v126, v128);
v129 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v126, v129);
v130 = a1->m_allSpecialChests;
v131 = GJRewardItem::createWithObjects(Large, v126);
GameStatsManager::getGauntletRewardKey(a1, 0x16u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v130, v131);
v132 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v701 = (unsigned int *)(v774 - 8);
do
v702 = __ldaxr(v701);
while ( __stlxr(v702 - 1, v701) );
}
else
{
v702 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v702 - 1;
}
if ( v702 <= 0 )
operator delete(v132);
}
v133 = (cocos2d::CCArray *)cocos2d::CCArray::create(v132);
v134 = GJRewardObject::createItemUnlock((UnlockType)1, 467);
cocos2d::CCArray::addObject(v133, v134);
v135 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v133, v135);
v136 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v133, v136);
v137 = a1->m_allSpecialChests;
v138 = GJRewardItem::createWithObjects(Large, v133);
GameStatsManager::getGauntletRewardKey(a1, 0x17u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v137, v138);
v139 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v733 = (unsigned int *)(v774 - 8);
do
v734 = __ldaxr(v733);
while ( __stlxr(v734 - 1, v733) );
}
else
{
v734 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v734 - 1;
}
if ( v734 <= 0 )
operator delete(v139);
}
v140 = (cocos2d::CCArray *)cocos2d::CCArray::create(v139);
v141 = GJRewardObject::createItemUnlock(Bird, 41);
cocos2d::CCArray::addObject(v140, v141);
v142 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v140, v142);
v143 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v140, v143);
v144 = a1->m_allSpecialChests;
v145 = GJRewardItem::createWithObjects(Large, v140);
GameStatsManager::getGauntletRewardKey(a1, 0x18u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v144, v145);
v146 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v669 = (unsigned int *)(v774 - 8);
do
v670 = __ldaxr(v669);
while ( __stlxr(v670 - 1, v669) );
}
else
{
v670 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v670 - 1;
}
if ( v670 <= 0 )
operator delete(v146);
}
v147 = (cocos2d::CCArray *)cocos2d::CCArray::create(v146);
v148 = GJRewardObject::create(Diamonds, 40, 0);
cocos2d::CCArray::addObject(v147, v148);
v149 = GJRewardObject::create(SoulShard, 3, 0);
cocos2d::CCArray::addObject(v147, v149);
v150 = GJRewardObject::create(LightShard, 3, 0);
cocos2d::CCArray::addObject(v147, v150);
v151 = a1->m_allSpecialChests;
v152 = GJRewardItem::createWithObjects(Large, v147);
GameStatsManager::getGauntletRewardKey(a1, 0x19u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v151, v152);
v153 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v745 = (unsigned int *)(v774 - 8);
do
v746 = __ldaxr(v745);
while ( __stlxr(v746 - 1, v745) );
}
else
{
v746 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v746 - 1;
}
if ( v746 <= 0 )
operator delete(v153);
}
v154 = (cocos2d::CCArray *)cocos2d::CCArray::create(v153);
v155 = GJRewardObject::createItemUnlock(Dart, 94);
cocos2d::CCArray::addObject(v154, v155);
v156 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v154, v156);
v157 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v154, v157);
v158 = a1->m_allSpecialChests;
v159 = GJRewardItem::createWithObjects(Large, v154);
GameStatsManager::getGauntletRewardKey(a1, 0x1Au, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v158, v159);
v160 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v685 = (unsigned int *)(v774 - 8);
do
v686 = __ldaxr(v685);
while ( __stlxr(v686 - 1, v685) );
}
else
{
v686 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v686 - 1;
}
if ( v686 <= 0 )
operator delete(v160);
}
v161 = (cocos2d::CCArray *)cocos2d::CCArray::create(v160);
v162 = GJRewardObject::createItemUnlock((UnlockType)4, 142);
cocos2d::CCArray::addObject(v161, v162);
v163 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v161, v163);
v164 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v161, v164);
v165 = a1->m_allSpecialChests;
v166 = GJRewardItem::createWithObjects(Large, v161);
GameStatsManager::getGauntletRewardKey(a1, 0x1Bu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v165, v166);
v167 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v717 = (unsigned int *)(v774 - 8);
do
v718 = __ldaxr(v717);
while ( __stlxr(v718 - 1, v717) );
}
else
{
v718 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v718 - 1;
}
if ( v718 <= 0 )
operator delete(v167);
}
v168 = (cocos2d::CCArray *)cocos2d::CCArray::create(v167);
v169 = GJRewardObject::createItemUnlock((UnlockType)1, 436);
cocos2d::CCArray::addObject(v168, v169);
v170 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v168, v170);
v171 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v168, v171);
v172 = a1->m_allSpecialChests;
v173 = GJRewardItem::createWithObjects(Large, v168);
GameStatsManager::getGauntletRewardKey(a1, 0x1Cu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v172, v173);
v174 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v653 = (unsigned int *)(v774 - 8);
do
v654 = __ldaxr(v653);
while ( __stlxr(v654 - 1, v653) );
}
else
{
v654 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v654 - 1;
}
if ( v654 <= 0 )
operator delete(v174);
}
v175 = (cocos2d::CCArray *)cocos2d::CCArray::create(v174);
v176 = GJRewardObject::createItemUnlock((UnlockType)1, 326);
cocos2d::CCArray::addObject(v175, v176);
v177 = GJRewardObject::create(Diamonds, 40, 0);
cocos2d::CCArray::addObject(v175, v177);
v178 = GJRewardObject::create(BloodShard, 3, 0);
cocos2d::CCArray::addObject(v175, v178);
v179 = a1->m_allSpecialChests;
v180 = GJRewardItem::createWithObjects(Large, v175);
GameStatsManager::getGauntletRewardKey(a1, 0x1Du, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v179, v180);
v181 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v767 = (unsigned int *)(v774 - 8);
do
v768 = __ldaxr(v767);
while ( __stlxr(v768 - 1, v767) );
}
else
{
v768 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v768 - 1;
}
if ( v768 <= 0 )
operator delete(v181);
}
v182 = (cocos2d::CCArray *)cocos2d::CCArray::create(v181);
v183 = GJRewardObject::createItemUnlock((UnlockType)1, 316);
cocos2d::CCArray::addObject(v182, v183);
v184 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v182, v184);
v185 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v182, v185);
v186 = a1->m_allSpecialChests;
v187 = GJRewardItem::createWithObjects(Large, v182);
GameStatsManager::getGauntletRewardKey(a1, 0x1Eu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v186, v187);
v188 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v711 = (unsigned int *)(v774 - 8);
do
v712 = __ldaxr(v711);
while ( __stlxr(v712 - 1, v711) );
}
else
{
v712 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v712 - 1;
}
if ( v712 <= 0 )
operator delete(v188);
}
v189 = (cocos2d::CCArray *)cocos2d::CCArray::create(v188);
v190 = GJRewardObject::create(Diamonds, 40, 0);
cocos2d::CCArray::addObject(v189, v190);
v191 = GJRewardObject::create(SoulShard, 5, 0);
cocos2d::CCArray::addObject(v189, v191);
v192 = a1->m_allSpecialChests;
v193 = GJRewardItem::createWithObjects(Large, v189);
GameStatsManager::getGauntletRewardKey(a1, 0x1Fu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v192, v193);
v194 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v743 = (unsigned int *)(v774 - 8);
do
v744 = __ldaxr(v743);
while ( __stlxr(v744 - 1, v743) );
}
else
{
v744 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v744 - 1;
}
if ( v744 <= 0 )
operator delete(v194);
}
v195 = (cocos2d::CCArray *)cocos2d::CCArray::create(v194);
v196 = GJRewardObject::createItemUnlock((UnlockType)9, 67);
cocos2d::CCArray::addObject(v195, v196);
v197 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v195, v197);
v198 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v195, v198);
v199 = a1->m_allSpecialChests;
v200 = GJRewardItem::createWithObjects(Large, v195);
GameStatsManager::getGauntletRewardKey(a1, 0x20u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v199, v200);
v201 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v679 = (unsigned int *)(v774 - 8);
do
v680 = __ldaxr(v679);
while ( __stlxr(v680 - 1, v679) );
}
else
{
v680 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v680 - 1;
}
if ( v680 <= 0 )
operator delete(v201);
}
v202 = (cocos2d::CCArray *)cocos2d::CCArray::create(v201);
v203 = GJRewardObject::createItemUnlock((UnlockType)1, 397);
cocos2d::CCArray::addObject(v202, v203);
v204 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v202, v204);
v205 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v202, v205);
v206 = a1->m_allSpecialChests;
v207 = GJRewardItem::createWithObjects(Large, v202);
GameStatsManager::getGauntletRewardKey(a1, 0x21u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v206, v207);
v208 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v759 = (unsigned int *)(v774 - 8);
do
v760 = __ldaxr(v759);
while ( __stlxr(v760 - 1, v759) );
}
else
{
v760 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v760 - 1;
}
if ( v760 <= 0 )
operator delete(v208);
}
v209 = (cocos2d::CCArray *)cocos2d::CCArray::create(v208);
v210 = GJRewardObject::createItemUnlock((UnlockType)1, 244);
cocos2d::CCArray::addObject(v209, v210);
v211 = GJRewardObject::create(Diamonds, 70, 0);
cocos2d::CCArray::addObject(v209, v211);
v212 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v209, v212);
v213 = a1->m_allSpecialChests;
v214 = GJRewardItem::createWithObjects(Large, v209);
GameStatsManager::getGauntletRewardKey(a1, 0x22u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v213, v214);
v215 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v695 = (unsigned int *)(v774 - 8);
do
v696 = __ldaxr(v695);
while ( __stlxr(v696 - 1, v695) );
}
else
{
v696 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v696 - 1;
}
if ( v696 <= 0 )
operator delete(v215);
}
v216 = (cocos2d::CCArray *)cocos2d::CCArray::create(v215);
v217 = GJRewardObject::createItemUnlock(GJItem|0x1, 16);
cocos2d::CCArray::addObject(v216, v217);
v218 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v216, v218);
v219 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v216, v219);
v220 = a1->m_allSpecialChests;
v221 = GJRewardItem::createWithObjects(Large, v216);
GameStatsManager::getGauntletRewardKey(a1, 0x23u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v220, v221);
v222 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v727 = (unsigned int *)(v774 - 8);
do
v728 = __ldaxr(v727);
while ( __stlxr(v728 - 1, v727) );
}
else
{
v728 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v728 - 1;
}
if ( v728 <= 0 )
operator delete(v222);
}
v223 = (cocos2d::CCArray *)cocos2d::CCArray::create(v222);
v224 = GJRewardObject::createItemUnlock(GJItem|0x1, 31);
cocos2d::CCArray::addObject(v223, v224);
v225 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v223, v225);
v226 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v223, v226);
v227 = a1->m_allSpecialChests;
v228 = GJRewardItem::createWithObjects(Large, v223);
GameStatsManager::getGauntletRewardKey(a1, 0x24u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v227, v228);
v229 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v663 = (unsigned int *)(v774 - 8);
do
v664 = __ldaxr(v663);
while ( __stlxr(v664 - 1, v663) );
}
else
{
v664 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v664 - 1;
}
if ( v664 <= 0 )
operator delete(v229);
}
v230 = (cocos2d::CCArray *)cocos2d::CCArray::create(v229);
v231 = GJRewardObject::createItemUnlock(Dart, 90);
cocos2d::CCArray::addObject(v230, v231);
v232 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v230, v232);
v233 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v230, v233);
v234 = a1->m_allSpecialChests;
v235 = GJRewardItem::createWithObjects(Large, v230);
GameStatsManager::getGauntletRewardKey(a1, 0x25u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v234, v235);
v236 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v763 = (unsigned int *)(v774 - 8);
do
v764 = __ldaxr(v763);
while ( __stlxr(v764 - 1, v763) );
}
else
{
v764 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v764 - 1;
}
if ( v764 <= 0 )
operator delete(v236);
}
v237 = (cocos2d::CCArray *)cocos2d::CCArray::create(v236);
v238 = GJRewardObject::createItemUnlock(Dart, 63);
cocos2d::CCArray::addObject(v237, v238);
v239 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v237, v239);
v240 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v237, v240);
v241 = a1->m_allSpecialChests;
v242 = GJRewardItem::createWithObjects(Large, v237);
GameStatsManager::getGauntletRewardKey(a1, 0x26u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v241, v242);
v243 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v703 = (unsigned int *)(v774 - 8);
do
v704 = __ldaxr(v703);
while ( __stlxr(v704 - 1, v703) );
}
else
{
v704 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v704 - 1;
}
if ( v704 <= 0 )
operator delete(v243);
}
v244 = (cocos2d::CCArray *)cocos2d::CCArray::create(v243);
v245 = GJRewardObject::createItemUnlock((UnlockType)1, 303);
cocos2d::CCArray::addObject(v244, v245);
v246 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v244, v246);
v247 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v244, v247);
v248 = a1->m_allSpecialChests;
v249 = GJRewardItem::createWithObjects(Large, v244);
GameStatsManager::getGauntletRewardKey(a1, 0x27u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v248, v249);
v250 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v735 = (unsigned int *)(v774 - 8);
do
v736 = __ldaxr(v735);
while ( __stlxr(v736 - 1, v735) );
}
else
{
v736 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v736 - 1;
}
if ( v736 <= 0 )
operator delete(v250);
}
v251 = (cocos2d::CCArray *)cocos2d::CCArray::create(v250);
v252 = GJRewardObject::createItemUnlock((UnlockType)4, 166);
cocos2d::CCArray::addObject(v251, v252);
v253 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v251, v253);
v254 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v251, v254);
v255 = a1->m_allSpecialChests;
v256 = GJRewardItem::createWithObjects(Large, v251);
GameStatsManager::getGauntletRewardKey(a1, 0x28u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v255, v256);
v257 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v671 = (unsigned int *)(v774 - 8);
do
v672 = __ldaxr(v671);
while ( __stlxr(v672 - 1, v671) );
}
else
{
v672 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v672 - 1;
}
if ( v672 <= 0 )
operator delete(v257);
}
v258 = (cocos2d::CCArray *)cocos2d::CCArray::create(v257);
v259 = GJRewardObject::createItemUnlock((UnlockType)1, 425);
cocos2d::CCArray::addObject(v258, v259);
v260 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v258, v260);
v261 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v258, v261);
v262 = a1->m_allSpecialChests;
v263 = GJRewardItem::createWithObjects(Large, v258);
GameStatsManager::getGauntletRewardKey(a1, 0x29u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v262, v263);
v264 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v751 = (unsigned int *)(v774 - 8);
do
v752 = __ldaxr(v751);
while ( __stlxr(v752 - 1, v751) );
}
else
{
v752 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v752 - 1;
}
if ( v752 <= 0 )
operator delete(v264);
}
v265 = (cocos2d::CCArray *)cocos2d::CCArray::create(v264);
v266 = GJRewardObject::createItemUnlock((UnlockType)1, 377);
cocos2d::CCArray::addObject(v265, v266);
v267 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v265, v267);
v268 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v265, v268);
v269 = a1->m_allSpecialChests;
v270 = GJRewardItem::createWithObjects(Large, v265);
GameStatsManager::getGauntletRewardKey(a1, 0x2Au, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v269, v270);
v271 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v687 = (unsigned int *)(v774 - 8);
do
v688 = __ldaxr(v687);
while ( __stlxr(v688 - 1, v687) );
}
else
{
v688 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v688 - 1;
}
if ( v688 <= 0 )
operator delete(v271);
}
v272 = (cocos2d::CCArray *)cocos2d::CCArray::create(v271);
v273 = GJRewardObject::createItemUnlock((UnlockType)1, 408);
cocos2d::CCArray::addObject(v272, v273);
v274 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v272, v274);
v275 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v272, v275);
v276 = a1->m_allSpecialChests;
v277 = GJRewardItem::createWithObjects(Large, v272);
GameStatsManager::getGauntletRewardKey(a1, 0x2Bu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v276, v277);
v278 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v719 = (unsigned int *)(v774 - 8);
do
v720 = __ldaxr(v719);
while ( __stlxr(v720 - 1, v719) );
}
else
{
v720 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v720 - 1;
}
if ( v720 <= 0 )
operator delete(v278);
}
v279 = (cocos2d::CCArray *)cocos2d::CCArray::create(v278);
v280 = GJRewardObject::createItemUnlock((UnlockType)1, 453);
cocos2d::CCArray::addObject(v279, v280);
v281 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v279, v281);
v282 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v279, v282);
v283 = a1->m_allSpecialChests;
v284 = GJRewardItem::createWithObjects(Large, v279);
GameStatsManager::getGauntletRewardKey(a1, 0x2Cu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v283, v284);
v285 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v655 = (unsigned int *)(v774 - 8);
do
v656 = __ldaxr(v655);
while ( __stlxr(v656 - 1, v655) );
}
else
{
v656 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v656 - 1;
}
if ( v656 <= 0 )
operator delete(v285);
}
v286 = (cocos2d::CCArray *)cocos2d::CCArray::create(v285);
v287 = GJRewardObject::createItemUnlock(Dart, 49);
cocos2d::CCArray::addObject(v286, v287);
v288 = GJRewardObject::create(Diamonds, 60, 0);
cocos2d::CCArray::addObject(v286, v288);
v289 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v286, v289);
v290 = a1->m_allSpecialChests;
v291 = GJRewardItem::createWithObjects(Large, v286);
GameStatsManager::getGauntletRewardKey(a1, 0x2Du, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v290, v291);
v292 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v765 = (unsigned int *)(v774 - 8);
do
v766 = __ldaxr(v765);
while ( __stlxr(v766 - 1, v765) );
}
else
{
v766 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v766 - 1;
}
if ( v766 <= 0 )
operator delete(v292);
}
v293 = (cocos2d::CCArray *)cocos2d::CCArray::create(v292);
v294 = GJRewardObject::createItemUnlock((UnlockType)5, 103);
cocos2d::CCArray::addObject(v293, v294);
v295 = GJRewardObject::create(Diamonds, 30, 0);
cocos2d::CCArray::addObject(v293, v295);
v296 = GJRewardObject::create(LightShard, 3, 0);
cocos2d::CCArray::addObject(v293, v296);
v297 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v293, v297);
v298 = a1->m_allSpecialChests;
v299 = GJRewardItem::createWithObjects(Large, v293);
GameStatsManager::getGauntletRewardKey(a1, 0x2Eu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v298, v299);
v300 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v707 = (unsigned int *)(v774 - 8);
do
v708 = __ldaxr(v707);
while ( __stlxr(v708 - 1, v707) );
}
else
{
v708 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v708 - 1;
}
if ( v708 <= 0 )
operator delete(v300);
}
v301 = (cocos2d::CCArray *)cocos2d::CCArray::create(v300);
v302 = GJRewardObject::createItemUnlock(Bird, 119);
cocos2d::CCArray::addObject(v301, v302);
v303 = GJRewardObject::create(SoulShard, 3, 0);
cocos2d::CCArray::addObject(v301, v303);
v304 = GJRewardObject::create(Diamonds, 50, 0);
cocos2d::CCArray::addObject(v301, v304);
v305 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v301, v305);
v306 = a1->m_allSpecialChests;
v307 = GJRewardItem::createWithObjects(Large, v301);
GameStatsManager::getGauntletRewardKey(a1, 0x2Fu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v306, v307);
v308 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v739 = (unsigned int *)(v774 - 8);
do
v740 = __ldaxr(v739);
while ( __stlxr(v740 - 1, v739) );
}
else
{
v740 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v740 - 1;
}
if ( v740 <= 0 )
operator delete(v308);
}
v309 = (cocos2d::CCArray *)cocos2d::CCArray::create(v308);
v310 = GJRewardObject::createItemUnlock((UnlockType)5, 82);
cocos2d::CCArray::addObject(v309, v310);
v311 = GJRewardObject::create(Diamonds, 50, 0);
cocos2d::CCArray::addObject(v309, v311);
v312 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v309, v312);
v313 = a1->m_allSpecialChests;
v314 = GJRewardItem::createWithObjects(Large, v309);
GameStatsManager::getGauntletRewardKey(a1, 0x30u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v313, v314);
v315 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v675 = (unsigned int *)(v774 - 8);
do
v676 = __ldaxr(v675);
while ( __stlxr(v676 - 1, v675) );
}
else
{
v676 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v676 - 1;
}
if ( v676 <= 0 )
operator delete(v315);
}
v316 = (cocos2d::CCArray *)cocos2d::CCArray::create(v315);
v317 = GJRewardObject::createItemUnlock((UnlockType)1, 482);
cocos2d::CCArray::addObject(v316, v317);
v318 = GJRewardObject::create(Diamonds, 30, 0);
cocos2d::CCArray::addObject(v316, v318);
v319 = GJRewardObject::create(EarthShard, 3, 0);
cocos2d::CCArray::addObject(v316, v319);
v320 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v316, v320);
v321 = a1->m_allSpecialChests;
v322 = GJRewardItem::createWithObjects(Large, v316);
GameStatsManager::getGauntletRewardKey(a1, 0x31u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v321, v322);
v323 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v755 = (unsigned int *)(v774 - 8);
do
v756 = __ldaxr(v755);
while ( __stlxr(v756 - 1, v755) );
}
else
{
v756 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v756 - 1;
}
if ( v756 <= 0 )
operator delete(v323);
}
v324 = (cocos2d::CCArray *)cocos2d::CCArray::create(v323);
v325 = GJRewardObject::createItemUnlock((UnlockType)4, 90);
cocos2d::CCArray::addObject(v324, v325);
v326 = GJRewardObject::create(Diamonds, 50, 0);
cocos2d::CCArray::addObject(v324, v326);
v327 = GJRewardObject::create(MetalShard, 3, 0);
cocos2d::CCArray::addObject(v324, v327);
v328 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v324, v328);
v329 = a1->m_allSpecialChests;
v330 = GJRewardItem::createWithObjects(Large, v324);
GameStatsManager::getGauntletRewardKey(a1, 0x32u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v329, v330);
v331 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v691 = (unsigned int *)(v774 - 8);
do
v692 = __ldaxr(v691);
while ( __stlxr(v692 - 1, v691) );
}
else
{
v692 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v692 - 1;
}
if ( v692 <= 0 )
operator delete(v331);
}
v332 = (cocos2d::CCArray *)cocos2d::CCArray::create(v331);
v333 = GJRewardObject::createItemUnlock((UnlockType)1, 452);
cocos2d::CCArray::addObject(v332, v333);
v334 = GJRewardObject::create(Diamonds, 50, 0);
cocos2d::CCArray::addObject(v332, v334);
v335 = GJRewardObject::create(EarthShard, 3, 0);
cocos2d::CCArray::addObject(v332, v335);
v336 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v332, v336);
v337 = a1->m_allSpecialChests;
v338 = GJRewardItem::createWithObjects(Large, v332);
GameStatsManager::getGauntletRewardKey(a1, 0x33u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v337, v338);
v339 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v723 = (unsigned int *)(v774 - 8);
do
v724 = __ldaxr(v723);
while ( __stlxr(v724 - 1, v723) );
}
else
{
v724 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v724 - 1;
}
if ( v724 <= 0 )
operator delete(v339);
}
v340 = (cocos2d::CCArray *)cocos2d::CCArray::create(v339);
v341 = GJRewardObject::createItemUnlock((UnlockType)4, 117);
cocos2d::CCArray::addObject(v340, v341);
v342 = GJRewardObject::create(Diamonds, 50, 0);
cocos2d::CCArray::addObject(v340, v342);
v343 = GJRewardObject::create(SoulShard, 3, 0);
cocos2d::CCArray::addObject(v340, v343);
v344 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v340, v344);
v345 = a1->m_allSpecialChests;
v346 = GJRewardItem::createWithObjects(Large, v340);
GameStatsManager::getGauntletRewardKey(a1, 0x34u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v345, v346);
v347 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v659 = (unsigned int *)(v774 - 8);
do
v660 = __ldaxr(v659);
while ( __stlxr(v660 - 1, v659) );
}
else
{
v660 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v660 - 1;
}
if ( v660 <= 0 )
operator delete(v347);
}
v348 = (cocos2d::CCArray *)cocos2d::CCArray::create(v347);
v349 = GJRewardObject::createItemUnlock(Bird, 133);
cocos2d::CCArray::addObject(v348, v349);
v350 = GJRewardObject::create(Diamonds, 50, 0);
cocos2d::CCArray::addObject(v348, v350);
v351 = GJRewardObject::create(MetalShard, 3, 0);
cocos2d::CCArray::addObject(v348, v351);
v352 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v348, v352);
v353 = a1->m_allSpecialChests;
v354 = GJRewardItem::createWithObjects(Large, v348);
GameStatsManager::getGauntletRewardKey(a1, 0x35u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v353, v354);
v355 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v761 = (unsigned int *)(v774 - 8);
do
v762 = __ldaxr(v761);
while ( __stlxr(v762 - 1, v761) );
}
else
{
v762 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v762 - 1;
}
if ( v762 <= 0 )
operator delete(v355);
}
v356 = (cocos2d::CCArray *)cocos2d::CCArray::create(v355);
v357 = GJRewardObject::createItemUnlock(GJItem|Col1, 7);
cocos2d::CCArray::addObject(v356, v357);
v358 = GJRewardObject::create(Diamonds, 75, 0);
cocos2d::CCArray::addObject(v356, v358);
v359 = GJRewardObject::create(LightShard, 3, 0);
cocos2d::CCArray::addObject(v356, v359);
v360 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v356, v360);
v361 = a1->m_allSpecialChests;
v362 = GJRewardItem::createWithObjects(Large, v356);
GameStatsManager::getGauntletRewardKey(a1, 0x36u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v361, v362);
v363 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v699 = (unsigned int *)(v774 - 8);
do
v700 = __ldaxr(v699);
while ( __stlxr(v700 - 1, v699) );
}
else
{
v700 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v700 - 1;
}
if ( v700 <= 0 )
operator delete(v363);
}
v364 = (cocos2d::CCArray *)cocos2d::CCArray::create(v363);
v365 = GJRewardObject::createItemUnlock((UnlockType)1, 484);
cocos2d::CCArray::addObject(v364, v365);
v366 = GJRewardObject::create(Diamonds, 40, 0);
cocos2d::CCArray::addObject(v364, v366);
v367 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v364, v367);
v368 = a1->m_allSpecialChests;
v369 = GJRewardItem::createWithObjects(Large, v364);
GameStatsManager::getGauntletRewardKey(a1, 0x37u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v368, v369);
v370 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v731 = (unsigned int *)(v774 - 8);
do
v732 = __ldaxr(v731);
while ( __stlxr(v732 - 1, v731) );
}
else
{
v732 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v732 - 1;
}
if ( v732 <= 0 )
operator delete(v370);
}
v371 = (cocos2d::CCArray *)cocos2d::CCArray::create(v370);
v372 = GJRewardObject::createItemUnlock((UnlockType)5, 59);
cocos2d::CCArray::addObject(v371, v372);
v373 = GJRewardObject::create(Diamonds, 80, 0);
cocos2d::CCArray::addObject(v371, v373);
v374 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v371, v374);
v375 = a1->m_allSpecialChests;
v376 = GJRewardItem::createWithObjects(Large, v371);
GameStatsManager::getGauntletRewardKey(a1, 0x38u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v375, v376);
v377 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v667 = (unsigned int *)(v774 - 8);
do
v668 = __ldaxr(v667);
while ( __stlxr(v668 - 1, v667) );
}
else
{
v668 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v668 - 1;
}
if ( v668 <= 0 )
operator delete(v377);
}
v378 = (cocos2d::CCArray *)cocos2d::CCArray::create(v377);
v379 = GJRewardObject::createItemUnlock((UnlockType)4, 102);
cocos2d::CCArray::addObject(v378, v379);
v380 = GJRewardObject::create(Diamonds, 40, 0);
cocos2d::CCArray::addObject(v378, v380);
v381 = GJRewardObject::create(MetalShard, 2, 0);
cocos2d::CCArray::addObject(v378, v381);
v382 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v378, v382);
v383 = a1->m_allSpecialChests;
v384 = GJRewardItem::createWithObjects(Large, v378);
GameStatsManager::getGauntletRewardKey(a1, 0x39u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v383, v384);
v385 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v747 = (unsigned int *)(v774 - 8);
do
v748 = __ldaxr(v747);
while ( __stlxr(v748 - 1, v747) );
}
else
{
v748 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v748 - 1;
}
if ( v748 <= 0 )
operator delete(v385);
}
v386 = (cocos2d::CCArray *)cocos2d::CCArray::create(v385);
v387 = GJRewardObject::createItemUnlock(Bird, 120);
cocos2d::CCArray::addObject(v386, v387);
v388 = GJRewardObject::create(Diamonds, 80, 0);
cocos2d::CCArray::addObject(v386, v388);
v389 = GJRewardObject::create(SoulShard, 3, 0);
cocos2d::CCArray::addObject(v386, v389);
v390 = GJRewardObject::create(GoldKey, 1, 0);
cocos2d::CCArray::addObject(v386, v390);
v391 = a1->m_allSpecialChests;
v392 = GJRewardItem::createWithObjects(Large, v386);
GameStatsManager::getGauntletRewardKey(a1, 0x3Au, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v391, v392);
v393 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v683 = (unsigned int *)(v774 - 8);
do
v684 = __ldaxr(v683);
while ( __stlxr(v684 - 1, v683) );
}
else
{
v684 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v684 - 1;
}
if ( v684 <= 0 )
operator delete(v393);
}
v394 = (cocos2d::CCArray *)cocos2d::CCArray::create(v393);
v395 = GJRewardObject::createItemUnlock((UnlockType)4, 115);
cocos2d::CCArray::addObject(v394, v395);
v396 = GJRewardObject::create(Diamonds, 70, 0);
cocos2d::CCArray::addObject(v394, v396);
v397 = GJRewardObject::create(BloodShard, 2, 0);
cocos2d::CCArray::addObject(v394, v397);
v398 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v394, v398);
v399 = a1->m_allSpecialChests;
v400 = GJRewardItem::createWithObjects(Large, v394);
GameStatsManager::getGauntletRewardKey(a1, 0x3Bu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v399, v400);
v401 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v715 = (unsigned int *)(v774 - 8);
do
v716 = __ldaxr(v715);
while ( __stlxr(v716 - 1, v715) );
}
else
{
v716 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v716 - 1;
}
if ( v716 <= 0 )
operator delete(v401);
}
v402 = (cocos2d::CCArray *)cocos2d::CCArray::create(v401);
v403 = GJRewardObject::createItemUnlock((UnlockType)1, 372);
cocos2d::CCArray::addObject(v402, v403);
v404 = GJRewardObject::create(Diamonds, 50, 0);
cocos2d::CCArray::addObject(v402, v404);
v405 = GJRewardObject::create(LightShard, 3, 0);
cocos2d::CCArray::addObject(v402, v405);
v406 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v402, v406);
v407 = a1->m_allSpecialChests;
v408 = GJRewardItem::createWithObjects(Large, v402);
GameStatsManager::getGauntletRewardKey(a1, 0x3Cu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v407, v408);
LODWORD(v409) = v774;
v410 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v409 = (unsigned int *)(v774 - 8);
do
v652 = __ldaxr(v409);
while ( __stlxr(v652 - 1, v409) );
}
else
{
v652 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v652 - 1;
}
if ( v652 <= 0 )
operator delete(v410);
}
for ( i = 1; i != 61; ++i )
{
while ( 1 )
{
GauntletNode::nameForType((GauntletNode *)i, (GauntletType)v409);
sub_583094("Complete the ", &v770, &v772);
v417 = (__int64 *)sub_D15FD4(&v772, " gauntlet", 9);
v771 = *v417;
*v417 = (__int64)&byte_124B6C8;
v418 = (void *)(v772 - 24);
if ( (__int64 *)(v772 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v419 = (unsigned int *)(v772 - 8);
do
v420 = __ldaxr(v419);
while ( __stlxr(v420 - 1, v419) );
}
else
{
v420 = *(_DWORD *)(v772 - 8);
*(_DWORD *)(v772 - 8) = v420 - 1;
}
if ( v420 <= 0 )
operator delete(v418);
}
GameStatsManager::getGauntletRewardKey(a1, i, (__int64)&v773);
sub_D18D28(&v774);
GameStatsManager::addSpecialRewardDescription((__int64)a1, (const void **)&v773.m_data.m_data, (__int64)&v774);
v412 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v562 = (unsigned int *)(v774 - 8);
do
v563 = __ldaxr(v562);
while ( __stlxr(v563 - 1, v562) );
}
else
{
v563 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v563 - 1;
}
if ( v563 <= 0 )
operator delete(v412);
}
v413 = (char *)v773.m_data.m_data - 24;
if ( (__int64 *)v773.m_data.m_data - 3 == &qword_124B6B0 )
goto LABEL_66;
if ( &pthread_create )
{
v558 = (unsigned int *)((char *)v773.m_data.m_data - 8);
do
v559 = __ldaxr(v558);
while ( __stlxr(v559 - 1, v558) );
}
else
{
v559 = *((_DWORD *)v773.m_data.m_data - 2);
*((_DWORD *)v773.m_data.m_data - 2) = v559 - 1;
}
if ( v559 > 0 )
{
LABEL_66:
v414 = v771;
v415 = (void *)(v771 - 24);
if ( (__int64 *)(v771 - 24) == &qword_124B6B0 )
goto LABEL_67;
}
else
{
operator delete(v413);
v414 = v771;
v415 = (void *)(v771 - 24);
if ( (__int64 *)(v771 - 24) == &qword_124B6B0 )
goto LABEL_67;
}
if ( &pthread_create )
{
v560 = (unsigned int *)(v414 - 8);
do
v561 = __ldaxr(v560);
while ( __stlxr(v561 - 1, v560) );
}
else
{
v561 = *(_DWORD *)(v414 - 8);
*(_DWORD *)(v414 - 8) = v561 - 1;
}
if ( v561 <= 0 )
operator delete(v415);
LABEL_67:
LODWORD(v409) = v770;
v416 = (cocos2d::CCArray *)(v770 - 24);
if ( (__int64 *)(v770 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v409 = (unsigned int *)(v770 - 8);
do
v421 = __ldaxr(v409);
while ( __stlxr(v421 - 1, v409) );
}
else
{
v421 = *(_DWORD *)(v770 - 8);
*(_DWORD *)(v770 - 8) = v421 - 1;
}
if ( v421 <= 0 )
break;
}
if ( ++i == 61 )
goto LABEL_80;
}
operator delete(v416);
}
LABEL_80:
v422 = (cocos2d::CCArray *)cocos2d::CCArray::create(v416);
v423 = GJRewardObject::createItemUnlock((UnlockType)1, 103);
cocos2d::CCArray::addObject(v422, v423);
v424 = a1->m_allSpecialChests;
v425 = GJRewardItem::createWithObjects(Small, v422);
sub_D153B8((unsigned int)v769 + 128, "0001");
cocos2d::CCDictionary::setObject((int)v424, v425);
v426 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v621 = (unsigned int *)(v774 - 8);
do
v622 = __ldaxr(v621);
while ( __stlxr(v622 - 1, v621) );
}
else
{
v622 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v622 - 1;
}
if ( v622 <= 0 )
operator delete(v426);
}
v427 = (cocos2d::CCArray *)cocos2d::CCArray::create(v426);
v428 = GJRewardObject::createItemUnlock((UnlockType)1, 106);
cocos2d::CCArray::addObject(v427, v428);
v429 = GJRewardObject::createItemUnlock(Death, 12);
cocos2d::CCArray::addObject(v427, v429);
v430 = GJRewardObject::createItemUnlock(GJItem, 5);
cocos2d::CCArray::addObject(v427, v430);
v431 = a1->m_allSpecialChests;
v432 = GJRewardItem::createWithObjects(Large, v427);
sub_D153B8((unsigned int)v769 + 128, "0002");
cocos2d::CCDictionary::setObject((int)v431, v432);
v433 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v605 = (unsigned int *)(v774 - 8);
do
v606 = __ldaxr(v605);
while ( __stlxr(v606 - 1, v605) );
}
else
{
v606 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v606 - 1;
}
if ( v606 <= 0 )
operator delete(v433);
}
v434 = a1->m_allSpecialChests;
v435 = GJRewardItem::createSpecial(Small, 0, 0, (SpecialRewardItem)0, 0, (SpecialRewardItem)0, 0, 12, 3);
sub_D153B8((unsigned int)v769 + 128, "0003");
cocos2d::CCDictionary::setObject((int)v434, v435);
v436 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v637 = (unsigned int *)(v774 - 8);
do
v638 = __ldaxr(v637);
while ( __stlxr(v638 - 1, v637) );
}
else
{
v638 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v638 - 1;
}
if ( v638 <= 0 )
operator delete(v436);
}
v437 = (cocos2d::CCArray *)cocos2d::CCArray::create(v436);
v438 = GJRewardObject::createItemUnlock((UnlockType)5, 23);
cocos2d::CCArray::addObject(v437, v438);
v439 = GJRewardObject::createItemUnlock(GJItem, 2);
cocos2d::CCArray::addObject(v437, v439);
v440 = a1->m_allSpecialChests;
v441 = GJRewardItem::createWithObjects(Large, v437);
sub_D153B8((unsigned int)v769 + 128, "0004");
cocos2d::CCDictionary::setObject((int)v440, v441);
v442 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v613 = (unsigned int *)(v774 - 8);
do
v614 = __ldaxr(v613);
while ( __stlxr(v614 - 1, v613) );
}
else
{
v614 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v614 - 1;
}
if ( v614 <= 0 )
operator delete(v442);
}
v443 = (cocos2d::CCArray *)cocos2d::CCArray::create(v442);
v444 = GJRewardObject::createItemUnlock((UnlockType)1, 104);
cocos2d::CCArray::addObject(v443, v444);
v445 = a1->m_allSpecialChests;
v446 = GJRewardItem::createWithObjects(Large, v443);
sub_D153B8((unsigned int)v769 + 128, "0005");
cocos2d::CCDictionary::setObject((int)v445, v446);
v447 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v629 = (unsigned int *)(v774 - 8);
do
v630 = __ldaxr(v629);
while ( __stlxr(v630 - 1, v629) );
}
else
{
v630 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v630 - 1;
}
if ( v630 <= 0 )
operator delete(v447);
}
v448 = (cocos2d::CCArray *)cocos2d::CCArray::create(v447);
v449 = GJRewardObject::createItemUnlock(Bird, 27);
cocos2d::CCArray::addObject(v448, v449);
v450 = a1->m_allSpecialChests;
v451 = GJRewardItem::createWithObjects(Large, v448);
sub_D153B8((unsigned int)v769 + 128, "0006");
cocos2d::CCDictionary::setObject((int)v450, v451);
v452 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v597 = (unsigned int *)(v774 - 8);
do
v598 = __ldaxr(v597);
while ( __stlxr(v598 - 1, v597) );
}
else
{
v598 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v598 - 1;
}
if ( v598 <= 0 )
operator delete(v452);
}
sub_D153B8((unsigned int)v769 + 128, "0007");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, (UnlockType)1, 111);
v453 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v645 = (unsigned int *)(v774 - 8);
do
v646 = __ldaxr(v645);
while ( __stlxr(v646 - 1, v645) );
}
else
{
v646 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v646 - 1;
}
if ( v646 <= 0 )
operator delete(v453);
}
sub_D153B8((unsigned int)v769 + 128, "0008");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, (UnlockType)4, 50);
v454 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v617 = (unsigned int *)(v774 - 8);
do
v618 = __ldaxr(v617);
while ( __stlxr(v618 - 1, v617) );
}
else
{
v618 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v618 - 1;
}
if ( v618 <= 0 )
operator delete(v454);
}
sub_D153B8((unsigned int)v769 + 128, "0009");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, (UnlockType)5, 41);
v455 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v633 = (unsigned int *)(v774 - 8);
do
v634 = __ldaxr(v633);
while ( __stlxr(v634 - 1, v633) );
}
else
{
v634 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v634 - 1;
}
if ( v634 <= 0 )
operator delete(v455);
}
sub_D153B8((unsigned int)v769 + 128, "0010");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, (UnlockType)1, 149);
v456 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v601 = (unsigned int *)(v774 - 8);
do
v602 = __ldaxr(v601);
while ( __stlxr(v602 - 1, v601) );
}
else
{
v602 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v602 - 1;
}
if ( v602 <= 0 )
operator delete(v456);
}
sub_D153B8((unsigned int)v769 + 128, "0011");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, (UnlockType)1, 150);
v457 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v641 = (unsigned int *)(v774 - 8);
do
v642 = __ldaxr(v641);
while ( __stlxr(v642 - 1, v641) );
}
else
{
v642 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v642 - 1;
}
if ( v642 <= 0 )
operator delete(v457);
}
sub_D153B8((unsigned int)v769 + 128, "0024");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, (UnlockType)1, 483);
v458 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v609 = (unsigned int *)(v774 - 8);
do
v610 = __ldaxr(v609);
while ( __stlxr(v610 - 1, v609) );
}
else
{
v610 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v610 - 1;
}
if ( v610 <= 0 )
operator delete(v458);
}
sub_D153B8((unsigned int)v769 + 128, "0012");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, (UnlockType)1, 151);
v459 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v625 = (unsigned int *)(v774 - 8);
do
v626 = __ldaxr(v625);
while ( __stlxr(v626 - 1, v625) );
}
else
{
v626 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v626 - 1;
}
if ( v626 <= 0 )
operator delete(v459);
}
sub_D153B8((unsigned int)v769 + 128, "0013");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, Col2, 52);
v460 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v593 = (unsigned int *)(v774 - 8);
do
v594 = __ldaxr(v593);
while ( __stlxr(v594 - 1, v593) );
}
else
{
v594 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v594 - 1;
}
if ( v594 <= 0 )
operator delete(v460);
}
sub_D153B8((unsigned int)v769 + 128, "0014");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, (UnlockType)4, 52);
v461 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v649 = (unsigned int *)(v774 - 8);
do
v650 = __ldaxr(v649);
while ( __stlxr(v650 - 1, v649) );
}
else
{
v650 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v650 - 1;
}
if ( v650 <= 0 )
operator delete(v461);
}
sub_D153B8((unsigned int)v769 + 128, "0015");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, (UnlockType)1, 152);
v462 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v619 = (unsigned int *)(v774 - 8);
do
v620 = __ldaxr(v619);
while ( __stlxr(v620 - 1, v619) );
}
else
{
v620 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v620 - 1;
}
if ( v620 <= 0 )
operator delete(v462);
}
sub_D153B8((unsigned int)v769 + 128, "0016");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, Col1, 85);
v463 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v635 = (unsigned int *)(v774 - 8);
do
v636 = __ldaxr(v635);
while ( __stlxr(v636 - 1, v635) );
}
else
{
v636 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v636 - 1;
}
if ( v636 <= 0 )
operator delete(v463);
}
sub_D153B8((unsigned int)v769 + 128, "0017");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, Bird, 36);
v464 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v603 = (unsigned int *)(v774 - 8);
do
v604 = __ldaxr(v603);
while ( __stlxr(v604 - 1, v603) );
}
else
{
v604 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v604 - 1;
}
if ( v604 <= 0 )
operator delete(v464);
}
sub_D153B8((unsigned int)v769 + 128, "0018");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, (UnlockType)5, 44);
v465 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v643 = (unsigned int *)(v774 - 8);
do
v644 = __ldaxr(v643);
while ( __stlxr(v644 - 1, v643) );
}
else
{
v644 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v644 - 1;
}
if ( v644 <= 0 )
operator delete(v465);
}
sub_D153B8((unsigned int)v769 + 128, "0019");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, Col1, 92);
v466 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v611 = (unsigned int *)(v774 - 8);
do
v612 = __ldaxr(v611);
while ( __stlxr(v612 - 1, v611) );
}
else
{
v612 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v612 - 1;
}
if ( v612 <= 0 )
operator delete(v466);
}
sub_D153B8((unsigned int)v769 + 128, "0020");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, (UnlockType)1, 153);
v467 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v627 = (unsigned int *)(v774 - 8);
do
v628 = __ldaxr(v627);
while ( __stlxr(v628 - 1, v627) );
}
else
{
v628 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v628 - 1;
}
if ( v628 <= 0 )
operator delete(v467);
}
sub_D153B8((unsigned int)v769 + 128, "0021");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, (UnlockType)4, 53);
v468 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v595 = (unsigned int *)(v774 - 8);
do
v596 = __ldaxr(v595);
while ( __stlxr(v596 - 1, v595) );
}
else
{
v596 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v596 - 1;
}
if ( v596 <= 0 )
operator delete(v468);
}
sub_D153B8((unsigned int)v769 + 128, "0022");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, (UnlockType)1, 154);
v469 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v647 = (unsigned int *)(v774 - 8);
do
v648 = __ldaxr(v647);
while ( __stlxr(v648 - 1, v647) );
}
else
{
v648 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v648 - 1;
}
if ( v648 <= 0 )
operator delete(v469);
}
sub_D153B8((unsigned int)v769 + 128, "0023");
GameStatsManager::addSimpleSpecialChestReward((__int64)a1, (__int64)&v774, (UnlockType)1, 160);
v470 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v615 = (unsigned int *)(v774 - 8);
do
v616 = __ldaxr(v615);
while ( __stlxr(v616 - 1, v615) );
}
else
{
v616 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v616 - 1;
}
if ( v616 <= 0 )
operator delete(v470);
}
v471 = (cocos2d::CCArray *)cocos2d::CCArray::create(v470);
v472 = GJRewardObject::createItemUnlock(GJItem|0x1, 19);
cocos2d::CCArray::addObject(v471, v472);
v473 = GJRewardObject::create(Diamonds, 300, 0);
cocos2d::CCArray::addObject(v471, v473);
v474 = GJRewardObject::create(FireShard, 10, 0);
cocos2d::CCArray::addObject(v471, v474);
v475 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v471, v475);
v476 = a1->m_allSpecialChests;
v477 = GJRewardItem::createWithObjects(Key25Treasure, v471);
GameStatsManager::getPathRewardKey(a1, 1u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v476, v477);
v478 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v631 = (unsigned int *)(v774 - 8);
do
v632 = __ldaxr(v631);
while ( __stlxr(v632 - 1, v631) );
}
else
{
v632 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v632 - 1;
}
if ( v632 <= 0 )
operator delete(v478);
}
v479 = (cocos2d::CCArray *)cocos2d::CCArray::create(v478);
v480 = GJRewardObject::createItemUnlock((UnlockType)8, 48);
cocos2d::CCArray::addObject(v479, v480);
v481 = GJRewardObject::createItemUnlock(Col1, 83);
cocos2d::CCArray::addObject(v479, v481);
v482 = GJRewardObject::create(IceShard, 10, 0);
cocos2d::CCArray::addObject(v479, v482);
v483 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v479, v483);
v484 = a1->m_allSpecialChests;
v485 = GJRewardItem::createWithObjects(Key25Treasure, v479);
GameStatsManager::getPathRewardKey(a1, 2u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v484, v485);
v486 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v599 = (unsigned int *)(v774 - 8);
do
v600 = __ldaxr(v599);
while ( __stlxr(v600 - 1, v599) );
}
else
{
v600 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v600 - 1;
}
if ( v600 <= 0 )
operator delete(v486);
}
v487 = (cocos2d::CCArray *)cocos2d::CCArray::create(v486);
v488 = GJRewardObject::createItemUnlock(Bird, 146);
cocos2d::CCArray::addObject(v487, v488);
v489 = GJRewardObject::create(Diamonds, 300, 0);
cocos2d::CCArray::addObject(v487, v489);
v490 = GJRewardObject::create(PoisonShard, 10, 0);
cocos2d::CCArray::addObject(v487, v490);
v491 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v487, v491);
v492 = a1->m_allSpecialChests;
v493 = GJRewardItem::createWithObjects(Key25Treasure, v487);
GameStatsManager::getPathRewardKey(a1, 3u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v492, v493);
v494 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v639 = (unsigned int *)(v774 - 8);
do
v640 = __ldaxr(v639);
while ( __stlxr(v640 - 1, v639) );
}
else
{
v640 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v640 - 1;
}
if ( v640 <= 0 )
operator delete(v494);
}
v495 = (cocos2d::CCArray *)cocos2d::CCArray::create(v494);
v496 = GJRewardObject::createItemUnlock((UnlockType)8, 40);
cocos2d::CCArray::addObject(v495, v496);
v497 = GJRewardObject::createItemUnlock(Col1, 104);
cocos2d::CCArray::addObject(v495, v497);
v498 = GJRewardObject::create(ShadowShard, 10, 0);
cocos2d::CCArray::addObject(v495, v498);
v499 = a1->m_allSpecialChests;
v500 = GJRewardItem::createWithObjects(Key25Treasure, v495);
GameStatsManager::getPathRewardKey(a1, 4u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v499, v500);
v501 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v607 = (unsigned int *)(v774 - 8);
do
v608 = __ldaxr(v607);
while ( __stlxr(v608 - 1, v607) );
}
else
{
v608 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v608 - 1;
}
if ( v608 <= 0 )
operator delete(v501);
}
v502 = (cocos2d::CCArray *)cocos2d::CCArray::create(v501);
v503 = GJRewardObject::createItemUnlock((UnlockType)4, 94);
cocos2d::CCArray::addObject(v502, v503);
v504 = GJRewardObject::create(Diamonds, 300, 0);
cocos2d::CCArray::addObject(v502, v504);
v505 = GJRewardObject::create(LavaShard, 10, 0);
cocos2d::CCArray::addObject(v502, v505);
v506 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v502, v506);
v507 = a1->m_allSpecialChests;
v508 = GJRewardItem::createWithObjects(Key25Treasure, v502);
GameStatsManager::getPathRewardKey(a1, 5u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v507, v508);
v509 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v623 = (unsigned int *)(v774 - 8);
do
v624 = __ldaxr(v623);
while ( __stlxr(v624 - 1, v623) );
}
else
{
v624 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v624 - 1;
}
if ( v624 <= 0 )
operator delete(v509);
}
v510 = (cocos2d::CCArray *)cocos2d::CCArray::create(v509);
v511 = GJRewardObject::createItemUnlock((UnlockType)4, 91);
cocos2d::CCArray::addObject(v510, v511);
v512 = GJRewardObject::createItemUnlock(Col1, 61);
cocos2d::CCArray::addObject(v510, v512);
v513 = GJRewardObject::create(EarthShard, 10, 0);
cocos2d::CCArray::addObject(v510, v513);
v514 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v510, v514);
v515 = a1->m_allSpecialChests;
v516 = GJRewardItem::createWithObjects(Key25Treasure, v510);
GameStatsManager::getPathRewardKey(a1, 6u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v515, v516);
v517 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v591 = (unsigned int *)(v774 - 8);
do
v592 = __ldaxr(v591);
while ( __stlxr(v592 - 1, v591) );
}
else
{
v592 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v592 - 1;
}
if ( v592 <= 0 )
operator delete(v517);
}
v518 = (cocos2d::CCArray *)cocos2d::CCArray::create(v517);
v519 = GJRewardObject::createItemUnlock((UnlockType)4, 98);
cocos2d::CCArray::addObject(v518, v519);
v520 = GJRewardObject::create(Diamonds, 300, 0);
cocos2d::CCArray::addObject(v518, v520);
v521 = GJRewardObject::create(BloodShard, 10, 0);
cocos2d::CCArray::addObject(v518, v521);
v522 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v518, v522);
v523 = a1->m_allSpecialChests;
v524 = GJRewardItem::createWithObjects(Key25Treasure, v518);
GameStatsManager::getPathRewardKey(a1, 7u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v523, v524);
v525 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v697 = (unsigned int *)(v774 - 8);
do
v698 = __ldaxr(v697);
while ( __stlxr(v698 - 1, v697) );
}
else
{
v698 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v698 - 1;
}
if ( v698 <= 0 )
operator delete(v525);
}
v526 = (cocos2d::CCArray *)cocos2d::CCArray::create(v525);
v527 = GJRewardObject::createItemUnlock((UnlockType)1, 359);
cocos2d::CCArray::addObject(v526, v527);
v528 = GJRewardObject::createItemUnlock(Col2, 102);
cocos2d::CCArray::addObject(v526, v528);
v529 = GJRewardObject::create(MetalShard, 10, 0);
cocos2d::CCArray::addObject(v526, v529);
v530 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v526, v530);
v531 = a1->m_allSpecialChests;
v532 = GJRewardItem::createWithObjects(Key25Treasure, v526);
GameStatsManager::getPathRewardKey(a1, 8u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v531, v532);
v533 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v665 = (unsigned int *)(v774 - 8);
do
v666 = __ldaxr(v665);
while ( __stlxr(v666 - 1, v665) );
}
else
{
v666 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v666 - 1;
}
if ( v666 <= 0 )
operator delete(v533);
}
v534 = (cocos2d::CCArray *)cocos2d::CCArray::create(v533);
v535 = GJRewardObject::createItemUnlock((UnlockType)8, 66);
cocos2d::CCArray::addObject(v534, v535);
v536 = GJRewardObject::create(Diamonds, 300, 0);
cocos2d::CCArray::addObject(v534, v536);
v537 = GJRewardObject::create(LightShard, 10, 0);
cocos2d::CCArray::addObject(v534, v537);
v538 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v534, v538);
v539 = a1->m_allSpecialChests;
v540 = GJRewardItem::createWithObjects(Key25Treasure, v534);
GameStatsManager::getPathRewardKey(a1, 9u, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v539, v540);
v541 = (cocos2d::CCArray *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v681 = (unsigned int *)(v774 - 8);
do
v682 = __ldaxr(v681);
while ( __stlxr(v682 - 1, v681) );
}
else
{
v682 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v682 - 1;
}
if ( v682 <= 0 )
operator delete(v541);
}
v542 = (cocos2d::CCArray *)cocos2d::CCArray::create(v541);
v543 = GJRewardObject::createItemUnlock(GJItem|0x1, 36);
cocos2d::CCArray::addObject(v542, v543);
v544 = GJRewardObject::createItemUnlock(Col1, 76);
cocos2d::CCArray::addObject(v542, v544);
v545 = GJRewardObject::create(SoulShard, 10, 0);
cocos2d::CCArray::addObject(v542, v545);
v546 = GJRewardObject::create(BonusKey, 1, 0);
cocos2d::CCArray::addObject(v542, v546);
v547 = a1->m_allSpecialChests;
v548 = GJRewardItem::createWithObjects(Key25Treasure, v542);
GameStatsManager::getPathRewardKey(a1, 0xAu, (__int64)&v774);
cocos2d::CCDictionary::setObject((int)v547, v548);
LODWORD(v549) = v774;
v550 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v549 = (unsigned int *)(v774 - 8);
do
v651 = __ldaxr(v549);
while ( __stlxr(v651 - 1, v549) );
}
else
{
v651 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v651 - 1;
}
if ( v651 <= 0 )
operator delete(v550);
}
v551 = (char *)&dword_0 + 1;
do
{
GJPathsLayer::nameForPath((GJPathsLayer *)(unsigned int)v551, (int)v549);
sub_583094("Complete the Path of ", &v771, &v772);
GameStatsManager::getPathRewardKey(a1, (unsigned int)v551, (__int64)&v773);
sub_D18D28(&v774);
GameStatsManager::addSpecialRewardDescription((__int64)a1, (const void **)&v773.m_data.m_data, (__int64)&v774);
v555 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v556 = (unsigned int *)(v774 - 8);
do
v557 = __ldaxr(v556);
while ( __stlxr(v557 - 1, v556) );
}
else
{
v557 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v557 - 1;
}
if ( v557 <= 0 )
operator delete(v555);
}
v552 = (char *)v773.m_data.m_data - 24;
if ( (__int64 *)v773.m_data.m_data - 3 != &qword_124B6B0 )
{
if ( &pthread_create )
{
v577 = (unsigned int *)((char *)v773.m_data.m_data - 8);
do
v578 = __ldaxr(v577);
while ( __stlxr(v578 - 1, v577) );
}
else
{
v578 = *((_DWORD *)v773.m_data.m_data - 2);
*((_DWORD *)v773.m_data.m_data - 2) = v578 - 1;
}
if ( v578 <= 0 )
operator delete(v552);
}
v553 = (void *)(v772 - 24);
if ( (__int64 *)(v772 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v575 = (unsigned int *)(v772 - 8);
do
v576 = __ldaxr(v575);
while ( __stlxr(v576 - 1, v575) );
}
else
{
v576 = *(_DWORD *)(v772 - 8);
*(_DWORD *)(v772 - 8) = v576 - 1;
}
if ( v576 <= 0 )
operator delete(v553);
}
LODWORD(v549) = v771;
v554 = (void *)(v771 - 24);
if ( (__int64 *)(v771 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v549 = (unsigned int *)(v771 - 8);
do
v574 = __ldaxr(v549);
while ( __stlxr(v574 - 1, v549) );
}
else
{
v574 = *(_DWORD *)(v771 - 8);
*(_DWORD *)(v771 - 8) = v574 - 1;
}
if ( v574 <= 0 )
operator delete(v554);
}
LODWORD(v551) = (_DWORD)v551 + 1;
}
while ( (_DWORD)v551 != 11 );
v774 = 0x110000000DLL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x2800000009LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x440000000DLL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x2C00000007LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x3700000007LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x5300000007LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x5C00000007LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x3F00000006LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x7400000006LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x8A00000006LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x9300000006LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x3200000005LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x3F00000005LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x5A00000005LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x5B00000005LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x7200000005LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x7900000004LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x9200000004LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x9B00000004LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x9E00000004LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x2500000008LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0xD200000001LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0xE700000001LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x13500000001LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x15700000001LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x18600000001LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x19900000001LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x1B800000001LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x1BD00000001LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x1E500000001LL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x60000000ELL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v774 = 0x80000000ELL;
std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique>(
&a1->m_wraithIcons._M_t._M_impl._M_key_compare.pad,
&v774);
v564 = cocos2d::CCDictionary::allKeys(a1->m_allSpecialChests);
if ( v564 )
{
data = v564->data;
if ( data->num )
{
arr = (cocos2d::CCString **)data->arr;
v567 = 8LL * data->num - 8;
v568 = (char *)arr + v567;
if ( arr <= (cocos2d::CCString **)((char *)arr + v567) )
{
for ( j = *arr; *arr; j = *arr )
{
CString = (char *)cocos2d::CCString::getCString(j);
sub_D153B8((unsigned int)v769 + 120, CString);
v571 = cocos2d::CCDictionary::objectForKey(a1->m_allSpecialChests, &v773);
sub_D18D28(&v774);
GameStatsManager::linkSpecialChestUnlocks(a1, v571, (cocos2d::CCString *)&v774);
v572 = (void *)(v774 - 24);
if ( (__int64 *)(v774 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v581 = (unsigned int *)(v774 - 8);
do
v582 = __ldaxr(v581);
while ( __stlxr(v582 - 1, v581) );
}
else
{
v582 = *(_DWORD *)(v774 - 8);
*(_DWORD *)(v774 - 8) = v582 - 1;
}
if ( v582 <= 0 )
operator delete(v572);
}
v573 = (char *)v773.m_data.m_data - 24;
if ( (__int64 *)v773.m_data.m_data - 3 != &qword_124B6B0 )
{
if ( &pthread_create )
{
v579 = (unsigned int *)((char *)v773.m_data.m_data - 8);
do
v580 = __ldaxr(v579);
while ( __stlxr(v580 - 1, v579) );
}
else
{
v580 = *((_DWORD *)v773.m_data.m_data - 2);
*((_DWORD *)v773.m_data.m_data - 2) = v580 - 1;
}
if ( v580 <= 0 )
operator delete(v573);
}
if ( v568 < (char *)++arr )
break;
}
}
}
}
}