//
// cocos2d::extension::CCScale9Sprite::updateWithBatchNode from 0x10021487c to 0x1002155a0 (3364 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007c3300
//
// 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; // w3
__int64 v6; // x4
__int64 v7; // x23
bool v8; // w22
__int64 v9; // x21
__int64 v12; // x20
__int64 v13; // x0
char v14; // w8
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
__int64 v25; // x0
float v26; // s8
float v27; // s9
float x; // s11
float width; // s9
float v30; // s8
float y; // s12
float height; // s13
float v33; // s10
float v34; // s12
float v35; // s12
cocos2d::CCSprite *v36; // x22
__int64 v37; // x0
cocos2d::CCSprite *v38; // x22
__int64 v39; // x0
cocos2d::CCSprite *v40; // x22
__int64 v41; // x0
cocos2d::CCSprite *v42; // x22
__int64 v43; // x0
cocos2d::CCSprite *v44; // x22
__int64 v45; // x0
cocos2d::CCSprite *v46; // x22
__int64 v47; // x0
cocos2d::CCSprite *v48; // x22
__int64 v49; // x0
cocos2d::CCSprite *v50; // x22
__int64 v51; // x0
cocos2d::CCSprite *v52; // x22
__int64 v53; // x0
cocos2d::CCSprite *v54; // x22
__int64 v55; // x0
cocos2d::CCSprite *v56; // x22
__int64 v57; // x0
cocos2d::CCSprite *v58; // x22
__int64 v59; // x0
cocos2d::CCSprite *v60; // x22
__int64 v61; // x0
cocos2d::CCSprite *v62; // x22
__int64 v63; // x0
cocos2d::CCSprite *v64; // x22
__int64 v65; // x0
cocos2d::CCSprite *v66; // x22
__int64 v67; // x0
cocos2d::CCSprite *v68; // x22
__int64 v69; // x0
cocos2d::CCSprite *v70; // x22
__int64 v71; // x0
_QWORD v73[2]; // [xsp+8h] [xbp-1D8h] BYREF
_QWORD v74[2]; // [xsp+18h] [xbp-1C8h] BYREF
_QWORD v75[2]; // [xsp+28h] [xbp-1B8h] BYREF
_QWORD v76[2]; // [xsp+38h] [xbp-1A8h] BYREF
_QWORD v77[2]; // [xsp+48h] [xbp-198h] BYREF
_QWORD v78[2]; // [xsp+58h] [xbp-188h] BYREF
_QWORD v79[2]; // [xsp+68h] [xbp-178h] BYREF
_QWORD v80[2]; // [xsp+78h] [xbp-168h] BYREF
_QWORD v81[2]; // [xsp+88h] [xbp-158h] BYREF
cocos2d::CCAffineTransform v82; // [xsp+98h] [xbp-148h] BYREF
cocos2d::CCAffineTransform v83; // [xsp+B0h] [xbp-130h] BYREF
cocos2d::CCRect v84; // [xsp+CCh] [xbp-114h] BYREF
cocos2d::CCRect v85; // [xsp+DCh] [xbp-104h] BYREF
cocos2d::CCRect v86; // [xsp+ECh] [xbp-F4h] BYREF
cocos2d::CCRect v87; // [xsp+FCh] [xbp-E4h] BYREF
cocos2d::CCRect v88; // [xsp+10Ch] [xbp-D4h] BYREF
cocos2d::CCRect v89; // [xsp+11Ch] [xbp-C4h] BYREF
cocos2d::CCRect v90; // [xsp+12Ch] [xbp-B4h] BYREF
cocos2d::CCRect v91; // [xsp+13Ch] [xbp-A4h] BYREF
cocos2d::CCRect v92; // [xsp+14Ch] [xbp-94h] BYREF
__int16 v93; // [xsp+15Ch] [xbp-84h] BYREF
char v94; // [xsp+15Eh] [xbp-82h]
v7 = v6;
v8 = v5;
v9 = a4;
a1->m_bSpriteFrameRotated = v5;
v12 = ((__int64 (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __n128, __n128, __n128, __n128, __n128, __n128, __n128, __n128))a1->getOpacity)(
a1,
(__n128)a3,
*(__n128 *)((char *)&a3 + 4),
*(__n128 *)&a3.size.width,
*(__n128 *)&a3.size.height,
(__n128)a5,
*(__n128 *)((char *)&a5 + 4),
*(__n128 *)&a5.size.width,
*(__n128 *)&a5.size.height);
v13 = ((__int64 (__fastcall *)(cocos2d::extension::CCScale9Sprite *))a1->getColor)(a1);
v14 = *(_BYTE *)(v13 + 2);
v93 = *(_WORD *)v13;
v94 = v14;
((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_100022BB0(&a1->m_capInsets.origin, v7);
if ( sub_100022BC4((float *)v9, flt_10086CB20) )
{
v25 = ((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))a1->_scale9Image->m_pobTextureAtlas->getTexture)(a1->_scale9Image->m_pobTextureAtlas);
(*(void (__fastcall **)(cocos2d::CCAffineTransform *__return_ptr))(*(_QWORD *)v25 + 144LL))(&v82);
sub_100022990(&v83.a, 0.0, 0.0, v82.a, v82.b);
sub_100022BB0((_QWORD *)v9, (__int64)&v83);
}
sub_100022BB0(&a1->m_spriteRect.origin, v9);
sub_100022B14(&a1->m_originalSize, (double *)(v9 + 8));
sub_100022B14(&a1->m_preferredSize, (double *)&a1->m_originalSize);
sub_100022BB0(&a1->m_capInsetsInternal.origin, v7);
v26 = *(float *)(v9 + 8);
v27 = *(float *)(v9 + 12);
if ( sub_100022BC4((float *)&a1->m_capInsetsInternal.origin, flt_10086CB20) )
{
sub_100022990(&v83.a, v26 / 3.0, v27 / 3.0, v26 / 3.0, v27 / 3.0);
sub_100022BB0(&a1->m_capInsetsInternal.origin, (__int64)&v83);
}
x = a1->m_capInsetsInternal.origin.x;
width = a1->m_capInsetsInternal.size.width;
v30 = *(float *)(v9 + 8) - (float)(x + width);
y = a1->m_capInsetsInternal.origin.y;
height = a1->m_capInsetsInternal.size.height;
v33 = *(float *)(v9 + 12) - (float)(y + height);
sub_100022990((float *)&v92.origin, 0.0, 0.0, x, y);
sub_100022990((float *)&v91.origin, x + 0.0, 0.0, width, y);
sub_100022990((float *)&v90.origin, (float)(x + 0.0) + width, 0.0, v30, y);
v34 = y + 0.0;
sub_100022990((float *)&v89.origin, 0.0, v34, x, height);
sub_100022990((float *)&v88.origin, x + 0.0, v34, width, height);
sub_100022990((float *)&v87.origin, (float)(x + 0.0) + width, v34, v30, height);
v35 = v34 + height;
sub_100022990((float *)&v86.origin, 0.0, v35, x, v33);
sub_100022990((float *)&v85.origin, x + 0.0, v35, width, v33);
sub_100022990((float *)&v84.origin, (float)(x + 0.0) + width, v35, v30, v33);
cocos2d::CCAffineTransformMakeIdentity(&v83);
if ( v8 )
{
sub_100022B98(v81, (__int64)&v88);
sub_100022B98(v80, (__int64)&v84);
sub_100022B98(v79, (__int64)&v86);
sub_100022B98(v78, (__int64)&v90);
sub_100022B98(v77, (__int64)&v92);
sub_100022B98(v76, (__int64)&v87);
sub_100022B98(v75, (__int64)&v89);
sub_100022B98(v74, (__int64)&v85);
sub_100022B98(v73, (__int64)&v91);
cocos2d::CCAffineTransformTranslate(&v82, &v83, *(float *)(v9 + 12) + *(float *)v9, *(float *)(v9 + 4));
v83 = v82;
cocos2d::CCAffineTransformRotate(&v82, &v83, 1.5708);
v83 = v82;
cocos2d::CCRectApplyAffineTransform(&v88, &v83);
sub_100022BB0(&v88, (__int64)&v82);
cocos2d::CCRectApplyAffineTransform(&v84, &v83);
sub_100022BB0(&v84, (__int64)&v82);
cocos2d::CCRectApplyAffineTransform(&v86, &v83);
sub_100022BB0(&v86, (__int64)&v82);
cocos2d::CCRectApplyAffineTransform(&v90, &v83);
sub_100022BB0(&v90, (__int64)&v82);
cocos2d::CCRectApplyAffineTransform(&v92, &v83);
sub_100022BB0(&v92, (__int64)&v82);
cocos2d::CCRectApplyAffineTransform(&v87, &v83);
sub_100022BB0(&v87, (__int64)&v82);
cocos2d::CCRectApplyAffineTransform(&v89, &v83);
sub_100022BB0(&v89, (__int64)&v82);
cocos2d::CCRectApplyAffineTransform(&v85, &v83);
sub_100022BB0(&v85, (__int64)&v82);
cocos2d::CCRectApplyAffineTransform(&v91, &v83);
sub_100022BB0(&v91, (__int64)&v82);
sub_1000229D0(v81, (double *)&v88.origin);
sub_1000229D0(v80, (double *)&v84.origin);
sub_1000229D0(v79, (double *)&v86.origin);
sub_1000229D0(v78, (double *)&v90.origin);
sub_1000229D0(v77, (double *)&v92.origin);
sub_1000229D0(v76, (double *)&v87.origin);
sub_1000229D0(v75, (double *)&v89.origin);
sub_1000229D0(v74, (double *)&v85.origin);
sub_1000229D0(v73, (double *)&v91.origin);
v36 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v36);
a1->_centre = v36;
v37 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, _QWORD *, __int64))v36->initWithTexture_1)(v36, v37, v81, 1);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, _QWORD, _QWORD))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_centre,
0,
0);
v38 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v38);
a1->_top = v38;
v39 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, _QWORD *, __int64))v38->initWithTexture_1)(v38, v39, v73, 1);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_top,
1,
1);
v40 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v40);
a1->_bottom = v40;
v41 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, _QWORD *, __int64))v40->initWithTexture_1)(v40, v41, v74, 1);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_bottom,
1,
4);
v42 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v42);
a1->_left = v42;
v43 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, _QWORD *, __int64))v42->initWithTexture_1)(v42, v43, v75, 1);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_left,
1,
2);
v44 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v44);
a1->_right = v44;
v45 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, _QWORD *, __int64))v44->initWithTexture_1)(v44, v45, v76, 1);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_right,
1,
3);
v46 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v46);
a1->_topLeft = v46;
v47 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, _QWORD *, __int64))v46->initWithTexture_1)(v46, v47, v77, 1);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_topLeft,
2,
6);
v48 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v48);
a1->_topRight = v48;
v49 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, _QWORD *, __int64))v48->initWithTexture_1)(v48, v49, v78, 1);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_topRight,
2,
5);
v50 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v50);
a1->_bottomLeft = v50;
v51 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, _QWORD *, __int64))v50->initWithTexture_1)(v50, v51, v79, 1);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_bottomLeft,
2,
8);
v52 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v52);
a1->_bottomRight = v52;
v53 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, _QWORD *, __int64))v52->initWithTexture_1)(v52, v53, v80, 1);
}
else
{
cocos2d::CCAffineTransformTranslate(&v82, &v83, *(float *)v9, *(float *)(v9 + 4));
v83 = v82;
cocos2d::CCRectApplyAffineTransform(&v88, &v83);
sub_100022BB0(&v88, (__int64)&v82);
cocos2d::CCRectApplyAffineTransform(&v84, &v83);
sub_100022BB0(&v84, (__int64)&v82);
cocos2d::CCRectApplyAffineTransform(&v86, &v83);
sub_100022BB0(&v86, (__int64)&v82);
cocos2d::CCRectApplyAffineTransform(&v90, &v83);
sub_100022BB0(&v90, (__int64)&v82);
cocos2d::CCRectApplyAffineTransform(&v92, &v83);
sub_100022BB0(&v92, (__int64)&v82);
cocos2d::CCRectApplyAffineTransform(&v87, &v83);
sub_100022BB0(&v87, (__int64)&v82);
cocos2d::CCRectApplyAffineTransform(&v89, &v83);
sub_100022BB0(&v89, (__int64)&v82);
cocos2d::CCRectApplyAffineTransform(&v85, &v83);
sub_100022BB0(&v85, (__int64)&v82);
cocos2d::CCRectApplyAffineTransform(&v91, &v83);
sub_100022BB0(&v91, (__int64)&v82);
v54 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v54);
a1->_centre = v54;
v55 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, cocos2d::CCRect *))v54->initWithTexture_0)(v54, v55, &v88);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, _QWORD, _QWORD))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_centre,
0,
0);
v56 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v56);
a1->_top = v56;
v57 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, cocos2d::CCRect *))v56->initWithTexture_0)(v56, v57, &v91);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_top,
1,
1);
v58 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v58);
a1->_bottom = v58;
v59 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, cocos2d::CCRect *))v58->initWithTexture_0)(v58, v59, &v85);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_bottom,
1,
4);
v60 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v60);
a1->_left = v60;
v61 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, cocos2d::CCRect *))v60->initWithTexture_0)(v60, v61, &v89);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_left,
1,
2);
v62 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v62);
a1->_right = v62;
v63 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, cocos2d::CCRect *))v62->initWithTexture_0)(v62, v63, &v87);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_right,
1,
3);
v64 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v64);
a1->_topLeft = v64;
v65 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, cocos2d::CCRect *))v64->initWithTexture_0)(v64, v65, &v92);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_topLeft,
2,
6);
v66 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v66);
a1->_topRight = v66;
v67 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, cocos2d::CCRect *))v66->initWithTexture_0)(v66, v67, &v90);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_topRight,
2,
5);
v68 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v68);
a1->_bottomLeft = v68;
v69 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, cocos2d::CCRect *))v68->initWithTexture_0)(v68, v69, &v86);
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_bottomLeft,
2,
8);
v70 = (cocos2d::CCSprite *)operator new(0x258u);
j_cocos2d::CCSprite::CCSprite(v70);
a1->_bottomRight = v70;
v71 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->_scale9Image->getTexture)(a1->_scale9Image);
((void (__fastcall *)(cocos2d::CCSprite *, __int64, cocos2d::CCRect *))v70->initWithTexture_0)(v70, v71, &v84);
}
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *, __int64, __int64))a1->_scale9Image->addChild_1)(
a1->_scale9Image,
a1->_bottomRight,
2,
7);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))a1->setContentSize)(a1, v9 + 8);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, cocos2d::CCSpriteBatchNode *))a1->addChild)(
a1,
a1->_scale9Image);
if ( a1->m_bSpritesGenerated )
{
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))a1->setOpacity)(a1, v12);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int16 *))a1->setColor)(a1, &v93);
}
a1->m_bSpritesGenerated = 1;
return 1;
}