// // cocos2d::extension::CCScale9Sprite::updateWithBatchNode from 0xaa0f24 to 0xaa1eac (3976 bytes) // // 2 xrefs: // > @ 0x3b028 // > @ 0x11f8290 // // 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 cocos2d::extension::CCScale9Sprite::updateWithBatchNode( cocos2d::extension::CCScale9Sprite *a1, cocos2d::CCSpriteBatchNode *a2, cocos2d::CCRect a3, bool a4, cocos2d::CCRect a5) { bool v5; // w3 __int64 v6; // x4 _BOOL8 v8; // x22 GLubyte (__fastcall *getOpacity)(cocos2d::extension::CCScale9Sprite *__hidden); // x1 _BOOL4 v11; // w28 __int64 v12; // x25 const cocos2d::ccColor3B *v13; // x0 cocos2d::extension::CCScale9Sprite_vtbl *v14; // x3 void (__fastcall *removeAllChildrenWithCleanup)(cocos2d::CCNode *__hidden, bool); // x3 cocos2d::CCSprite *centre; // x0 cocos2d::CCSprite *top; // x0 cocos2d::CCSprite *topLeft; // x0 cocos2d::CCSprite *topRight; // x0 cocos2d::CCSprite *left; // x0 cocos2d::CCSprite *right; // x0 cocos2d::CCSprite *bottomLeft; // x0 cocos2d::CCSprite *bottom; // x0 cocos2d::CCSprite *bottomRight; // x0 cocos2d::CCSpriteBatchNode *scale9Image; // x0 float v26; // s9 float v27; // s8 float x; // s9 float width; // s13 float height; // s15 float y; // s8 float v32; // s12 float v33; // s11 float v34; // s8 float v35; // s8 cocos2d::CCSprite *v36; // x20 cocos2d::CCSpriteBatchNode *v37; // x1 bool (__fastcall *initWithTexture_0)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *); // x21 __int64 v39; // x0 cocos2d::CCSprite *v40; // x20 cocos2d::CCSpriteBatchNode *v41; // x1 bool (__fastcall *v42)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *); // x21 __int64 v43; // x0 cocos2d::CCSprite *v44; // x20 cocos2d::CCSpriteBatchNode *v45; // x1 bool (__fastcall *v46)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *); // x21 __int64 v47; // x0 cocos2d::CCSprite *v48; // x20 cocos2d::CCSpriteBatchNode *v49; // x1 bool (__fastcall *v50)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *); // x21 __int64 v51; // x0 cocos2d::CCSprite *v52; // x20 cocos2d::CCSpriteBatchNode *v53; // x1 bool (__fastcall *v54)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *); // x21 __int64 v55; // x0 cocos2d::CCSprite *v56; // x20 cocos2d::CCSpriteBatchNode *v57; // x1 bool (__fastcall *v58)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *); // x21 __int64 v59; // x0 cocos2d::CCSprite *v60; // x20 cocos2d::CCSpriteBatchNode *v61; // x1 bool (__fastcall *v62)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *); // x21 __int64 v63; // x0 cocos2d::CCSprite *v64; // x20 cocos2d::CCSpriteBatchNode *v65; // x1 bool (__fastcall *v66)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *); // x21 __int64 v67; // x0 cocos2d::CCSprite *v68; // x20 cocos2d::CCSpriteBatchNode *v69; // x1 bool (__fastcall *v70)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *); // x21 __int64 v71; // x0 float v73; // s0 float v74; // s1 float v75; // s0 float v76; // s1 float v77; // s0 float v78; // s1 float v79; // s0 float v80; // s1 float v81; // s0 float v82; // s1 float v83; // s0 float v84; // s1 float v85; // s0 float v86; // s1 float v87; // s0 float v88; // s1 float v89; // s0 float v90; // s1 cocos2d::CCSprite *v91; // x20 cocos2d::CCSpriteBatchNode *v92; // x1 bool (__fastcall *initWithTexture_1)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *, bool); // x21 __int64 v94; // x0 cocos2d::CCSprite *v95; // x20 cocos2d::CCSpriteBatchNode *v96; // x1 bool (__fastcall *v97)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *, bool); // x21 __int64 v98; // x0 cocos2d::CCSprite *v99; // x20 cocos2d::CCSpriteBatchNode *v100; // x1 bool (__fastcall *v101)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *, bool); // x21 __int64 v102; // x0 cocos2d::CCSprite *v103; // x20 cocos2d::CCSpriteBatchNode *v104; // x1 bool (__fastcall *v105)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *, bool); // x21 __int64 v106; // x0 cocos2d::CCSprite *v107; // x20 cocos2d::CCSpriteBatchNode *v108; // x1 bool (__fastcall *v109)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *, bool); // x21 __int64 v110; // x0 cocos2d::CCSprite *v111; // x20 cocos2d::CCSpriteBatchNode *v112; // x1 bool (__fastcall *v113)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *, bool); // x21 __int64 v114; // x0 cocos2d::CCSprite *v115; // x20 cocos2d::CCSpriteBatchNode *v116; // x1 bool (__fastcall *v117)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *, bool); // x21 __int64 v118; // x0 cocos2d::CCSprite *v119; // x20 cocos2d::CCSpriteBatchNode *v120; // x1 bool (__fastcall *v121)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *, bool); // x21 __int64 v122; // x0 cocos2d::CCSprite *v123; // x20 cocos2d::CCSpriteBatchNode *v124; // x1 bool (__fastcall *v125)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *, const cocos2d::CCRect *, bool); // x21 __int64 v126; // x0 cocos2d::CCTexture2D *v127; // x0 GLubyte v128; // [xsp+BFh] [xbp+BFh] float v129; // [xsp+F0h] [xbp+F0h] cocos2d::CCAffineTransform v130; // [xsp+130h] [xbp+130h] BYREF __int16 v131; // [xsp+158h] [xbp+158h] BYREF GLubyte b; // [xsp+15Ah] [xbp+15Ah] cocos2d::CCRect v133; // [xsp+160h] [xbp+160h] BYREF cocos2d::CCRect v134; // [xsp+170h] [xbp+170h] BYREF cocos2d::CCRect v135; // [xsp+180h] [xbp+180h] BYREF cocos2d::CCRect v136; // [xsp+190h] [xbp+190h] BYREF cocos2d::CCRect v137; // [xsp+1A0h] [xbp+1A0h] BYREF cocos2d::CCRect v138; // [xsp+1B0h] [xbp+1B0h] BYREF cocos2d::CCRect v139; // [xsp+1C0h] [xbp+1C0h] BYREF cocos2d::CCRect v140; // [xsp+1D0h] [xbp+1D0h] BYREF cocos2d::CCRect v141; // [xsp+1E0h] [xbp+1E0h] BYREF cocos2d::CCRect v142; // [xsp+1F0h] [xbp+1F0h] BYREF cocos2d::CCRect v143; // [xsp+200h] [xbp+200h] BYREF cocos2d::CCRect v144; // [xsp+210h] [xbp+210h] BYREF cocos2d::CCRect v145; // [xsp+220h] [xbp+220h] BYREF cocos2d::CCRect v146; // [xsp+230h] [xbp+230h] BYREF cocos2d::CCRect v147; // [xsp+240h] [xbp+240h] BYREF cocos2d::CCRect v148; // [xsp+250h] [xbp+250h] BYREF cocos2d::CCRect v149; // [xsp+260h] [xbp+260h] BYREF cocos2d::CCRect v150; // [xsp+270h] [xbp+270h] BYREF float v151[4]; // [xsp+280h] [xbp+280h] BYREF cocos2d::CCAffineTransform v152; // [xsp+290h] [xbp+290h] BYREF v8 = a4; getOpacity = a1->getOpacity; v11 = v5; v12 = v6; a1->m_bSpriteFrameRotated = v5; v128 = ((__int64 (__fastcall *)(long double, long double, long double, long double, long double, long double, long double, long double))getOpacity)( *(long double *)&a3, *(long double *)((char *)&a3 + 4), *(long double *)&a3.size.width, *(long double *)&a3.size.height, *(long double *)&a5, *(long double *)((char *)&a5 + 4), *(long double *)&a5.size.width, *(long double *)&a5.size.height); v13 = a1->getColor(a1); v14 = a1->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v131 = *(_WORD *)&v13->r; removeAllChildrenWithCleanup = v14->removeAllChildrenWithCleanup; b = v13->b; 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; if ( a2 ) { cocos2d::CCObject::retain(a2); scale9Image = a1->_scale9Image; } else { scale9Image = nullptr; } } scale9Image->removeAllChildrenWithCleanup(scale9Image, 1); cocos2d::CCRect::operator=(&a1->m_capInsets, v12); if ( (unsigned __int8)cocos2d::CCRect::equals((cocos2d::CCRect *)v8, &stru_1244888) ) { v127 = a1->_scale9Image->m_pobTextureAtlas->getTexture(a1->_scale9Image->m_pobTextureAtlas); v127->getContentSize(v127); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v152, 0.0, 0.0, v151[0], v151[1]); cocos2d::CCRect::operator=(v8, &v152); } cocos2d::CCRect::operator=(&a1->m_spriteRect, v8); cocos2d::CCSize::operator=(&a1->m_originalSize, v8 + 8); cocos2d::CCSize::operator=(&a1->m_preferredSize, &a1->m_originalSize); cocos2d::CCRect::operator=(&a1->m_capInsetsInternal, v12); v26 = *(float *)(v8 + 8); v27 = *(float *)(v8 + 12); if ( (unsigned __int8)cocos2d::CCRect::equals(&a1->m_capInsetsInternal, &stru_1244888) ) { cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v152, v26 / 3.0, v27 / 3.0, v26 / 3.0, v27 / 3.0); cocos2d::CCRect::operator=(&a1->m_capInsetsInternal, &v152); } x = a1->m_capInsetsInternal.origin.x; width = a1->m_capInsetsInternal.size.width; height = a1->m_capInsetsInternal.size.height; y = a1->m_capInsetsInternal.origin.y; v32 = *(float *)(v8 + 8) - (float)(x + width); v33 = *(float *)(v8 + 12) - (float)(y + height); cocos2d::CCRect::CCRect(&v133, 0.0, 0.0, x, y); cocos2d::CCRect::CCRect(&v134, x + 0.0, 0.0, width, y); v129 = (float)(x + 0.0) + width; cocos2d::CCRect::CCRect(&v135, v129, 0.0, v32, y); v34 = y + 0.0; cocos2d::CCRect::CCRect(&v136, 0.0, v34, x, height); cocos2d::CCRect::CCRect(&v137, x + 0.0, v34, width, height); cocos2d::CCRect::CCRect(&v138, v129, v34, v32, height); v35 = height + v34; cocos2d::CCRect::CCRect(&v139, 0.0, v35, x, v33); cocos2d::CCRect::CCRect(&v140, x + 0.0, v35, width, v33); cocos2d::CCRect::CCRect(&v141, v129, v35, v32, v33); cocos2d::CCAffineTransformMakeIdentity(&v152); if ( v11 ) { cocos2d::CCRect::CCRect(&v142, &v137); cocos2d::CCRect::CCRect(&v143, &v141); cocos2d::CCRect::CCRect(&v144, &v139); cocos2d::CCRect::CCRect(&v145, &v135); cocos2d::CCRect::CCRect(&v146, &v133); cocos2d::CCRect::CCRect(&v147, &v138); cocos2d::CCRect::CCRect(&v148, &v136); cocos2d::CCRect::CCRect(&v149, &v140); cocos2d::CCRect::CCRect(&v150, &v134); cocos2d::CCAffineTransformTranslate(&v130, &v152, *(float *)(v8 + 12) + *(float *)v8, *(float *)(v8 + 4)); v152 = v130; cocos2d::CCAffineTransformRotate(&v130, &v152, 1.5708); v152 = v130; cocos2d::CCRectApplyAffineTransform(&v137, &v152); cocos2d::CCRect::operator=(&v137, v151); cocos2d::CCRectApplyAffineTransform(&v141, &v152); cocos2d::CCRect::operator=(&v141, v151); cocos2d::CCRectApplyAffineTransform(&v139, &v152); cocos2d::CCRect::operator=(&v139, v151); cocos2d::CCRectApplyAffineTransform(&v135, &v152); cocos2d::CCRect::operator=(&v135, v151); cocos2d::CCRectApplyAffineTransform(&v133, &v152); cocos2d::CCRect::operator=(&v133, v151); cocos2d::CCRectApplyAffineTransform(&v138, &v152); cocos2d::CCRect::operator=(&v138, v151); cocos2d::CCRectApplyAffineTransform(&v136, &v152); cocos2d::CCRect::operator=(&v136, v151); cocos2d::CCRectApplyAffineTransform(&v140, &v152); cocos2d::CCRect::operator=(&v140, v151); cocos2d::CCRectApplyAffineTransform(&v134, &v152); cocos2d::CCRect::operator=(&v134, v151); cocos2d::CCPoint::operator=(&v142, v73, v74); cocos2d::CCPoint::operator=(&v143, v75, v76); cocos2d::CCPoint::operator=(&v144, v77, v78); cocos2d::CCPoint::operator=(&v145, v79, v80); cocos2d::CCPoint::operator=(&v146, v81, v82); cocos2d::CCPoint::operator=(&v147, v83, v84); cocos2d::CCPoint::operator=(&v148, v85, v86); cocos2d::CCPoint::operator=(&v149, v87, v88); cocos2d::CCPoint::operator=(&v150, v89, v90); v91 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v91); v92 = a1->_scale9Image; a1->_centre = v91; initWithTexture_1 = v91->initWithTexture_1; v94 = (__int64)v92->getTexture(v92); initWithTexture_1(v91, (cocos2d::CCTexture2D *)v94, &v142, 1); a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_centre, 0, 0); v95 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v95); v96 = a1->_scale9Image; a1->_top = v95; v97 = v95->initWithTexture_1; v98 = (__int64)v96->getTexture(v96); v97(v95, (cocos2d::CCTexture2D *)v98, &v150, 1); a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_top, 1, 1); v99 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v99); v100 = a1->_scale9Image; a1->_bottom = v99; v101 = v99->initWithTexture_1; v102 = (__int64)v100->getTexture(v100); v101(v99, (cocos2d::CCTexture2D *)v102, &v149, 1); a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_bottom, 1, 4); v103 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v103); v104 = a1->_scale9Image; a1->_left = v103; v105 = v103->initWithTexture_1; v106 = (__int64)v104->getTexture(v104); v105(v103, (cocos2d::CCTexture2D *)v106, &v148, 1); a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_left, 1, 2); v107 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v107); v108 = a1->_scale9Image; a1->_right = v107; v109 = v107->initWithTexture_1; v110 = (__int64)v108->getTexture(v108); v109(v107, (cocos2d::CCTexture2D *)v110, &v147, 1); a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_right, 1, 3); v111 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v111); v112 = a1->_scale9Image; a1->_topLeft = v111; v113 = v111->initWithTexture_1; v114 = (__int64)v112->getTexture(v112); v113(v111, (cocos2d::CCTexture2D *)v114, &v146, 1); a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_topLeft, 2, 6); v115 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v115); v116 = a1->_scale9Image; a1->_topRight = v115; v117 = v115->initWithTexture_1; v118 = (__int64)v116->getTexture(v116); v117(v115, (cocos2d::CCTexture2D *)v118, &v145, 1); a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_topRight, 2, 5); v119 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v119); v120 = a1->_scale9Image; a1->_bottomLeft = v119; v121 = v119->initWithTexture_1; v122 = (__int64)v120->getTexture(v120); v121(v119, (cocos2d::CCTexture2D *)v122, &v144, 1); a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_bottomLeft, 2, 8); v123 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v123); v124 = a1->_scale9Image; a1->_bottomRight = v123; v125 = v123->initWithTexture_1; v126 = (__int64)v124->getTexture(v124); v125(v123, (cocos2d::CCTexture2D *)v126, &v143, 1); } else { cocos2d::CCAffineTransformTranslate(&v130, &v152, *(float *)v8, *(float *)(v8 + 4)); v152 = v130; cocos2d::CCRectApplyAffineTransform(&v137, &v152); cocos2d::CCRect::operator=(&v137, v151); cocos2d::CCRectApplyAffineTransform(&v141, &v152); cocos2d::CCRect::operator=(&v141, v151); cocos2d::CCRectApplyAffineTransform(&v139, &v152); cocos2d::CCRect::operator=(&v139, v151); cocos2d::CCRectApplyAffineTransform(&v135, &v152); cocos2d::CCRect::operator=(&v135, v151); cocos2d::CCRectApplyAffineTransform(&v133, &v152); cocos2d::CCRect::operator=(&v133, v151); cocos2d::CCRectApplyAffineTransform(&v138, &v152); cocos2d::CCRect::operator=(&v138, v151); cocos2d::CCRectApplyAffineTransform(&v136, &v152); cocos2d::CCRect::operator=(&v136, v151); cocos2d::CCRectApplyAffineTransform(&v140, &v152); cocos2d::CCRect::operator=(&v140, v151); cocos2d::CCRectApplyAffineTransform(&v134, &v152); cocos2d::CCRect::operator=(&v134, v151); v36 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v36); v37 = a1->_scale9Image; a1->_centre = v36; initWithTexture_0 = v36->initWithTexture_0; v39 = (__int64)v37->getTexture(v37); initWithTexture_0(v36, (cocos2d::CCTexture2D *)v39, &v137); a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_centre, 0, 0); v40 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v40); v41 = a1->_scale9Image; a1->_top = v40; v42 = v40->initWithTexture_0; v43 = (__int64)v41->getTexture(v41); v42(v40, (cocos2d::CCTexture2D *)v43, &v134); a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_top, 1, 1); v44 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v44); v45 = a1->_scale9Image; a1->_bottom = v44; v46 = v44->initWithTexture_0; v47 = (__int64)v45->getTexture(v45); v46(v44, (cocos2d::CCTexture2D *)v47, &v140); a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_bottom, 1, 4); v48 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v48); v49 = a1->_scale9Image; a1->_left = v48; v50 = v48->initWithTexture_0; v51 = (__int64)v49->getTexture(v49); v50(v48, (cocos2d::CCTexture2D *)v51, &v136); a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_left, 1, 2); v52 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v52); v53 = a1->_scale9Image; a1->_right = v52; v54 = v52->initWithTexture_0; v55 = (__int64)v53->getTexture(v53); v54(v52, (cocos2d::CCTexture2D *)v55, &v138); a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_right, 1, 3); v56 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v56); v57 = a1->_scale9Image; a1->_topLeft = v56; v58 = v56->initWithTexture_0; v59 = (__int64)v57->getTexture(v57); v58(v56, (cocos2d::CCTexture2D *)v59, &v133); a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_topLeft, 2, 6); v60 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v60); v61 = a1->_scale9Image; a1->_topRight = v60; v62 = v60->initWithTexture_0; v63 = (__int64)v61->getTexture(v61); v62(v60, (cocos2d::CCTexture2D *)v63, &v135); a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_topRight, 2, 5); v64 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v64); v65 = a1->_scale9Image; a1->_bottomLeft = v64; v66 = v64->initWithTexture_0; v67 = (__int64)v65->getTexture(v65); v66(v64, (cocos2d::CCTexture2D *)v67, &v139); a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_bottomLeft, 2, 8); v68 = (cocos2d::CCSprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite(v68); v69 = a1->_scale9Image; a1->_bottomRight = v68; v70 = v68->initWithTexture_0; v71 = (__int64)v69->getTexture(v69); v70(v68, (cocos2d::CCTexture2D *)v71, &v141); } a1->_scale9Image->addChild_1(a1->_scale9Image, a1->_bottomRight, 2, 7); a1->setContentSize(a1, (const cocos2d::CCSize *)(v8 + 8)); a1->addChild(a1, a1->_scale9Image); if ( a1->m_bSpritesGenerated ) { a1->setOpacity(a1, v128); a1->setColor(a1, (const cocos2d::ccColor3B *)&v131); } a1->m_bSpritesGenerated = 1; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source