//
// cocos2d::CCTexture2D::initPremultipliedATextureWithImage from 0xda2f30 to 0xda3c90 (3424 bytes)
//
// 2 xrefs:
// > cocos2d::CCTexture2D::initWithImage @ 0xda3ce8
// > ??> @ 0x9a1f8
//
// This function is hookable on this platform (idp: arm, 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 13:08:31 +0000
//
__int64 __fastcall cocos2d::CCTexture2D::initPremultipliedATextureWithImage(
cocos2d::CCTexture2D *this,
cocos2d::CCImage *a2,
unsigned int a3,
unsigned int a4)
{
int v7; // w21
int8x16_t *v9; // x19
signed int v10; // w2
unsigned int v11; // w21
int32x4_t *v12; // x27
int32x4_t *v13; // x6
char *v14; // x7
unsigned int v15; // w0
int32x4_t *v16; // x5
unsigned int v17; // w3
int32x4_t *v18; // x4
int32x4_t *v19; // x2
unsigned int v20; // w1
int32x4_t v21; // q3
int32x4_t v22; // q2
int32x4_t v23; // q1
int32x4_t v24; // q0
int *v25; // x1
char *v26; // x0
int v27; // t1
unsigned int v29; // w21
unsigned __int64 v30; // x0
unsigned __int8 *v31; // x2
const char *v32; // x1
int8x16_t *v33; // x5
unsigned int v34; // w0
unsigned int v35; // w3
unsigned int v36; // w4
int8x16_t *v37; // x6
uint8x16_t v38; // q6
_WORD *v39; // x5
unsigned __int8 *v40; // x2
int v41; // w1
int v42; // t1
uint32x4_t *v43; // x27
unsigned __int64 v44; // x0
uint32x4_t *v45; // x3
int8x16_t *v46; // x5
unsigned int v47; // w1
unsigned int v48; // w4
unsigned int v49; // w0
uint32x4_t *v50; // x7
uint32x4_t *v51; // x6
uint32x4_t v52; // q1
uint32x4_t v53; // q3
int8x16_t *v54; // x1
uint32x4_t *v55; // x3
unsigned __int64 v56; // x0
unsigned __int64 v57; // x4
int8x16_t v58; // q2
int8x16_t *v59; // x5
unsigned int v60; // w1
uint32x4_t *v61; // x6
unsigned int v62; // w0
unsigned int v63; // w3
uint32x4_t *v64; // x7
unsigned int *v65; // x5
int8x16_t *v66; // x1
unsigned __int64 v67; // x3
unsigned __int64 v68; // x27
unsigned __int64 v69; // x0
int8x16_t v70; // q16
int8x16_t v71; // q5
unsigned int v72; // w1
uint32x4_t *v73; // x4
unsigned int v74; // w0
int8x16_t *v75; // x5
unsigned int v76; // w3
uint32x4_t *v77; // x6
int8x16_t v78; // t1
_DWORD *v79; // x4
int8x16_t *v80; // x1
unsigned int v81; // w3
unsigned __int64 v82; // x27
unsigned __int64 v83; // x0
int8x16_t v84; // q3
uint32x4_t *v85; // x3
unsigned int v86; // w0
int8x16_t *v87; // x4
unsigned int v88; // w7
unsigned int v89; // w1
uint32x4_t *v90; // x5
int8x16_t v91; // t1
unsigned __int64 v92; // x27
__int64 v93; // x1
int8x16_t *v94; // x0
unsigned __int32 v95; // t1
_WORD *v96; // x5
unsigned __int8 *v97; // x4
int v98; // w1
int v99; // t1
__int64 v100; // x1
__int64 v101; // x1
__int64 v102; // x0
__int64 v103; // x0
uint8x16_t v104; // [xsp+60h] [xbp+60h]
signed int v105; // [xsp+60h] [xbp+60h]
int8x16_t v106; // [xsp+70h] [xbp+70h]
int8x16_t v107; // [xsp+80h] [xbp+80h]
uint8x16_t v108; // [xsp+80h] [xbp+80h]
float v109; // [xsp+90h] [xbp+90h] BYREF
int8x16x3_t v110; // 0:q0.16,16:q1.16,32:q2.16
int8x16x3_t v111; // 0:q0.16,16:q1.16,32:q2.16
v7 = *((unsigned __int8 *)a2 + 72);
v9 = *((int8x16_t **)a2 + 8);
cocos2d::CCSize::CCSize(&v109, (float)*((unsigned __int16 *)a2 + 28), (float)*((unsigned __int16 *)a2 + 29));
if ( !v7 )
{
v10 = 1;
if ( (unsigned __int64)*((int *)a2 + 15) > 7 )
goto LABEL_18;
v29 = a3 * a4;
v30 = operator new[](2LL * ((a3 * a4) & 0x7FFFFFFF));
v9 = (int8x16_t *)v30;
v31 = *((unsigned __int8 **)a2 + 8);
if ( a3 * a4 )
{
if ( (unsigned __int64)v31 < v30 + 2LL * v29 && v30 < (unsigned __int64)&v31[3 * v29] || v29 <= 0xF )
{
v96 = (_WORD *)v30;
v97 = &v31[3 * v29];
do
{
v98 = v31[1];
v99 = *v31;
v31 += 3;
*v96++ = ((unsigned __int16)(v99 >> 3) << 11) | (32 * (v98 >> 2)) | (*(v31 - 1) >> 3);
}
while ( v31 != v97 );
v10 = 2;
goto LABEL_18;
}
v32 = *((const char **)a2 + 8);
v33 = (int8x16_t *)v30;
v34 = ((v29 - 16) >> 4) + 1;
v35 = 0;
v36 = 16 * v34;
do
{
v111 = vld3q_s8(v32);
v32 += 48;
++v35;
v104 = v111.val[0];
v108 = v111.val[2];
v37 = v33;
v33 += 2;
v111.val[2] = vmovl_u8((uint8x8_t)v111.val[0].n128_u64[0]);
v111.val[0] = vshrq_n_u8(v111.val[1], 2u);
v111.val[1] = vmovl_high_u8(v104);
v38 = vshrq_n_u8(v108, 3u);
*v37 = vorrq_s8(
vorrq_s8(
vshlq_n_s16(vmovl_u8((uint8x8_t)v111.val[0].n128_u64[0]), 5u),
vmovl_u8((uint8x8_t)v38.n128_u64[0])),
vmovn_hight_s32(
vmovn_s32(vshlq_n_s32(vshrq_n_s32(vmovl_u16((uint16x4_t)v111.val[2].n128_u64[0]), 3u), 0xBu)),
vshlq_n_s32(vshrq_n_s32(vmovl_high_u16(v111.val[2]), 3u), 0xBu)));
v37[1] = vorrq_s8(
vorrq_s8(vshlq_n_s16(vmovl_high_u8(v111.val[0]), 5u), vmovl_high_u8(v38)),
vmovn_hight_s32(
vmovn_s32(vshlq_n_s32(vshrq_n_s32(vmovl_u16((uint16x4_t)v111.val[1].n128_u64[0]), 3u), 0xBu)),
vshlq_n_s32(vshrq_n_s32(vmovl_high_u16(v111.val[1]), 3u), 0xBu)));
}
while ( v35 < v34 );
v39 = (_WORD *)v9 + v36;
v40 = &v31[3 * v36];
if ( v29 != v36 )
{
do
{
v41 = v40[1];
++v36;
v42 = *v40;
v40 += 3;
*v39++ = ((unsigned __int16)(v42 >> 3) << 11) | (32 * (v41 >> 2)) | (*(v40 - 1) >> 3);
}
while ( v29 > v36 );
}
}
v10 = 2;
goto LABEL_18;
}
v10 = *((_DWORD *)a2 + 19);
if ( v10 > 0 )
{
v11 = a3 * a4;
if ( v10 != 2 )
goto LABEL_4;
LABEL_53:
v105 = v10;
v56 = operator new[](2LL * (v11 & 0x7FFFFFFF));
v9 = (int8x16_t *)v56;
v57 = *((_QWORD *)a2 + 8);
v10 = v105;
if ( v11 )
{
if ( (v57 >= v56 + 2LL * v11 || v56 >= v57 + 4LL * v11) && v11 > 7 )
{
v58.n128_u64[0] = 0xFF000000FFLL;
v58.n128_u64[1] = 0xFF000000FFLL;
v59 = (int8x16_t *)v56;
v60 = ((v11 - 8) >> 3) + 1;
v61 = *((uint32x4_t **)a2 + 8);
v62 = 8 * v60;
v63 = 0;
do
{
v64 = v61;
++v63;
v61 += 2;
*v59++ = vorrq_s8(
vorrq_s8(
vmovn_hight_s32(
vmovn_s32(vshrq_n_u32(vandq_s8(vshrq_n_u32(*v64, 0x10u), v58), 3u)),
vshrq_n_u32(vandq_s8(vshrq_n_u32(v64[1], 0x10u), v58), 3u)),
vshlq_n_s16(
vmovn_hight_s32(
vmovn_s32(vshrq_n_u32(vandq_s8(*v64, v58), 3u)),
vshrq_n_u32(vandq_s8(v64[1], v58), 3u)),
0xBu)),
vshlq_n_s16(
vmovn_hight_s32(
vmovn_s32(vshrq_n_u32(vandq_s8(vshrq_n_u32(*v64, 8u), v58), 2u)),
vshrq_n_u32(vandq_s8(vshrq_n_u32(v64[1], 8u), v58), 2u)),
5u));
}
while ( v60 > v63 );
v65 = (unsigned int *)(v57 + 4LL * v62);
v66 = &v9[v62 / 8];
if ( v11 != v62 )
{
v67 = *(unsigned int *)(v57 + 4LL * v62);
v9[v62 / 8].n128_u16[0] = (v67 >> 19) & 0x1F
| ((unsigned __int8)v67 >> 3 << 11)
| (32 * ((unsigned __int16)v67 >> 10));
if ( v11 > v62 + 1 )
{
v66->n128_u16[1] = ((unsigned __int64)v65[1] >> 19) & 0x1F
| ((unsigned __int8)v65[1] >> 3 << 11)
| (32 * ((unsigned __int16)v65[1] >> 10));
if ( v11 > v62 + 2 )
{
v66->n128_u16[2] = ((unsigned __int64)v65[2] >> 19) & 0x1F
| ((unsigned __int8)v65[2] >> 3 << 11)
| (32 * ((unsigned __int16)v65[2] >> 10));
if ( v11 > v62 + 3 )
{
v66->n128_u16[3] = ((unsigned __int64)v65[3] >> 19) & 0x1F
| ((unsigned __int8)v65[3] >> 3 << 11)
| (32 * ((unsigned __int16)v65[3] >> 10));
if ( v11 > v62 + 4 )
{
v66->n128_u16[4] = ((unsigned __int64)v65[4] >> 19) & 0x1F
| ((unsigned __int8)v65[4] >> 3 << 11)
| (32 * ((unsigned __int16)v65[4] >> 10));
if ( v11 > v62 + 5 )
{
v66->n128_u16[5] = (v65[5] >> 19) & 0x1F
| ((unsigned __int8)v65[5] >> 3 << 11)
| (32 * ((unsigned __int16)v65[5] >> 10));
if ( v11 > v62 + 6 )
v66->n128_u16[6] = (v65[6] >> 19) & 0x1F
| ((unsigned __int8)v65[6] >> 3 << 11)
| (32 * ((unsigned __int16)v65[6] >> 10));
}
}
}
}
}
}
}
else
{
v100 = 0;
do
{
*(_WORD *)(v56 + 2 * v100) = (*(_DWORD *)(v57 + 4 * v100) >> 19) & 0x1F
| ((unsigned __int8)*(_DWORD *)(v57 + 4 * v100) >> 3 << 11)
| (32 * ((unsigned __int16)*(_DWORD *)(v57 + 4 * v100) >> 10));
++v100;
}
while ( v11 > (unsigned int)v100 );
}
}
LABEL_18:
cocos2d::CCTexture2D::initWithData((__int64)this, (__int64)v9, v10, a3, a4, &v109);
if ( v9 == *((int8x16_t **)a2 + 8) || !v9 )
goto LABEL_21;
LABEL_20:
operator delete[](v9);
goto LABEL_21;
}
v11 = a3 * a4;
v10 = dword_15621D4;
if ( dword_15621D4 == 2 )
goto LABEL_53;
LABEL_4:
switch ( v10 )
{
case 6:
v68 = *((_QWORD *)a2 + 8);
v69 = operator new[](2LL * (v11 & 0x7FFFFFFF));
v9 = (int8x16_t *)v69;
v10 = 6;
if ( v11 )
{
if ( (v68 >= v69 + 2LL * v11 || v69 >= v68 + 4LL * v11) && v11 > 7 )
{
v70.n128_u64[0] = 0xF000F000F000F0LL;
v70.n128_u64[1] = 0xF000F000F000F0LL;
v71.n128_u64[0] = 0xFF000000FFLL;
v71.n128_u64[1] = 0xFF000000FFLL;
v72 = ((v11 - 8) >> 3) + 1;
v73 = (uint32x4_t *)v68;
v74 = 8 * v72;
v75 = v9;
v76 = 0;
do
{
v77 = v73;
++v76;
v73 += 2;
v78 = *v77++;
*v75++ = vorrq_s8(
vorrq_s8(
vorrq_s8(
vandq_s8(vmovn_hight_s32(vmovn_s32(vshrq_n_u32(v78, 0x10u)), vshrq_n_u32(*v77, 0x10u)), v70),
vmovn_hight_s32(vmovn_s32(vshrq_n_u32(v78, 0x1Cu)), vshrq_n_u32(*v77, 0x1Cu))),
vshlq_n_s16(
vmovn_hight_s32(
vmovn_s32(vshrq_n_u32(vandq_s8(v78, v71), 4u)),
vshrq_n_u32(vandq_s8(*v77, v71), 4u)),
0xCu)),
vshlq_n_s16(
vmovn_hight_s32(
vmovn_s32(vshrq_n_u32(vandq_s8(vshrq_n_u32(v78, 8u), v71), 4u)),
vshrq_n_u32(vandq_s8(vshrq_n_u32(*v77, 8u), v71), 4u)),
8u));
}
while ( v76 < v72 );
v79 = (_DWORD *)(v68 + 4LL * v74);
v80 = &v9[v74 / 8];
if ( v11 != v74 )
{
v81 = *(_DWORD *)(v68 + 4LL * v74);
v9[v74 / 8].n128_u16[0] = BYTE2(v81) & 0xF0
| (v81 >> 28)
| ((unsigned __int8)v81 >> 4 << 12)
| ((unsigned __int16)v81 >> 12 << 8);
if ( v11 > v74 + 1 )
{
v80->n128_u16[1] = HIWORD(v79[1]) & 0xF0
| (v79[1] >> 28)
| ((unsigned __int8)v79[1] >> 4 << 12)
| ((unsigned __int16)v79[1] >> 12 << 8);
if ( v11 > v74 + 2 )
{
v80->n128_u16[2] = HIWORD(v79[2]) & 0xF0
| (v79[2] >> 28)
| ((unsigned __int8)v79[2] >> 4 << 12)
| ((unsigned __int16)v79[2] >> 12 << 8);
if ( v11 > v74 + 3 )
{
v80->n128_u16[3] = HIWORD(v79[3]) & 0xF0
| (v79[3] >> 28)
| ((unsigned __int8)v79[3] >> 4 << 12)
| ((unsigned __int16)v79[3] >> 12 << 8);
if ( v11 > v74 + 4 )
{
v80->n128_u16[4] = HIWORD(v79[4]) & 0xF0
| (v79[4] >> 28)
| ((unsigned __int8)v79[4] >> 4 << 12)
| ((unsigned __int16)v79[4] >> 12 << 8);
if ( v11 > v74 + 5 )
{
v80->n128_u16[5] = HIWORD(v79[5]) & 0xF0
| (v79[5] >> 28)
| ((unsigned __int8)v79[5] >> 4 << 12)
| ((unsigned __int16)v79[5] >> 12 << 8);
if ( v11 > v74 + 6 )
v80->n128_u16[6] = HIWORD(v79[6]) & 0xF0
| (v79[6] >> 28)
| ((unsigned __int8)v79[6] >> 4 << 12)
| ((unsigned __int16)v79[6] >> 12 << 8);
}
}
}
}
}
}
}
else
{
v101 = 0;
do
{
*(_WORD *)(v69 + 2 * v101) = HIWORD(*(_DWORD *)(v68 + 4 * v101)) & 0xF0
| (*(_DWORD *)(v68 + 4 * v101) >> 28)
| ((unsigned __int8)*(_DWORD *)(v68 + 4 * v101) >> 4 << 12)
| ((unsigned __int16)*(_DWORD *)(v68 + 4 * v101) >> 12 << 8);
++v101;
}
while ( v11 > (unsigned int)v101 );
}
}
goto LABEL_18;
case 7:
v82 = *((_QWORD *)a2 + 8);
v83 = operator new[](2LL * (v11 & 0x7FFFFFFF));
v9 = (int8x16_t *)v83;
v10 = 7;
if ( v11 )
{
if ( (v82 >= v83 + 2LL * v11 || v83 >= v82 + 4LL * v11) && v11 > 7 )
{
v84.n128_u64[0] = 0xFF000000FFLL;
v84.n128_u64[1] = 0xFF000000FFLL;
v85 = (uint32x4_t *)v82;
v86 = ((v11 - 8) >> 3) + 1;
v87 = v9;
v88 = 8 * v86;
v89 = 0;
do
{
v90 = v85;
++v89;
v85 += 2;
v91 = *v90++;
*v87++ = vorrq_s8(
vorrq_s8(
vorrq_s8(
vshlq_n_s16(
vmovn_hight_s32(
vmovn_s32(vshrq_n_u32(vandq_s8(v91, v84), 3u)),
vshrq_n_u32(vandq_s8(*v90, v84), 3u)),
0xBu),
vmovn_hight_s32(vmovn_s32(vshrq_n_u32(v91, 0x1Fu)), vshrq_n_u32(*v90, 0x1Fu))),
vshlq_n_s16(
vmovn_hight_s32(
vmovn_s32(vshrq_n_u32(vandq_s8(vshrq_n_u32(v91, 8u), v84), 3u)),
vshrq_n_u32(vandq_s8(vshrq_n_u32(*v90, 8u), v84), 3u)),
6u)),
vshlq_n_s16(
vmovn_hight_s32(
vmovn_s32(vshrq_n_u32(vandq_s8(vshrq_n_u32(v91, 0x10u), v84), 3u)),
vshrq_n_u32(vandq_s8(vshrq_n_u32(*v90, 0x10u), v84), 3u)),
1u));
}
while ( v86 > v89 );
v92 = v82 + 4LL * v88;
if ( v11 != v88 )
{
v93 = 0;
do
{
v9[v88 / 8].n128_u16[v93] = (*(_DWORD *)(v92 + 4 * v93) >> 31)
| ((unsigned __int8)*(_DWORD *)(v92 + 4 * v93) >> 3 << 11)
| ((unsigned __int16)*(_DWORD *)(v92 + 4 * v93) >> 11 << 6)
| (2 * ((*(_DWORD *)(v92 + 4 * v93) >> 19) & 0x1F));
++v93;
}
while ( v11 > v88 + (unsigned int)v93 );
}
}
else
{
v102 = 0;
do
{
v9->n128_u16[v102] = (*(_DWORD *)(v82 + 4 * v102) >> 31)
| ((unsigned __int8)*(_DWORD *)(v82 + 4 * v102) >> 3 << 11)
| ((unsigned __int16)*(_DWORD *)(v82 + 4 * v102) >> 11 << 6)
| (2 * ((*(_DWORD *)(v82 + 4 * v102) >> 19) & 0x1F));
++v102;
}
while ( v11 > (unsigned int)v102 );
}
}
goto LABEL_18;
case 3:
v43 = *((uint32x4_t **)a2 + 8);
v44 = operator new[](v11);
v9 = (int8x16_t *)v44;
v10 = 3;
if ( v11 )
{
if ( ((unsigned __int64)v43 >= v44 + v11 || v44 >= (unsigned __int64)v43->n128_u64 + 4 * v11) && v11 > 0xF )
{
v45 = v43;
v46 = (int8x16_t *)v44;
v47 = ((v11 - 16) >> 4) + 1;
v48 = 0;
v49 = 16 * v47;
do
{
v50 = v45 + 3;
++v48;
v51 = v45 + 1;
v52 = *v45;
v53 = v45[2];
v45 += 4;
*v46++ = vmovn_hight_s16(
vmovn_s16(vmovn_hight_s32(vmovn_s32(vshrq_n_u32(v52, 0x18u)), vshrq_n_u32(*v51, 0x18u))),
vmovn_hight_s32(vmovn_s32(vshrq_n_u32(v53, 0x18u)), vshrq_n_u32(*v50, 0x18u)));
}
while ( v48 < v47 );
v54 = &v9[v49 / 0x10];
v55 = &v43[v49 / 4];
if ( v11 != v49 )
{
v9[v49 / 0x10].n128_u8[0] = HIBYTE(v43[v49 / 4].n128_u32[0]);
if ( v11 > v49 + 1 )
{
v54->n128_u8[1] = v55->n128_u8[7];
if ( v11 > v49 + 2 )
{
v54->n128_u8[2] = v55->n128_u8[11];
if ( v11 > v49 + 3 )
{
v54->n128_u8[3] = v55->n128_u8[15];
if ( v11 > v49 + 4 )
{
v54->n128_u8[4] = v55[1].n128_u8[3];
if ( v11 > v49 + 5 )
{
v54->n128_u8[5] = v55[1].n128_u8[7];
if ( v11 > v49 + 6 )
{
v54->n128_u8[6] = v55[1].n128_u8[11];
if ( v11 > v49 + 7 )
{
v54->n128_u8[7] = v55[1].n128_u8[15];
if ( v11 > v49 + 8 )
{
v54->n128_u8[8] = v55[2].n128_u8[3];
if ( v11 > v49 + 9 )
{
v54->n128_u8[9] = v55[2].n128_u8[7];
if ( v11 > v49 + 10 )
{
v54->n128_u8[10] = v55[2].n128_u8[11];
if ( v11 > v49 + 11 )
{
v54->n128_u8[11] = v55[2].n128_u8[15];
if ( v11 > v49 + 12 )
{
v54->n128_u8[12] = v55[3].n128_u8[3];
if ( v11 > v49 + 13 )
{
v54->n128_u8[13] = v55[3].n128_u8[7];
if ( v11 > v49 + 14 )
v54->n128_u8[14] = v55[3].n128_u8[11];
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
else
{
v103 = 0;
do
{
v9->n128_u8[v103] = HIBYTE(v43->n128_u32[v103]);
++v103;
}
while ( v11 > (unsigned int)v103 );
}
}
goto LABEL_18;
}
if ( v10 != 1 )
goto LABEL_18;
v12 = *((int32x4_t **)a2 + 8);
v9 = (int8x16_t *)operator new[](3 * v11);
if ( v11 )
{
if ( (v12 >= (int8x16_t *)((char *)v9 + 3 * v11) || v9 >= (int32x4_t *)((char *)v12 + 4 * v11)) && v11 > 0xF )
{
v13 = v12;
v14 = (char *)v9;
v15 = ((v11 - 16) >> 4) + 1;
v16 = v12 + 1;
v17 = 16 * v15;
v18 = v12 + 2;
v19 = v12 + 3;
v20 = 0;
do
{
v21 = *v13;
v22 = *v16;
++v20;
v23 = *v18;
v24 = *v19;
v13 += 4;
v16 += 4;
v18 += 4;
v19 += 4;
v106 = vmovn_hight_s16(
vmovn_s16(vmovn_hight_s32(vmovn_s32(vshrq_n_u32(v21, 8u)), vshrq_n_u32(v22, 8u))),
vmovn_hight_s32(vmovn_s32(vshrq_n_u32(v23, 8u)), vshrq_n_u32(v24, 8u)));
v107 = vmovn_hight_s16(
vmovn_s16(vmovn_hight_s32(vmovn_s32(vshrq_n_u32(v21, 0x10u)), vshrq_n_u32(v22, 0x10u))),
vmovn_hight_s32(vmovn_s32(vshrq_n_u32(v23, 0x10u)), vshrq_n_u32(v24, 0x10u)));
v110.val[0] = vmovn_hight_s16(
vmovn_s16(vmovn_hight_s32(vmovn_s32(v21), v22)),
vmovn_hight_s32(vmovn_s32(v23), v24));
v110.val[1] = v106;
v110.val[2] = v107;
vst3q_s8(v14, v110);
v14 += 48;
}
while ( v20 < v15 );
v25 = (int *)v12 + v17;
v26 = (char *)v9 + 3 * v17;
if ( v11 != v17 )
{
do
{
v26 += 3;
++v17;
*(_WORD *)(v26 - 3) = *v25;
v27 = *v25++;
*(v26 - 1) = BYTE2(v27);
}
while ( v11 > v17 );
}
}
else
{
v94 = v9;
do
{
v94 = (int8x16_t *)((char *)v94 + 3);
*(unsigned __int16 *)((char *)&v94[-1].n128_u16[6] + 1) = v12->n128_u32[0];
v95 = v12->n128_u32[0];
v12 = (int32x4_t *)((char *)v12 + 4);
v94[-1].n128_u8[15] = BYTE2(v95);
}
while ( (int8x16_t *)((char *)v9 + 3 * v11) != v94 );
}
}
cocos2d::CCTexture2D::initWithData((__int64)this, (__int64)v9, 1u, a3, a4, &v109);
if ( v9 != *((int8x16_t **)a2 + 8) )
goto LABEL_20;
LABEL_21:
*((_BYTE *)this + 92) = *((_BYTE *)a2 + 73);
return 1;
}