// // GJShopLayer::init from 0x1001c8f60 to 0x1001ca14c (4588 bytes) // // 1 xrefs: // > GJShopLayer::create @ 0x1001c8f14 // // 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 11:00:19 +0000 // __int64 __fastcall GJShopLayer::init(__int64 a1, __int64 a2) { __int64 result; // x0 __int64 v5; // x0 __int64 v6; // x0 int v7; // w8 const std::string::value_type *v8; // x1 void *v9; // x21 size_t v10; // x22 void **v11; // x23 const void *v12; // x1 char *v13; // x1 _DWORD *v14; // x0 __int64 v15; // x21 size_t v16; // x22 void **v17; // x23 const void *v18; // x1 void **v19; // x1 __int64 v20; // x0 __int64 v21; // x0 std::string *v22; // x1 float *v23; // x22 std::string *v24; // x0 std::string *v25; // x0 __int64 v26; // x19 __int64 v27; // x19 __int64 v28; // x19 __int64 v29; // x21 __int64 v30; // x0 std::string *v31; // x1 __int64 v32; // x19 std::string *v33; // x0 __int64 v34; // x0 __int64 v35; // x21 __int64 v36; // x0 __int64 v37; // x21 float32x2_t *v38; // x19 double v39; // d0 __int64 v40; // x19 __int64 v41; // x0 float v42; // s8 __int64 v43; // x0 float v44; // s1 __int64 v45; // x0 __int64 v46; // x21 __n128 v47; // q0 __int64 v48; // x0 __int64 v49; // x19 __int64 v50; // x21 __int64 v51; // x0 __int64 v52; // x0 double v53; // d0 float v54; // s8 __int64 v55; // x0 __int64 v56; // x0 float v57; // s0 __int64 v58; // x0 __int64 *v59; // x19 __int64 *v60; // x0 int v61; // w0 char *v62; // x1 __int64 Stat; // x0 __int64 v64; // x0 __int64 v65; // x19 float v66; // s8 __int64 v67; // x0 float v68; // s1 __int64 v69; // x19 char *v70; // x1 void **v71; // x0 __int64 v72; // x19 float32x2_t *v73; // x21 double v74; // d0 __int64 v75; // x21 __int64 v76; // x0 __int64 v77; // x0 __int64 v78; // x0 unsigned __int64 v79; // x19 __int64 v80; // x23 __int64 v81; // x0 char UGV; // w21 __int64 i; // x24 __int64 v84; // x0 _DWORD *v85; // x0 int v86; // w8 __int64 v87; // x0 __int64 v88; // x0 __int64 v89; // x25 const char *v90; // x8 float v91; // s10 _DWORD *v92; // x21 int v93; // w24 int v94; // w28 int v95; // w26 int v96; // w22 __int64 v97; // x0 __int64 isStoreItemUnlocked; // x27 __int64 v99; // x26 __int64 v100; // x24 __int64 v101; // x28 __n128 v102; // q0 __n128 v103; // q0 void **v104; // x0 __int64 v105; // x27 float *v106; // x0 void **v107; // x0 __int64 v108; // x26 float32x2_t *v109; // x24 float v110; // s14 float v111; // s0 double v112; // d0 __int64 v113; // x19 _DWORD *v114; // x0 __int64 v115; // x19 unsigned int v116; // [xsp+14h] [xbp-19Ch] __int64 v117; // [xsp+18h] [xbp-198h] char *__s; // [xsp+20h] [xbp-190h] __int64 v119; // [xsp+28h] [xbp-188h] unsigned int v120; // [xsp+34h] [xbp-17Ch] float32x2_t v121; // [xsp+38h] [xbp-178h] BYREF float32x2_t v122; // [xsp+40h] [xbp-170h] BYREF void *v123[2]; // [xsp+48h] [xbp-168h] BYREF char v124; // [xsp+5Fh] [xbp-151h] void *v125[2]; // [xsp+60h] [xbp-150h] BYREF char v126; // [xsp+77h] [xbp-139h] std::string __dst; // [xsp+80h] [xbp-130h] BYREF __int64 v128; // [xsp+98h] [xbp-118h] BYREF void *__p[2]; // [xsp+A0h] [xbp-110h] BYREF char v130; // [xsp+B7h] [xbp-F9h] std::string v131; // [xsp+B8h] [xbp-F8h] BYREF std::string v132; // [xsp+D0h] [xbp-E0h] BYREF std::string v133; // [xsp+E8h] [xbp-C8h] BYREF std::string v134; // [xsp+100h] [xbp-B0h] BYREF result = cocos2d::CCLayer::init((_WORD *)a1); if ( !(_DWORD)result ) return result; v116 = result; v5 = cocos2d::CCDirector::sharedDirector(result); v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5); cocos2d::CCTouchDispatcher::registerForcePrio(v6, a1, 2, 0); *(_DWORD *)(a1 + 456) = a2; sub_100009900(&v134, "shopBG_001.png"); sub_100009900(&v133, "storeDesk_001.png"); sub_100009900(&v132, "shopSign_001.png"); std::string::assign((std::string *)(a1 + 464), "GJ_ShopSheet01"); sub_100009900(&v131, "shop.mp3"); v7 = *(_DWORD *)(a1 + 456); if ( v7 > 2 ) { if ( v7 == 3 ) { std::string::assign((std::string *)(a1 + 464), "GJ_ShopSheet02"); std::string::assign(&v134, "shopBG_02_001.png"); std::string::assign(&v133, "storeDesk_02_001.png"); std::string::assign(&v132, "shopSign4_001.png"); v8 = "shop4.mp3"; goto LABEL_11; } if ( v7 == 4 ) { std::string::assign((std::string *)(a1 + 464), "GJ_ShopSheet03"); std::string::assign(&v134, "shopBG_03_001.png"); std::string::assign(&v133, "storeDesk_03_001.png"); std::string::assign(&v132, "shopSign5_001.png"); v8 = "shop5.ogg"; goto LABEL_11; } } else { if ( v7 == 1 ) { std::string::assign(&v132, "shopSign2_001.png"); v8 = "secretShop.mp3"; goto LABEL_11; } if ( v7 == 2 ) { std::string::assign(&v132, "shopSign3_001.png"); v8 = "shop3.ogg"; LABEL_11: std::string::assign(&v131, v8); } } v9 = cocos2d::CCTextureCache::sharedTextureCache(); if ( *(char *)(a1 + 487) >= 0 ) v10 = *(unsigned __int8 *)(a1 + 487); else v10 = *(_QWORD *)(a1 + 472); v11 = __p; sub_100026068((__int64)__p, v10 + 4); if ( v130 < 0 ) v11 = (void **)__p[0]; if ( v10 ) { if ( *(char *)(a1 + 487) >= 0 ) v12 = (const void *)(a1 + 464); else v12 = *(const void **)(a1 + 464); memmove(v11, v12, v10); } strcpy((char *)v11 + v10, ".png"); if ( v130 >= 0 ) v13 = (char *)__p; else v13 = (char *)__p[0]; v14 = cocos2d::CCTextureCache::addImage((__int64)v9, v13); if ( v130 < 0 ) operator delete(__p[0]); v15 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v14); if ( *(char *)(a1 + 487) >= 0 ) v16 = *(unsigned __int8 *)(a1 + 487); else v16 = *(_QWORD *)(a1 + 472); v17 = __p; sub_100026068((__int64)__p, v16 + 6); if ( v130 < 0 ) v17 = (void **)__p[0]; if ( v16 ) { if ( *(char *)(a1 + 487) >= 0 ) v18 = (const void *)(a1 + 464); else v18 = *(const void **)(a1 + 464); memmove(v17, v18, v16); } strcpy((char *)v17 + v16, ".plist"); if ( v130 >= 0 ) v19 = __p; else v19 = (void **)__p[0]; cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v15, v19); if ( v130 < 0 ) operator delete(__p[0]); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1); v20 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1104LL))(a1, 1); v21 = cocos2d::CCDirector::sharedDirector(v20); cocos2d::CCDirector::getWinSize(&v128, v21); if ( *(_DWORD *)(a1 + 456) == 2 ) { if ( (v134.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v22 = &v134; else v22 = (std::string *)v134.__r_.__value_.__r.__words[0]; sub_100009900(__p, (char *)v22); v23 = (float *)CCSpriteWithHue::createWithSpriteFrameName(__p); if ( v130 < 0 ) operator delete(__p[0]); sub_100238A00(v23); BYTE2(__p[0]) = -16; LOWORD(__p[0]) = 240; (*(void (__fastcall **)(float *, void **))(*(_QWORD *)v23 + 960LL))(v23, __p); } else { if ( (v134.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v24 = &v134; else v24 = (std::string *)v134.__r_.__value_.__r.__words[0]; v23 = (float *)cocos2d::CCSprite::createWithSpriteFrameName(v24); } sub_1000262BC((float *)__p, 0.0, 0.0); (*(void (__fastcall **)(float *, void **))(*(_QWORD *)v23 + 296LL))(v23, __p); (*(void (__fastcall **)(__int64, float *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v23, 4294967294LL); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v23 + 128LL))(v23, (float)(*(float *)&v128 + 5.0) / v23[108]); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v23 + 144LL))( v23, (float)(*((float *)&v128 + 1) + 5.0) / v23[109]); sub_1000262BC((float *)__p, -2.5, -2.5); (*(void (__fastcall **)(float *, void **))(*(_QWORD *)v23 + 184LL))(v23, __p); if ( (v132.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v25 = &v132; else v25 = (std::string *)v132.__r_.__value_.__r.__words[0]; v26 = cocos2d::CCSprite::createWithSpriteFrameName(v25); sub_1000262BC((float *)__p, (float)(*(float *)&v128 * 0.5) + -70.0, *((float *)&v128 + 1) + -38.0); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v26 + 184LL))(v26, __p); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v26); *(_QWORD *)(a1 + 512) = sub_1001CA324(a2); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 464LL))(a1); v27 = *(_QWORD *)(a1 + 512); sub_1000262BC((float *)__p, (float)(*(float *)&v128 * 0.5) + 100.0, 230.0); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v27 + 184LL))(v27, __p); v28 = *(_QWORD *)(a1 + 512); v29 = cocos2d::CCDelayTime::create(0.1); cocos2d::CCCallFunc::create(*(_QWORD *)(a1 + 512), AnimatedShopKeeper::startAnimating, 0); v30 = sub_10021D420(v29); cocos2d::CCNode::runAction(v28, v30); if ( *(_DWORD *)(a1 + 456) == 2 ) { if ( (v133.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v31 = &v133; else v31 = (std::string *)v133.__r_.__value_.__r.__words[0]; sub_100009900(__p, (char *)v31); v32 = CCSpriteWithHue::createWithSpriteFrameName(__p); if ( v130 < 0 ) operator delete(__p[0]); sub_100238A00(v32); } else { if ( (v133.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v33 = &v133; else v33 = (std::string *)v133.__r_.__value_.__r.__words[0]; v32 = cocos2d::CCSprite::createWithSpriteFrameName(v33); } (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v32, 1); sub_1000262BC((float *)__p, *(float *)&v128 * 0.5, 95.0); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v32 + 184LL))(v32, __p); v34 = (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v32 + 128LL))(v32, 0.96); if ( (int)a2 > 1 ) { if ( (_DWORD)a2 == 2 ) { v40 = cocos2d::CCMenu::create(v34); v41 = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v40, 0xFFFFFFFFLL); v42 = *(float *)&v128; v43 = AppDelegate::get(v41); v44 = 0.0; if ( *(_BYTE *)(v43 + 37) ) v44 = 10.0; sub_1000262BC((float *)__p, (float)(v42 + -40.0) - v44, *((float *)&v128 + 1) + -60.0); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v40 + 184LL))(v40, __p); v45 = cocos2d::CCSprite::createWithSpriteFrameName("communityCreditsBtn_001.png"); v46 = CCMenuItemSpriteExtra::create(v45, 0, a1, sub_1001CA450, 0); v47 = CCMenuItemSpriteExtra::setSizeMult(1.2); (*(void (__fastcall **)(__int64, __int64, __n128))(*(_QWORD *)v40 + 456LL))(v40, v46, v47); } else if ( (_DWORD)a2 == 3 ) { BYTE2(__p[0]) = -81; LOWORD(__p[0]) = -20561; (*(void (__fastcall **)(float *, void **))(*(_QWORD *)v23 + 960LL))(v23, __p); } } else if ( (_DWORD)a2 ) { if ( (_DWORD)a2 == 1 ) { BYTE2(__p[0]) = -1; LOWORD(__p[0]) = -256; (*(void (__fastcall **)(float *, void **))(*(_QWORD *)v23 + 960LL))(v23, __p); BYTE2(__p[0]) = -1; LOWORD(__p[0]) = -256; (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v32 + 960LL))(v32, __p); } } else { v35 = cocos2d::CCSprite::createWithSpriteFrameName("plushies_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v35 + 160LL))(v35, 1.1); v36 = CCMenuItemSpriteExtra::create(v35, 0, a1, nullsub_66, 0); *(_WORD *)(v36 + 408) = 256; v37 = cocos2d::CCMenu::createWithItem(v36); (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, v37, 0); v38 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 192LL))(v32); sub_1000262BC((float *)v125, -130.0, 120.0); *(float32x2_t *)&v39 = sub_100026318(v38, (float32x2_t *)v125, (float32x2_t *)__p); (*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v37 + 184LL))(v37, __p, v39); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v37 + 1272LL))(v37, 0); } v48 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_03_001.png"); v49 = CCMenuItemSpriteExtra::create(v48, 0, a1, GJShopLayer::onBack, 0); CCMenuItemSpriteExtra::setSizeMult(1.6); v50 = sub_100270434(v49); v51 = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v50, 1); v52 = cocos2d::CCDirector::sharedDirector(v51); v53 = sub_100207EA8(v52); v54 = *(float *)&v53; v56 = cocos2d::CCDirector::sharedDirector(v55); v57 = sub_100207E98(v56); sub_1000262BC((float *)__p, v54 + 24.0, v57 + -23.0); v58 = (*(__int64 (__fastcall **)(__int64, void **))(*(_QWORD *)v50 + 184LL))(v50, __p); if ( (unsigned int)PlatformToolbox::isControllerConnected(v58) ) GameToolbox::addBackButton(a1, v49); v59 = (__int64 *)FMODAudioEngine::sharedEngine(); if ( SHIBYTE(v131.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__dst, v131.__r_.__value_.__l.__data_, v131.__r_.__value_.__l.__size_); else __dst = v131; v60 = FMODAudioEngine::playMusic(v59, (__int64)&__dst, 1, 0, 0.0); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); if ( *(_DWORD *)(a1 + 456) == 4 ) { v61 = GameStatsManager::sharedState(v60); v62 = "29"; } else { v61 = GameStatsManager::sharedState(v60); v62 = "14"; } Stat = GameStatsManager::getStat(v61, v62); *(_QWORD *)(a1 + 440) = sub_10003E398(Stat, (__int64)"bigFont.fnt", 0); v64 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 464LL))(a1); v65 = *(_QWORD *)(a1 + 440); v66 = *(float *)&v128; v67 = AppDelegate::get(v64); v68 = 0.0; if ( *(_BYTE *)(v67 + 37) ) v68 = 10.0; sub_1000262BC((float *)__p, (float)(v66 + -34.0) - v68, *((float *)&v128 + 1) + -15.0); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v65 + 184LL))(v65, __p); v69 = *(_QWORD *)(a1 + 440); sub_1000262BC((float *)__p, 1.0, 0.5); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v69 + 296LL))(v69, __p); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 440) + 160LL))(*(_QWORD *)(a1 + 440), 0.6); if ( *(_DWORD *)(a1 + 456) == 4 ) v70 = "currencyDiamondIcon_001.png"; else v70 = "currencyOrbIcon_001.png"; sub_100009900(__p, v70); if ( v130 >= 0 ) v71 = __p; else v71 = (void **)__p[0]; v72 = cocos2d::CCSprite::createWithSpriteFrameName(v71); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v72, 3); v73 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 192LL))(*(_QWORD *)(a1 + 440)); sub_1000262BC((float *)v123, 13.0, -0.5); *(float32x2_t *)&v74 = sub_100026318(v73, (float32x2_t *)v123, (float32x2_t *)v125); (*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v72 + 184LL))(v72, v125, v74); v75 = cocos2d::CCParticleSystemQuad::create("keyEffect.plist", 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v75 + 1504LL))(v75, 8); *(_OWORD *)v125 = xmmword_10075CF80; (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v75 + 1360LL))(v75, v125); *(_OWORD *)v125 = xmmword_100761020; (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v75 + 1392LL))(v75, v125); v125[0] = nullptr; v125[1] = nullptr; (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v75 + 1376LL))(v75, v125); v125[0] = nullptr; v125[1] = nullptr; (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v75 + 1408LL))(v75, v125); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v75 + 976LL))(v75, 1.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v75 + 992LL))(v75, 0.2); sub_1000262BC((float *)v125, 12.0, 10.0); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v75 + 960LL))(v75, v125); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v75, 100); v76 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v72 + 192LL))(v72); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v75 + 184LL))(v75, v76); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v75 + 1568LL))(v75, 2); cocos2d::CCParticleSystem::resetSystem(v75); v119 = sub_1002E736C(v77); v78 = GameStatsManager::sharedState(v119); v79 = *(_QWORD *)(v78 + 464); v80 = sub_1002E736C(v78); v81 = GameManager::sharedState(v80); UGV = GameManager::getUGV(v81, "7"); for ( i = 0; ; i = (unsigned int)(i + 1) ) { v84 = sub_1002E757C(v79); if ( (unsigned int)i >= (unsigned int)v84 ) break; v85 = (_DWORD *)sub_1002E75A0(v79, i); v86 = *(_DWORD *)(a1 + 456); if ( v86 == v85[91] && ((v86 != 1) | UGV & 1 || v85[79] - v85[80] != 20) ) sub_1002E74E0(v80, v85); } v87 = cocos2d::CCDictionary::create(v84); *(_QWORD *)(a1 + 448) = v87; cocos2d::CCObject::retain(v87); v88 = cocos2d::CCSprite::createWithSpriteFrameName("playerSquare_001.png"); v120 = a2; v117 = sub_1002E736C(v88); v89 = 0; if ( v120 == 4 ) v90 = "currencyDiamondIcon_001.png"; else v90 = "currencyOrbIcon_001.png"; __s = (char *)v90; if ( v120 == 4 ) v91 = 1.0; else v91 = 0.0; while ( (unsigned int)v89 < (unsigned int)sub_1002E757C(v80) ) { v92 = (_DWORD *)sub_1002E75A0(v80, v89); v93 = v92[82]; v94 = v92[83]; v95 = v92[85]; v96 = v92[86]; v97 = GameStatsManager::sharedState(v92); isStoreItemUnlocked = GameStatsManager::isStoreItemUnlocked(v97, (unsigned int)(v92[79] - v92[80])); v99 = (unsigned int)(v95 - v96); v79 = v79 & 0xFFFFFFFFFF000000LL | sub_1003A4CD4(v120) & 0xFFFFFF; v100 = sub_1003A46B0(v99, (unsigned int)(v93 - v94), isStoreItemUnlocked, v79); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v100 + 160LL))(v100, 1.1); v101 = CCMenuItemSpriteExtra::create(v100, 0, a1, sub_1001CA604, 0); CCMenuItemSpriteExtra::setSizeMult(2.0); v102 = sub_1002E74E0(v119, v101); (*(void (__fastcall **)(__int64, _QWORD, __n128))(*(_QWORD *)v101 + 72LL))( v101, (unsigned int)(v92[79] - v92[80]), v102); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v100 + 72LL))(v100, v99); if ( (unsigned int)v99 > 9 || ((1 << v99) & 0x302) == 0 ) v103 = sub_1002E74E0(v117, v101); if ( (_DWORD)isStoreItemUnlocked ) { (*(void (__fastcall **)(__int64, _QWORD, __n128))(*(_QWORD *)v101 + 1056LL))(v101, 0, v103); GJItemIcon::darkenStoreItem_1(v100, *(unsigned int *)(a1 + 456)); } else { GameToolbox::pointsToString((unsigned int)(v92[88] - v92[89]), (__int64)v125); if ( v126 >= 0 ) v104 = v125; else v104 = (void **)v125[0]; v105 = cocos2d::CCLabelBMFont::create_1(v104, "bigFont.fnt"); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v100 + 456LL))(v100, v105); v106 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v100 + 328LL))(v100); sub_1000262BC((float *)v123, (float)(*v106 * 0.5) + -4.0, -6.5); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v105 + 184LL))(v105, v123); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v105 + 160LL))(v105, 0.35); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v105 + 72LL))(v105, 1234); sub_100009900(v123, __s); if ( v124 >= 0 ) v107 = v123; else v107 = (void **)v123[0]; v108 = cocos2d::CCSprite::createWithSpriteFrameName(v107); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v100 + 456LL))(v100, v108); v109 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v105 + 192LL))(v105); v110 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v105 + 328LL))(v105); v111 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v105 + 168LL))(v105); sub_1000262BC((float *)&v121, (float)((float)((float)(v110 * 0.5) * v111) + 6.0) + v91, -0.5); *(float32x2_t *)&v112 = sub_100026318(v109, &v121, &v122); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v108 + 184LL))(v108, &v122, v112); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v108 + 160LL))(v108, 0.5); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v108 + 72LL))(v108, 1234); if ( v124 < 0 ) operator delete(v123[0]); if ( v126 < 0 ) operator delete(v125[0]); } cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 448), v101, (int)v92[79] - (__int64)(int)v92[80]); v89 = (unsigned int)(v89 + 1); } sub_1000262BC((float *)v123, *(float *)&v128 * 0.5, 93.0); sub_1000262F4(v125, (double *)v123); v113 = ListButtonBar::create(v119, v125, 4, 2, 1, 25.0, 15.0, 60.0, 221.0); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v113, 100); *(_BYTE *)(v113 + 344) = 1; v114 = *(_DWORD **)(v113 + 320); v114[135] = 1058642330; (*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v114 + 1000LL))(v114, 1); sub_1001F0FD8(v113, 0); *(_BYTE *)(*(_QWORD *)(v113 + 320) + 608LL) = 1; sub_1000262C4((float *)&v122, 406.0, 200.0); v115 = *(_QWORD *)(v113 + 320); sub_1000262CC( (float *)v125, *(float *)v123 - (float)(v122.f32[0] * 0.5), *((float *)v123 + 1) - (float)(v122.f32[1] * 0.5), v122.f32[0], v122.f32[1]); sub_1000264EC((_QWORD *)(v115 + 612), (__int64)v125); if ( v130 < 0 ) operator delete(__p[0]); if ( SHIBYTE(v131.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v131.__r_.__value_.__l.__data_); if ( SHIBYTE(v132.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v132.__r_.__value_.__l.__data_); if ( SHIBYTE(v133.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v133.__r_.__value_.__l.__data_); if ( SHIBYTE(v134.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v134.__r_.__value_.__l.__data_); return v116; }
GD Web Decomp Icon

GD Web Decomp

Raw Source