// // GJGarageLayer::init from 0x14037b7c0 to 0x14037d288 (6856 bytes) // // 4 xrefs: // > GJGarageLayer::scene @ 0x14037b777 // > GJGarageLayer::scene @ 0x14037b768 // > @ 0x140770300 // > @ 0x140922808 // // This function is hookable on this platform (idp: pc, 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 11:31:03 +0000 // // Hidden C++ exception states: #wind=26 bool __fastcall GJGarageLayer::init(__int64 *a1) { bool result; // al __int64 v3; // rdx __int64 v4; // rax __int64 v5; // rdx __int64 v6; // rcx __int64 v7; // rax float v8; // xmm12_4 struct cocos2d::CCSprite *v9; // rdi __int64 v10; // rbx __int64 v11; // rax __int64 v12; // rbx __int64 v13; // rax struct cocos2d::CCSprite *v14; // rdi __int64 v15; // rbx __int64 v16; // rax __int64 v17; // rbx __int64 v18; // rcx cocos2d::CCDirector *v19; // rax float v20; // xmm6_4 __int64 v21; // rcx cocos2d::CCDirector *v22; // rax float v23; // xmm0_4 __int64 v24; // rax size_t v25; // r14 struct cocos2d::CCSprite *v26; // rdi __int64 v27; // rbx __int64 v28; // rax __int64 v29; // rbx __int64 v30; // rcx cocos2d::CCDirector *v31; // rax float v32; // xmm6_4 __int64 v33; // rcx cocos2d::CCDirector *v34; // rax float v35; // xmm0_4 __int64 v36; // rax struct cocos2d::CCSprite *v37; // rdi __int64 v38; // rbx __int64 v39; // rax __int64 v40; // rbx __int64 v41; // rcx cocos2d::CCDirector *v42; // rax float v43; // xmm6_4 __int64 v44; // rcx cocos2d::CCDirector *v45; // rax float v46; // xmm0_4 __int64 v47; // rax __int64 v48; // rax char *v49; // rax __int64 v50; // rdi cocos2d::CCDirector *v51; // rax float v52; // xmm0_4 __int64 v53; // rbx __int64 v54; // rax __int64 v55; // rcx __int64 v56; // rcx __int64 v57; // rax __int64 v58; // rax __int128 *v59; // rdx struct cocos2d::CCSprite *v60; // rdi const struct cocos2d::CCSize *v61; // rax __int64 v62; // rax __int64 v63; // rbx __int64 v64; // rax __int64 v65; // rdx __int64 *v66; // rcx __int64 v67; // rdi size_t v68; // r8 int v69; // ebx __int64 v70; // rdx __int128 *p_Buf2; // rdx __int64 v72; // rax struct cocos2d::CCSprite *v73; // rdi __int64 v74; // rax __int64 v75; // rbx __int64 v76; // rax struct cocos2d::CCSprite *v77; // rdi __int64 v78; // rbx __int64 v79; // rax __int64 v80; // rax __int64 v81; // rax _QWORD *v82; // rbx __int64 v83; // rax double v84; // xmm0_8 __int64 v85; // rax __int64 v86; // rbx __int64 v87; // rax _DWORD *v88; // r8 __int64 v89; // rdx __int64 v90; // r8 int v91; // eax cocos2d::CCObject *v92; // r13 struct cocos2d::CCMenu *v93; // r12 __int64 v94; // rbx __int64 v95; // rcx cocos2d::CCDirector *v96; // rax float v97; // xmm6_4 __int64 v98; // rcx cocos2d::CCDirector *v99; // rax float v100; // xmm0_4 __int64 v101; // rax int v102; // eax cocos2d::CCObject *v103; // rdi __int64 v104; // rax __int64 v105; // rax __int64 v106; // rax __int64 v107; // rbx __int64 v108; // rax __int64 v109; // rax int v110; // eax cocos2d::CCObject *v111; // rdi __int64 v112; // rbx __int64 v113; // rax __int64 v114; // rax int v115; // eax cocos2d::CCObject *v116; // rdi __int64 v117; // rbx __int64 v118; // rax __int64 v119; // rax struct cocos2d::CCSprite *v120; // r15 __int64 v121; // rbx __int64 v122; // rcx cocos2d::CCDirector *v123; // rax float v124; // xmm6_4 __int64 v125; // rcx cocos2d::CCDirector *v126; // rax float v127; // xmm0_4 __int64 v128; // rax __int64 v129; // rcx unsigned int Stat; // eax cocos2d::CCString *v131; // rax const char *CString; // rax struct cocos2d::CCLabelBMFont *v133; // rdi __int64 v134; // rbx __int64 v135; // rax __int64 v136; // rax __int64 v137; // rbx __int64 v138; // rax struct cocos2d::CCSprite *v139; // r14 __int64 v140; // rax __int64 v141; // rbx __int64 v142; // rax __int64 v143; // rcx unsigned int v144; // eax cocos2d::CCString *v145; // rax const char *v146; // rax struct cocos2d::CCLabelBMFont *v147; // rdi __int64 v148; // rbx __int64 v149; // rax __int64 v150; // rax __int64 v151; // rbx __int64 v152; // rax struct cocos2d::CCSprite *v153; // r15 __int64 v154; // rax __int64 v155; // rbx __int64 v156; // rax __int64 v157; // rcx unsigned int v158; // eax cocos2d::CCString *v159; // rax const char *v160; // rax struct cocos2d::CCLabelBMFont *v161; // rdi __int64 v162; // rbx __int64 v163; // rax __int64 v164; // rax __int64 v165; // rbx __int64 v166; // rax struct cocos2d::CCSprite *v167; // r14 __int64 v168; // rax __int64 v169; // rbx __int64 v170; // rax __int64 v171; // rcx unsigned int v172; // eax cocos2d::CCString *v173; // rax const char *v174; // rax struct cocos2d::CCLabelBMFont *v175; // rdi __int64 v176; // rbx __int64 v177; // rax __int64 v178; // rax __int64 v179; // rbx __int64 v180; // rax struct cocos2d::CCSprite *v181; // r15 __int64 v182; // rax __int64 v183; // rbx __int64 v184; // rax __int64 v185; // rcx unsigned int v186; // eax cocos2d::CCString *v187; // rax const char *v188; // rax struct cocos2d::CCLabelBMFont *v189; // rdi __int64 v190; // rbx __int64 v191; // rax __int64 v192; // rax __int64 v193; // rbx __int64 v194; // rax struct cocos2d::CCSprite *v195; // r14 __int64 v196; // rax __int64 v197; // rbx __int64 v198; // rax __int64 v199; // rcx unsigned int v200; // eax cocos2d::CCString *v201; // rax const char *v202; // rax struct cocos2d::CCLabelBMFont *v203; // rdi __int64 v204; // rbx __int64 v205; // rax __int64 v206; // rax __int64 v207; // rbx __int64 v208; // rax struct cocos2d::CCSprite *v209; // r15 __int64 v210; // rax __int64 v211; // rbx __int64 v212; // rax __int64 v213; // rcx unsigned int v214; // eax cocos2d::CCString *v215; // rax const char *v216; // rax struct cocos2d::CCLabelBMFont *v217; // rdi __int64 v218; // rbx __int64 v219; // rax __int64 v220; // rax __int64 v221; // rbx __int64 v222; // rax __int64 v223; // rcx struct cocos2d::CCSprite *v224; // rax int v225; // ebx cocos2d::CCObject *v226; // rdi __int64 v227; // rbx __int64 v228; // rcx cocos2d::CCDirector *v229; // rax float v230; // xmm7_4 __int64 v231; // rcx cocos2d::CCDirector *v232; // rax float v233; // xmm0_4 __int64 v234; // rax __int64 v235; // rax void *v236; // [rsp+38h] [rbp-D0h] BYREF void *v237; // [rsp+40h] [rbp-C8h] BYREF __int64 v238; // [rsp+48h] [rbp-C0h] BYREF float v239; // [rsp+50h] [rbp-B8h] BYREF float v240; // [rsp+54h] [rbp-B4h] void *v241; // [rsp+58h] [rbp-B0h] BYREF __int64 Buf1[3]; // [rsp+60h] [rbp-A8h] BYREF __int64 v243; // [rsp+78h] [rbp-90h] unsigned __int64 v244; // [rsp+80h] [rbp-88h] __int128 Buf2; // [rsp+88h] [rbp-80h] BYREF __int64 v246; // [rsp+98h] [rbp-70h] unsigned __int64 v247; // [rsp+A0h] [rbp-68h] result = cocos2d::CCLayer::init((cocos2d::CCLayer *)a1); if ( result ) { v4 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v236 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v236); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v4 = qword_14090BFD0; } *(_BYTE *)(v4 + 600) = 1; *(_DWORD *)(v4 + 740) = 0; LOBYTE(v3) = 1; (*(void (__fastcall **)(__int64 *, __int64))(*a1 + 992))(a1, v3); LOBYTE(v5) = 1; (*(void (__fastcall **)(__int64 *, __int64))(*a1 + 1008))(a1, v5); v7 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7, &v239); v8 = (float)(v240 * 0.5) + 50.0; v9 = cocos2d::CCSprite::create("GJ_gradientBG.png"); v10 = *(_QWORD *)v9; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v236, 0.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v10 + 288))(v9, v11); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *, __int64))(*a1 + 456))(a1, v9, 4294967294LL); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v9 + 120LL))(v9); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v9 + 136LL))(v9); v12 = *(_QWORD *)v9; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v236, -5.0, -5.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v12 + 184))(v9, v13); LOWORD(v238) = -26986; BYTE2(v238) = -106; (**((void (__fastcall ***)(__int64, __int64 *))v9 + 40))((__int64)v9 + 320, &v238); v14 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v15 = *(_QWORD *)v14; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v236, 0.0, 1.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v15 + 288))(v14, v16); v17 = *(_QWORD *)v14; v19 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v18); v20 = cocos2d::CCDirector::getScreenTop(v19) + 1.0; v22 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v21); v23 = cocos2d::CCDirector::getScreenLeft(v22) - 1.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v236, v23, v20); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v17 + 184))(v14, v24); cocos2d::CCSprite::setFlipY(v14, 1); v25 = -1; (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *, __int64))(*a1 + 456))(a1, v14, 0xFFFFFFFFLL); v26 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v27 = *(_QWORD *)v26; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v236, 0.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v27 + 288))(v26, v28); v29 = *(_QWORD *)v26; v31 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v30); v32 = cocos2d::CCDirector::getScreenBottom(v31) - 1.0; v34 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v33); v35 = cocos2d::CCDirector::getScreenLeft(v34) - 1.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v236, v35, v32); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v29 + 184))(v26, v36); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *, __int64))(*a1 + 456))(a1, v26, 1); v37 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v38 = *(_QWORD *)v37; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v236, 1.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v38 + 288))(v37, v39); v40 = *(_QWORD *)v37; v42 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v41); v43 = cocos2d::CCDirector::getScreenBottom(v42) - 1.0; v45 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v44); v46 = cocos2d::CCDirector::getScreenRight(v45) + 1.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v236, v46, v43); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v40 + 184))(v37, v47); cocos2d::CCSprite::setFlipX(v37, 1); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *, __int64))(*a1 + 456))(a1, v37, 1); v48 = GJAccountManager::sharedState(); v49 = CCTextInputNode::create(*(unsigned int *)(v48 + 364), *(unsigned int *)(v48 + 360), (__int64)"Player"); a1[58] = (__int64)v49; (*(void (__fastcall **)(__int64 *, char *, __int64))(*a1 + 456))(a1, v49, 20); *(_QWORD *)(a1[58] + 600) = a1 + 51; v50 = *(_QWORD *)a1[58]; v51 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1 + 51); v52 = cocos2d::CCDirector::getScreenTop(v51) - 34.0; v53 = a1[58]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v236, v239 * 0.5, v52); (*(void (__fastcall **)(__int64, __int64))(v50 + 184))(v53, v54); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1[58] + 592) + 336LL))(*(_QWORD *)(a1[58] + 592), 0); *(_DWORD *)(a1[58] + 608) = 15; LOWORD(v238) = -21896; v55 = a1[58]; *(_WORD *)(v55 + 572) = -21896; *(_BYTE *)(v55 + 574) = -16; CCTextInputNode::refreshLabel(v55); v56 = a1[58]; *(_DWORD *)(v56 + 568) = 1060320051; CCTextInputNode::refreshLabel(v56); *(_OWORD *)&Buf1[1] = 0; v243 = 0; v244 = 0; Buf1[1] = (__int64)sub_14003D460(0x40u); v243 = 62; v244 = 63; strcpy((char *)Buf1[1], "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"); CCTextInputNode::setAllowedChars(a1[58], (void **)&Buf1[1]); v57 = GJAccountManager::sharedState(); if ( *(_DWORD *)(v57 + 360) == *(_DWORD *)(v57 + 364) ) { Buf2 = 0; v246 = 0; v247 = 15; LOBYTE(Buf2) = 0; v65 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v237 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v237); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v65 = qword_14090BFD0; } sub_14003F4F0((__int64)&Buf1[1], v65 + 656); v66 = &Buf1[1]; if ( v244 > 0xF ) v66 = (__int64 *)Buf1[1]; v67 = v243; v68 = v243; if ( v243 ) v68 = 0; v69 = memcmp(v66, &Buf2, v68); if ( !v69 ) v69 = v67 != 0; sub_14003D310((__int64)&Buf1[1]); if ( v69 ) { v70 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v237 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v237); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v70 = qword_14090BFD0; } sub_14003F4F0((__int64)&Buf2, v70 + 656); p_Buf2 = &Buf2; if ( v247 > 0xF ) p_Buf2 = (__int128 *)Buf2; *(_OWORD *)&Buf1[1] = 0; v243 = 0; v244 = 0; do ++v25; while ( *((_BYTE *)p_Buf2 + v25) ); sub_14003D230(&Buf1[1], p_Buf2, v25); CCTextInputNode::setString((_QWORD *)a1[58], &Buf1[1]); sub_14003D310((__int64)&Buf2); } v72 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v237 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v237); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v72 = qword_14090BFD0; } if ( !*(_BYTE *)(v72 + 961) ) { v73 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_nameTxt_001.png"); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *))(*a1 + 464))(a1, v73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, 115.0, 10.0); v75 = v74; v76 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1[58] + 200LL))(a1[58]); cocos2d::CCPoint::operator+(v76, &v236, v75); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v73 + 184LL))(v73, &v236); } } else { v58 = GJAccountManager::sharedState(); sub_14003F4F0((__int64)&Buf2, v58 + 328); v59 = &Buf2; if ( v247 > 0xF ) v59 = (__int128 *)Buf2; *(_OWORD *)&Buf1[1] = 0; v243 = 0; v244 = 0; do ++v25; while ( *((_BYTE *)v59 + v25) ); sub_14003D230(&Buf1[1], v59, v25); CCTextInputNode::setString((_QWORD *)a1[58], &Buf1[1]); sub_14003D310((__int64)&Buf2); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1[58] + 920LL))(a1[58], 0); v60 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)&xmmword_14071C878); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *, __int64))(*a1 + 456))(a1, v60, 2); v61 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1[58] + 616) + 320LL))(*(_QWORD *)(a1[58] + 616)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v238, v61); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, (float)(*(float *)&v238 * 0.5) + 8.0, 10.0); v63 = v62; v64 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1[58] + 200LL))(a1[58]); cocos2d::CCPoint::operator+(v64, &v236, v63); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v60 + 184LL))(v60, &v236); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v60 + 160LL))(v60); } v77 = cocos2d::CCSprite::createWithSpriteFrameName("floorLine_001.png"); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *, _QWORD))(*a1 + 456))(a1, v77, 0); v78 = *(_QWORD *)v77; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, v239 * 0.5, v8); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v78 + 184))(v77, v79); v238 = 0x100000302LL; (**((void (__fastcall ***)(__int64, __int64))v77 + 43))((__int64)v77 + 344, 0x100000302LL); v80 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v237 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v237); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v80 = qword_14090BFD0; } v81 = SimplePlayer::create((unsigned int)(*(_DWORD *)(v80 + 748) - *(_DWORD *)(v80 + 752))); a1[59] = v81; (*(void (__fastcall **)(__int64 *, __int64, _QWORD))(*a1 + 456))(a1, v81, 0); v82 = (_QWORD *)a1[59]; if ( !v82[80] ) { v83 = GJRobotSprite::create(1); v82[80] = v83; (*(void (__fastcall **)(_QWORD *, __int64))(*v82 + 464LL))(v82, v83); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v82[80] + 336LL))(v82[80], 0); } SimplePlayer::createSpiderSprite(a1[59], 1); if ( !qword_14090BFD0 ) { v237 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v237); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } (*(void (__fastcall **)(__int64))(*(_QWORD *)a1[59] + 160LL))(a1[59]); v84 = (*(double (__fastcall **)(__int64))(*(_QWORD *)a1[59] + 168LL))(a1[59]); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, 0.0, (float)((float)(*(float *)&v84 * 30.0) * 0.5) + 1.0); v86 = v85; v87 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v77 + 200LL))(v77); cocos2d::CCPoint::operator+(v87, &v236, v86); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)a1[59] + 184LL))(a1[59], &v236); GJGarageLayer::updatePlayerColors(a1); v88 = (_DWORD *)qword_14090BFD0; if ( !qword_14090BFD0 ) { v237 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v237); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v88 = (_DWORD *)qword_14090BFD0; } switch ( v88[237] ) { case 1: v89 = (unsigned int)(v88[190] - v88[191]); v90 = 1; goto LABEL_47; case 2: v89 = (unsigned int)(v88[193] - v88[194]); v90 = 2; goto LABEL_47; case 3: v89 = (unsigned int)(v88[196] - v88[197]); v90 = 3; goto LABEL_47; case 4: v89 = (unsigned int)(v88[199] - v88[200]); v90 = 4; goto LABEL_47; case 5: v89 = (unsigned int)(v88[202] - v88[203]); v90 = 5; goto LABEL_47; case 6: v89 = (unsigned int)(v88[205] - v88[206]); v90 = 6; goto LABEL_47; case 7: v89 = (unsigned int)(v88[208] - v88[209]); v90 = 7; goto LABEL_47; case 8: v89 = (unsigned int)(v88[229] - v88[230]); v90 = 8; LABEL_47: SimplePlayer::updatePlayerFrame(a1[59], v89, v90); break; default: break; } GJGarageLayer::setupIconSelect(a1); v91 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_03_001.png"); v92 = CCMenuItemSpriteExtra::create(v91, 0, (int)a1, (__int64)GJGarageLayer::onBack); *((_DWORD *)v92 + 93) = 1070386381; v93 = cocos2d::CCMenu::create(v92, 0); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCMenu *, __int64))(*a1 + 456))(a1, v93, 1); v94 = *(_QWORD *)v93; v96 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v95); v97 = cocos2d::CCDirector::getScreenTop(v96) - 23.0; v99 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v98); v100 = cocos2d::CCDirector::getScreenLeft(v99) + 24.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, v100, v97); (*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v94 + 184))(v93, v101); v102 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("shopRope_001.png"); v103 = CCMenuItemSpriteExtra::create(v102, 0, (int)a1, (__int64)GJGarageLayer::onShop); v104 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v103 + 952LL))(v103); v105 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v104 + 200LL))(v104); cocos2d::CCPoint::operator=((char *)v103 + 504, v105); *((_DWORD *)v103 + 125) = 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, 0.0, -15.0); cocos2d::CCPoint::operator=((char *)v103 + 484, v106); *((_DWORD *)v103 + 123) = 1050253722; *((_DWORD *)v103 + 124) = 1050253722; (*(void (__fastcall **)(struct cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v93 + 464LL))(v93, v103); v107 = *(_QWORD *)v103; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, (float)(v239 * 0.5) - 135.0, v240 - 25.0); cocos2d::CCNode::convertToNodeSpace(v93, &v236, v108); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v107 + 184))(v103, v109); v110 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_shardsBtn_001.png"); v111 = CCMenuItemSpriteExtra::create(v110, 0, (int)a1, (__int64)GJGarageLayer::onShards); (*(void (__fastcall **)(struct cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v93 + 464LL))(v93, v111); v112 = *(_QWORD *)v111; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, 30.0, v240 - 80.0); cocos2d::CCNode::convertToNodeSpace(v93, &v236, v113); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v112 + 184))(v111, v114); v115 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_paintBtn_001.png"); v116 = CCMenuItemSpriteExtra::create(v115, 0, (int)a1, (__int64)GJGarageLayer::onPaint); (*(void (__fastcall **)(struct cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v93 + 464LL))(v93, v116); v117 = *(_QWORD *)v116; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, 30.0, v240 - 120.0); cocos2d::CCNode::convertToNodeSpace(v93, &v236, v118); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v117 + 184))(v116, v119); v120 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_starsIcon_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v120 + 160LL))(v120); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *))(*a1 + 464))(a1, v120); v121 = *(_QWORD *)v120; v123 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v122); v124 = cocos2d::CCDirector::getScreenTop(v123) - 12.0; v126 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v125); v127 = (float)(cocos2d::CCDirector::getScreenRight(v126) - 18.0) - 0.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, v127, v124); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v121 + 184))(v120, v128); v129 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v236 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v236); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v129 = qword_14090BFE0; } Stat = GameStatsManager::getStat(v129, "6"); v131 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, Stat); CString = cocos2d::CCString::getCString(v131); v133 = cocos2d::CCLabelBMFont::create(CString, (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCLabelBMFont *))(*a1 + 464))(a1, v133); v134 = *(_QWORD *)v133; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, 1.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v134 + 288))(v133, v135); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, -12.0, 0.5); v137 = v136; v138 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v120 + 200LL))(v120); cocos2d::CCPoint::operator+(v138, &v236, v137); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v133 + 184LL))(v133, &v236); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v133 + 160LL))(v133); v139 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)&xmmword_14073A060); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v139 + 160LL))(v139); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *))(*a1 + 464))(a1, v139); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, 0.0, -15.0); v141 = v140; v142 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v120 + 200LL))(v120); cocos2d::CCPoint::operator+(v142, &v236, v141); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v139 + 184LL))(v139, &v236); v143 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v238 = (__int64)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v238); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v143 = qword_14090BFE0; } v144 = GameStatsManager::getStat(v143, "28"); v145 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v144); v146 = cocos2d::CCString::getCString(v145); v147 = cocos2d::CCLabelBMFont::create(v146, (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCLabelBMFont *))(*a1 + 464))(a1, v147); v148 = *(_QWORD *)v147; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, 1.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v148 + 288))(v147, v149); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, -12.0, 0.5); v151 = v150; v152 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v139 + 200LL))(v139); cocos2d::CCPoint::operator+(v152, &v236, v151); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v147 + 184LL))(v147, &v236); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v147 + 160LL))(v147); v153 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon_001.png"); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *))(*a1 + 464))(a1, v153); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, 0.0, -15.0); v155 = v154; v156 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v139 + 200LL))(v139); cocos2d::CCPoint::operator+(v156, &v236, v155); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v153 + 184LL))(v153, &v236); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v153 + 160LL))(v153); v157 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v237 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v237); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v157 = qword_14090BFE0; } v158 = GameStatsManager::getStat(v157, &word_14070D038); v159 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v158); v160 = cocos2d::CCString::getCString(v159); v161 = cocos2d::CCLabelBMFont::create(v160, (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCLabelBMFont *))(*a1 + 464))(a1, v161); v162 = *(_QWORD *)v161; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, 1.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v162 + 288))(v161, v163); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, -12.0, 0.5); v165 = v164; v166 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v153 + 200LL))(v153); cocos2d::CCPoint::operator+(v166, &v236, v165); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v161 + 184LL))(v161, &v236); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v161 + 160LL))(v161); v167 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon2_001.png"); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *))(*a1 + 464))(a1, v167); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, 0.0, -15.0); v169 = v168; v170 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v153 + 200LL))(v153); cocos2d::CCPoint::operator+(v170, &v236, v169); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v167 + 184LL))(v167, &v236); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v167 + 160LL))(v167); v171 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v237 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v237); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v171 = qword_14090BFE0; } v172 = GameStatsManager::getStat(v171, "12"); v173 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v172); v174 = cocos2d::CCString::getCString(v173); v175 = cocos2d::CCLabelBMFont::create(v174, (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCLabelBMFont *))(*a1 + 464))(a1, v175); v176 = *(_QWORD *)v175; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, 1.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v176 + 288))(v175, v177); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, -12.0, 0.5); v179 = v178; v180 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v167 + 200LL))(v167); cocos2d::CCPoint::operator+(v180, &v236, v179); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v175 + 184LL))(v175, &v236); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v175 + 160LL))(v175); v181 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)&xmmword_14071BE38); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *))(*a1 + 464))(a1, v181); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v181 + 160LL))(v181); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v238, 0.0, -15.0); v183 = v182; v184 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v167 + 200LL))(v167); cocos2d::CCPoint::operator+(v184, &v236, v183); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v181 + 184LL))(v181, &v236); v185 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v237 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v237); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v185 = qword_14090BFE0; } v186 = GameStatsManager::getStat(v185, &word_140737D98); v187 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v186); v188 = cocos2d::CCString::getCString(v187); v189 = cocos2d::CCLabelBMFont::create(v188, (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCLabelBMFont *))(*a1 + 464))(a1, v189); v190 = *(_QWORD *)v189; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, 1.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v190 + 288))(v189, v191); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v241, -12.0, 0.5); v193 = v192; v194 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v181 + 200LL))(v181); cocos2d::CCPoint::operator+(v194, &v236, v193); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v189 + 184LL))(v189, &v236); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v189 + 160LL))(v189); v195 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_diamondsIcon_001.png"); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *))(*a1 + 464))(a1, v195); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v195 + 160LL))(v195); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Buf1, 0.0, -15.0); v197 = v196; v198 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v181 + 200LL))(v181); cocos2d::CCPoint::operator+(v198, &v236, v197); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v195 + 184LL))(v195, &v236); v199 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v241 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v241); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v199 = qword_14090BFE0; } v200 = GameStatsManager::getStat(v199, "13"); v201 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v200); v202 = cocos2d::CCString::getCString(v201); v203 = cocos2d::CCLabelBMFont::create(v202, (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCLabelBMFont *))(*a1 + 464))(a1, v203); v204 = *(_QWORD *)v203; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v241, 1.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v204 + 288))(v203, v205); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, -12.0, 0.5); v207 = v206; v208 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v195 + 200LL))(v195); cocos2d::CCPoint::operator+(v208, &v236, v207); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v203 + 184LL))(v203, &v236); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v203 + 160LL))(v203); v209 = cocos2d::CCSprite::createWithSpriteFrameName("currencyDiamondIcon_001.png"); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *))(*a1 + 464))(a1, v209); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v209 + 160LL))(v209); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v238, 0.0, -15.0); v211 = v210; v212 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v195 + 200LL))(v195); cocos2d::CCPoint::operator+(v212, &v236, v211); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v209 + 184LL))(v209, &v236); v213 = qword_14090BFE0; if ( !qword_14090BFE0 ) { Buf1[0] = (__int64)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(Buf1[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v213 = qword_14090BFE0; } v214 = GameStatsManager::getStat(v213, &word_14075A858); v215 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v214); v216 = cocos2d::CCString::getCString(v215); v217 = cocos2d::CCLabelBMFont::create(v216, (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCLabelBMFont *))(*a1 + 464))(a1, v217); v218 = *(_QWORD *)v217; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Buf1, 1.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v218 + 288))(v217, v219); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v241, -12.0, 0.5); v221 = v220; v222 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v209 + 200LL))(v209); cocos2d::CCPoint::operator+(v222, &v236, v221); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v217 + 184LL))(v217, &v236); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v217 + 160LL))(v217); v223 = qword_14090BFD0; if ( !qword_14090BFD0 ) { Buf1[0] = (__int64)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(Buf1[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v223 = qword_14090BFD0; } if ( *(_DWORD *)(v223 + 692) != *(_DWORD *)(v223 + 696) ) { v224 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); v225 = (int)v224; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v224 + 160LL))(v224); v226 = CCMenuItemSpriteExtra::create(v225, 0, (int)a1, (__int64)GJGarageLayer::onInfo); *((_DWORD *)v226 + 93) = 0x40000000; v227 = *(_QWORD *)v226; v229 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v228); v230 = cocos2d::CCDirector::getScreenTop(v229) - 15.0; v232 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v231); v233 = cocos2d::CCDirector::getScreenRight(v232) - 15.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Buf1, v233, v230); cocos2d::CCNode::convertToNodeSpace(v93, &v241, v234); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v227 + 184))(v226, v235); } if ( *(_BYTE *)(cocos2d::CCApplication::sharedApplication(v223) + 209) ) GameToolbox::addBackButton((__int64)a1, (__int64)v92); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source