//
// GJBaseGameLayer::updateLayerCapacity from 0x140312df0 to 0x140313c88 (3736 bytes)
//
// 2 xrefs:
// > PlayLayer::setupHasCompleted @ 0x140504a5e
// > ??> @ 0x14091e860
//
// 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:30:17 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall GJBaseGameLayer::updateLayerCapacity(__int64 a1, __int64 *a2)
{
__int64 v4; // rax
__int64 v5; // rdi
__int64 v6; // rbx
__int64 v7; // rax
__int64 v8; // rdx
int v9; // esi
signed int v10; // r12d
__int64 v11; // rdx
__int64 v12; // rdi
const char *v13; // rcx
signed int v14; // r14d
const char *v15; // rcx
float v16; // xmm0_4
const char *v17; // rcx
cocos2d::CCSpriteBatchNode *v18; // rax
cocos2d::CCArray *v19; // r14
cocos2d::CCString *v20; // rax
signed int v21; // esi
cocos2d::CCString *v22; // rax
signed int v23; // ebx
cocos2d::CCString *v24; // rax
signed int v25; // edi
cocos2d::CCString *v26; // rax
signed int v27; // eax
unsigned int v28; // edx
cocos2d::CCSpriteBatchNode *v29; // rcx
cocos2d::CCString *v30; // rax
int v31; // eax
cocos2d::CCString *v32; // rax
int v33; // eax
cocos2d::CCString *v34; // rax
int v35; // eax
cocos2d::CCString *v36; // rax
int v37; // eax
cocos2d::CCString *v38; // rax
int v39; // eax
cocos2d::CCString *v40; // rax
int v41; // eax
cocos2d::CCString *v42; // rax
int v43; // eax
cocos2d::CCString *v44; // rax
int v45; // eax
cocos2d::CCString *v46; // rax
int v47; // eax
cocos2d::CCString *v48; // rax
int v49; // eax
cocos2d::CCString *v50; // rax
int v51; // eax
cocos2d::CCString *v52; // rax
int v53; // eax
cocos2d::CCString *v54; // rax
int v55; // eax
cocos2d::CCString *v56; // rax
int v57; // eax
cocos2d::CCString *v58; // rax
int v59; // eax
cocos2d::CCString *v60; // rax
int v61; // eax
cocos2d::CCString *v62; // rax
int v63; // eax
cocos2d::CCString *v64; // rax
int v65; // eax
cocos2d::CCString *v66; // rax
int v67; // eax
cocos2d::CCString *v68; // rax
int v69; // eax
cocos2d::CCString *v70; // rax
int v71; // eax
cocos2d::CCString *v72; // rax
int v73; // eax
cocos2d::CCString *v74; // rax
int v75; // eax
cocos2d::CCString *v76; // rax
int v77; // eax
cocos2d::CCString *v78; // rax
int v79; // eax
cocos2d::CCString *v80; // rax
int v81; // eax
cocos2d::CCString *v82; // rax
int v83; // eax
cocos2d::CCString *v84; // rax
int v85; // eax
cocos2d::CCString *v86; // rax
int v87; // eax
cocos2d::CCString *v88; // rax
int v89; // eax
cocos2d::CCString *v90; // rax
int v91; // eax
cocos2d::CCString *v92; // rax
int v93; // eax
cocos2d::CCString *v94; // rax
int v95; // eax
cocos2d::CCString *v96; // rax
int v97; // eax
cocos2d::CCString *v98; // rax
int v99; // eax
cocos2d::CCString *v100; // rax
int v101; // eax
cocos2d::CCString *v102; // rax
int v103; // eax
cocos2d::CCString *v104; // rax
int v105; // eax
cocos2d::CCString *v106; // rax
int v107; // eax
cocos2d::CCString *v108; // rax
int v109; // eax
cocos2d::CCString *v110; // rax
int v111; // eax
cocos2d::CCString *v112; // rax
int v113; // eax
cocos2d::CCString *v114; // rax
int v115; // eax
cocos2d::CCString *v116; // rax
int v117; // eax
cocos2d::CCString *v118; // rax
int v119; // eax
cocos2d::CCString *v120; // rax
int v121; // eax
cocos2d::CCString *v122; // rax
int v123; // eax
cocos2d::CCString *v124; // rax
int v125; // eax
cocos2d::CCString *v126; // rax
int v127; // eax
cocos2d::CCString *v128; // rax
int v129; // eax
cocos2d::CCString *v130; // rax
int v131; // eax
cocos2d::CCString *v132; // rax
int v133; // eax
cocos2d::CCString *v134; // rax
int v135; // eax
cocos2d::CCString *v136; // rax
__int128 v137; // [rsp+20h] [rbp-78h] BYREF
__int64 v138; // [rsp+30h] [rbp-68h]
__int64 *v139; // [rsp+38h] [rbp-60h]
v139 = a2;
v4 = a2[2];
if ( v4 )
{
v5 = (__int64)a2;
if ( (unsigned __int64)a2[3] > 0xF )
v5 = *a2;
v6 = v5 + v4;
v7 = sub_1406774C0(v5, v5 + v4, byte_14070ECF8, 1);
if ( v7 == v6 || v7 - v5 == -1 )
{
v19 = sub_1400D2840(a2, "_");
if ( cocos2d::CCArray::count(v19) >= 4 )
{
if ( cocos2d::CCArray::count(v19) >= 0x10 )
{
*(_BYTE *)(a1 + 4520) = 1;
v30 = cocos2d::CCArray::stringAtIndex(v19, 0);
v31 = cocos2d::CCString::intValue(v30);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2688),
(int)(float)((float)v31 * 1.1));
v32 = cocos2d::CCArray::stringAtIndex(v19, 1u);
v33 = cocos2d::CCString::intValue(v32);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2792),
(int)(float)((float)v33 * 1.1));
v34 = cocos2d::CCArray::stringAtIndex(v19, 2u);
v35 = cocos2d::CCString::intValue(v34);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2800),
(int)(float)((float)v35 * 1.1));
v36 = cocos2d::CCArray::stringAtIndex(v19, 3u);
v37 = cocos2d::CCString::intValue(v36);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2888),
(int)(float)((float)v37 * 1.1));
v38 = cocos2d::CCArray::stringAtIndex(v19, 4u);
v39 = cocos2d::CCString::intValue(v38);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2896),
(int)(float)((float)v39 * 1.1));
v40 = cocos2d::CCArray::stringAtIndex(v19, 5u);
v41 = cocos2d::CCString::intValue(v40);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2912),
(int)(float)((float)v41 * 1.1));
v42 = cocos2d::CCArray::stringAtIndex(v19, 6u);
v43 = cocos2d::CCString::intValue(v42);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2952),
(int)(float)((float)v43 * 1.1));
v44 = cocos2d::CCArray::stringAtIndex(v19, 7u);
v45 = cocos2d::CCString::intValue(v44);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2960),
(int)(float)((float)v45 * 1.1));
v46 = cocos2d::CCArray::stringAtIndex(v19, 8u);
v47 = cocos2d::CCString::intValue(v46);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3000),
(int)(float)((float)v47 * 1.1));
v48 = cocos2d::CCArray::stringAtIndex(v19, 9u);
v49 = cocos2d::CCString::intValue(v48);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3008),
(int)(float)((float)v49 * 1.1));
v50 = cocos2d::CCArray::stringAtIndex(v19, 0xAu);
v51 = cocos2d::CCString::intValue(v50);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3064),
(int)(float)((float)v51 * 1.1));
v52 = cocos2d::CCArray::stringAtIndex(v19, 0xBu);
v53 = cocos2d::CCString::intValue(v52);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3072),
(int)(float)((float)v53 * 1.1));
v54 = cocos2d::CCArray::stringAtIndex(v19, 0xCu);
v55 = cocos2d::CCString::intValue(v54);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2808),
(int)(float)((float)v55 * 1.1));
v56 = cocos2d::CCArray::stringAtIndex(v19, 0xEu);
v57 = cocos2d::CCString::intValue(v56);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2968),
(int)(float)((float)v57 * 1.1));
v58 = cocos2d::CCArray::stringAtIndex(v19, 0xFu);
v59 = cocos2d::CCString::intValue(v58);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3080),
(int)(float)((float)v59 * 1.1));
if ( cocos2d::CCArray::count(v19) < 0x37 )
goto LABEL_36;
*(_BYTE *)(a1 + 4520) = 0;
v60 = cocos2d::CCArray::stringAtIndex(v19, 0x10u);
v61 = cocos2d::CCString::intValue(v60);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3288),
(int)(float)((float)v61 * 1.1));
v62 = cocos2d::CCArray::stringAtIndex(v19, 0x11u);
v63 = cocos2d::CCString::intValue(v62);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3296),
(int)(float)((float)v63 * 1.1));
v64 = cocos2d::CCArray::stringAtIndex(v19, 0x12u);
v65 = cocos2d::CCString::intValue(v64);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3304),
(int)(float)((float)v65 * 1.1));
v66 = cocos2d::CCArray::stringAtIndex(v19, 0x13u);
v67 = cocos2d::CCString::intValue(v66);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3176),
(int)(float)((float)v67 * 1.1));
v68 = cocos2d::CCArray::stringAtIndex(v19, 0x14u);
v69 = cocos2d::CCString::intValue(v68);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3184),
(int)(float)((float)v69 * 1.1));
v70 = cocos2d::CCArray::stringAtIndex(v19, 0x15u);
v71 = cocos2d::CCString::intValue(v70);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3192),
(int)(float)((float)v71 * 1.1));
v72 = cocos2d::CCArray::stringAtIndex(v19, 0x16u);
v73 = cocos2d::CCString::intValue(v72);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2680),
(int)(float)((float)v73 * 1.1));
v74 = cocos2d::CCArray::stringAtIndex(v19, 0x17u);
v75 = cocos2d::CCString::intValue(v74);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2696),
(int)(float)((float)v75 * 1.1));
v76 = cocos2d::CCArray::stringAtIndex(v19, 0x18u);
v77 = cocos2d::CCString::intValue(v76);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2568),
(int)(float)((float)v77 * 1.1));
v78 = cocos2d::CCArray::stringAtIndex(v19, 0x19u);
v79 = cocos2d::CCString::intValue(v78);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2576),
(int)(float)((float)v79 * 1.1));
v80 = cocos2d::CCArray::stringAtIndex(v19, 0x1Au);
v81 = cocos2d::CCString::intValue(v80);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2584),
(int)(float)((float)v81 * 1.1));
v82 = cocos2d::CCArray::stringAtIndex(v19, 0x1Bu);
v83 = cocos2d::CCString::intValue(v82);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2464),
(int)(float)((float)v83 * 1.1));
v84 = cocos2d::CCArray::stringAtIndex(v19, 0x1Cu);
v85 = cocos2d::CCString::intValue(v84);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2616),
(int)(float)((float)v85 * 1.1));
v86 = cocos2d::CCArray::stringAtIndex(v19, 0x1Du);
v87 = cocos2d::CCString::intValue(v86);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2624),
(int)(float)((float)v87 * 1.1));
v88 = cocos2d::CCArray::stringAtIndex(v19, 0x1Eu);
v89 = cocos2d::CCString::intValue(v88);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2728),
(int)(float)((float)v89 * 1.1));
v90 = cocos2d::CCArray::stringAtIndex(v19, 0x1Fu);
v91 = cocos2d::CCString::intValue(v90);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2736),
(int)(float)((float)v91 * 1.1));
v92 = cocos2d::CCArray::stringAtIndex(v19, 0x20u);
v93 = cocos2d::CCString::intValue(v92);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2840),
(int)(float)((float)v93 * 1.1));
v94 = cocos2d::CCArray::stringAtIndex(v19, 0x21u);
v95 = cocos2d::CCString::intValue(v94);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2848),
(int)(float)((float)v95 * 1.1));
v96 = cocos2d::CCArray::stringAtIndex(v19, 0x22u);
v97 = cocos2d::CCString::intValue(v96);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3112),
(int)(float)((float)v97 * 1.1));
v98 = cocos2d::CCArray::stringAtIndex(v19, 0x23u);
v99 = cocos2d::CCString::intValue(v98);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3120),
(int)(float)((float)v99 * 1.1));
v100 = cocos2d::CCArray::stringAtIndex(v19, 0x24u);
v101 = cocos2d::CCString::intValue(v100);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3224),
(int)(float)((float)v101 * 1.1));
v102 = cocos2d::CCArray::stringAtIndex(v19, 0x25u);
v103 = cocos2d::CCString::intValue(v102);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3232),
(int)(float)((float)v103 * 1.1));
v104 = cocos2d::CCArray::stringAtIndex(v19, 0x26u);
v105 = cocos2d::CCString::intValue(v104);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3336),
(int)(float)((float)v105 * 1.1));
v106 = cocos2d::CCArray::stringAtIndex(v19, 0x27u);
v107 = cocos2d::CCString::intValue(v106);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3344),
(int)(float)((float)v107 * 1.1));
v108 = cocos2d::CCArray::stringAtIndex(v19, 0x28u);
v109 = cocos2d::CCString::intValue(v108);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2600),
(int)(float)((float)v109 * 1.1));
v110 = cocos2d::CCArray::stringAtIndex(v19, 0x29u);
v111 = cocos2d::CCString::intValue(v110);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2608),
(int)(float)((float)v111 * 1.1));
v112 = cocos2d::CCArray::stringAtIndex(v19, 0x2Au);
v113 = cocos2d::CCString::intValue(v112);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2712),
(int)(float)((float)v113 * 1.1));
v114 = cocos2d::CCArray::stringAtIndex(v19, 0x2Bu);
v115 = cocos2d::CCString::intValue(v114);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2720),
(int)(float)((float)v115 * 1.1));
v116 = cocos2d::CCArray::stringAtIndex(v19, 0x2Cu);
v117 = cocos2d::CCString::intValue(v116);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2824),
(int)(float)((float)v117 * 1.1));
v118 = cocos2d::CCArray::stringAtIndex(v19, 0x2Du);
v119 = cocos2d::CCString::intValue(v118);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2832),
(int)(float)((float)v119 * 1.1));
v120 = cocos2d::CCArray::stringAtIndex(v19, 0x2Eu);
v121 = cocos2d::CCString::intValue(v120);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2984),
(int)(float)((float)v121 * 1.1));
v122 = cocos2d::CCArray::stringAtIndex(v19, 0x2Fu);
v123 = cocos2d::CCString::intValue(v122);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 2992),
(int)(float)((float)v123 * 1.1));
v124 = cocos2d::CCArray::stringAtIndex(v19, 0x30u);
v125 = cocos2d::CCString::intValue(v124);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3096),
(int)(float)((float)v125 * 1.1));
v126 = cocos2d::CCArray::stringAtIndex(v19, 0x31u);
v127 = cocos2d::CCString::intValue(v126);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3104),
(int)(float)((float)v127 * 1.1));
v128 = cocos2d::CCArray::stringAtIndex(v19, 0x32u);
v129 = cocos2d::CCString::intValue(v128);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3208),
(int)(float)((float)v129 * 1.1));
v130 = cocos2d::CCArray::stringAtIndex(v19, 0x33u);
v131 = cocos2d::CCString::intValue(v130);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3216),
(int)(float)((float)v131 * 1.1));
v132 = cocos2d::CCArray::stringAtIndex(v19, 0x34u);
v133 = cocos2d::CCString::intValue(v132);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3320),
(int)(float)((float)v133 * 1.1));
v134 = cocos2d::CCArray::stringAtIndex(v19, 0x35u);
v135 = cocos2d::CCString::intValue(v134);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(
*(cocos2d::CCSpriteBatchNode **)(a1 + 3328),
(int)(float)((float)v135 * 1.1));
v136 = cocos2d::CCArray::stringAtIndex(v19, 0x36u);
v28 = (int)(float)((float)(int)cocos2d::CCString::intValue(v136) * 1.1);
v29 = *(cocos2d::CCSpriteBatchNode **)(a1 + 2512);
}
else
{
if ( cocos2d::CCArray::count(v19) < 4 )
goto LABEL_36;
v20 = cocos2d::CCArray::stringAtIndex(v19, 3u);
v21 = cocos2d::CCString::intValue(v20);
v22 = cocos2d::CCArray::stringAtIndex(v19, 2u);
v23 = cocos2d::CCString::intValue(v22);
v24 = cocos2d::CCArray::stringAtIndex(v19, 1u);
v25 = cocos2d::CCString::intValue(v24);
v26 = cocos2d::CCArray::stringAtIndex(v19, 0);
v27 = cocos2d::CCString::intValue(v26);
if ( v25 < 100 )
v25 = 100;
if ( v23 < 100 )
v23 = 100;
if ( v21 < 100 )
v21 = 100;
if ( v27 < 100 )
v27 = 100;
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 2792), v27);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 2800), v25);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 2888), 0x14u);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 2896), 0x14u);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 3048), 0x14u);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 2952), v23);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 2960), v21);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 3064), v23);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 3072), v21);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 2808), v25 / 2);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 2968), v21 / 2);
v28 = v21 / 2;
v29 = *(cocos2d::CCSpriteBatchNode **)(a1 + 3080);
}
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v29, v28);
}
}
else
{
v137 = 0;
v9 = 0;
v138 = 0;
sub_140123270(a2, v8, (__int64 *)&v137);
v10 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 4360));
v11 = v137;
if ( (__int64)(*((_QWORD *)&v137 + 1) - v137) >> 5 != 1 )
{
v12 = 0;
do
{
v13 = (const char *)(v12 + v11);
if ( *(_QWORD *)(v12 + v11 + 24) > 0xFu )
v13 = *(const char **)v13;
v14 = atoi(v13);
v15 = (const char *)(v12 + v137 + 32);
if ( *((_QWORD *)v15 + 3) > 0xFu )
v15 = *(const char **)v15;
if ( (float)((float)atoi(v15) * 1.1) <= 10000.0 )
{
v17 = (const char *)(v12 + v137 + 32);
if ( *((_QWORD *)v17 + 3) > 0xFu )
v17 = *(const char **)v17;
v16 = (float)atoi(v17) * 1.1;
}
else
{
v16 = 10000.0;
}
if ( v14 < v10 )
{
v18 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 4360), v14);
cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v18, (int)v16);
}
v9 += 2;
v12 += 64;
v11 = v137;
}
while ( v9 < (unsigned __int64)(((__int64)(*((_QWORD *)&v137 + 1) - v137) >> 5) - 1) );
}
sub_1400760C0((__int64 *)&v137);
}
}
LABEL_36:
sub_14003D310((__int64)a2);
}