//
// GJBaseGameLayer::updateLayerCapacity from 0x10027909c to 0x100279bf4 (2904 bytes)
//
// 1 xrefs:
// > PlayLayer::setupHasCompleted @ 0x10013f620
//
// 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:01:52 +0000
//
void __fastcall GJBaseGameLayer::updateLayerCapacity(__int64 a1, std::string *__s)
{
signed __int64 size; // x2
char *v5; // x22
std::string *v6; // x21
std::string *v7; // x0
char *v8; // x0
__int64 v9; // x27
__int64 v10; // x28
int v11; // w20
__int64 v12; // x23
unsigned __int64 v13; // x24
__int64 v14; // x19
const char *v15; // x0
__int64 v16; // x21
const char *v17; // x22
int v18; // w19
const char *v19; // x0
__int64 v20; // x22
__int64 v21; // x0
__int64 v22; // x20
__int64 v23; // x0
__int64 v24; // x21
__int64 v25; // x0
int v26; // w22
__int64 v27; // x0
int v28; // w23
__int64 v29; // x0
int v30; // w0
__int64 v31; // x21
__int64 v32; // x0
int v33; // w0
__int64 v34; // x21
__int64 v35; // x0
int v36; // w0
__int64 v37; // x21
__int64 v38; // x0
int v39; // w0
__int64 v40; // x21
__int64 v41; // x0
int v42; // w0
__int64 v43; // x21
__int64 v44; // x0
int v45; // w0
__int64 v46; // x21
__int64 v47; // x0
int v48; // w0
__int64 v49; // x21
__int64 v50; // x0
int v51; // w0
__int64 v52; // x21
__int64 v53; // x0
int v54; // w0
__int64 v55; // x21
__int64 v56; // x0
int v57; // w0
__int64 v58; // x21
__int64 v59; // x0
int v60; // w0
__int64 v61; // x21
__int64 v62; // x0
int v63; // w0
__int64 v64; // x21
__int64 v65; // x0
int v66; // w0
__int64 v67; // x21
__int64 v68; // x0
int v69; // w0
__int64 v70; // x21
__int64 v71; // x0
int v72; // w0
__int64 v73; // x21
__int64 v74; // x0
int v75; // w0
__int64 v76; // x21
__int64 v77; // x0
int v78; // w0
__int64 v79; // x21
__int64 v80; // x0
int v81; // w0
__int64 v82; // x21
__int64 v83; // x0
int v84; // w0
__int64 v85; // x21
__int64 v86; // x0
int v87; // w0
__int64 v88; // x21
__int64 v89; // x0
int v90; // w0
__int64 v91; // x21
__int64 v92; // x0
int v93; // w0
__int64 v94; // x21
__int64 v95; // x0
int v96; // w0
__int64 v97; // x21
__int64 v98; // x0
int v99; // w0
__int64 v100; // x21
__int64 v101; // x0
int v102; // w0
__int64 v103; // x21
__int64 v104; // x0
int v105; // w0
__int64 v106; // x21
__int64 v107; // x0
int v108; // w0
__int64 v109; // x21
__int64 v110; // x0
int v111; // w0
__int64 v112; // x21
__int64 v113; // x0
int v114; // w0
__int64 v115; // x21
__int64 v116; // x0
int v117; // w0
__int64 v118; // x21
__int64 v119; // x0
int v120; // w0
__int64 v121; // x21
__int64 v122; // x0
int v123; // w0
__int64 v124; // x21
__int64 v125; // x0
int v126; // w0
__int64 v127; // x21
__int64 v128; // x0
int v129; // w0
__int64 v130; // x21
__int64 v131; // x0
int v132; // w0
__int64 v133; // x21
__int64 v134; // x0
int v135; // w0
__int64 v136; // x21
__int64 v137; // x0
int v138; // w0
__int64 v139; // x21
__int64 v140; // x0
int v141; // w0
__int64 v142; // x21
__int64 v143; // x0
int v144; // w0
__int64 v145; // x21
__int64 v146; // x0
int v147; // w0
__int64 v148; // x21
__int64 v149; // x0
int v150; // w0
__int64 v151; // x21
__int64 v152; // x0
int v153; // w0
__int64 v154; // x21
__int64 v155; // x0
int v156; // w0
__int64 v157; // x21
__int64 v158; // x0
int v159; // w0
__int64 v160; // x21
__int64 v161; // x0
int v162; // w0
__int64 v163; // x21
__int64 v164; // x0
int v165; // w0
__int64 v166; // x21
__int64 v167; // x0
int v168; // w0
__int64 v169; // x21
__int64 v170; // x0
int v171; // w0
__int64 v172; // x21
__int64 v173; // x0
int v174; // w0
__int64 v175; // x21
__int64 v176; // x0
int v177; // w0
__int64 v178; // x21
__int64 v179; // x0
int v180; // w0
__int64 v181; // x21
__int64 v182; // x0
int v183; // w0
__int64 v184; // x21
__int64 v185; // x0
int v186; // w0
__int64 v187; // x21
__int64 v188; // x0
int v189; // w0
__int64 v190; // x19
__int64 v191; // x0
int v192; // w0
__int64 v193; // [xsp+8h] [xbp-88h]
__int64 v194; // [xsp+10h] [xbp-80h] BYREF
__int64 v195; // [xsp+18h] [xbp-78h]
__int64 v196; // [xsp+20h] [xbp-70h]
void **v197; // [xsp+28h] [xbp-68h] BYREF
size = SHIBYTE(__s->__r_.__value_.__r.__words[2]);
if ( (size & 0x8000000000000000LL) == 0 )
{
if ( !*((_BYTE *)&__s->__r_.__value_.__s + 23) )
return;
v5 = (char *)__s + size;
v6 = __s;
goto LABEL_7;
}
size = __s->__r_.__value_.__l.__size_;
if ( !size )
return;
if ( size >= 1 )
{
v6 = (std::string *)__s->__r_.__value_.__r.__words[0];
v5 = (char *)(__s->__r_.__value_.__r.__words[0] + size);
LABEL_7:
v7 = v6;
do
{
v8 = (char *)memchr(v7, 44, size);
if ( !v8 )
break;
if ( *v8 == 44 )
{
if ( v8 == v5 || v8 - (char *)v6 == -1 )
break;
v194 = 0;
v195 = 0;
v196 = 0;
sub_100279C18(__s);
v193 = a1;
v10 = 0;
v9 = 0;
v11 = sub_1002E757C(*(_QWORD *)(a1 + 3984));
v12 = 0;
v13 = 0;
do
{
v14 = v10 + v12;
if ( *(char *)(v10 + v12 + 23) < 0 )
v15 = *(const char **)v14;
else
v15 = (const char *)(v10 + v12);
v16 = atoi(v15);
v17 = (const char *)(v14 + 24);
v18 = *(char *)(v14 + 47);
v19 = v17;
if ( v18 < 0 )
v19 = *(const char **)v17;
if ( (float)((float)atoi(v19) * 1.1) >= 10000.0 )
{
v20 = 10000;
}
else
{
if ( v18 < 0 )
v17 = *(const char **)v17;
v20 = (unsigned int)(int)(float)((float)atoi(v17) * 1.1);
}
if ( (int)v16 < v11 )
{
v21 = sub_1002E75A0(*(_QWORD *)(v193 + 3984), v16);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v21, v20);
v10 = v194;
v9 = v195;
}
v13 += 2LL;
v12 += 48;
}
while ( -1 - 0x5555555555555555LL * ((v9 - v10) >> 3) > v13 );
v197 = (void **)&v194;
sub_100018250(&v197);
return;
}
v7 = (std::string *)(v8 + 1);
size = v5 - (char *)v7;
}
while ( v5 - (char *)v7 >= 1 );
}
v22 = sub_100279D98(__s, "_");
if ( (unsigned int)sub_1002E757C(v22) >= 4 )
{
if ( (unsigned int)sub_1002E757C(v22) > 0xF )
{
*(_BYTE *)(a1 + 4104) = 1;
v31 = *(_QWORD *)(a1 + 2432);
v32 = cocos2d::CCArray::stringAtIndex(v22, 0);
v33 = cocos2d::CCString::intValue(v32);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v31, (unsigned int)(float)((float)v33 * 1.1));
v34 = *(_QWORD *)(a1 + 2536);
v35 = cocos2d::CCArray::stringAtIndex(v22, 1);
v36 = cocos2d::CCString::intValue(v35);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v34, (unsigned int)(float)((float)v36 * 1.1));
v37 = *(_QWORD *)(a1 + 2544);
v38 = cocos2d::CCArray::stringAtIndex(v22, 2);
v39 = cocos2d::CCString::intValue(v38);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v37, (unsigned int)(float)((float)v39 * 1.1));
v40 = *(_QWORD *)(a1 + 2632);
v41 = cocos2d::CCArray::stringAtIndex(v22, 3);
v42 = cocos2d::CCString::intValue(v41);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v40, (unsigned int)(float)((float)v42 * 1.1));
v43 = *(_QWORD *)(a1 + 2640);
v44 = cocos2d::CCArray::stringAtIndex(v22, 4);
v45 = cocos2d::CCString::intValue(v44);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v43, (unsigned int)(float)((float)v45 * 1.1));
v46 = *(_QWORD *)(a1 + 2656);
v47 = cocos2d::CCArray::stringAtIndex(v22, 5);
v48 = cocos2d::CCString::intValue(v47);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v46, (unsigned int)(float)((float)v48 * 1.1));
v49 = *(_QWORD *)(a1 + 2696);
v50 = cocos2d::CCArray::stringAtIndex(v22, 6);
v51 = cocos2d::CCString::intValue(v50);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v49, (unsigned int)(float)((float)v51 * 1.1));
v52 = *(_QWORD *)(a1 + 2704);
v53 = cocos2d::CCArray::stringAtIndex(v22, 7);
v54 = cocos2d::CCString::intValue(v53);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v52, (unsigned int)(float)((float)v54 * 1.1));
v55 = *(_QWORD *)(a1 + 2744);
v56 = cocos2d::CCArray::stringAtIndex(v22, 8);
v57 = cocos2d::CCString::intValue(v56);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v55, (unsigned int)(float)((float)v57 * 1.1));
v58 = *(_QWORD *)(a1 + 2752);
v59 = cocos2d::CCArray::stringAtIndex(v22, 9);
v60 = cocos2d::CCString::intValue(v59);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v58, (unsigned int)(float)((float)v60 * 1.1));
v61 = *(_QWORD *)(a1 + 2808);
v62 = cocos2d::CCArray::stringAtIndex(v22, 10);
v63 = cocos2d::CCString::intValue(v62);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v61, (unsigned int)(float)((float)v63 * 1.1));
v64 = *(_QWORD *)(a1 + 2816);
v65 = cocos2d::CCArray::stringAtIndex(v22, 11);
v66 = cocos2d::CCString::intValue(v65);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v64, (unsigned int)(float)((float)v66 * 1.1));
v67 = *(_QWORD *)(a1 + 2552);
v68 = cocos2d::CCArray::stringAtIndex(v22, 12);
v69 = cocos2d::CCString::intValue(v68);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v67, (unsigned int)(float)((float)v69 * 1.1));
v70 = *(_QWORD *)(a1 + 2712);
v71 = cocos2d::CCArray::stringAtIndex(v22, 14);
v72 = cocos2d::CCString::intValue(v71);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v70, (unsigned int)(float)((float)v72 * 1.1));
v73 = *(_QWORD *)(a1 + 2824);
v74 = cocos2d::CCArray::stringAtIndex(v22, 15);
v75 = cocos2d::CCString::intValue(v74);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v73, (unsigned int)(float)((float)v75 * 1.1));
if ( (unsigned int)sub_1002E757C(v22) >= 0x37 )
{
*(_BYTE *)(a1 + 4104) = 0;
v76 = *(_QWORD *)(a1 + 3032);
v77 = cocos2d::CCArray::stringAtIndex(v22, 16);
v78 = cocos2d::CCString::intValue(v77);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v76, (unsigned int)(float)((float)v78 * 1.1));
v79 = *(_QWORD *)(a1 + 3040);
v80 = cocos2d::CCArray::stringAtIndex(v22, 17);
v81 = cocos2d::CCString::intValue(v80);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v79, (unsigned int)(float)((float)v81 * 1.1));
v82 = *(_QWORD *)(a1 + 3048);
v83 = cocos2d::CCArray::stringAtIndex(v22, 18);
v84 = cocos2d::CCString::intValue(v83);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v82, (unsigned int)(float)((float)v84 * 1.1));
v85 = *(_QWORD *)(a1 + 2920);
v86 = cocos2d::CCArray::stringAtIndex(v22, 19);
v87 = cocos2d::CCString::intValue(v86);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v85, (unsigned int)(float)((float)v87 * 1.1));
v88 = *(_QWORD *)(a1 + 2928);
v89 = cocos2d::CCArray::stringAtIndex(v22, 20);
v90 = cocos2d::CCString::intValue(v89);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v88, (unsigned int)(float)((float)v90 * 1.1));
v91 = *(_QWORD *)(a1 + 2936);
v92 = cocos2d::CCArray::stringAtIndex(v22, 21);
v93 = cocos2d::CCString::intValue(v92);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v91, (unsigned int)(float)((float)v93 * 1.1));
v94 = *(_QWORD *)(a1 + 2424);
v95 = cocos2d::CCArray::stringAtIndex(v22, 22);
v96 = cocos2d::CCString::intValue(v95);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v94, (unsigned int)(float)((float)v96 * 1.1));
v97 = *(_QWORD *)(a1 + 2440);
v98 = cocos2d::CCArray::stringAtIndex(v22, 23);
v99 = cocos2d::CCString::intValue(v98);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v97, (unsigned int)(float)((float)v99 * 1.1));
v100 = *(_QWORD *)(a1 + 2312);
v101 = cocos2d::CCArray::stringAtIndex(v22, 24);
v102 = cocos2d::CCString::intValue(v101);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v100, (unsigned int)(float)((float)v102 * 1.1));
v103 = *(_QWORD *)(a1 + 2320);
v104 = cocos2d::CCArray::stringAtIndex(v22, 25);
v105 = cocos2d::CCString::intValue(v104);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v103, (unsigned int)(float)((float)v105 * 1.1));
v106 = *(_QWORD *)(a1 + 2328);
v107 = cocos2d::CCArray::stringAtIndex(v22, 26);
v108 = cocos2d::CCString::intValue(v107);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v106, (unsigned int)(float)((float)v108 * 1.1));
v109 = *(_QWORD *)(a1 + 2208);
v110 = cocos2d::CCArray::stringAtIndex(v22, 27);
v111 = cocos2d::CCString::intValue(v110);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v109, (unsigned int)(float)((float)v111 * 1.1));
v112 = *(_QWORD *)(a1 + 2360);
v113 = cocos2d::CCArray::stringAtIndex(v22, 28);
v114 = cocos2d::CCString::intValue(v113);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v112, (unsigned int)(float)((float)v114 * 1.1));
v115 = *(_QWORD *)(a1 + 2368);
v116 = cocos2d::CCArray::stringAtIndex(v22, 29);
v117 = cocos2d::CCString::intValue(v116);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v115, (unsigned int)(float)((float)v117 * 1.1));
v118 = *(_QWORD *)(a1 + 2472);
v119 = cocos2d::CCArray::stringAtIndex(v22, 30);
v120 = cocos2d::CCString::intValue(v119);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v118, (unsigned int)(float)((float)v120 * 1.1));
v121 = *(_QWORD *)(a1 + 2480);
v122 = cocos2d::CCArray::stringAtIndex(v22, 31);
v123 = cocos2d::CCString::intValue(v122);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v121, (unsigned int)(float)((float)v123 * 1.1));
v124 = *(_QWORD *)(a1 + 2584);
v125 = cocos2d::CCArray::stringAtIndex(v22, 32);
v126 = cocos2d::CCString::intValue(v125);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v124, (unsigned int)(float)((float)v126 * 1.1));
v127 = *(_QWORD *)(a1 + 2592);
v128 = cocos2d::CCArray::stringAtIndex(v22, 33);
v129 = cocos2d::CCString::intValue(v128);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v127, (unsigned int)(float)((float)v129 * 1.1));
v130 = *(_QWORD *)(a1 + 2856);
v131 = cocos2d::CCArray::stringAtIndex(v22, 34);
v132 = cocos2d::CCString::intValue(v131);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v130, (unsigned int)(float)((float)v132 * 1.1));
v133 = *(_QWORD *)(a1 + 2864);
v134 = cocos2d::CCArray::stringAtIndex(v22, 35);
v135 = cocos2d::CCString::intValue(v134);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v133, (unsigned int)(float)((float)v135 * 1.1));
v136 = *(_QWORD *)(a1 + 2968);
v137 = cocos2d::CCArray::stringAtIndex(v22, 36);
v138 = cocos2d::CCString::intValue(v137);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v136, (unsigned int)(float)((float)v138 * 1.1));
v139 = *(_QWORD *)(a1 + 2976);
v140 = cocos2d::CCArray::stringAtIndex(v22, 37);
v141 = cocos2d::CCString::intValue(v140);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v139, (unsigned int)(float)((float)v141 * 1.1));
v142 = *(_QWORD *)(a1 + 3080);
v143 = cocos2d::CCArray::stringAtIndex(v22, 38);
v144 = cocos2d::CCString::intValue(v143);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v142, (unsigned int)(float)((float)v144 * 1.1));
v145 = *(_QWORD *)(a1 + 3088);
v146 = cocos2d::CCArray::stringAtIndex(v22, 39);
v147 = cocos2d::CCString::intValue(v146);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v145, (unsigned int)(float)((float)v147 * 1.1));
v148 = *(_QWORD *)(a1 + 2344);
v149 = cocos2d::CCArray::stringAtIndex(v22, 40);
v150 = cocos2d::CCString::intValue(v149);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v148, (unsigned int)(float)((float)v150 * 1.1));
v151 = *(_QWORD *)(a1 + 2352);
v152 = cocos2d::CCArray::stringAtIndex(v22, 41);
v153 = cocos2d::CCString::intValue(v152);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v151, (unsigned int)(float)((float)v153 * 1.1));
v154 = *(_QWORD *)(a1 + 2456);
v155 = cocos2d::CCArray::stringAtIndex(v22, 42);
v156 = cocos2d::CCString::intValue(v155);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v154, (unsigned int)(float)((float)v156 * 1.1));
v157 = *(_QWORD *)(a1 + 2464);
v158 = cocos2d::CCArray::stringAtIndex(v22, 43);
v159 = cocos2d::CCString::intValue(v158);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v157, (unsigned int)(float)((float)v159 * 1.1));
v160 = *(_QWORD *)(a1 + 2568);
v161 = cocos2d::CCArray::stringAtIndex(v22, 44);
v162 = cocos2d::CCString::intValue(v161);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v160, (unsigned int)(float)((float)v162 * 1.1));
v163 = *(_QWORD *)(a1 + 2576);
v164 = cocos2d::CCArray::stringAtIndex(v22, 45);
v165 = cocos2d::CCString::intValue(v164);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v163, (unsigned int)(float)((float)v165 * 1.1));
v166 = *(_QWORD *)(a1 + 2728);
v167 = cocos2d::CCArray::stringAtIndex(v22, 46);
v168 = cocos2d::CCString::intValue(v167);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v166, (unsigned int)(float)((float)v168 * 1.1));
v169 = *(_QWORD *)(a1 + 2736);
v170 = cocos2d::CCArray::stringAtIndex(v22, 47);
v171 = cocos2d::CCString::intValue(v170);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v169, (unsigned int)(float)((float)v171 * 1.1));
v172 = *(_QWORD *)(a1 + 2840);
v173 = cocos2d::CCArray::stringAtIndex(v22, 48);
v174 = cocos2d::CCString::intValue(v173);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v172, (unsigned int)(float)((float)v174 * 1.1));
v175 = *(_QWORD *)(a1 + 2848);
v176 = cocos2d::CCArray::stringAtIndex(v22, 49);
v177 = cocos2d::CCString::intValue(v176);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v175, (unsigned int)(float)((float)v177 * 1.1));
v178 = *(_QWORD *)(a1 + 2952);
v179 = cocos2d::CCArray::stringAtIndex(v22, 50);
v180 = cocos2d::CCString::intValue(v179);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v178, (unsigned int)(float)((float)v180 * 1.1));
v181 = *(_QWORD *)(a1 + 2960);
v182 = cocos2d::CCArray::stringAtIndex(v22, 51);
v183 = cocos2d::CCString::intValue(v182);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v181, (unsigned int)(float)((float)v183 * 1.1));
v184 = *(_QWORD *)(a1 + 3064);
v185 = cocos2d::CCArray::stringAtIndex(v22, 52);
v186 = cocos2d::CCString::intValue(v185);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v184, (unsigned int)(float)((float)v186 * 1.1));
v187 = *(_QWORD *)(a1 + 3072);
v188 = cocos2d::CCArray::stringAtIndex(v22, 53);
v189 = cocos2d::CCString::intValue(v188);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v187, (unsigned int)(float)((float)v189 * 1.1));
v190 = *(_QWORD *)(a1 + 2256);
v191 = cocos2d::CCArray::stringAtIndex(v22, 54);
v192 = cocos2d::CCString::intValue(v191);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v190, (unsigned int)(float)((float)v192 * 1.1));
}
}
else if ( (unsigned int)sub_1002E757C(v22) >= 4 )
{
v23 = cocos2d::CCArray::stringAtIndex(v22, 0);
v24 = cocos2d::CCString::intValue(v23);
v25 = cocos2d::CCArray::stringAtIndex(v22, 1);
v26 = cocos2d::CCString::intValue(v25);
v27 = cocos2d::CCArray::stringAtIndex(v22, 2);
v28 = cocos2d::CCString::intValue(v27);
v29 = cocos2d::CCArray::stringAtIndex(v22, 3);
v30 = cocos2d::CCString::intValue(v29);
GJBaseGameLayer::updateLegacyLayerCapacity((__int64 *)a1, v24, v26, v28, v30);
}
}
}