//
// MultilineBitmapFont::initWithFont from 0x140078e20 to 0x140079afe (3294 bytes)
//
// 2 xrefs:
// > TextArea::setString @ 0x14008a353
// > ??> @ 0x140911d14
//
// This function is hookable on this platform (idp: pc, 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 11:25:52 +0000
//
// Hidden C++ exception states: #wind=2
char __fastcall MultilineBitmapFont::initWithFont(
__int64 a1,
const char *a2,
_QWORD *a3,
float a4,
float a5,
float *a6,
int a7,
char a8,
char a9,
int a10,
int a11)
{
_QWORD *v11; // rdi
const char *v12; // rbx
__int64 v13; // r15
float *v14; // rsi
int v15; // r12d
int v17; // r13d
cocos2d::CCDirector *v18; // rax
float v19; // xmm11_4
__int64 v20; // rcx
cocos2d::CCObject *v21; // rax
__int64 v22; // rcx
cocos2d::CCObject *v23; // rax
__int64 v24; // rcx
cocos2d::CCObject *v25; // rax
__int64 v26; // rax
cocos2d::CCObject *v27; // rax
__int64 v28; // rax
__int64 EmoteInfo; // rax
__int64 v30; // rax
__int64 ColorInfo; // rax
__int64 v32; // rax
float v33; // xmm8_4
_QWORD *v34; // rcx
int v35; // esi
__int64 v36; // rax
const char *v37; // rcx
struct cocos2d::CCObject *v38; // r14
__int64 v39; // rbx
__int64 v40; // rax
float v41; // xmm6_4
__int64 v42; // rbx
__int64 v43; // rax
__int64 v44; // rax
float *v45; // rdi
float *v46; // rbx
__int64 v47; // rsi
float v48; // xmm6_4
float v49; // xmm0_4
__int64 v50; // rax
float *v51; // rax
__int64 v52; // rbx
__int64 v53; // rax
float *v54; // rdi
__int64 v55; // rsi
__int64 v56; // rbx
__int64 v57; // rax
float v58; // xmm6_4
float v59; // xmm0_4
__int64 v60; // rax
int v61; // r13d
int v62; // edi
int v63; // esi
struct cocos2d::CCObject *v64; // rax
struct cocos2d::CCObject *v65; // rbx
int v66; // edi
int v67; // ecx
int v68; // r12d
int v69; // edi
int v70; // r12d
__int64 v71; // rcx
__int64 v72; // rdx
int v73; // eax
__int64 v74; // r8
_QWORD *v75; // rax
__int64 v76; // r13
struct cocos2d::CCObject *v77; // r12
float *v78; // rsi
float *v79; // rdi
__int64 v80; // rbx
__int64 v81; // rax
__int64 v82; // rax
__int64 v83; // rax
unsigned int v84; // edx
int v85; // r13d
__int64 v86; // rcx
int v87; // eax
__int64 v88; // r10
_QWORD *v89; // rax
unsigned int v90; // r15d
int v91; // esi
__int64 i; // rcx
_QWORD *v93; // rax
unsigned int v94; // edi
__int64 v95; // rax
__int64 v96; // rdx
int v97; // eax
unsigned int j; // edi
cocos2d::CCArray *v99; // rbx
cocos2d::CCArray *v100; // rax
struct cocos2d::CCObject *v101; // rax
unsigned __int64 v102; // rbx
__int64 v103; // rax
char *v104; // rcx
__int64 v105; // rbx
struct cocos2d::CCObject *v106; // r14
__int64 v107; // rbx
__int64 v108; // rax
__int64 v109; // rbx
__int64 v110; // rax
__int64 v111; // rax
float *v112; // rdi
float *v113; // rbx
__int64 v114; // rsi
float v115; // xmm6_4
float v116; // xmm0_4
__int64 v117; // rax
float *v118; // rax
__int64 v119; // rbx
__int64 v120; // rax
float *v121; // rdi
__int64 v122; // rsi
__int64 v123; // rbx
__int64 v124; // rax
float v125; // xmm6_4
float v126; // xmm0_4
__int64 v127; // rax
__int64 v128; // rdx
int v129; // ecx
int v130; // eax
__int64 v131; // rax
char v132; // [rsp+38h] [rbp-D0h]
int v133; // [rsp+3Ch] [rbp-CCh]
int v134; // [rsp+40h] [rbp-C8h]
int v135; // [rsp+48h] [rbp-C0h]
__int16 v136; // [rsp+50h] [rbp-B8h] BYREF
char v137; // [rsp+52h] [rbp-B6h]
int v138; // [rsp+54h] [rbp-B4h]
int v139; // [rsp+58h] [rbp-B0h] BYREF
__int64 v140; // [rsp+60h] [rbp-A8h]
__int64 v141; // [rsp+68h] [rbp-A0h]
__int64 v142; // [rsp+70h] [rbp-98h]
int v143; // [rsp+78h] [rbp-90h]
char v144[8]; // [rsp+80h] [rbp-88h] BYREF
_QWORD *v145; // [rsp+88h] [rbp-80h]
char v146[8]; // [rsp+90h] [rbp-78h] BYREF
char v147[8]; // [rsp+98h] [rbp-70h] BYREF
char v148[8]; // [rsp+A0h] [rbp-68h] BYREF
const char *v149; // [rsp+A8h] [rbp-60h]
char v150[8]; // [rsp+B0h] [rbp-58h] BYREF
char v151[8]; // [rsp+B8h] [rbp-50h] BYREF
char v152[8]; // [rsp+C0h] [rbp-48h] BYREF
char v153[8]; // [rsp+C8h] [rbp-40h] BYREF
_QWORD *v154; // [rsp+D0h] [rbp-38h]
_QWORD v155[2]; // [rsp+D8h] [rbp-30h] BYREF
__int64 v156; // [rsp+E8h] [rbp-20h]
unsigned __int64 v157; // [rsp+F0h] [rbp-18h]
_BYTE v158[32]; // [rsp+F8h] [rbp-10h] BYREF
_BYTE v159[32]; // [rsp+118h] [rbp+10h] BYREF
v11 = a3;
v145 = a3;
v12 = a2;
v149 = a2;
v13 = a1;
v141 = a1;
v14 = a6;
v142 = (__int64)a6;
v154 = a3;
v15 = a7;
v143 = a7;
if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 72LL))(a1) )
{
sub_14003D310((__int64)v11);
return 0;
}
*(_BYTE *)(v13 + 608) = a9;
*(_DWORD *)(v13 + 612) = a10;
*(_DWORD *)(v13 + 616) = a11;
*(_BYTE *)(v13 + 692) = a8;
v17 = 0;
LODWORD(v140) = 0;
v18 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector();
v19 = a5 * cocos2d::CCDirector::getContentScaleFactor(v18);
v21 = (cocos2d::CCObject *)cocos2d::CCArray::create(v20);
*(_QWORD *)(v13 + 632) = v21;
cocos2d::CCObject::retain(v21);
v23 = (cocos2d::CCObject *)cocos2d::CCArray::create(v22);
*(_QWORD *)(v13 + 640) = v23;
cocos2d::CCObject::retain(v23);
v25 = (cocos2d::CCObject *)cocos2d::CCArray::create(v24);
*(_QWORD *)(v13 + 648) = v25;
cocos2d::CCObject::retain(v25);
v26 = BitmapFontCache::sharedFontCache();
v27 = (cocos2d::CCObject *)BitmapFontCache::fontWithConfigFile(v26, v12, a4);
*(_QWORD *)(v13 + 600) = v27;
if ( v27 )
cocos2d::CCObject::retain(v27);
if ( *(int *)(v13 + 612) > 0 )
{
v28 = sub_14003F4F0((__int64)v159, (__int64)v11);
EmoteInfo = MultilineBitmapFont::readEmoteInfo(v13, v158, v28);
sub_140059C40((__int64)v11, EmoteInfo);
sub_14003D310((__int64)v158);
}
if ( !*(_BYTE *)(v13 + 692) )
{
v30 = sub_14003F4F0((__int64)v158, (__int64)v11);
ColorInfo = MultilineBitmapFont::readColorInfo(v13, v159, v30);
sub_140059C40((__int64)v11, ColorInfo);
sub_14003D310((__int64)v159);
}
v32 = v11[2];
v33 = 0.0;
if ( v32 )
{
v34 = v11;
if ( v11[3] > 0xFu )
v34 = (_QWORD *)*v11;
if ( *((_BYTE *)v34 + v32 - 1) == 10 )
{
v132 = 1;
v134 = 0;
goto LABEL_15;
}
}
v134 = 0;
v132 = 0;
if ( v32 )
{
LABEL_15:
v35 = 0;
v138 = 0;
do
{
v36 = sub_14003F4F0((__int64)v158, (__int64)v11);
MultilineBitmapFont::stringWithMaxWidth(v13, v155, v36);
v37 = (const char *)v155;
if ( v157 > 0xF )
v37 = (const char *)v155[0];
v38 = cocos2d::CCLabelBMFont::create(v37, v12);
v39 = *(_QWORD *)v38;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v150, 0.0, (float)v35);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v39 + 184))(v38, v40);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 160LL))(v38);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v13 + 648), v38);
v41 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 320LL))(v38);
*(float *)(v13 + 688) = fmaxf(
*(float *)(v13 + 688),
(*(float (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 168LL))(v38)
* v41);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v38 + 288LL))(v38, v142);
if ( *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 296LL))(v38) == 0.5 )
{
v42 = *(_QWORD *)v38;
v43 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 296LL))(v38);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v151, 0.0, *(float *)(v43 + 4));
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v42 + 288))(v38, v44);
v45 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 320LL))(v38);
v46 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 200LL))(v38);
v47 = *(_QWORD *)v38;
v48 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 200LL))(v38) + 4);
v49 = roundf(*v46 - (float)(*v45 * 0.5));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v152, v49, v48);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v47 + 184))(v38, v50);
}
if ( *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 296LL))(v38) + 4) == 0.5 )
{
v51 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 296LL))(v38);
v52 = *(_QWORD *)v38;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v153, *v51, 0.0);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v52 + 288))(v38, v53);
v54 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 200LL))(v38);
v55 = *(_QWORD *)v38;
v56 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 200LL))(v38);
v57 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 320LL))(v38);
v58 = *v54;
v59 = roundf(*(float *)(v56 + 4) - (float)(*(float *)(v57 + 4) * 0.5));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, v58, v59);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v55 + 184))(v38, v60);
}
v61 = v156;
v135 = v156;
qsort(
*(void **)(*(_QWORD *)(*(_QWORD *)(v13 + 632) + 56LL) + 16LL),
**(unsigned int **)(*(_QWORD *)(v13 + 632) + 56LL),
8u,
(_CoreCrtNonSecureSearchSortCompareFunction)sub_140078E10);
v62 = 0;
v63 = v134;
while ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(v13 + 632)) )
{
v64 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v13 + 632), 0);
v65 = v64;
v133 = v62 + 1;
v66 = *((_DWORD *)v64 + 15);
if ( v66 < v63 )
break;
v67 = v63 + v61;
if ( v66 > v63 + v61 )
break;
v68 = *((_DWORD *)v64 + 16);
if ( v68 == -1 || v68 <= v67 )
{
cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)(v13 + 632), 0, 1);
}
else
{
*((_DWORD *)v64 + 15) = v67 + 1;
v68 = v63 + v61;
}
v69 = v66 - v63;
v70 = v68 - v63;
if ( *((_DWORD *)v65 + 14) == 5 )
{
if ( v69 >= v61 )
{
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v13 + 632), v65);
break;
}
v71 = 0;
v72 = 0;
v73 = v69;
if ( v69 >= (int)v156 )
v73 = v156 - 1;
v74 = v73;
if ( v73 >= 0 )
{
do
{
v75 = v155;
if ( v157 > 0xF )
v75 = (_QWORD *)v155[0];
if ( (*((_BYTE *)v75 + v71) & 0xC0) != 0x80 )
v72 = (unsigned int)(v72 + 1);
++v71;
}
while ( v71 <= v74 );
}
if ( v69 < (int)v156 )
v72 = (unsigned int)(v72 - 1);
v76 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, __int64, __int64))(*(_QWORD *)v38 + 472LL))(
v38,
v72,
v74);
v62 = v133;
if ( v76 )
{
v77 = (struct cocos2d::CCObject *)EmoteSprite::createWithDef(*((_QWORD *)v65 + 11));
if ( v77 )
{
if ( !*(_QWORD *)(v13 + 624) )
*(_QWORD *)(v13 + 624) = cocos2d::CCNode::create();
v78 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 296LL))(v38);
v79 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 320LL))(v38);
v80 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 320LL))(v38);
v81 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 296LL))(v38);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v146,
*v79 * *v78,
*(float *)(v81 + 4) * *(float *)(v80 + 4));
v82 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v76 + 200LL))(v76);
cocos2d::CCPoint::operator-(v82, v147, v146);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 168LL))(v38);
cocos2d::CCPoint::operator*(v147, v148);
v83 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 200LL))(v38);
cocos2d::CCPoint::operator+(v83, v144, v148);
(*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v77 + 184LL))(v77, v144);
ensureEmotesAreLoaded();
(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 320LL))(v38);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 168LL))(v38);
EmoteSprite::fitToHeight(v77);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(v13 + 624) + 464LL))(
*(_QWORD *)(v13 + 624),
v77);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v13 + 640), v77);
v62 = v133;
v63 = v134;
}
}
v61 = v135;
}
else
{
v84 = 0;
v85 = v156 - 1;
v86 = 0;
v87 = v69;
if ( v69 >= (int)v156 )
v87 = v156 - 1;
v88 = v87;
if ( v87 >= 0 )
{
do
{
v89 = v155;
if ( v157 > 0xF )
v89 = (_QWORD *)v155[0];
if ( (*((_BYTE *)v89 + v86) & 0xC0) != 0x80 )
++v84;
++v86;
}
while ( v86 <= v88 );
}
v90 = v84 - 1;
if ( v69 >= (int)v156 )
v90 = v84;
v91 = 0;
if ( v70 < (int)v156 )
v85 = v70;
for ( i = 0; i <= v85; ++i )
{
v93 = v155;
if ( v157 > 0xF )
v93 = (_QWORD *)v155[0];
if ( (*((_BYTE *)v93 + i) & 0xC0) != 0x80 )
++v91;
}
if ( v70 < (int)v156 )
--v91;
if ( v90 == 1 )
v90 = 0;
v94 = v90 - 1;
if ( (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, _QWORD, unsigned __int64, _QWORD))(*(_QWORD *)v38 + 472LL))(
v38,
v90,
v157,
v155[0]) )
{
v94 = v90;
}
if ( *((_DWORD *)v65 + 16) == -1 )
{
v95 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v38 + 472LL))(v38, v94);
v13 = v141;
v62 = v133;
v63 = v134;
v61 = v135;
if ( v95 && *((_DWORD *)v65 + 14) == 4 )
*(_DWORD *)(v95 + 616) = *((_DWORD *)v65 + 19);
}
else
{
v13 = v141;
v61 = v135;
if ( (int)v94 <= v91 )
{
do
{
v96 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v38 + 472LL))(v38, v94);
if ( v96 )
{
switch ( *((_DWORD *)v65 + 14) )
{
case 1:
v136 = *((_WORD *)v65 + 34);
v137 = *((_BYTE *)v65 + 70);
(**(void (__fastcall ***)(__int64, __int16 *))(v96 + 320))(v96 + 320, &v136);
break;
case 2:
*(_BYTE *)(v96 + 608) = 1;
*(_DWORD *)(v96 + 612) = *((_DWORD *)v65 + 18);
break;
case 3:
*(float *)(v96 + 624) = (float)*((int *)v65 + 20);
v97 = *((_DWORD *)v65 + 21);
if ( v97 > 0 )
*(float *)(v96 + 620) = 1.0 / (float)v97;
else
*(_DWORD *)(v96 + 620) = 0;
*(_DWORD *)(v96 + 632) = v133;
break;
}
}
++v94;
}
while ( (int)v94 <= v91 );
v13 = v141;
}
v62 = v133;
v63 = v134;
}
}
}
v134 = v61 + v63;
(*(void (__fastcall **)(__int64, struct cocos2d::CCObject *))(*(_QWORD *)v13 + 464LL))(v13, v38);
for ( j = 0; j < (*(unsigned int (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 488LL))(v38); ++j )
{
v99 = *(cocos2d::CCArray **)(v13 + 640);
v100 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v38 + 480LL))(v38);
v101 = cocos2d::CCArray::objectAtIndex(v100, j);
cocos2d::CCArray::addObject(v99, v101);
}
v11 = v145;
v102 = v145[2];
v103 = v61;
if ( v102 < v61 )
v103 = v145[2];
v104 = (char *)v145;
if ( v145[3] > 0xFu )
v104 = (char *)*v145;
v105 = v102 - v103;
memmove(v104, &v104[v103], v105 + 1);
v11[2] = v105;
v17 = v140 + 1;
LODWORD(v140) = v140 + 1;
v15 = v143;
v35 = v138 - v143;
v138 -= v143;
sub_14003D310((__int64)v155);
v12 = v149;
}
while ( v11[2] );
if ( v132 )
{
v106 = cocos2d::CCLabelBMFont::create(" ", v149);
v107 = *(_QWORD *)v106;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, 0.0, (float)-(v17 * v15));
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v107 + 184))(v106, v108);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v106 + 160LL))(v106);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v13 + 648), v106);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v106 + 288LL))(v106, v142);
if ( *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v106 + 296LL))(v106) == 0.5 )
{
v109 = *(_QWORD *)v106;
v110 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v106 + 296LL))(v106);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, 0.0, *(float *)(v110 + 4));
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v109 + 288))(v106, v111);
v112 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v106 + 320LL))(v106);
v113 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v106 + 200LL))(v106);
v114 = *(_QWORD *)v106;
v115 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v106 + 200LL))(v106) + 4);
v116 = roundf(*v113 - (float)(*v112 * 0.5));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, v116, v115);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v114 + 184))(v106, v117);
}
if ( *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v106 + 296LL))(v106) + 4) == 0.5 )
{
v118 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v106 + 296LL))(v106);
v119 = *(_QWORD *)v106;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, *v118, 0.0);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v119 + 288))(v106, v120);
v121 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v106 + 200LL))(v106);
v122 = *(_QWORD *)v106;
v123 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v106 + 200LL))(v106);
v124 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v106 + 320LL))(v106);
v125 = *v121;
v126 = roundf(*(float *)(v123 + 4) - (float)(*(float *)(v124 + 4) * 0.5));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, v125, v126);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v122 + 184))(v106, v127);
}
(*(void (__fastcall **)(__int64, struct cocos2d::CCObject *))(*(_QWORD *)v13 + 464LL))(v13, v106);
++v17;
v11 = v145;
}
v14 = (float *)v142;
}
v128 = *(_QWORD *)(v13 + 624);
if ( v128 )
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v13 + 456LL))(v13, v128, 10);
cocos2d::CCObject::release(*(cocos2d::CCObject **)(v13 + 632));
*(_QWORD *)(v13 + 632) = 0;
v129 = v15 * (v17 - 1);
*(_DWORD *)(v13 + 672) = v129;
v130 = (int)(float)(v19 + 0.0);
*(_DWORD *)(v13 + 676) = v130;
if ( *v14 != 0.0 )
{
if ( *v14 != 1.0 )
v130 /= 2;
v33 = (float)-v130;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, -v33, (float)v129);
cocos2d::CCPoint::operator=(v13 + 680, v131);
sub_14003D310((__int64)v11);
return 1;
}