// // GJGarageLayer::init from 0x8c1950 to 0x8c3134 (6116 bytes) // // 3 xrefs: // > GJGarageLayer::scene @ 0x8b994c // > @ 0x8faa0 // > @ 0x145a740 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:56:32 +0000 // __int64 __fastcall GJGarageLayer::init(GJGarageLayer *this) { GameManager *v2; // x0 unsigned int v3; // w25 GameManager *v5; // x0 cocos2d::CCDirector *v6; // x0 cocos2d::CCDirector *v7; // x0 float v8; // s9 const char *v9; // x1 float *v10; // x21 void (__fastcall *v11)(float *, __int64 *); // x26 void (__fastcall *v12)(float *, __int64 *); // x24 void (__fastcall *v13)(float *, __int64 *); // x3 const char *v14; // x1 cocos2d::CCDirector **v15; // x21 void (__fastcall *v16)(cocos2d::CCDirector **, __int64 *); // x26 void (__fastcall *v17)(cocos2d::CCDirector **, __int64 *); // x26 cocos2d::CCDirector *v18; // x0 cocos2d::CCDirector *ScreenLeft; // x0 float v20; // s0 float v21; // s11 cocos2d::CCDirector *v22; // x0 float v23; // s0 const char *v24; // x1 cocos2d::CCDirector **v25; // x21 void (__fastcall *v26)(cocos2d::CCDirector **, __int64 *); // x26 void (__fastcall *v27)(cocos2d::CCDirector **, __int64 *); // x26 cocos2d::CCDirector *v28; // x0 cocos2d::CCDirector *v29; // x0 float v30; // s0 float v31; // s11 cocos2d::CCDirector *v32; // x0 float v33; // s0 const char *v34; // x1 cocos2d::CCDirector **v35; // x21 void (__fastcall *v36)(cocos2d::CCDirector **, __int64 *); // x24 void (__fastcall *v37)(cocos2d::CCDirector **, __int64 *); // x24 cocos2d::CCDirector *v38; // x0 cocos2d::CCDirector *ScreenRight; // x0 float v40; // s0 float v41; // s11 cocos2d::CCDirector *v42; // x0 float v43; // s0 GJAccountManager *v44; // x0 __int64 v45; // x0 const char *v46; // x4 char *v47; // x3 __int64 v48; // x0 float v49; // s1 float v50; // s8 cocos2d::CCDirector **v51; // x21 void (__fastcall *v52)(cocos2d::CCDirector **, __int64 *); // x24 cocos2d::CCDirector *v53; // x0 float v54; // s0 __int64 v55; // x21 __int64 v56; // x0 int v57; // w1 GameManager *v58; // x0 _QWORD *v59; // x24 __int64 v60; // x0 __int64 v61; // x1 const char *v62; // x1 size_t v63; // x0 const char *v64; // x1 __int64 v65; // x22 const cocos2d::CCSize *v66; // x0 void (__fastcall *v67)(__int64, __int64 *); // x24 __int64 v68; // x26 const char *v69; // x1 __int64 v70; // x22 void (__fastcall *v71)(__int64, __int64 *); // x26 GameManager *v72; // x0 __int64 v73; // x0 __int64 v74; // x0 GameManager **v75; // x24 void (__fastcall *v76)(GameManager **, long double); // x26 long double v77; // q0 __int64 v78; // x24 __int64 v79; // x0 __int64 (__fastcall *v80)(__int64); // x1 void (__fastcall *v81)(__int64, __int64 *); // x22 __int64 v82; // x26 float v83; // s0 GameManager *updated; // x0 GameManager *v85; // x0 __int64 v86; // x22 __int64 v87; // x0 const char *v88; // x1 __int64 v89; // x0 cocos2d::CCDirector **v90; // x22 void (__fastcall *v91)(cocos2d::CCDirector **, __int64 *); // x24 cocos2d::CCDirector *v92; // x0 cocos2d::CCDirector *v93; // x0 float v94; // s0 float v95; // s9 cocos2d::CCDirector *v96; // x0 float v97; // s0 const char *v98; // x1 __int64 v99; // x0 _DWORD *v100; // x24 long double v101; // q0 void (__fastcall *v102)(_DWORD *, __int64 *); // x26 const char *v103; // x1 __int64 v104; // x0 __int64 v105; // x24 void (__fastcall *v106)(__int64, __int64 *); // x26 const char *v107; // x1 __int64 v108; // x0 __int64 v109; // x24 void (__fastcall *v110)(__int64, __int64 *); // x26 const char *v111; // x1 cocos2d::CCDirector **v112; // x27 __int64 (__fastcall *v113)(cocos2d::CCDirector **, __int64 *); // x24 cocos2d::CCDirector *v114; // x0 cocos2d::CCDirector *v115; // x0 float v116; // s0 float v117; // s9 cocos2d::CCDirector *v118; // x0 float v119; // s0 GameStatsManager *v120; // x0 GameStatsManager *v121; // x0 unsigned int Stat; // w0 cocos2d::CCString *v123; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v125; // x2 __int64 v126; // x28 const char *v127; // x1 __int64 v128; // x28 cocos2d::CCDirector **v129; // x0 __int64 (__fastcall *v130)(cocos2d::CCDirector **); // x1 __int64 (__fastcall *v131)(__int64, __int64 *); // x27 GameStatsManager *v132; // x0 GameStatsManager *v133; // x0 unsigned int v134; // w0 cocos2d::CCString *v135; // x0 cocos2d::CCLabelBMFont *v136; // x0 const char *v137; // x2 __int64 v138; // x27 const char *v139; // x1 __int64 v140; // x27 __int64 v141; // x0 __int64 (__fastcall *v142)(__int64); // x1 void (__fastcall *v143)(__int64, __int64 *); // x28 GameStatsManager *v144; // x0 GameStatsManager *v145; // x0 unsigned int v146; // w0 cocos2d::CCString *v147; // x0 cocos2d::CCLabelBMFont *v148; // x0 const char *v149; // x2 __int64 v150; // x28 const char *v151; // x1 __int64 v152; // x28 __int64 v153; // x0 __int64 (__fastcall *v154)(__int64); // x1 void (__fastcall *v155)(__int64, __int64 *); // x27 GameStatsManager *v156; // x0 GameStatsManager *v157; // x0 unsigned int v158; // w0 cocos2d::CCString *v159; // x0 cocos2d::CCLabelBMFont *v160; // x0 const char *v161; // x2 __int64 v162; // x27 const char *v163; // x1 __int64 v164; // x27 __int64 v165; // x0 __int64 (__fastcall *v166)(__int64); // x1 __int64 (__fastcall *v167)(__int64, __int64 *); // x28 GameStatsManager *v168; // x0 GameStatsManager *v169; // x0 unsigned int v170; // w0 cocos2d::CCString *v171; // x0 cocos2d::CCLabelBMFont *v172; // x0 const char *v173; // x2 __int64 v174; // x28 const char *v175; // x1 __int64 v176; // x28 __int64 v177; // x0 __int64 (__fastcall *v178)(__int64); // x1 __int64 (__fastcall *v179)(__int64, __int64 *); // x27 GameStatsManager *v180; // x0 GameStatsManager *v181; // x0 unsigned int v182; // w0 cocos2d::CCString *v183; // x0 cocos2d::CCLabelBMFont *v184; // x0 const char *v185; // x2 __int64 v186; // x27 const char *v187; // x1 __int64 v188; // x27 __int64 v189; // x0 __int64 (__fastcall *v190)(__int64); // x1 __int64 (__fastcall *v191)(__int64, __int64 *); // x28 GameStatsManager *v192; // x0 GameStatsManager *v193; // x0 unsigned int v194; // w0 cocos2d::CCString *v195; // x0 cocos2d::CCLabelBMFont *v196; // x0 const char *v197; // x2 __int64 v198; // x24 void (__fastcall *v199)(__int64, __int64 *); // x26 void (__fastcall *v200)(__int64, __int64 *); // x26 __int64 v201; // x28 GameManager *v202; // x0 __int64 v203; // x0 const char *v204; // x1 PlatformToolbox *v205; // x0 __int64 v206; // x24 cocos2d::CCDirector **v207; // x24 __int64 (__fastcall *v208)(cocos2d::CCDirector **, __int64 *); // x26 cocos2d::CCDirector *v209; // x0 cocos2d::CCDirector *v210; // x0 float v211; // s0 float v212; // s8 cocos2d::CCDirector *v213; // x0 float v214; // s0 unsigned __int8 isControllerConnected; // w0 GJAccountManager *v216; // x0 __int64 v217; // x0 int v218; // w1 __int64 v219; // x0 __int64 v220; // x1 _BOOL4 v221; // w24 GameManager *v222; // x0 _QWORD *v223; // x24 __int64 v224; // x0 __int64 v225; // x1 const char *v226; // x1 size_t v227; // x0 __int64 v228; // x22 void (__fastcall *v229)(__int64, __int64 *); // x24 __int64 v230; // x26 __int64 v231; // x22 __int64 v232; // x0 __int64 v233; // x22 __int64 v234; // x0 __int64 v235; // x22 __int64 v236; // x0 __int64 v237; // x22 __int64 v238; // x0 __int64 v239; // x22 __int64 v240; // x0 __int64 v241; // x22 __int64 v242; // x0 __int64 v243; // x22 __int64 v244; // x0 cocos2d::CCLayer *v245; // [xsp+98h] [xbp+98h] void (__fastcall *v246)(__int64, __int64 *); // [xsp+A0h] [xbp+A0h] void (__fastcall *v247)(__int64, __int64 *); // [xsp+A0h] [xbp+A0h] void (__fastcall *v248)(__int64, __int64 *); // [xsp+A0h] [xbp+A0h] void (__fastcall *v249)(__int64, __int64 *); // [xsp+A0h] [xbp+A0h] void (__fastcall *v250)(__int64, __int64 *); // [xsp+A0h] [xbp+A0h] void (__fastcall *v251)(__int64, __int64 *); // [xsp+A0h] [xbp+A0h] char *v252; // [xsp+A8h] [xbp+A8h] void (__fastcall *v253)(__int64, __int64 *); // [xsp+A8h] [xbp+A8h] __int64 v254; // [xsp+A8h] [xbp+A8h] __int64 v255; // [xsp+A8h] [xbp+A8h] void (__fastcall *v256)(__int64, __int64 *); // [xsp+A8h] [xbp+A8h] __int64 v257; // [xsp+A8h] [xbp+A8h] __int64 v258; // [xsp+A8h] [xbp+A8h] void (__fastcall *v259)(__int64, __int64 *); // [xsp+A8h] [xbp+A8h] __int64 v260; // [xsp+A8h] [xbp+A8h] __int64 v261; // [xsp+A8h] [xbp+A8h] void (__fastcall *v262)(__int64, __int64 *); // [xsp+A8h] [xbp+A8h] __int64 v263; // [xsp+A8h] [xbp+A8h] __int64 v264; // [xsp+A8h] [xbp+A8h] void (__fastcall *v265)(__int64, __int64 *); // [xsp+A8h] [xbp+A8h] __int64 v266; // [xsp+A8h] [xbp+A8h] __int64 v267; // [xsp+A8h] [xbp+A8h] void (__fastcall *v268)(__int64, __int64 *); // [xsp+A8h] [xbp+A8h] __int64 v269; // [xsp+A8h] [xbp+A8h] __int64 v270; // [xsp+A8h] [xbp+A8h] char *v271; // [xsp+A8h] [xbp+A8h] int v272; // [xsp+B0h] [xbp+B0h] __int64 v273; // [xsp+B8h] [xbp+B8h] BYREF float v274; // [xsp+C0h] [xbp+C0h] BYREF _BYTE v275[8]; // [xsp+C8h] [xbp+C8h] BYREF __int64 v276; // [xsp+D0h] [xbp+D0h] BYREF GameManager *v277; // [xsp+D8h] [xbp+D8h] BYREF __int64 v278; // [xsp+E0h] [xbp+E0h] void *v279; // [xsp+E8h] [xbp+E8h] GJAccountManager *v280; // [xsp+F0h] [xbp+F0h] BYREF __int64 v281; // [xsp+F8h] [xbp+F8h] void *v282; // [xsp+100h] [xbp+100h] v2 = (GameManager *)cocos2d::CCLayer::init(this); v3 = (unsigned __int8)v2; if ( !(_BYTE)v2 ) return v3; v5 = (GameManager *)GameManager::sharedState(v2); *((_BYTE *)v5 + 584) = 1; *(_DWORD *)(GameManager::sharedState(v5) + 708) = 0; (*(void (__fastcall **)(GJGarageLayer *, __int64))(*(_QWORD *)this + 1072LL))(this, 1); v6 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(GJGarageLayer *, __int64))(*(_QWORD *)this + 1088LL))(this, 1); v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(&v273, v7); v8 = (float)(*((float *)&v273 + 1) * 0.5) + 50.0; v10 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v9); v11 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v10 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, 0.0, 0.0); v11(v10, &v276); (*(void (__fastcall **)(GJGarageLayer *, float *, __int64))(*(_QWORD *)this + 464LL))(this, v10, 4294967294LL); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v10 + 128LL))(v10, (float)(*(float *)&v273 + 10.0) / v10[108]); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v10 + 144LL))( v10, (float)(*((float *)&v273 + 1) + 10.0) / v10[109]); v12 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v10 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, -5.0, -5.0); v12(v10, &v276); v13 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v10 + 960LL); LOWORD(v276) = -26986; BYTE2(v276) = -106; v13(v10, &v276); v15 = (cocos2d::CCDirector **)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_sideArt_001.png", v14); v16 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v15 + 37); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, 0.0, 1.0); v16(v15, &v276); v17 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v15 + 23); v18 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v15); ScreenLeft = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v18); v21 = v20; v22 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenLeft); cocos2d::CCDirector::getScreenTop(v22); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, v21 - 1.0, v23 + 1.0); v17(v15, &v276); cocos2d::CCSprite::setFlipY((cocos2d::CCSprite *)v15, 1); (*(void (__fastcall **)(GJGarageLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))( this, v15, 0xFFFFFFFFLL); v25 = (cocos2d::CCDirector **)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_sideArt_001.png", v24); v26 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v25 + 37); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, 0.0, 0.0); v26(v25, &v276); v27 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v25 + 23); v28 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v25); v29 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v28); v31 = v30; v32 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v29); cocos2d::CCDirector::getScreenBottom(v32); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, v31 - 1.0, v33 - 1.0); v27(v25, &v276); (*(void (__fastcall **)(GJGarageLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))(this, v25, 1); v35 = (cocos2d::CCDirector **)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_sideArt_001.png", v34); v36 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v35 + 37); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, 1.0, 0.0); v36(v35, &v276); v37 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v35 + 23); v38 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v35); ScreenRight = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v38); v41 = v40; v42 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenRight); cocos2d::CCDirector::getScreenBottom(v42); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, v41 + 1.0, v43 - 1.0); v37(v35, &v276); cocos2d::CCSprite::setFlipX((cocos2d::CCSprite *)v35, 1); v44 = (GJAccountManager *)(*(__int64 (__fastcall **)(GJGarageLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))( this, v35, 1); v45 = GJAccountManager::sharedState(v44); if ( *(_DWORD *)(v45 + 352) == *(_DWORD *)(v45 + 356) ) v47 = "bigFont.fnt"; else v47 = "goldFont.fnt"; v48 = CCTextInputNode::create((CCTextInputNode *)"Player", 180.0, 50.0, "Thonburi", (const char *)&off_18, v47, v46); *((_QWORD *)this + 58) = v48; (*(void (__fastcall **)(GJGarageLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v48, 20); v49 = *(float *)&v273; *(_QWORD *)(*((_QWORD *)this + 58) + 584LL) = (char *)this + 408; v50 = v49 * 0.5; v51 = *((cocos2d::CCDirector ***)this + 58); v52 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v51 + 23); v53 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v51); cocos2d::CCDirector::getScreenTop(v53); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, v50, v54 - 34.0); v52(v51, &v276); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 58) + 576LL) + 344LL))( *(_QWORD *)(*((_QWORD *)this + 58) + 576LL), 0); LOBYTE(v272) = 120; *(_DWORD *)(*((_QWORD *)this + 58) + 592LL) = 15; *(_WORD *)((char *)&v272 + 1) = -3926; CCTextInputNode::setLabelPlaceholderColor(*((_QWORD *)this + 58), v272); CCTextInputNode::setLabelPlaceholderScale(*((CCTextInputNode **)this + 58), 0.7); v55 = *((_QWORD *)this + 58); v280 = nullptr; v281 = 0; v282 = nullptr; std::string::__init((__int64 *)&v280, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", 0x3Eu); CCTextInputNode::setAllowedChars(v55, (__int64)&v280); if ( ((unsigned __int8)v280 & 1) != 0 ) { operator delete(v282); v217 = GJAccountManager::sharedState(v216); v218 = *(_DWORD *)(v217 + 352); v58 = (GameManager *)*(unsigned int *)(v217 + 356); if ( v218 != (_DWORD)v58 ) goto LABEL_7; LABEL_26: v219 = GameManager::sharedState(v58); v277 = nullptr; v278 = 0; v279 = nullptr; if ( (*(_BYTE *)(v219 + 632) & 1) != 0 ) { std::string::__init((__int64 *)&v277, *(void **)(v219 + 648), *(_QWORD *)(v219 + 640)); } else { v220 = *(_QWORD *)(v219 + 640); v277 = *(GameManager **)(v219 + 632); v278 = v220; v279 = *(void **)(v219 + 648); } v280 = nullptr; v281 = 0; v282 = nullptr; std::string::__init((__int64 *)&v280, &byte_11B8890, 0); v221 = sub_8B90C8((__int64)&v277, (__int64)&v280); if ( ((unsigned __int8)v280 & 1) != 0 ) operator delete(v282); v222 = (GameManager *)(unsigned __int8)v277; if ( ((unsigned __int8)v277 & 1) != 0 ) operator delete(v279); if ( !v221 ) { v223 = *((_QWORD **)this + 58); v224 = GameManager::sharedState(v222); v277 = nullptr; v278 = 0; v279 = nullptr; if ( (*(_BYTE *)(v224 + 632) & 1) != 0 ) { std::string::__init((__int64 *)&v277, *(void **)(v224 + 648), *(_QWORD *)(v224 + 640)); } else { v225 = *(_QWORD *)(v224 + 640); v277 = *(GameManager **)(v224 + 632); v278 = v225; v279 = *(void **)(v224 + 648); } v226 = (char *)&v277 + 1; if ( ((unsigned __int8)v277 & 1) != 0 ) v226 = (const char *)v279; v271 = (char *)v226; v280 = nullptr; v281 = 0; v282 = nullptr; v227 = strlen(v226); std::string::__init((__int64 *)&v280, v271, v227); CCTextInputNode::setString(v223, (char *)&v280); if ( ((unsigned __int8)v280 & 1) != 0 ) operator delete(v282); v222 = (GameManager *)(unsigned __int8)v277; if ( ((unsigned __int8)v277 & 1) != 0 ) operator delete(v279); } if ( !*(_BYTE *)(GameManager::sharedState(v222) + 929) ) { v228 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_nameTxt_001.png", v69); (*(void (__fastcall **)(GJGarageLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v228); v229 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v228 + 184LL); v230 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 58) + 192LL))(*((_QWORD *)this + 58)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, 115.0, 10.0); cocos2d::CCPoint::operator+(&v276, v230); v229(v228, &v276); } goto LABEL_16; } v56 = GJAccountManager::sharedState((GJAccountManager *)(unsigned __int8)v280); v57 = *(_DWORD *)(v56 + 352); v58 = (GameManager *)*(unsigned int *)(v56 + 356); if ( v57 == (_DWORD)v58 ) goto LABEL_26; LABEL_7: v59 = *((_QWORD **)this + 58); v60 = GJAccountManager::sharedState(v58); v277 = nullptr; v278 = 0; v279 = nullptr; if ( (*(_BYTE *)(v60 + 328) & 1) != 0 ) { std::string::__init((__int64 *)&v277, *(void **)(v60 + 344), *(_QWORD *)(v60 + 336)); } else { v61 = *(_QWORD *)(v60 + 336); v277 = *(GameManager **)(v60 + 328); v278 = v61; v279 = *(void **)(v60 + 344); } v62 = (char *)&v277 + 1; if ( ((unsigned __int8)v277 & 1) != 0 ) v62 = (const char *)v279; v252 = (char *)v62; v280 = nullptr; v281 = 0; v282 = nullptr; v63 = strlen(v62); std::string::__init((__int64 *)&v280, v252, v63); CCTextInputNode::setString(v59, (char *)&v280); if ( ((unsigned __int8)v280 & 1) != 0 ) operator delete(v282); if ( ((unsigned __int8)v277 & 1) != 0 ) operator delete(v279); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 58) + 1000LL))(*((_QWORD *)this + 58), 0); v65 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_lockGray_001.png", v64); (*(void (__fastcall **)(GJGarageLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v65, 2); v66 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*((_QWORD *)this + 58) + 600LL) + 328LL))(*(_QWORD *)(*((_QWORD *)this + 58) + 600LL)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v274, v66); v67 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v65 + 184LL); v68 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 58) + 192LL))(*((_QWORD *)this + 58)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, (float)(v274 * 0.5) + 8.0, 10.0); cocos2d::CCPoint::operator+(&v276, v68); v67(v65, &v276); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v65 + 160LL))(v65, 0.6); LABEL_16: v70 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"floorLine_001.png", v69); (*(void (__fastcall **)(GJGarageLayer *, __int64, _QWORD))(*(_QWORD *)this + 464LL))(this, v70, 0); v71 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v70 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, *(float *)&v273 * 0.5, v8); v71(v70, &v276); v72 = (GameManager *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v70 + 1080LL))(v70, 0x100000302LL); v73 = GameManager::sharedState(v72); v74 = SimplePlayer::create((SimplePlayer *)(unsigned int)(*(_DWORD *)(v73 + 716) - *(_DWORD *)(v73 + 720))); *((_QWORD *)this + 59) = v74; (*(void (__fastcall **)(GJGarageLayer *, __int64, _QWORD))(*(_QWORD *)this + 464LL))(this, v74, 0); SimplePlayer::createRobotSprite(*((__int64 **)this + 59), 1u); SimplePlayer::createSpiderSprite(*((SimplePlayer **)this + 59), 1u); v75 = *((GameManager ***)this + 59); v76 = *((void (__fastcall **)(GameManager **, long double))*v75 + 20); if ( *(_DWORD *)(GameManager::sharedState(*v75) + 916) == 8 ) LODWORD(v77) = 1.5; else LODWORD(v77) = 1070386381; v76(v75, v77); v78 = *((_QWORD *)this + 59); v79 = v70; v80 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v70 + 192LL); v81 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v78 + 184LL); v82 = v80(v79); v83 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 59) + 168LL))(*((_QWORD *)this + 59)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, 0.0, (float)((float)(v83 * 30.0) * 0.5) + 1.0); cocos2d::CCPoint::operator+(&v276, v82); v81(v78, &v276); updated = (GameManager *)GJGarageLayer::updatePlayerColors(this); v85 = (GameManager *)(unsigned int)(*(_DWORD *)(GameManager::sharedState(updated) + 916) - 1); switch ( (int)v85 ) { case 0: v231 = *((_QWORD *)this + 59); v232 = GameManager::sharedState(v85); SimplePlayer::updatePlayerFrame(v231, *(_DWORD *)(v232 + 728) - *(_DWORD *)(v232 + 732), 1); break; case 1: v243 = *((_QWORD *)this + 59); v244 = GameManager::sharedState(v85); SimplePlayer::updatePlayerFrame(v243, *(_DWORD *)(v244 + 740) - *(_DWORD *)(v244 + 744), 2); break; case 2: v241 = *((_QWORD *)this + 59); v242 = GameManager::sharedState(v85); SimplePlayer::updatePlayerFrame(v241, *(_DWORD *)(v242 + 752) - *(_DWORD *)(v242 + 756), 3); break; case 3: v239 = *((_QWORD *)this + 59); v240 = GameManager::sharedState(v85); SimplePlayer::updatePlayerFrame(v239, *(_DWORD *)(v240 + 764) - *(_DWORD *)(v240 + 768), 4); break; case 4: v237 = *((_QWORD *)this + 59); v238 = GameManager::sharedState(v85); SimplePlayer::updatePlayerFrame(v237, *(_DWORD *)(v238 + 776) - *(_DWORD *)(v238 + 780), 5); break; case 5: v86 = *((_QWORD *)this + 59); v87 = GameManager::sharedState(v85); SimplePlayer::updatePlayerFrame(v86, *(_DWORD *)(v87 + 788) - *(_DWORD *)(v87 + 792), 6); break; case 6: v235 = *((_QWORD *)this + 59); v236 = GameManager::sharedState(v85); SimplePlayer::updatePlayerFrame(v235, *(_DWORD *)(v236 + 800) - *(_DWORD *)(v236 + 804), 7); break; case 7: v233 = *((_QWORD *)this + 59); v234 = GameManager::sharedState(v85); SimplePlayer::updatePlayerFrame(v233, *(_DWORD *)(v234 + 884) - *(_DWORD *)(v234 + 888), 8); break; default: break; } GJGarageLayer::setupIconSelect(this); v89 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v88); v245 = (cocos2d::CCLayer *)CCMenuItemSpriteExtra::create(v89, 0, (__int64)this, (__int64)GJGarageLayer::onBack, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v245, 1.6); v90 = (cocos2d::CCDirector **)cocos2d::CCMenu::create(v245, nullptr); (*(void (__fastcall **)(GJGarageLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))(this, v90, 1); v91 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v90 + 23); v92 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v90); v93 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v92); v95 = v94; v96 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v93); cocos2d::CCDirector::getScreenTop(v96); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, v95 + 24.0, v97 - 23.0); v91(v90, &v276); v99 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"shopRope_001.png", v98); v100 = (_DWORD *)CCMenuItemSpriteExtra::create(v99, 0, (__int64)this, (__int64)GJGarageLayer::onShop, 0); CCMenuItemSpriteExtra::useAnimationType(v100, 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, 0.0, -15.0); *(__n128 *)&v101 = cocos2d::CCPoint::operator=(v100 + 117, &v276); v100[119] = 1050253722; v100[120] = 1050253722; (*((void (__fastcall **)(cocos2d::CCDirector **, _DWORD *, long double))*v90 + 57))(v90, v100, v101); v102 = *(void (__fastcall **)(_DWORD *, __int64 *))(*(_QWORD *)v100 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v275, (float)(*(float *)&v273 * 0.5) + -135.0, *((float *)&v273 + 1) - 25.0); cocos2d::CCNode::convertToNodeSpace(&v276, (cocos2d::CCNode *)v90, (const cocos2d::CCPoint *)v275); v102(v100, &v276); v104 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_shardsBtn_001.png", v103); v105 = CCMenuItemSpriteExtra::create(v104, 0, (__int64)this, (__int64)GJGarageLayer::onShards, 0); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v90 + 57))(v90, v105); v106 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v105 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, 30.0, *((float *)&v273 + 1) - 80.0); cocos2d::CCNode::convertToNodeSpace(&v276, (cocos2d::CCNode *)v90, (const cocos2d::CCPoint *)v275); v106(v105, &v276); v108 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_paintBtn_001.png", v107); v109 = CCMenuItemSpriteExtra::create(v108, 0, (__int64)this, (__int64)GJGarageLayer::onPaint, 0); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v90 + 57))(v90, v109); v110 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v109 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, 30.0, *((float *)&v273 + 1) - 120.0); cocos2d::CCNode::convertToNodeSpace(&v276, (cocos2d::CCNode *)v90, (const cocos2d::CCPoint *)v275); v110(v109, &v276); v112 = (cocos2d::CCDirector **)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_starsIcon_001.png", v111); (*((void (__fastcall **)(cocos2d::CCDirector **, float))*v112 + 20))(v112, 0.54); (*(void (__fastcall **)(GJGarageLayer *, cocos2d::CCDirector **))(*(_QWORD *)this + 456LL))(this, v112); v113 = *((__int64 (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v112 + 23); v114 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v112); v115 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v114); v117 = v116; v118 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v115); cocos2d::CCDirector::getScreenTop(v118); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, v117 - 18.0, v119 - 12.0); v120 = (GameStatsManager *)v113(v112, &v276); v121 = (GameStatsManager *)GameStatsManager::sharedState(v120); Stat = GameStatsManager::getStat(v121, "6"); v123 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)Stat); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v123); v126 = cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v125); (*(void (__fastcall **)(GJGarageLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v126); v253 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v126 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, 1.0, 0.5); v253(v126, &v276); v246 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v126 + 184LL); v254 = (*((__int64 (__fastcall **)(cocos2d::CCDirector **))*v112 + 24))(v112); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, -12.0, 0.5); cocos2d::CCPoint::operator+(&v276, v254); v246(v126, &v276); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v126 + 160LL))(v126, 0.34); v128 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_moonsIcon_001.png", v127); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v128 + 160LL))(v128, 0.54); (*(void (__fastcall **)(GJGarageLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v128); v129 = v112; v130 = *((__int64 (__fastcall **)(cocos2d::CCDirector **))*v112 + 24); v131 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v128 + 184LL); v255 = v130(v129); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, 0.0, -15.0); cocos2d::CCPoint::operator+(&v276, v255); v132 = (GameStatsManager *)v131(v128, &v276); v133 = (GameStatsManager *)GameStatsManager::sharedState(v132); v134 = GameStatsManager::getStat(v133, "28"); v135 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v134); v136 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v135); v138 = cocos2d::CCLabelBMFont::create(v136, "bigFont.fnt", v137); (*(void (__fastcall **)(GJGarageLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v138); v256 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v138 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, 1.0, 0.5); v256(v138, &v276); v247 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v138 + 184LL); v257 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v128 + 192LL))(v128); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, -12.0, 0.5); cocos2d::CCPoint::operator+(&v276, v257); v247(v138, &v276); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v138 + 160LL))(v138, 0.34); v140 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_coinsIcon_001.png", v139); (*(void (__fastcall **)(GJGarageLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v140); v141 = v128; v142 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v128 + 192LL); v143 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v140 + 184LL); v258 = v142(v141); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, 0.0, -15.0); cocos2d::CCPoint::operator+(&v276, v258); v143(v140, &v276); v144 = (GameStatsManager *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v140 + 160LL))(v140, 0.51); v145 = (GameStatsManager *)GameStatsManager::sharedState(v144); v146 = GameStatsManager::getStat(v145, "8"); v147 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v146); v148 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v147); v150 = cocos2d::CCLabelBMFont::create(v148, "bigFont.fnt", v149); (*(void (__fastcall **)(GJGarageLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v150); v259 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v150 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, 1.0, 0.5); v259(v150, &v276); v248 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v150 + 184LL); v260 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v140 + 192LL))(v140); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, -12.0, 0.5); cocos2d::CCPoint::operator+(&v276, v260); v248(v150, &v276); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v150 + 160LL))(v150, 0.34); v152 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_coinsIcon2_001.png", v151); (*(void (__fastcall **)(GJGarageLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v152); v153 = v140; v154 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v140 + 192LL); v155 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v152 + 184LL); v261 = v154(v153); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, 0.0, -15.0); cocos2d::CCPoint::operator+(&v276, v261); v155(v152, &v276); v156 = (GameStatsManager *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v152 + 160LL))(v152, 0.51); v157 = (GameStatsManager *)GameStatsManager::sharedState(v156); v158 = GameStatsManager::getStat(v157, (const char *)&word_120A570); v159 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v158); v160 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v159); v162 = cocos2d::CCLabelBMFont::create(v160, "bigFont.fnt", v161); (*(void (__fastcall **)(GJGarageLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v162); v262 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v162 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, 1.0, 0.5); v262(v162, &v276); v249 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v162 + 184LL); v263 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v152 + 192LL))(v152); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, -12.0, 0.5); cocos2d::CCPoint::operator+(&v276, v263); v249(v162, &v276); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v162 + 160LL))(v162, 0.34); v164 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"currencyOrbIcon_001.png", v163); (*(void (__fastcall **)(GJGarageLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v164); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v164 + 160LL))(v164, 0.54); v165 = v152; v166 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v152 + 192LL); v167 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v164 + 184LL); v264 = v166(v165); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, 0.0, -15.0); cocos2d::CCPoint::operator+(&v276, v264); v168 = (GameStatsManager *)v167(v164, &v276); v169 = (GameStatsManager *)GameStatsManager::sharedState(v168); v170 = GameStatsManager::getStat(v169, (const char *)&word_1217DE8); v171 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v170); v172 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v171); v174 = cocos2d::CCLabelBMFont::create(v172, "bigFont.fnt", v173); (*(void (__fastcall **)(GJGarageLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v174); v265 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v174 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, 1.0, 0.5); v265(v174, &v276); v250 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v174 + 184LL); v266 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v164 + 192LL))(v164); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, -12.0, 0.5); cocos2d::CCPoint::operator+(&v276, v266); v250(v174, &v276); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v174 + 160LL))(v174, 0.34); v176 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_diamondsIcon_001.png", v175); (*(void (__fastcall **)(GJGarageLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v176); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v176 + 160LL))(v176, 0.6); v177 = v164; v178 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v164 + 192LL); v179 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v176 + 184LL); v267 = v178(v177); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, 0.0, -15.0); cocos2d::CCPoint::operator+(&v276, v267); v180 = (GameStatsManager *)v179(v176, &v276); v181 = (GameStatsManager *)GameStatsManager::sharedState(v180); v182 = GameStatsManager::getStat(v181, "13"); v183 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v182); v184 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v183); v186 = cocos2d::CCLabelBMFont::create(v184, "bigFont.fnt", v185); (*(void (__fastcall **)(GJGarageLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v186); v268 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v186 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, 1.0, 0.5); v268(v186, &v276); v251 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v186 + 184LL); v269 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v176 + 192LL))(v176); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, -12.0, 0.5); cocos2d::CCPoint::operator+(&v276, v269); v251(v186, &v276); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v186 + 160LL))(v186, 0.34); v188 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"currencyDiamondIcon_001.png", v187); (*(void (__fastcall **)(GJGarageLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v188); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v188 + 160LL))(v188, 0.54); v189 = v176; v190 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v176 + 192LL); v191 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v188 + 184LL); v270 = v190(v189); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, 0.0, -15.0); cocos2d::CCPoint::operator+(&v276, v270); v192 = (GameStatsManager *)v191(v188, &v276); v193 = (GameStatsManager *)GameStatsManager::sharedState(v192); v194 = GameStatsManager::getStat(v193, "29"); v195 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v194); v196 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v195); v198 = cocos2d::CCLabelBMFont::create(v196, "bigFont.fnt", v197); (*(void (__fastcall **)(GJGarageLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v198); v199 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v198 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v276, 1.0, 0.5); v199(v198, &v276); v200 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v198 + 184LL); v201 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v188 + 192LL))(v188); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, -12.0, 0.5); cocos2d::CCPoint::operator+(&v276, v201); v200(v198, &v276); v202 = (GameManager *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v198 + 160LL))(v198, 0.34); v203 = GameManager::sharedState(v202); v204 = (const char *)*(unsigned int *)(v203 + 660); v205 = (PlatformToolbox *)*(unsigned int *)(v203 + 664); if ( (_DWORD)v204 != (_DWORD)v205 ) { v206 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v204); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v206 + 160LL))(v206, 0.8); v207 = (cocos2d::CCDirector **)CCMenuItemSpriteExtra::create( v206, 0, (__int64)this, (__int64)GJGarageLayer::onInfo, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v207, 2.0); v208 = *((__int64 (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v207 + 23); v209 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v207); v210 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v209); v212 = v211; v213 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v210); cocos2d::CCDirector::getScreenTop(v213); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, v212 - 15.0, v214 - 15.0); cocos2d::CCNode::convertToNodeSpace(&v276, (cocos2d::CCNode *)v90, (const cocos2d::CCPoint *)v275); v205 = (PlatformToolbox *)v208(v207, &v276); } isControllerConnected = PlatformToolbox::isControllerConnected(v205); if ( isControllerConnected ) { v3 = isControllerConnected; GameToolbox::addBackButton(this, v245, (cocos2d::CCMenuItem *)isControllerConnected); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source