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