// // GJBaseGameLayer::init from 0x892ebc to 0x894594 (5848 bytes) // // 6 xrefs: // > PlayLayer::init @ 0x5e600c // > LevelEditorLayer::init @ 0x67c1ac // > @ 0x573d8 // > @ 0x1148570 // > @ 0x1154de0 // > @ 0x1190260 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool GJBaseGameLayer::init(GJBaseGameLayer *a1) { bool v2; // w23 unsigned __int64 v4; // x0 __int64 *v5; // x2 unsigned __int64 v6; // x0 size_t v7; // x22 _QWORD *v8; // x26 unsigned __int64 v9; // x0 size_t v10; // x22 __int64 *v11; // x26 unsigned __int64 v12; // x0 size_t v13; // x22 __int64 *v14; // x26 unsigned __int64 v15; // x0 size_t v16; // x22 __int64 *v17; // x26 unsigned __int64 v18; // x0 size_t v19; // x22 __int64 *v20; // x26 unsigned __int64 v21; // x0 size_t v22; // x22 __int64 *v23; // x26 unsigned __int64 v24; // x0 __int64 *v25; // x2 unsigned __int64 v26; // x0 __int64 *v27; // x3 unsigned __int64 v28; // x0 size_t v29; // x22 __int64 *v30; // x26 unsigned __int64 v31; // x0 float v32; // s0 float v33; // s1 size_t v34; // x22 __int64 *v35; // x26 _QWORD *v36; // x22 void *v37; // x0 _QWORD *v38; // x25 void *v39; // x0 __int64 v40; // x22 void *v41; // x0 __int64 v42; // x25 void *v43; // x26 void *v44; // x0 __int64 v45; // x22 void *v46; // x0 __int64 v47; // x25 void *v48; // x26 void *v49; // x0 __int64 v50; // x22 void *v51; // x0 __int64 v52; // x25 void *v53; // x26 void *v54; // x0 __int64 v55; // x22 void *v56; // x0 __int64 v57; // x25 void *v58; // x26 void *v59; // x0 __int64 v60; // x22 void *v61; // x0 __int64 v62; // x25 void *v63; // x26 void *v64; // x0 __int64 v65; // x22 void *v66; // x0 __int64 v67; // x22 void *v68; // x0 __int64 v69; // x25 _QWORD *v70; // x22 _QWORD *v71; // x24 __int64 v72; // x27 void *v73; // x0 void *v74; // x0 __int64 v75; // x22 void *v76; // x0 cocos2d::CCArray *v77; // x0 cocos2d::CCArray *v78; // x0 cocos2d::CCArray *v79; // x0 cocos2d::CCArray *v80; // x0 GameManager *v81; // x0 GameManager *v82; // x0 GameManager *v83; // x0 GameManager *v84; // x0 GameManager *v85; // x0 _BOOL8 GameVariable; // x0 cocos2d::CCArray *v87; // x0 cocos2d::CCNode *v88; // x0 cocos2d::CCNode *v89; // x0 cocos2d::CCNode *m_areaTransformNode; // x2 cocos2d::CCNode *v91; // x0 cocos2d::CCNode *m_areaSkewNode; // x2 cocos2d::CCNode *v93; // x0 cocos2d::CCNode *m_areaScaleNode; // x2 cocos2d::CCNode *v95; // x0 cocos2d::CCNode *v96; // x2 cocos2d::CCNode *v97; // x0 cocos2d::CCNode *v98; // x0 cocos2d::CCNode *v99; // x0 cocos2d::CCNode *v100; // x0 cocos2d::CCNode *m_objectParent; // x2 cocos2d::CCDictionary *v102; // x0 cocos2d::CCArray *v103; // x0 cocos2d::CCArray *v104; // x0 cocos2d::CCArray *v105; // x0 cocos2d::CCArray *v106; // x0 unsigned int v107; // w1 cocos2d::CCArray *v108; // x0 float v109; // s3 float v110; // s4 OBB2D *v111; // x0 float v112; // s3 float v113; // s4 OBB2D *v114; // x0 GJEffectManager *v115; // x0 cocos2d::CCArray *m_effectManager; // x0 cocos2d::CCArray *v117; // x0 cocos2d::CCArray *v118; // x0 cocos2d::CCArray *v119; // x0 cocos2d::CCDictionary *v120; // x0 cocos2d::CCNode *v121; // x0 cocos2d::CCDictionary *v122; // x0 cocos2d::CCDictionary *v123; // x0 cocos2d::CCDictionary *v124; // x0 cocos2d::CCDictionary *v125; // x0 cocos2d::CCDictionary *v126; // x0 cocos2d::CCDictionary *v127; // x0 cocos2d::CCDictionary *v128; // x0 cocos2d::CCDictionary *v129; // x0 cocos2d::CCArray **m_start; // x0 unsigned __int64 v131; // x1 cocos2d::CCArray **v132; // x0 unsigned __int64 v133; // x1 cocos2d::CCArray **v134; // x0 unsigned __int64 v135; // x1 __int64 i; // x0 int *v137; // x0 unsigned __int64 v138; // x1 int *v139; // x0 unsigned __int64 v140; // x1 GJBaseGameLayer *p_m_varianceValues; // x1 unsigned __int64 v142; // x2 cocos2d::CCNode *v143; // x0 cocos2d::CCNode_vtbl *v144; // x2 cocos2d::CCMoveBy *v145; // x0 cocos2d::CCEaseInOut *v146; // x22 cocos2d::CCMoveBy *v147; // x0 cocos2d::CCEaseInOut *v148; // x0 cocos2d::CCNode *m_hoverNode; // x20 cocos2d::CCActionInterval *v150; // x0 cocos2d::CCRepeatForever *v151; // x0 cocos2d::CCDictionary *v152; // x0 cocos2d::CCDictionary *v153; // x0 cocos2d::CCDictionary *v154; // x0 cocos2d::CCDictionary *v155; // x0 cocos2d::CCArray *v156; // x0 cocos2d::CCArray *v157; // x0 cocos2d::CCArray *v158; // x0 cocos2d::CCArray *v159; // x0 UILayer *v160; // x0 GJBaseGameLayer_vtbl *v161; // x3 std::array *v162; // x24 cocos2d::CCPoint *v163; // x20 GameManager *v164; // x0 bool v165; // w0 int *v166; // x1 cocos2d::CCArray **v167; // x1 cocos2d::CCArray **m_finish; // x1 cocos2d::CCPoint v169; // [xsp+70h] [xbp+70h] BYREF cocos2d::CCPoint v170; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCPoint v171; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCPoint v172; // [xsp+88h] [xbp+88h] BYREF cocos2d::CCPoint v173; // [xsp+90h] [xbp+90h] BYREF cocos2d::CCPoint v174; // [xsp+98h] [xbp+98h] BYREF cocos2d::CCPoint v175; // [xsp+A0h] [xbp+A0h] BYREF cocos2d::CCPoint v176; // [xsp+A8h] [xbp+A8h] BYREF cocos2d::CCPoint v177; // [xsp+B0h] [xbp+B0h] BYREF cocos2d::CCPoint v178; // [xsp+B8h] [xbp+B8h] BYREF cocos2d::CCPoint v179; // [xsp+C0h] [xbp+C0h] BYREF cocos2d::CCPoint v180; // [xsp+C8h] [xbp+C8h] BYREF cocos2d::CCPoint v181; // [xsp+D0h] [xbp+D0h] BYREF cocos2d::CCPoint v182; // [xsp+D8h] [xbp+D8h] BYREF cocos2d::CCPoint v183; // [xsp+E0h] [xbp+E0h] BYREF cocos2d::CCPoint v184; // [xsp+E8h] [xbp+E8h] BYREF cocos2d::CCPoint v185; // [xsp+F0h] [xbp+F0h] BYREF cocos2d::CCPoint v186; // [xsp+F8h] [xbp+F8h] BYREF cocos2d::CCPoint v187; // [xsp+100h] [xbp+100h] BYREF cocos2d::CCPoint v188; // [xsp+108h] [xbp+108h] BYREF cocos2d::CCPoint v189; // [xsp+110h] [xbp+110h] BYREF cocos2d::CCPoint v190; // [xsp+118h] [xbp+118h] BYREF cocos2d::CCPoint v191; // [xsp+120h] [xbp+120h] BYREF cocos2d::CCPoint v192; // [xsp+128h] [xbp+128h] BYREF cocos2d::CCPoint v193; // [xsp+130h] [xbp+130h] BYREF cocos2d::CCPoint v194; // [xsp+138h] [xbp+138h] BYREF cocos2d::CCPoint v195; // [xsp+140h] [xbp+140h] BYREF cocos2d::CCPoint v196; // [xsp+148h] [xbp+148h] BYREF cocos2d::CCPoint v197; // [xsp+150h] [xbp+150h] BYREF cocos2d::CCPoint v198; // [xsp+158h] [xbp+158h] BYREF cocos2d::CCPoint v199; // [xsp+160h] [xbp+160h] BYREF char v200; // [xsp+168h] [xbp+168h] int v201; // [xsp+16Ch] [xbp+16Ch] char v202; // [xsp+170h] [xbp+170h] int v203; // [xsp+174h] [xbp+174h] char v204; // [xsp+178h] [xbp+178h] cocos2d::CCPoint v205; // [xsp+17Ch] [xbp+17Ch] BYREF int v206; // [xsp+184h] [xbp+184h] int v207; // [xsp+188h] [xbp+188h] int v208; // [xsp+18Ch] [xbp+18Ch] char v209; // [xsp+190h] [xbp+190h] char v210; // [xsp+191h] [xbp+191h] float v211; // [xsp+194h] [xbp+194h] float v212; // [xsp+198h] [xbp+198h] int v213; // [xsp+19Ch] [xbp+19Ch] int v214; // [xsp+1A0h] [xbp+1A0h] int v215; // [xsp+1A4h] [xbp+1A4h] int v216; // [xsp+1A8h] [xbp+1A8h] int v217; // [xsp+1ACh] [xbp+1ACh] int v218; // [xsp+1B0h] [xbp+1B0h] int v219; // [xsp+1B4h] [xbp+1B4h] float v220; // [xsp+1B8h] [xbp+1B8h] int v221; // [xsp+1C0h] [xbp+1C0h] char v222; // [xsp+1C4h] [xbp+1C4h] int v223; // [xsp+1C8h] [xbp+1C8h] int v224; // [xsp+1CCh] [xbp+1CCh] int v225; // [xsp+1D0h] [xbp+1D0h] int v226; // [xsp+1D4h] [xbp+1D4h] char v227; // [xsp+1D8h] [xbp+1D8h] char v228; // [xsp+1D9h] [xbp+1D9h] char v229; // [xsp+1DAh] [xbp+1DAh] int v230; // [xsp+1DCh] [xbp+1DCh] int v231; // [xsp+1E0h] [xbp+1E0h] int v232; // [xsp+1E4h] [xbp+1E4h] float v233; // [xsp+1E8h] [xbp+1E8h] int v234; // [xsp+1ECh] [xbp+1ECh] int v235; // [xsp+1F0h] [xbp+1F0h] char v236; // [xsp+1F4h] [xbp+1F4h] float v237; // [xsp+1F8h] [xbp+1F8h] int v238; // [xsp+1FCh] [xbp+1FCh] float v239; // [xsp+200h] [xbp+200h] int v240; // [xsp+204h] [xbp+204h] int v241; // [xsp+208h] [xbp+208h] _QWORD v242[4]; // [xsp+210h] [xbp+210h] BYREF float v243; // [xsp+230h] [xbp+230h] BYREF __int64 v244; // [xsp+238h] [xbp+238h] __int64 v245; // [xsp+240h] [xbp+240h] BYREF _QWORD v246[4]; // [xsp+248h] [xbp+248h] BYREF float v247; // [xsp+268h] [xbp+268h] BYREF __int64 v248; // [xsp+270h] [xbp+270h] _QWORD v249[4]; // [xsp+278h] [xbp+278h] BYREF int v250; // [xsp+298h] [xbp+298h] int v251; // [xsp+29Ch] [xbp+29Ch] int v252; // [xsp+2A0h] [xbp+2A0h] int v253; // [xsp+2A4h] [xbp+2A4h] int v254; // [xsp+2A8h] [xbp+2A8h] int v255; // [xsp+2ACh] [xbp+2ACh] int v256; // [xsp+2B0h] [xbp+2B0h] int v257; // [xsp+2B4h] [xbp+2B4h] __int64 v258; // [xsp+2B8h] [xbp+2B8h] __int64 v259; // [xsp+2C0h] [xbp+2C0h] cocos2d::CCPoint v260; // [xsp+2C8h] [xbp+2C8h] BYREF char v261; // [xsp+2D0h] [xbp+2D0h] int v262; // [xsp+2D4h] [xbp+2D4h] char v263; // [xsp+2D8h] [xbp+2D8h] char v264; // [xsp+2D9h] [xbp+2D9h] char v265; // [xsp+2DAh] [xbp+2DAh] int v266; // [xsp+2DCh] [xbp+2DCh] _QWORD v267[4]; // [xsp+2E0h] [xbp+2E0h] BYREF float v268; // [xsp+300h] [xbp+300h] BYREF __int64 v269; // [xsp+308h] [xbp+308h] __int64 v270; // [xsp+310h] [xbp+310h] BYREF int v271; // [xsp+318h] [xbp+318h] int v272; // [xsp+31Ch] [xbp+31Ch] int v273; // [xsp+320h] [xbp+320h] int v274; // [xsp+324h] [xbp+324h] _QWORD v275[4]; // [xsp+328h] [xbp+328h] BYREF float v276; // [xsp+348h] [xbp+348h] BYREF __int64 v277; // [xsp+350h] [xbp+350h] __int64 v278; // [xsp+358h] [xbp+358h] BYREF void *v279; // [xsp+360h] [xbp+360h] __int64 v280; // [xsp+368h] [xbp+368h] __int64 v281; // [xsp+370h] [xbp+370h] int v282; // [xsp+378h] [xbp+378h] int v283; // [xsp+37Ch] [xbp+37Ch] int v284; // [xsp+380h] [xbp+380h] cocos2d::CCPoint v285; // [xsp+384h] [xbp+384h] BYREF int v286; // [xsp+38Ch] [xbp+38Ch] int v287; // [xsp+390h] [xbp+390h] char v288; // [xsp+394h] [xbp+394h] __int64 v289; // [xsp+398h] [xbp+398h] BYREF int v290; // [xsp+3A0h] [xbp+3A0h] BYREF __int64 v291; // [xsp+3A8h] [xbp+3A8h] int *v292; // [xsp+3B0h] [xbp+3B0h] int *v293; // [xsp+3B8h] [xbp+3B8h] __int64 v294; // [xsp+3C0h] [xbp+3C0h] int v295; // [xsp+3C8h] [xbp+3C8h] cocos2d::CCPoint v296; // [xsp+3CCh] [xbp+3CCh] BYREF cocos2d::CCPoint v297; // [xsp+3D4h] [xbp+3D4h] BYREF char v298; // [xsp+3DCh] [xbp+3DCh] char v299; // [xsp+3DDh] [xbp+3DDh] char v300; // [xsp+3DEh] [xbp+3DEh] int v301; // [xsp+3E0h] [xbp+3E0h] char v302; // [xsp+3E4h] [xbp+3E4h] char v303; // [xsp+3E5h] [xbp+3E5h] int v304; // [xsp+3E8h] [xbp+3E8h] int v305; // [xsp+3ECh] [xbp+3ECh] int v306; // [xsp+3F0h] [xbp+3F0h] __int64 v307; // [xsp+3F8h] [xbp+3F8h] cocos2d::CCPoint v308; // [xsp+400h] [xbp+400h] BYREF int v309; // [xsp+408h] [xbp+408h] _QWORD v310[4]; // [xsp+410h] [xbp+410h] BYREF float v311; // [xsp+430h] [xbp+430h] BYREF __int64 v312; // [xsp+438h] [xbp+438h] __int64 v313; // [xsp+440h] [xbp+440h] BYREF __int64 v314; // [xsp+448h] [xbp+448h] BYREF int v315; // [xsp+450h] [xbp+450h] BYREF __int64 v316; // [xsp+458h] [xbp+458h] int *v317; // [xsp+460h] [xbp+460h] int *v318; // [xsp+468h] [xbp+468h] __int64 v319; // [xsp+470h] [xbp+470h] __int64 v320; // [xsp+478h] [xbp+478h] BYREF int v321; // [xsp+480h] [xbp+480h] BYREF __int64 v322; // [xsp+488h] [xbp+488h] int *v323; // [xsp+490h] [xbp+490h] int *v324; // [xsp+498h] [xbp+498h] __int64 v325; // [xsp+4A0h] [xbp+4A0h] _QWORD v326[4]; // [xsp+4A8h] [xbp+4A8h] BYREF float v327; // [xsp+4C8h] [xbp+4C8h] BYREF __int64 v328; // [xsp+4D0h] [xbp+4D0h] __int64 v329; // [xsp+4D8h] [xbp+4D8h] BYREF _QWORD v330[4]; // [xsp+4E0h] [xbp+4E0h] BYREF float v331; // [xsp+500h] [xbp+500h] BYREF __int64 v332; // [xsp+508h] [xbp+508h] __int64 v333; // [xsp+510h] [xbp+510h] BYREF void *v334; // [xsp+518h] [xbp+518h] __int64 v335; // [xsp+520h] [xbp+520h] __int64 v336; // [xsp+528h] [xbp+528h] void *v337; // [xsp+530h] [xbp+530h] __int64 v338; // [xsp+538h] [xbp+538h] __int64 v339; // [xsp+540h] [xbp+540h] void *v340; // [xsp+548h] [xbp+548h] void *v341; // [xsp+550h] [xbp+550h] __int64 v342; // [xsp+558h] [xbp+558h] void *v343; // [xsp+560h] [xbp+560h] void *v344; // [xsp+568h] [xbp+568h] __int64 v345; // [xsp+570h] [xbp+570h] void *v346; // [xsp+578h] [xbp+578h] void *v347; // [xsp+580h] [xbp+580h] __int64 v348; // [xsp+588h] [xbp+588h] void *v349; // [xsp+590h] [xbp+590h] void *v350; // [xsp+598h] [xbp+598h] __int64 v351; // [xsp+5A0h] [xbp+5A0h] void *v352; // [xsp+5A8h] [xbp+5A8h] void *v353; // [xsp+5B0h] [xbp+5B0h] __int64 v354; // [xsp+5B8h] [xbp+5B8h] _QWORD v355[4]; // [xsp+5C0h] [xbp+5C0h] BYREF float v356; // [xsp+5E0h] [xbp+5E0h] BYREF __int64 v357; // [xsp+5E8h] [xbp+5E8h] __int64 v358; // [xsp+5F0h] [xbp+5F0h] BYREF char v359; // [xsp+5F8h] [xbp+5F8h] void *v360; // [xsp+600h] [xbp+600h] __int64 v361; // [xsp+608h] [xbp+608h] __int64 v362; // [xsp+610h] [xbp+610h] void *v363; // [xsp+618h] [xbp+618h] __int64 v364; // [xsp+620h] [xbp+620h] __int64 v365; // [xsp+628h] [xbp+628h] void *v366; // [xsp+630h] [xbp+630h] __int64 v367; // [xsp+638h] [xbp+638h] __int64 v368; // [xsp+640h] [xbp+640h] char v369; // [xsp+648h] [xbp+648h] char v370; // [xsp+649h] [xbp+649h] int v371; // [xsp+64Ch] [xbp+64Ch] _QWORD v372[4]; // [xsp+650h] [xbp+650h] BYREF float v373; // [xsp+670h] [xbp+670h] BYREF __int64 v374; // [xsp+678h] [xbp+678h] __int64 v375; // [xsp+680h] [xbp+680h] BYREF __int64 v376; // [xsp+688h] [xbp+688h] BYREF int v377; // [xsp+690h] [xbp+690h] BYREF __int64 v378; // [xsp+698h] [xbp+698h] int *v379; // [xsp+6A0h] [xbp+6A0h] int *v380; // [xsp+6A8h] [xbp+6A8h] __int64 v381; // [xsp+6B0h] [xbp+6B0h] _QWORD v382[4]; // [xsp+6B8h] [xbp+6B8h] BYREF float v383; // [xsp+6D8h] [xbp+6D8h] BYREF __int64 v384; // [xsp+6E0h] [xbp+6E0h] __int64 v385; // [xsp+6E8h] [xbp+6E8h] BYREF void *v386; // [xsp+6F0h] [xbp+6F0h] unsigned __int64 v387; // [xsp+6F8h] [xbp+6F8h] void *v388; // [xsp+700h] [xbp+700h] __int64 v389; // [xsp+708h] [xbp+708h] float v390; // [xsp+710h] [xbp+710h] BYREF __int64 v391; // [xsp+718h] [xbp+718h] __int64 v392; // [xsp+720h] [xbp+720h] BYREF void *p; // [xsp+728h] [xbp+728h] __int64 v394; // [xsp+730h] [xbp+730h] __int64 v395; // [xsp+738h] [xbp+738h] char v396; // [xsp+740h] [xbp+740h] int v397; // [xsp+744h] [xbp+744h] int v398; // [xsp+748h] [xbp+748h] int v399; // [xsp+74Ch] [xbp+74Ch] char v400; // [xsp+750h] [xbp+750h] int v401; // [xsp+754h] [xbp+754h] char v402; // [xsp+758h] [xbp+758h] int v403; // [xsp+75Ch] [xbp+75Ch] int v404; // [xsp+760h] [xbp+760h] cocos2d::CCPoint v405; // 0:s0.4,4:s1.4 cocos2d::CCPoint v406; // 0:s0.4,4:s1.4 v2 = cocos2d::CCLayer::init(a1); if ( !v2 ) return v2; GameObject::resetMID(); dword_1242DD0 = 0; v169.x = 1.0; v169.y = 1.0; cocos2d::CCPoint::CCPoint(&v170); cocos2d::CCPoint::CCPoint(&v171); cocos2d::CCPoint::CCPoint(&v172); cocos2d::CCPoint::CCPoint(&v173); cocos2d::CCPoint::CCPoint(&v174); cocos2d::CCPoint::CCPoint(&v175); cocos2d::CCPoint::CCPoint(&v176); cocos2d::CCPoint::CCPoint(&v177); cocos2d::CCPoint::CCPoint(&v178); cocos2d::CCPoint::CCPoint(&v179); cocos2d::CCPoint::CCPoint(&v180); cocos2d::CCPoint::CCPoint(&v181); cocos2d::CCPoint::CCPoint(&v182); cocos2d::CCPoint::CCPoint(&v183); cocos2d::CCPoint::CCPoint(&v184); cocos2d::CCPoint::CCPoint(&v185); cocos2d::CCPoint::CCPoint(&v186); cocos2d::CCPoint::CCPoint(&v187); cocos2d::CCPoint::CCPoint(&v188); cocos2d::CCPoint::CCPoint(&v189); cocos2d::CCPoint::CCPoint(&v190); cocos2d::CCPoint::CCPoint(&v191); cocos2d::CCPoint::CCPoint(&v192); cocos2d::CCPoint::CCPoint(&v193); cocos2d::CCPoint::CCPoint(&v194); cocos2d::CCPoint::CCPoint(&v195); cocos2d::CCPoint::CCPoint(&v196); cocos2d::CCPoint::CCPoint(&v197); cocos2d::CCPoint::CCPoint(&v198); cocos2d::CCPoint::CCPoint(&v199); v200 = 0; v201 = 0; v202 = 0; v203 = 0; v204 = 0; cocos2d::CCPoint::CCPoint(&v205); v236 = 1; v209 = 0; v210 = 0; v230 = 1036831949; v222 = 0; v231 = 1036831949; v227 = 0; v228 = 0; v229 = 0; v206 = 0; v207 = 0; v208 = 0; v211 = 0.5; v212 = 10.0; v213 = 0; v214 = 0; v215 = 0; v216 = 0; v217 = 0; v218 = 0; v219 = 0; v221 = 0; v223 = 0; v224 = 0; v225 = 0; v226 = 0; v232 = 1050253722; v233 = 0.5; v234 = 0; v235 = 0; v220 = 1.0; v237 = 1.0; v242[2] = 0; v242[3] = 0; v244 = 0; v240 = 0; v238 = 0; v241 = 0; v239 = 1.0; v243 = 1.0; v4 = sub_D146DC(&v243, 10); v242[1] = v4; if ( v4 == 1 ) { v245 = 0; v5 = &v245; } else { v5 = (__int64 *)sub_856358(v4); } v242[0] = v5; v246[2] = 0; v246[3] = 0; v248 = 0; v247 = 1.0; v6 = sub_D146DC(&v247, 10); v246[1] = v6; if ( v6 == 1 ) { v249[0] = 0; v8 = v249; } else { if ( v6 > 0x1FFFFFFFFFFFFFFFLL ) sub_D1383C(); v7 = 8 * v6; v8 = (_QWORD *)operator new(8 * v6); memset(v8, 0, v7); } v246[0] = v8; v250 = 0; v251 = 0; memset(&v249[1], 0, 24); v252 = 0; v253 = 0; v254 = 0; v255 = 0; v256 = 0; v257 = 0; v258 = 0; v259 = 0; cocos2d::CCPoint::CCPoint(&v260); v267[2] = 0; v267[3] = 0; v269 = 0; v262 = 0; v261 = 0; v266 = 0; v263 = 0; v264 = 0; v265 = 0; v268 = 1.0; v9 = sub_D146DC(&v268, 10); v267[1] = v9; if ( v9 == 1 ) { v270 = 0; v11 = &v270; } else { if ( v9 > 0x1FFFFFFFFFFFFFFFLL ) sub_D1383C(); v10 = 8 * v9; v11 = (__int64 *)operator new(8 * v9); memset(v11, 0, v10); } v267[0] = v11; v275[2] = 0; v275[3] = 0; v277 = 0; v271 = 0; v272 = 0; v273 = 0; v274 = 0; v276 = 1.0; v12 = sub_D146DC(&v276, 10); v275[1] = v12; if ( v12 == 1 ) { v278 = 0; v14 = &v278; } else { if ( v12 > 0x1FFFFFFFFFFFFFFFLL ) sub_D1383C(); v13 = 8 * v12; v14 = (__int64 *)operator new(8 * v12); memset(v14, 0, v13); } v275[0] = v14; v279 = nullptr; v280 = 0; v281 = 0; v282 = 0; v283 = 0; v284 = 0; cocos2d::CCPoint::CCPoint(&v285); v290 = 0; v291 = 0; v294 = 0; v292 = &v290; v293 = &v290; v288 = 0; v286 = 0; v287 = 0; v295 = 0; cocos2d::CCPoint::CCPoint(&v296); cocos2d::CCPoint::CCPoint(&v297); v298 = 0; v299 = 0; v300 = 0; v301 = 0; v302 = 0; v304 = 0; v303 = 0; v305 = 0; v306 = 0; v307 = 0; cocos2d::CCPoint::CCPoint(&v308); v310[2] = 0; v310[3] = 0; v312 = 0; v309 = 0; v311 = 1.0; v15 = sub_D146DC(&v311, 10); v310[1] = v15; if ( v15 == 1 ) { v313 = 0; v17 = &v313; } else { if ( v15 > 0x1FFFFFFFFFFFFFFFLL ) sub_D1383C(); v16 = 8 * v15; v17 = (__int64 *)operator new(8 * v15); memset(v17, 0, v16); } v310[0] = v17; v315 = 0; v316 = 0; v319 = 0; v317 = &v315; v318 = &v315; v321 = 0; v322 = 0; v325 = 0; v323 = &v321; v324 = &v321; v326[2] = 0; v326[3] = 0; v328 = 0; v327 = 1.0; v18 = sub_D146DC(&v327, 10); v326[1] = v18; if ( v18 == 1 ) { v329 = 0; v20 = &v329; } else { if ( v18 > 0x1FFFFFFFFFFFFFFFLL ) sub_D1383C(); v19 = 8 * v18; v20 = (__int64 *)operator new(8 * v18); memset(v20, 0, v19); } v326[0] = v20; v330[2] = 0; v330[3] = 0; v332 = 0; v331 = 1.0; v21 = sub_D146DC(&v331, 10); v330[1] = v21; if ( v21 == 1 ) { v333 = 0; v23 = &v333; } else { if ( v21 > 0x1FFFFFFFFFFFFFFFLL ) sub_D1383C(); v22 = 8 * v21; v23 = (__int64 *)operator new(8 * v21); memset(v23, 0, v22); } v330[0] = v23; v334 = nullptr; v335 = 0; v336 = 0; v337 = nullptr; v338 = 0; v339 = 0; v340 = nullptr; v341 = nullptr; v342 = 0; v343 = nullptr; v344 = nullptr; v345 = 0; v346 = nullptr; v347 = nullptr; v348 = 0; v349 = nullptr; v350 = nullptr; v351 = 0; v352 = nullptr; v353 = nullptr; v354 = 0; v355[2] = 0; v355[3] = 0; v357 = 0; v356 = 1.0; v24 = sub_D146DC(&v356, 10); v355[1] = v24; if ( v24 == 1 ) { v358 = 0; v25 = &v358; } else { v25 = (__int64 *)sub_8563A4(v24); } v355[0] = v25; v359 = 0; v360 = nullptr; v361 = 0; v371 = 0; v362 = 0; v363 = nullptr; v364 = 0; v365 = 0; v366 = nullptr; v367 = 0; v368 = 0; v369 = 0; v370 = 0; v372[2] = 0; v372[3] = 0; v374 = 0; v373 = 1.0; v26 = sub_D146DC(&v373, 10); v372[1] = v26; if ( v26 == 1 ) { v375 = 0; v27 = &v375; } else { v27 = (__int64 *)sub_85643C(v26); } v372[0] = v27; v377 = 0; v378 = 0; v381 = 0; v379 = &v377; v380 = &v377; v382[2] = 0; v382[3] = 0; v383 = 1.0; v384 = 0; v28 = sub_D146DC(&v383, 10); v382[1] = v28; if ( v28 == 1 ) { v385 = 0; v30 = &v385; } else { if ( v28 > 0x1FFFFFFFFFFFFFFFLL ) sub_D1383C(); v29 = 8 * v28; v30 = (__int64 *)operator new(8 * v28); memset(v30, 0, v29); } v382[0] = v30; v388 = nullptr; v389 = 0; v390 = 1.0; v391 = 0; v31 = sub_D146DC(&v390, 10); v387 = v31; if ( v31 == 1 ) { v392 = 0; v35 = &v392; } else { if ( v31 > 0x1FFFFFFFFFFFFFFFLL ) sub_D1383C(); v34 = 8 * v31; v35 = (__int64 *)operator new(8 * v31); memset(v35, 0, v34); } v386 = v35; p = nullptr; v394 = 0; v395 = 0; v396 = 0; v397 = 0; v398 = 0; v399 = 0; v400 = 0; v401 = 0; v402 = 0; v403 = 0; v404 = 0; GJGameState::operator=(&a1->m_gameState.m_cameraZoom, (__int64)&v169, v32, v33); if ( p ) operator delete(p); v36 = v388; if ( v388 ) { do { v37 = (void *)v36[2]; v38 = (_QWORD *)*v36; if ( v37 ) operator delete(v37); v39 = v36; v36 = v38; operator delete(v39); } while ( v38 ); } memset(v386, 0, 8 * v387); v389 = 0; v388 = nullptr; if ( v386 && v386 != &v392 ) operator delete(v386); std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::~_Hashtable((__int64)v382); v40 = v378; while ( v40 ) { std::_Rb_tree,std::pair const,SFXTriggerInstance>,std::_Select1st const,SFXTriggerInstance>>,std::less>,std::allocator const,SFXTriggerInstance>>>::_M_erase( (__int64)&v376, *(_QWORD **)(v40 + 24)); v41 = (void *)v40; v40 = *(_QWORD *)(v40 + 16); operator delete(v41); } std::_Hashtable>,std::allocator>>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::~_Hashtable((__int64)v372); if ( v366 ) operator delete(v366); if ( v363 ) operator delete(v363); if ( v360 ) operator delete(v360); std::_Hashtable,std::__detail::_Identity,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::~_Hashtable((__int64)v355); v42 = (__int64)v352; v43 = v353; if ( v352 != v353 ) { do { v44 = *(void **)(v42 + 232); if ( v44 ) operator delete(v44); v45 = *(_QWORD *)(v42 + 16); while ( v45 ) { std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_erase( v42, *(_QWORD **)(v45 + 24)); v46 = (void *)v45; v45 = *(_QWORD *)(v45 + 16); operator delete(v46); } v42 += 264; } while ( v43 != (void *)v42 ); v43 = v352; } if ( v43 ) operator delete(v43); v47 = (__int64)v349; v48 = v350; if ( v349 != v350 ) { do { v49 = *(void **)(v47 + 232); if ( v49 ) operator delete(v49); v50 = *(_QWORD *)(v47 + 16); while ( v50 ) { std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_erase( v47, *(_QWORD **)(v50 + 24)); v51 = (void *)v50; v50 = *(_QWORD *)(v50 + 16); operator delete(v51); } v47 += 264; } while ( v48 != (void *)v47 ); v48 = v349; } if ( v48 ) operator delete(v48); v52 = (__int64)v346; v53 = v347; if ( v346 != v347 ) { do { v54 = *(void **)(v52 + 232); if ( v54 ) operator delete(v54); v55 = *(_QWORD *)(v52 + 16); while ( v55 ) { std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_erase( v52, *(_QWORD **)(v55 + 24)); v56 = (void *)v55; v55 = *(_QWORD *)(v55 + 16); operator delete(v56); } v52 += 264; } while ( v53 != (void *)v52 ); v53 = v346; } if ( v53 ) operator delete(v53); v57 = (__int64)v343; v58 = v344; if ( v343 != v344 ) { do { v59 = *(void **)(v57 + 232); if ( v59 ) operator delete(v59); v60 = *(_QWORD *)(v57 + 16); while ( v60 ) { std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_erase( v57, *(_QWORD **)(v60 + 24)); v61 = (void *)v60; v60 = *(_QWORD *)(v60 + 16); operator delete(v61); } v57 += 264; } while ( v58 != (void *)v57 ); v58 = v343; } if ( v58 ) operator delete(v58); v62 = (__int64)v340; v63 = v341; if ( v340 != v341 ) { do { v64 = *(void **)(v62 + 232); if ( v64 ) operator delete(v64); v65 = *(_QWORD *)(v62 + 16); while ( v65 ) { std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_erase( v62, *(_QWORD **)(v65 + 24)); v66 = (void *)v65; v65 = *(_QWORD *)(v65 + 16); operator delete(v66); } v62 += 264; } while ( v63 != (void *)v62 ); v63 = v340; } if ( v63 ) operator delete(v63); if ( v337 ) operator delete(v337); if ( v334 ) operator delete(v334); std::_Hashtable>,std::allocator>>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::~_Hashtable((__int64)v330); std::_Hashtable>,std::allocator>>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::~_Hashtable((__int64)v326); v67 = v322; while ( v67 ) { std::_Rb_tree,std::pair const,int>,std::_Select1st const,int>>,std::less>,std::allocator const,int>>>::_M_erase( (__int64)&v320, *(_QWORD **)(v67 + 24)); v68 = (void *)v67; v67 = *(_QWORD *)(v67 + 16); operator delete(v68); } v69 = v316; if ( v316 ) { do { std::_Rb_tree,std::pair const,std::vector>,std::_Select1st const,std::vector>>,std::less>,std::allocator const,std::vector>>>::_M_erase( (__int64)&v314, *(_QWORD **)(v69 + 24)); v70 = *(_QWORD **)(v69 + 40); v71 = *(_QWORD **)(v69 + 48); v72 = *(_QWORD *)(v69 + 16); if ( v70 != v71 ) { do { v73 = (void *)v70[2]; if ( v73 ) operator delete(v73); v70 += 5; } while ( v71 != v70 ); v71 = *(_QWORD **)(v69 + 40); } if ( v71 ) operator delete(v71); v74 = (void *)v69; v69 = v72; operator delete(v74); } while ( v72 ); } std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::~_Hashtable((__int64)v310); v75 = v291; while ( v75 ) { std::_Rb_tree,std::pair const,int>,std::_Select1st const,int>>,std::less>,std::allocator const,int>>>::_M_erase( (__int64)&v289, *(_QWORD **)(v75 + 24)); v76 = (void *)v75; v75 = *(_QWORD *)(v75 + 16); operator delete(v76); } if ( v279 ) operator delete(v279); std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::~_Hashtable((__int64)v275); std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::~_Hashtable((__int64)v267); std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::~_Hashtable((__int64)v246); std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::~_Hashtable((__int64)v242); a1->m_areaMovedCount = 0; a1->m_areaScaledCount = 0; a1->m_areaRotatedCount = 0; a1->m_areaColorCount = 0; a1->m_areaMovedCountTotal = 0; a1->m_areaScaledCountTotal = 0; a1->m_areaRotatedCountTotal = 0; a1->m_areaColorCountTotal = 0; a1->m_movedCount = 0; a1->m_scaledCount = 0; a1->m_rotatedCount = 0; a1->m_followedCount = 0; a1->m_areaMovedCountDisplay = 0; a1->m_areaScaledCountDisplay = 0; a1->m_areaRotatedCountDisplay = 0; a1->m_areaColorCountDisplay = 0; a1->m_areaMovedCountTotalDisplay = 0; a1->m_areaScaledCountTotalDisplay = 0; a1->m_areaRotatedCountTotalDisplay = 0; a1->m_areaColorCountTotalDisplay = 0; a1->m_movedCountDisplay = 0; a1->m_scaledCountDisplay = 0; a1->m_rotatedCountDisplay = 0; a1->m_followedCountDisplay = 0; a1->m_sectionXFactor = 0.01; a1->m_sectionYFactor = 0.01; std::vector::reserve((__int64)&a1->m_solidCollisionObjects, 0x64u); std::vector::reserve((__int64)&a1->m_hazardCollisionObjects, 0x64u); cocos2d::CCNode::resetGlobalOrderOfArrival(); v78 = (cocos2d::CCArray *)cocos2d::CCArray::create(v77); a1->m_unk33c0 = v78; cocos2d::CCObject::retain(v78); v80 = (cocos2d::CCArray *)cocos2d::CCArray::create(v79); a1->m_objectsToMove = v80; cocos2d::CCObject::retain(v80); v81 = GameManager::sharedState(); a1->m_portalIndicators = !GameManager::getGameVariable(v81, "0129"); v82 = GameManager::sharedState(); a1->m_orbIndicators = GameManager::getGameVariable(v82, "0130"); v83 = GameManager::sharedState(); a1->m_extraLDM = GameManager::getGameVariable(v83, "0136"); v84 = GameManager::sharedState(); a1->m_clickOnSteps = GameManager::getGameVariable(v84, "0176"); v85 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v85, "0177"); a1->m_clickBetweenSteps = GameVariable; v87 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)GameVariable); a1->m_indicatorSprites = v87; cocos2d::CCObject::retain(v87); v88 = cocos2d::CCNode::create(); a1->m_areaTransformNode = v88; a1->addChild(a1, v88); v89 = cocos2d::CCNode::create(); m_areaTransformNode = a1->m_areaTransformNode; a1->m_areaSkewNode = v89; m_areaTransformNode->addChild(m_areaTransformNode, v89); v91 = cocos2d::CCNode::create(); m_areaSkewNode = a1->m_areaSkewNode; a1->m_areaScaleNode = v91; m_areaSkewNode->addChild(m_areaSkewNode, v91); v93 = cocos2d::CCNode::create(); m_areaScaleNode = a1->m_areaScaleNode; a1->m_areaRotateNode = v93; m_areaScaleNode->addChild(m_areaScaleNode, v93); v95 = cocos2d::CCNode::create(); v96 = a1->m_areaTransformNode; a1->m_areaTransformNode2 = v95; v96->addChild(v96, v95); v97 = cocos2d::CCNode::create(); a1->m_objectParent = v97; a1->addChild_0(a1, v97, -1); v98 = cocos2d::CCNode::create(); a1->m_inShaderParent = v98; a1->addChild_0(a1, v98, 1); a1->m_inShaderParent->setVisible(a1->m_inShaderParent, 0); v99 = cocos2d::CCNode::create(); a1->m_aboveShaderParent = v99; a1->addChild_0(a1, v99, 2); a1->m_aboveShaderParent->setVisible(a1->m_aboveShaderParent, 0); v100 = cocos2d::CCNode::create(); m_objectParent = a1->m_objectParent; a1->m_flashNode = v100; m_objectParent->addChild(m_objectParent, v100); a1->m_flashNode->setVisible(a1->m_flashNode, 0); v102 = cocos2d::CCDictionary::create(); a1->m_collectedItems = v102; cocos2d::CCObject::retain(v102); v104 = (cocos2d::CCArray *)cocos2d::CCArray::create(v103); a1->m_batchNodes = v104; cocos2d::CCObject::retain(v104); v106 = (cocos2d::CCArray *)cocos2d::CCArray::create(v105); a1->m_objects = v106; cocos2d::CCObject::retain(v106); v108 = (cocos2d::CCArray *)cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)((char *)&qword_60 + 4), v107); a1->m_uiObjects = v108; cocos2d::CCObject::retain(v108); cocos2d::CCPoint::CCPoint(&v169, &stru_1242DA8); v405.x = 1.0; v405.y = 1.0; v111 = OBB2D::create(v405, 0.0, v109, v110); a1->m_obb2 = v111; cocos2d::CCObject::retain(v111); cocos2d::CCPoint::CCPoint(&v169, &stru_1242DA8); v406.x = 1.0; v406.y = 1.0; v114 = OBB2D::create(v406, 0.0, v112, v113); a1->m_cameraObb2 = v114; cocos2d::CCObject::retain(v114); v115 = GJEffectManager::create(); a1->m_effectManager = v115; cocos2d::CCObject::retain(v115); a1->addChild(a1, a1->m_effectManager); a1->m_effectManager->setVisible(a1->m_effectManager, 0); m_effectManager = (cocos2d::CCArray *)a1->m_effectManager; m_effectManager[5].__vftable = (cocos2d::CCArray_vtbl *)&a1->TriggerEffectDelegate; v117 = (cocos2d::CCArray *)cocos2d::CCArray::create(m_effectManager); a1->m_collisionBlocks = v117; cocos2d::CCObject::retain(v117); v119 = (cocos2d::CCArray *)cocos2d::CCArray::create(v118); a1->m_spawnObjectsArray = v119; cocos2d::CCObject::retain(v119); v120 = cocos2d::CCDictionary::create(); a1->m_spawnObjects = v120; cocos2d::CCObject::retain(v120); v121 = cocos2d::CCNode::create(); a1->m_unkdd0 = v121; cocos2d::CCObject::retain(v121); v122 = cocos2d::CCDictionary::create(); a1->m_objectsToDeactivate = v122; cocos2d::CCObject::retain(v122); v123 = cocos2d::CCDictionary::create(); a1->m_groupDict = v123; cocos2d::CCObject::retain(v123); v124 = cocos2d::CCDictionary::create(); a1->m_staticGroupDict = v124; cocos2d::CCObject::retain(v124); v125 = cocos2d::CCDictionary::create(); a1->m_optimizedGroupDict = v125; cocos2d::CCObject::retain(v125); v126 = cocos2d::CCDictionary::create(); a1->m_parentGroupsDict = v126; cocos2d::CCObject::retain(v126); v127 = cocos2d::CCDictionary::create(); a1->m_parentGroupIDs = v127; cocos2d::CCObject::retain(v127); v128 = cocos2d::CCDictionary::create(); a1->m_removedParentGroupIDs = v128; cocos2d::CCObject::retain(v128); v129 = cocos2d::CCDictionary::create(); a1->m_linkedGroupDict = v129; cocos2d::CCObject::retain(v129); m_start = a1->m_groups.m_start; v131 = a1->m_groups.m_finish - m_start; if ( v131 <= 0x270F ) { std::vector::_M_default_append((__int64)&a1->m_groups, 10000 - v131); LABEL_116: v132 = a1->m_staticGroups.m_start; v133 = a1->m_staticGroups.m_finish - v132; if ( v133 > 0x270F ) goto LABEL_117; LABEL_140: std::vector::_M_default_append((__int64)&a1->m_staticGroups, 10000 - v133); LABEL_118: v134 = a1->m_optimizedGroups.m_start; v135 = a1->m_optimizedGroups.m_finish - v134; if ( v135 > 0x270F ) goto LABEL_119; LABEL_138: std::vector::_M_default_append((__int64)&a1->m_optimizedGroups, 10000 - v135); goto LABEL_121; } if ( v131 == 10000 ) goto LABEL_116; m_finish = a1->m_staticGroups.m_finish; a1->m_groups.m_finish = m_start + 10000; v132 = a1->m_staticGroups.m_start; v133 = m_finish - v132; if ( v133 <= 0x270F ) goto LABEL_140; LABEL_117: if ( v133 == 10000 ) goto LABEL_118; v167 = a1->m_optimizedGroups.m_finish; a1->m_staticGroups.m_finish = v132 + 10000; v134 = a1->m_optimizedGroups.m_start; v135 = v167 - v134; if ( v135 <= 0x270F ) goto LABEL_138; LABEL_119: if ( v135 != 10000 ) a1->m_optimizedGroups.m_finish = v134 + 10000; LABEL_121: for ( i = 0; i != 10000; ++i ) { a1->m_groups.m_start[i] = nullptr; a1->m_staticGroups.m_start[i] = nullptr; a1->m_optimizedGroups.m_start[i] = nullptr; } v137 = a1->m_gameState.m_enterChannelMap.m_start; v138 = a1->m_gameState.m_enterChannelMap.m_finish - v137; if ( v138 <= 0x64 ) { std::vector::_M_default_append((__int64)&a1->m_gameState.m_enterChannelMap, 101 - v138); LABEL_125: v139 = a1->m_gameState.m_exitChannelMap.m_start; v140 = a1->m_gameState.m_exitChannelMap.m_finish - v139; if ( v140 > 0x64 ) goto LABEL_126; goto LABEL_136; } if ( v138 == 101 ) goto LABEL_125; v166 = a1->m_gameState.m_exitChannelMap.m_finish; a1->m_gameState.m_enterChannelMap.m_finish = v137 + 101; v139 = a1->m_gameState.m_exitChannelMap.m_start; v140 = v166 - v139; if ( v140 > 0x64 ) { LABEL_126: if ( v140 != 101 ) a1->m_gameState.m_exitChannelMap.m_finish = v139 + 101; goto LABEL_128; } LABEL_136: std::vector::_M_default_append((__int64)&a1->m_gameState.m_exitChannelMap, 101 - v140); LABEL_128: p_m_varianceValues = (GJBaseGameLayer *)&a1->m_varianceValues; v142 = qword_1242DA0; do { v142 = 214013 * v142 + 2531011; *(float *)&p_m_varianceValues->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (float)((float)((float)((v142 >> 16) & 0x7FFF) / 32767.0) * 2.0) + -1.0; p_m_varianceValues = (GJBaseGameLayer *)((char *)p_m_varianceValues + 4); } while ( p_m_varianceValues != (GJBaseGameLayer *)(&a1->m_varianceValues + 1) ); qword_1242DA0 = v142; std::vector::reserve((__int64)&a1->m_activeObjects, 0x1F4u); v143 = cocos2d::CCNode::create(); v144 = v143->__vftable; a1->m_hoverNode = v143; v144->setVisible(v143, 0); a1->addChild(a1, a1->m_hoverNode); cocos2d::CCPoint::CCPoint(&v169, 0.0, -3.0); v145 = cocos2d::CCMoveBy::create(0.6, &v169); v146 = cocos2d::CCEaseInOut::create(v145, 1.5); cocos2d::CCPoint::CCPoint(&v169, 0.0, 3.0); v147 = cocos2d::CCMoveBy::create(0.6, &v169); v148 = cocos2d::CCEaseInOut::create(v147, 1.5); m_hoverNode = a1->m_hoverNode; v150 = (cocos2d::CCActionInterval *)cocos2d::CCSequence::create((cocos2d::CCSequence *)v146, v148, 0); v151 = cocos2d::CCRepeatForever::create(v150); cocos2d::CCNode::runAction(m_hoverNode, v151); v152 = cocos2d::CCDictionary::create(); a1->m_keyframeGroups = v152; cocos2d::CCObject::retain(v152); v153 = cocos2d::CCDictionary::create(); a1->m_particlesDict = v153; cocos2d::CCObject::retain(v153); v154 = cocos2d::CCDictionary::create(); a1->m_customParticles = v154; cocos2d::CCObject::retain(v154); v155 = cocos2d::CCDictionary::create(); a1->m_claimedParticles = v155; cocos2d::CCObject::retain(v155); v157 = (cocos2d::CCArray *)cocos2d::CCArray::create(v156); a1->m_temporaryParticles = v157; cocos2d::CCObject::retain(v157); v159 = (cocos2d::CCArray *)cocos2d::CCArray::create(v158); a1->m_unclaimedParticles = v159; cocos2d::CCObject::retain(v159); a1->m_particleSystemLimit = (unsigned int)&qword_28; if ( *(&AppDelegate::get()->m_gamePaused + 2) || *(&AppDelegate::get()->m_gamePaused + 3) ) a1->m_particleSystemLimit = (unsigned int)&byte_9[1]; GameManager::sharedState()->m_gameLayer = a1; v160 = UILayer::create(a1); v161 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_uiLayer = v160; ((void (__fastcall *)(GJBaseGameLayer *))v161->addChild_0)(a1); v162 = (std::array *)operator new[](0xC80u); v163 = (cocos2d::CCPoint *)v162; do cocos2d::CCPoint::CCPoint(v163++); while ( v163 != (cocos2d::CCPoint *)&v162[1] ); a1->m_debugDrawPoints = v162; memset(v162, 0, sizeof(std::array)); v164 = GameManager::sharedState(); v165 = GameManager::getGameVariable(v164, "0144"); GJBaseGameLayer::toggleAudioVisualizer(a1, v165); return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source