// // cocos2d::extension::CCScale9Sprite::updateWithBatchNode from 0x1003f3ef0 to 0x1003f4e84 (3988 bytes) // // 1 xrefs: // > @ 0x100933040 // // 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 // // local variable allocation has failed, the output may be wrong! bool __fastcall cocos2d::extension::CCScale9Sprite::updateWithBatchNode( cocos2d::extension::CCScale9Sprite *a1, cocos2d::CCSpriteBatchNode *a2, cocos2d::CCRect a3, bool a4, cocos2d::CCRect a5) { bool v5; // cl unsigned __int64 *v6; // r8 unsigned __int64 *v7; // r14 bool v8; // r13 _BOOL8 v9; // r12 __int64 v11; // rax cocos2d::CCSprite *centre; // rdi cocos2d::CCSprite *top; // rdi cocos2d::CCSprite *topLeft; // rdi cocos2d::CCSprite *topRight; // rdi cocos2d::CCSprite *left; // rdi cocos2d::CCSprite *right; // rdi cocos2d::CCSprite *bottomLeft; // rdi cocos2d::CCSprite *bottom; // rdi cocos2d::CCSprite *bottomRight; // rdi cocos2d::CCSpriteBatchNode *scale9Image; // rdi __int64 v22; // rax __m128 v23; // xmm2 __m128 v24; // xmm1 __m128 x_low; // xmm2 __m128 y_low; // xmm3 float v27; // xmm1_4 double v28; // xmm0_8 cocos2d::CCSprite *v29; // r12 __int64 v30; // rax cocos2d::CCSprite *v31; // rsi cocos2d::CCSprite *v32; // r12 __int64 v33; // rax cocos2d::CCSprite *v34; // rsi cocos2d::CCSprite *v35; // r12 __int64 v36; // rax cocos2d::CCSprite *v37; // rsi cocos2d::CCSprite *v38; // r12 __int64 v39; // rax cocos2d::CCSprite *v40; // rsi cocos2d::CCSprite *v41; // r12 __int64 v42; // rax cocos2d::CCSprite *v43; // rsi cocos2d::CCSprite *v44; // r12 __int64 v45; // rax cocos2d::CCSprite *v46; // rsi cocos2d::CCSprite *v47; // r12 __int64 v48; // rax cocos2d::CCSprite *v49; // rsi cocos2d::CCSprite *v50; // r12 __int64 v51; // rax cocos2d::CCSprite *v52; // rsi cocos2d::CCSprite *v53; // r12 __int64 v54; // rax cocos2d::CCSprite *v55; // r12 __int64 v56; // rax cocos2d::CCSprite *v57; // rsi cocos2d::CCSprite *v58; // r12 __int64 v59; // rax cocos2d::CCSprite *v60; // rsi cocos2d::CCSprite *v61; // r12 __int64 v62; // rax cocos2d::CCSprite *v63; // rsi cocos2d::CCSprite *v64; // r12 __int64 v65; // rax cocos2d::CCSprite *v66; // rsi cocos2d::CCSprite *v67; // r12 __int64 v68; // rax cocos2d::CCSprite *v69; // rsi cocos2d::CCSprite *v70; // r12 __int64 v71; // rax cocos2d::CCSprite *v72; // rsi cocos2d::CCSprite *v73; // r12 __int64 v74; // rax cocos2d::CCSprite *v75; // rsi cocos2d::CCSprite *v76; // r12 __int64 v77; // rax cocos2d::CCSprite *v78; // rsi cocos2d::CCSprite *v79; // r12 __int64 v80; // rax __m128 v82; // [rsp+8h] [rbp-1A8h] BYREF __m128 v83; // [rsp+18h] [rbp-198h] BYREF __m128 v84; // [rsp+28h] [rbp-188h] BYREF __m128 v85; // [rsp+38h] [rbp-178h] BYREF __m128 v86; // [rsp+48h] [rbp-168h] BYREF __m128 v87; // [rsp+58h] [rbp-158h] BYREF __m128 v88; // [rsp+68h] [rbp-148h] BYREF __m128 v89; // [rsp+78h] [rbp-138h] BYREF __m128 v90; // [rsp+88h] [rbp-128h] BYREF cocos2d::CCAffineTransform v91; // [rsp+98h] [rbp-118h] BYREF cocos2d::CCAffineTransform v92; // [rsp+B0h] [rbp-100h] BYREF cocos2d::CCAffineTransform v93; // [rsp+D0h] [rbp-E0h] BYREF cocos2d::CCAffineTransform v94; // [rsp+F0h] [rbp-C0h] BYREF cocos2d::CCAffineTransform v95; // [rsp+110h] [rbp-A0h] BYREF cocos2d::CCAffineTransform v96; // [rsp+130h] [rbp-80h] BYREF float v97; // [rsp+148h] [rbp-68h] __int16 v98; // [rsp+14Ch] [rbp-64h] BYREF char v99; // [rsp+14Eh] [rbp-62h] float v100; // [rsp+150h] [rbp-60h] float v101; // [rsp+154h] [rbp-5Ch] float v102; // [rsp+158h] [rbp-58h] float v103; // [rsp+15Ch] [rbp-54h] cocos2d::CCAffineTransform v104; // [rsp+160h] [rbp-50h] BYREF float height; // [rsp+178h] [rbp-38h] float width; // [rsp+17Ch] [rbp-34h] unsigned __int8 v107; // [rsp+183h] [rbp-2Dh] float v108; // [rsp+184h] [rbp-2Ch] double size; // 0:xmm1_8.8 cocos2d::CCRect v110; // 0:kr110_16.16 v7 = v6; v8 = v5; v9 = a4; a1->m_bSpriteFrameRotated = v5; v107 = ((__int64 (__fastcall *)(cocos2d::extension::CCScale9Sprite *, double, double, double, double))a1->getOpacity)( a1, *(double *)&a3.origin, *(double *)&a3.size, *(double *)&a5.origin, *(double *)&a5.size); v11 = ((__int64 (__fastcall *)(cocos2d::extension::CCScale9Sprite *))a1->getColor)(a1); v98 = *(_WORD *)v11; v99 = *(_BYTE *)(v11 + 2); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))a1->removeAllChildrenWithCleanup)(a1, 1); centre = a1->_centre; if ( centre ) cocos2d::CCObject::release(centre); top = a1->_top; if ( top ) cocos2d::CCObject::release(top); topLeft = a1->_topLeft; if ( topLeft ) cocos2d::CCObject::release(topLeft); topRight = a1->_topRight; if ( topRight ) cocos2d::CCObject::release(topRight); left = a1->_left; if ( left ) cocos2d::CCObject::release(left); right = a1->_right; if ( right ) cocos2d::CCObject::release(right); bottomLeft = a1->_bottomLeft; if ( bottomLeft ) cocos2d::CCObject::release(bottomLeft); bottom = a1->_bottom; if ( bottom ) cocos2d::CCObject::release(bottom); bottomRight = a1->_bottomRight; if ( bottomRight ) cocos2d::CCObject::release(bottomRight); scale9Image = a1->_scale9Image; if ( scale9Image != a2 ) { if ( scale9Image ) cocos2d::CCObject::release(scale9Image); a1->_scale9Image = a2; cocos2d::CCObject::retain(a2); scale9Image = a1->_scale9Image; } ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, __int64))scale9Image->removeAllChildrenWithCleanup)( scale9Image, 1); sub_10028D1A0((__m128 *)&a1->m_capInsets, v7); if ( sub_10028D1C0((float *)v9, flt_1009A1500) ) { v22 = ((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))a1->_scale9Image->m_pobTextureAtlas->getTexture)(a1->_scale9Image->m_pobTextureAtlas); (*(void (__fastcall **)(cocos2d::CCAffineTransform *, __int64))(*(_QWORD *)v22 + 144LL))(&v104, v22); sub_10028CC00((__int64)&v96, 0.0, 0.0, (__m128)LODWORD(v104.a), (__m128)LODWORD(v104.b)); sub_10028D1A0((__m128 *)v9, (unsigned __int64 *)&v96); } sub_10028D1A0((__m128 *)&a1->m_spriteRect, (unsigned __int64 *)v9); *(_QWORD *)&v91.tx = v9 + 8; sub_10028CFF0(&a1->m_originalSize, (_QWORD *)(v9 + 8)); sub_10028CFF0(&a1->m_preferredSize, &a1->m_originalSize); sub_10028D1A0((__m128 *)&a1->m_capInsetsInternal, v7); v108 = *(float *)(v9 + 8); width = *(float *)(v9 + 12); if ( sub_10028D1C0((float *)&a1->m_capInsetsInternal.origin, flt_1009A1500) ) { v23 = (__m128)LODWORD(v108); v23.f32[0] = v108 / 3.0; v24 = (__m128)LODWORD(width); v24.f32[0] = width / 3.0; sub_10028CC00((__int64)&v96, v108 / 3.0, width / 3.0, v23, v24); sub_10028D1A0((__m128 *)&a1->m_capInsetsInternal, (unsigned __int64 *)&v96); } width = a1->m_capInsetsInternal.size.width; x_low = (__m128)LODWORD(a1->m_capInsetsInternal.origin.x); y_low = (__m128)LODWORD(a1->m_capInsetsInternal.origin.y); v108 = y_low.f32[0]; v102 = x_low.f32[0]; v100 = *(float *)(v9 + 8) - (float)(x_low.f32[0] + width); v27 = *(float *)(v9 + 12); height = a1->m_capInsetsInternal.size.height; v101 = v27 - (float)(y_low.f32[0] + height); sub_10028CC00((__int64)&v93, 0.0, 0.0, x_low, y_low); v103 = v102 + 0.0; sub_10028CC00((__int64)&v91, v102 + 0.0, 0.0, (__m128)LODWORD(width), (__m128)LODWORD(v108)); v97 = v103 + width; sub_10028CC00((__int64)&v93.tx, v103 + width, 0.0, (__m128)LODWORD(v100), (__m128)LODWORD(v108)); v108 = v108 + 0.0; sub_10028CC00((__int64)&v94, 0.0, v108, (__m128)LODWORD(v102), (__m128)LODWORD(height)); sub_10028CC00((__int64)&v92, v103, v108, (__m128)LODWORD(width), (__m128)LODWORD(height)); sub_10028CC00((__int64)&v94.tx, v97, v108, (__m128)LODWORD(v100), (__m128)LODWORD(height)); v108 = v108 + height; sub_10028CC00((__int64)&v95, 0.0, v108, (__m128)LODWORD(v102), (__m128)LODWORD(v101)); sub_10028CC00((__int64)&v92.tx, v103, v108, (__m128)LODWORD(width), (__m128)LODWORD(v101)); sub_10028CC00((__int64)&v95.tx, v97, v108, (__m128)LODWORD(v100), (__m128)LODWORD(v101)); cocos2d::CCAffineTransformMakeIdentity(&v96); if ( v8 ) { sub_10028D180(&v82, (unsigned __int64 *)&v92); sub_10028D180(&v83, (unsigned __int64 *)&v95.tx); sub_10028D180(&v84, (unsigned __int64 *)&v95); sub_10028D180(&v85, (unsigned __int64 *)&v93.tx); sub_10028D180(&v86, (unsigned __int64 *)&v93); sub_10028D180(&v87, (unsigned __int64 *)&v94.tx); sub_10028D180(&v88, (unsigned __int64 *)&v94); sub_10028D180(&v89, (unsigned __int64 *)&v92.tx); sub_10028D180(&v90, (unsigned __int64 *)&v91); cocos2d::CCAffineTransformTranslate(&v104, &v96, *(float *)(v9 + 12) + *(float *)v9, *(float *)(v9 + 4)); v96 = v104; cocos2d::CCAffineTransformRotate(&v104, &v96, 1.5707964); v96 = v104; cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, &v92); sub_10028D1A0((__m128 *)&v92, (unsigned __int64 *)&v104); cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, (cocos2d::CCAffineTransform *)&v95.tx); sub_10028D1A0((__m128 *)&v95.tx, (unsigned __int64 *)&v104); cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, &v95); sub_10028D1A0((__m128 *)&v95, (unsigned __int64 *)&v104); cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, (cocos2d::CCAffineTransform *)&v93.tx); sub_10028D1A0((__m128 *)&v93.tx, (unsigned __int64 *)&v104); cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, &v93); sub_10028D1A0((__m128 *)&v93, (unsigned __int64 *)&v104); cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, (cocos2d::CCAffineTransform *)&v94.tx); sub_10028D1A0((__m128 *)&v94.tx, (unsigned __int64 *)&v104); cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, &v94); sub_10028D1A0((__m128 *)&v94, (unsigned __int64 *)&v104); cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, (cocos2d::CCAffineTransform *)&v92.tx); sub_10028D1A0((__m128 *)&v92.tx, (unsigned __int64 *)&v104); size = (unsigned __int64)cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, &v91).size; sub_10028D1A0((__m128 *)&v91, (unsigned __int64 *)&v104); sub_10028CC90(&v82, (double *)&v92.a); sub_10028CC90(&v83, (double *)&v95.tx); sub_10028CC90(&v84, (double *)&v95.a); sub_10028CC90(&v85, (double *)&v93.tx); sub_10028CC90(&v86, (double *)&v93.a); sub_10028CC90(&v87, (double *)&v94.tx); sub_10028CC90(&v88, (double *)&v94.a); sub_10028CC90(&v89, (double *)&v92.tx); v28 = sub_10028CC90(&v90, (double *)&v91.a); v29 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v29, v28, (__int64)&v91); a1->_centre = v29; v30 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *, double, double))a1->_scale9Image->getTexture)( a1->_scale9Image, v28, size); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, __m128 *, __int64))v29->initWithTexture_1)(v29, v30, &v82, 1); v31 = a1->_centre; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, _QWORD, _QWORD))a1->_scale9Image->addChild_1)( a1->_scale9Image, v31, 0, 0); v32 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v32, v28, (__int64)v31); a1->_top = v32; v33 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, __m128 *, __int64))v32->initWithTexture_1)(v32, v33, &v90, 1); v34 = a1->_top; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)( a1->_scale9Image, v34, 1, 1); v35 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v35, v28, (__int64)v34); a1->_bottom = v35; v36 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, __m128 *, __int64))v35->initWithTexture_1)(v35, v36, &v89, 1); v37 = a1->_bottom; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)( a1->_scale9Image, v37, 1, 4); v38 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v38, v28, (__int64)v37); a1->_left = v38; v39 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, __m128 *, __int64))v38->initWithTexture_1)(v38, v39, &v88, 1); v40 = a1->_left; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)( a1->_scale9Image, v40, 1, 2); v41 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v41, v28, (__int64)v40); a1->_right = v41; v42 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, __m128 *, __int64))v41->initWithTexture_1)(v41, v42, &v87, 1); v43 = a1->_right; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)( a1->_scale9Image, v43, 1, 3); v44 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v44, v28, (__int64)v43); a1->_topLeft = v44; v45 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, __m128 *, __int64))v44->initWithTexture_1)(v44, v45, &v86, 1); v46 = a1->_topLeft; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)( a1->_scale9Image, v46, 2, 6); v47 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v47, v28, (__int64)v46); a1->_topRight = v47; v48 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, __m128 *, __int64))v47->initWithTexture_1)(v47, v48, &v85, 1); v49 = a1->_topRight; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)( a1->_scale9Image, v49, 2, 5); v50 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v50, v28, (__int64)v49); a1->_bottomLeft = v50; v51 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, __m128 *, __int64))v50->initWithTexture_1)(v50, v51, &v84, 1); v52 = a1->_bottomLeft; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)( a1->_scale9Image, v52, 2, 8); v53 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v53, v28, (__int64)v52); a1->_bottomRight = v53; v54 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, __m128 *, __int64))v53->initWithTexture_1)(v53, v54, &v83, 1); } else { cocos2d::CCAffineTransformTranslate(&v104, &v96, *(float *)v9, *(float *)(v9 + 4)); v96 = v104; cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, &v92); sub_10028D1A0((__m128 *)&v92, (unsigned __int64 *)&v104); cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, (cocos2d::CCAffineTransform *)&v95.tx); sub_10028D1A0((__m128 *)&v95.tx, (unsigned __int64 *)&v104); cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, &v95); sub_10028D1A0((__m128 *)&v95, (unsigned __int64 *)&v104); cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, (cocos2d::CCAffineTransform *)&v93.tx); sub_10028D1A0((__m128 *)&v93.tx, (unsigned __int64 *)&v104); cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, &v93); sub_10028D1A0((__m128 *)&v93, (unsigned __int64 *)&v104); cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, (cocos2d::CCAffineTransform *)&v94.tx); sub_10028D1A0((__m128 *)&v94.tx, (unsigned __int64 *)&v104); cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, &v94); sub_10028D1A0((__m128 *)&v94, (unsigned __int64 *)&v104); cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, (cocos2d::CCAffineTransform *)&v92.tx); sub_10028D1A0((__m128 *)&v92.tx, (unsigned __int64 *)&v104); v110 = cocos2d::CCRectApplyAffineTransform((const cocos2d::CCRect *)&v104, &v91); sub_10028D1A0((__m128 *)&v91, (unsigned __int64 *)&v104); v55 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v55, COERCE_DOUBLE(v110.origin), (__int64)&v104); a1->_centre = v55; v56 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *, double, double))a1->_scale9Image->getTexture)( a1->_scale9Image, COERCE_DOUBLE(v110.origin), COERCE_DOUBLE(v110.size)); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, cocos2d::CCAffineTransform *))v55->initWithTexture_0)( v55, v56, &v92); v57 = a1->_centre; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, _QWORD, _QWORD))a1->_scale9Image->addChild_1)( a1->_scale9Image, v57, 0, 0); v58 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v58, COERCE_DOUBLE(v110.origin), (__int64)v57); a1->_top = v58; v59 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, cocos2d::CCAffineTransform *))v58->initWithTexture_0)( v58, v59, &v91); v60 = a1->_top; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)( a1->_scale9Image, v60, 1, 1); v61 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v61, COERCE_DOUBLE(v110.origin), (__int64)v60); a1->_bottom = v61; v62 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, float *))v61->initWithTexture_0)(v61, v62, &v92.tx); v63 = a1->_bottom; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)( a1->_scale9Image, v63, 1, 4); v64 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v64, COERCE_DOUBLE(v110.origin), (__int64)v63); a1->_left = v64; v65 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, cocos2d::CCAffineTransform *))v64->initWithTexture_0)( v64, v65, &v94); v66 = a1->_left; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)( a1->_scale9Image, v66, 1, 2); v67 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v67, COERCE_DOUBLE(v110.origin), (__int64)v66); a1->_right = v67; v68 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, float *))v67->initWithTexture_0)(v67, v68, &v94.tx); v69 = a1->_right; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)( a1->_scale9Image, v69, 1, 3); v70 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v70, COERCE_DOUBLE(v110.origin), (__int64)v69); a1->_topLeft = v70; v71 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, cocos2d::CCAffineTransform *))v70->initWithTexture_0)( v70, v71, &v93); v72 = a1->_topLeft; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)( a1->_scale9Image, v72, 2, 6); v73 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v73, COERCE_DOUBLE(v110.origin), (__int64)v72); a1->_topRight = v73; v74 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, float *))v73->initWithTexture_0)(v73, v74, &v93.tx); v75 = a1->_topRight; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)( a1->_scale9Image, v75, 2, 5); v76 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v76, COERCE_DOUBLE(v110.origin), (__int64)v75); a1->_bottomLeft = v76; v77 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, cocos2d::CCAffineTransform *))v76->initWithTexture_0)( v76, v77, &v95); v78 = a1->_bottomLeft; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)( a1->_scale9Image, v78, 2, 8); v79 = (cocos2d::CCSprite *)operator new(0x258u); sub_1002881A0((__int64)v79, COERCE_DOUBLE(v110.origin), (__int64)v78); a1->_bottomRight = v79; v80 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image); ((void (__fastcall *)(cocos2d::CCSprite *, __int64, float *))v79->initWithTexture_0)(v79, v80, &v95.tx); } ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)( a1->_scale9Image, a1->_bottomRight, 2, 7); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, _QWORD))a1->setContentSize)(a1, *(_QWORD *)&v91.tx); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, cocos2d::CCSpriteBatchNode *))a1->addChild)( a1, a1->_scale9Image); if ( a1->m_bSpritesGenerated ) { ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, _QWORD))a1->setOpacity)(a1, v107); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int16 *))a1->setColor)(a1, &v98); } a1->m_bSpritesGenerated = 1; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source