// // GJBaseGameLayer::updateLayerCapacity from 0x14020cd00 to 0x14020dbcf (3791 bytes) // // 2 xrefs: // > PlayLayer::setupHasCompleted @ 0x1403a6848 // > @ 0x1406ccd80 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=2 void __fastcall GJBaseGameLayer::updateLayerCapacity(__int64 a1, __int64 a2) { __int64 *v2; // r15 size_t v4; // rdx __int64 v5; // rcx __int64 v6; // rdx int v7; // edi unsigned int v8; // eax void *v9; // r13 char *v10; // r14 signed __int64 v11; // rdx unsigned __int64 v12; // r13 char *v13; // rbx signed int v14; // r15d const char *v15; // rcx signed int v16; // esi const char *v17; // rcx float v18; // xmm0_4 const char *v19; // rcx cocos2d::CCSpriteBatchNode *v20; // rax __int64 i; // rbx char *v22; // rax cocos2d::CCArray *v23; // r14 cocos2d::CCString *v24; // rax signed int v25; // esi cocos2d::CCString *v26; // rax signed int v27; // edi cocos2d::CCString *v28; // rax signed int v29; // ebx cocos2d::CCString *v30; // rax signed int v31; // eax unsigned int v32; // edx cocos2d::CCSpriteBatchNode *v33; // rcx 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 int v137; // eax cocos2d::CCString *v138; // rax int v139; // eax cocos2d::CCString *v140; // rax void *Block[2]; // [rsp+38h] [rbp-90h] BYREF __int64 v142; // [rsp+48h] [rbp-80h] __int64 *v143; // [rsp+58h] [rbp-70h] __int64 v144; // [rsp+60h] [rbp-68h] v2 = (__int64 *)a2; v143 = (__int64 *)a2; v144 = a2; v4 = *(_QWORD *)(a2 + 16); if ( v4 ) { v5 = (__int64)v2; if ( (unsigned __int64)v2[3] > 0xF ) v5 = *v2; if ( sub_14003BCE0(v5, v4, 0, ",", 1u) == -1 ) { v23 = sub_140080420(v2); if ( cocos2d::CCArray::count(v23) >= 4 ) { if ( cocos2d::CCArray::count(v23) >= 0x10 ) { *(_BYTE *)(a1 + 4296) = 1; v34 = cocos2d::CCArray::stringAtIndex(v23, 0); v35 = cocos2d::CCString::intValue(v34); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2664), (int)(float)((float)v35 * 1.1)); v36 = cocos2d::CCArray::stringAtIndex(v23, 1u); v37 = cocos2d::CCString::intValue(v36); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2768), (int)(float)((float)v37 * 1.1)); v38 = cocos2d::CCArray::stringAtIndex(v23, 2u); v39 = cocos2d::CCString::intValue(v38); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2776), (int)(float)((float)v39 * 1.1)); v40 = cocos2d::CCArray::stringAtIndex(v23, 3u); v41 = cocos2d::CCString::intValue(v40); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2864), (int)(float)((float)v41 * 1.1)); v42 = cocos2d::CCArray::stringAtIndex(v23, 4u); v43 = cocos2d::CCString::intValue(v42); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2872), (int)(float)((float)v43 * 1.1)); v44 = cocos2d::CCArray::stringAtIndex(v23, 5u); v45 = cocos2d::CCString::intValue(v44); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2888), (int)(float)((float)v45 * 1.1)); v46 = cocos2d::CCArray::stringAtIndex(v23, 6u); v47 = cocos2d::CCString::intValue(v46); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2928), (int)(float)((float)v47 * 1.1)); v48 = cocos2d::CCArray::stringAtIndex(v23, 7u); v49 = cocos2d::CCString::intValue(v48); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2936), (int)(float)((float)v49 * 1.1)); v50 = cocos2d::CCArray::stringAtIndex(v23, 8u); v51 = cocos2d::CCString::intValue(v50); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2976), (int)(float)((float)v51 * 1.1)); v52 = cocos2d::CCArray::stringAtIndex(v23, 9u); v53 = cocos2d::CCString::intValue(v52); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2984), (int)(float)((float)v53 * 1.1)); v54 = cocos2d::CCArray::stringAtIndex(v23, 0xAu); v55 = cocos2d::CCString::intValue(v54); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3040), (int)(float)((float)v55 * 1.1)); v56 = cocos2d::CCArray::stringAtIndex(v23, 0xBu); v57 = cocos2d::CCString::intValue(v56); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3048), (int)(float)((float)v57 * 1.1)); v58 = cocos2d::CCArray::stringAtIndex(v23, 0xCu); v59 = cocos2d::CCString::intValue(v58); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2784), (int)(float)((float)v59 * 1.1)); v60 = cocos2d::CCArray::stringAtIndex(v23, 0xEu); v61 = cocos2d::CCString::intValue(v60); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2944), (int)(float)((float)v61 * 1.1)); v62 = cocos2d::CCArray::stringAtIndex(v23, 0xFu); v63 = cocos2d::CCString::intValue(v62); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3056), (int)(float)((float)v63 * 1.1)); if ( cocos2d::CCArray::count(v23) < 0x37 ) goto LABEL_42; *(_BYTE *)(a1 + 4296) = 0; v64 = cocos2d::CCArray::stringAtIndex(v23, 0x10u); v65 = cocos2d::CCString::intValue(v64); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3264), (int)(float)((float)v65 * 1.1)); v66 = cocos2d::CCArray::stringAtIndex(v23, 0x11u); v67 = cocos2d::CCString::intValue(v66); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3272), (int)(float)((float)v67 * 1.1)); v68 = cocos2d::CCArray::stringAtIndex(v23, 0x12u); v69 = cocos2d::CCString::intValue(v68); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3280), (int)(float)((float)v69 * 1.1)); v70 = cocos2d::CCArray::stringAtIndex(v23, 0x13u); v71 = cocos2d::CCString::intValue(v70); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3152), (int)(float)((float)v71 * 1.1)); v72 = cocos2d::CCArray::stringAtIndex(v23, 0x14u); v73 = cocos2d::CCString::intValue(v72); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3160), (int)(float)((float)v73 * 1.1)); v74 = cocos2d::CCArray::stringAtIndex(v23, 0x15u); v75 = cocos2d::CCString::intValue(v74); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3168), (int)(float)((float)v75 * 1.1)); v76 = cocos2d::CCArray::stringAtIndex(v23, 0x16u); v77 = cocos2d::CCString::intValue(v76); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2656), (int)(float)((float)v77 * 1.1)); v78 = cocos2d::CCArray::stringAtIndex(v23, 0x17u); v79 = cocos2d::CCString::intValue(v78); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2672), (int)(float)((float)v79 * 1.1)); v80 = cocos2d::CCArray::stringAtIndex(v23, 0x18u); v81 = cocos2d::CCString::intValue(v80); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2544), (int)(float)((float)v81 * 1.1)); v82 = cocos2d::CCArray::stringAtIndex(v23, 0x19u); v83 = cocos2d::CCString::intValue(v82); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2552), (int)(float)((float)v83 * 1.1)); v84 = cocos2d::CCArray::stringAtIndex(v23, 0x1Au); v85 = cocos2d::CCString::intValue(v84); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2560), (int)(float)((float)v85 * 1.1)); v86 = cocos2d::CCArray::stringAtIndex(v23, 0x1Bu); v87 = cocos2d::CCString::intValue(v86); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2440), (int)(float)((float)v87 * 1.1)); v88 = cocos2d::CCArray::stringAtIndex(v23, 0x1Cu); v89 = cocos2d::CCString::intValue(v88); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2592), (int)(float)((float)v89 * 1.1)); v90 = cocos2d::CCArray::stringAtIndex(v23, 0x1Du); v91 = cocos2d::CCString::intValue(v90); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2600), (int)(float)((float)v91 * 1.1)); v92 = cocos2d::CCArray::stringAtIndex(v23, 0x1Eu); v93 = cocos2d::CCString::intValue(v92); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2704), (int)(float)((float)v93 * 1.1)); v94 = cocos2d::CCArray::stringAtIndex(v23, 0x1Fu); v95 = cocos2d::CCString::intValue(v94); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2712), (int)(float)((float)v95 * 1.1)); v96 = cocos2d::CCArray::stringAtIndex(v23, 0x20u); v97 = cocos2d::CCString::intValue(v96); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2816), (int)(float)((float)v97 * 1.1)); v98 = cocos2d::CCArray::stringAtIndex(v23, 0x21u); v99 = cocos2d::CCString::intValue(v98); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2824), (int)(float)((float)v99 * 1.1)); v100 = cocos2d::CCArray::stringAtIndex(v23, 0x22u); v101 = cocos2d::CCString::intValue(v100); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3088), (int)(float)((float)v101 * 1.1)); v102 = cocos2d::CCArray::stringAtIndex(v23, 0x23u); v103 = cocos2d::CCString::intValue(v102); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3096), (int)(float)((float)v103 * 1.1)); v104 = cocos2d::CCArray::stringAtIndex(v23, 0x24u); v105 = cocos2d::CCString::intValue(v104); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3200), (int)(float)((float)v105 * 1.1)); v106 = cocos2d::CCArray::stringAtIndex(v23, 0x25u); v107 = cocos2d::CCString::intValue(v106); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3208), (int)(float)((float)v107 * 1.1)); v108 = cocos2d::CCArray::stringAtIndex(v23, 0x26u); v109 = cocos2d::CCString::intValue(v108); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3312), (int)(float)((float)v109 * 1.1)); v110 = cocos2d::CCArray::stringAtIndex(v23, 0x27u); v111 = cocos2d::CCString::intValue(v110); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3320), (int)(float)((float)v111 * 1.1)); v112 = cocos2d::CCArray::stringAtIndex(v23, 0x28u); v113 = cocos2d::CCString::intValue(v112); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2576), (int)(float)((float)v113 * 1.1)); v114 = cocos2d::CCArray::stringAtIndex(v23, 0x29u); v115 = cocos2d::CCString::intValue(v114); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2584), (int)(float)((float)v115 * 1.1)); v116 = cocos2d::CCArray::stringAtIndex(v23, 0x2Au); v117 = cocos2d::CCString::intValue(v116); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2688), (int)(float)((float)v117 * 1.1)); v118 = cocos2d::CCArray::stringAtIndex(v23, 0x2Bu); v119 = cocos2d::CCString::intValue(v118); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2696), (int)(float)((float)v119 * 1.1)); v120 = cocos2d::CCArray::stringAtIndex(v23, 0x2Cu); v121 = cocos2d::CCString::intValue(v120); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2800), (int)(float)((float)v121 * 1.1)); v122 = cocos2d::CCArray::stringAtIndex(v23, 0x2Du); v123 = cocos2d::CCString::intValue(v122); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2808), (int)(float)((float)v123 * 1.1)); v124 = cocos2d::CCArray::stringAtIndex(v23, 0x2Eu); v125 = cocos2d::CCString::intValue(v124); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2960), (int)(float)((float)v125 * 1.1)); v126 = cocos2d::CCArray::stringAtIndex(v23, 0x2Fu); v127 = cocos2d::CCString::intValue(v126); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 2968), (int)(float)((float)v127 * 1.1)); v128 = cocos2d::CCArray::stringAtIndex(v23, 0x30u); v129 = cocos2d::CCString::intValue(v128); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3072), (int)(float)((float)v129 * 1.1)); v130 = cocos2d::CCArray::stringAtIndex(v23, 0x31u); v131 = cocos2d::CCString::intValue(v130); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3080), (int)(float)((float)v131 * 1.1)); v132 = cocos2d::CCArray::stringAtIndex(v23, 0x32u); v133 = cocos2d::CCString::intValue(v132); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3184), (int)(float)((float)v133 * 1.1)); v134 = cocos2d::CCArray::stringAtIndex(v23, 0x33u); v135 = cocos2d::CCString::intValue(v134); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3192), (int)(float)((float)v135 * 1.1)); v136 = cocos2d::CCArray::stringAtIndex(v23, 0x34u); v137 = cocos2d::CCString::intValue(v136); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3296), (int)(float)((float)v137 * 1.1)); v138 = cocos2d::CCArray::stringAtIndex(v23, 0x35u); v139 = cocos2d::CCString::intValue(v138); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity( *(cocos2d::CCSpriteBatchNode **)(a1 + 3304), (int)(float)((float)v139 * 1.1)); v140 = cocos2d::CCArray::stringAtIndex(v23, 0x36u); v32 = (int)(float)((float)(int)cocos2d::CCString::intValue(v140) * 1.1); v33 = *(cocos2d::CCSpriteBatchNode **)(a1 + 2488); } else { if ( cocos2d::CCArray::count(v23) < 4 ) goto LABEL_42; v24 = cocos2d::CCArray::stringAtIndex(v23, 3u); v25 = cocos2d::CCString::intValue(v24); v26 = cocos2d::CCArray::stringAtIndex(v23, 2u); v27 = cocos2d::CCString::intValue(v26); v28 = cocos2d::CCArray::stringAtIndex(v23, 1u); v29 = cocos2d::CCString::intValue(v28); v30 = cocos2d::CCArray::stringAtIndex(v23, 0); v31 = cocos2d::CCString::intValue(v30); if ( v31 < 100 ) v31 = 100; if ( v29 < 100 ) v29 = 100; if ( v27 < 100 ) v27 = 100; if ( v25 < 100 ) v25 = 100; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 2768), v31); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 2776), v29); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 2864), 0x14u); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 2872), 0x14u); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 3024), 0x14u); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 2928), v27); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 2936), v25); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 3040), v27); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 3048), v25); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 2784), v29 / 2); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(*(cocos2d::CCSpriteBatchNode **)(a1 + 2944), v25 / 2); v32 = v25 / 2; v33 = *(cocos2d::CCSpriteBatchNode **)(a1 + 3056); } cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v33, v32); } } else { *(_OWORD *)Block = 0; v7 = 0; v142 = 0; sub_1400C7EE0(v2, v6, (__int64 *)Block); v8 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 4136)); v9 = Block[1]; v10 = (char *)Block[0]; v11 = ((char *)Block[1] - (char *)Block[0]) >> 5; if ( v11 != 1 ) { v12 = v11 - 1; v13 = (char *)Block[0] + 32; v14 = v8; do { v15 = v13 - 32; if ( *((_QWORD *)v13 - 1) > 0xFu ) v15 = *(const char **)v15; v16 = atoi(v15); v17 = v13; if ( *((_QWORD *)v13 + 3) > 0xFu ) v17 = *(const char **)v13; if ( (float)((float)atoi(v17) * 1.1) <= 10000.0 ) { v19 = v13; if ( *((_QWORD *)v13 + 3) > 0xFu ) v19 = *(const char **)v13; v18 = (float)atoi(v19) * 1.1; } else { v18 = 10000.0; } if ( v16 < v14 ) { v20 = (cocos2d::CCSpriteBatchNode *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 4136), v16); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v20, (int)v18); } v7 += 2; v13 += 64; } while ( v7 < v12 ); v2 = v143; v9 = Block[1]; } if ( v10 ) { for ( i = (__int64)v10; (void *)i != v9; i += 32 ) sub_14003A830(i); v22 = v10; if ( ((v142 - (_QWORD)v10) & 0xFFFFFFFFFFFFFFE0uLL) >= 0x1000 ) { v10 = *((char **)v10 - 1); if ( (unsigned __int64)(v22 - v10 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v10); } } } LABEL_42: sub_14003A830((__int64)v2); }