//
// MultilineBitmapFont::initWithFont from 0x6abf40 to 0x6acd54 (3604 bytes)
//
// 2 xrefs:
// > MultilineBitmapFont::createWithFont @ 0x6ace94
// > ??> @ 0xed748
//
// 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 12:50:49 +0000
//
__int64 __fastcall MultilineBitmapFont::initWithFont(
__int64 a1,
char *a2,
unsigned __int8 *a3,
float *a4,
int a5,
char a6,
char a7,
int a8,
float a9,
float a10,
float a11)
{
cocos2d::CCDirector *v17; // x0
cocos2d::CCArray *ContentScaleFactor; // x0
float v19; // s0
float v20; // s11
cocos2d::CCObject *v21; // x0
cocos2d::CCArray *v22; // x0
cocos2d::CCObject *v23; // x0
cocos2d::CCArray *v24; // x0
cocos2d::CCObject *v25; // x0
BitmapFontCache *v26; // x0
BitmapFontCache *v27; // x0
cocos2d::CCObject *v28; // x0
size_t v29; // x2
char v30; // w0
__int64 v31; // x3
void *v32; // x0
char v33; // w0
__int64 v34; // x3
char v35; // w0
__int64 v36; // x3
void *v37; // x0
char v38; // w0
__int64 v39; // x3
int v40; // w0
__int64 v41; // x1
__int64 v42; // x1
int v43; // w24
void *v44; // x1
const char *v45; // x2
cocos2d::CCLabelBMFont *v46; // x0
cocos2d::CCObject *v47; // x20
void (__fastcall *v48)(cocos2d::CCObject *, __int64 *); // x19
float v49; // s13
float v50; // s12
float v51; // s0
long double v52; // q0
void (__fastcall *v53)(cocos2d::CCObject *, __int64 *); // x19
__int64 v54; // x0
void (__fastcall *v55)(cocos2d::CCObject *, __int64 *); // x19
float v56; // s12
float v57; // s12
__int64 v58; // x0
int v59; // w0
int v60; // w25
int v61; // w28
unsigned int i; // w19
cocos2d::CCArray *v63; // x21
cocos2d::CCArray *v64; // x0
cocos2d::CCObject *v65; // x0
__int64 v66; // x1
unsigned __int8 v67; // w21
unsigned __int64 v68; // x21
size_t v69; // x19
char *v70; // x3
__int64 v71; // x0
__int64 v72; // x1
_DWORD *v73; // x0
int v74; // w19
_DWORD *v75; // x21
int v76; // w22
__int64 v77; // x1
int v78; // w27
unsigned int v79; // w19
int v80; // w0
int v81; // w22
unsigned int v82; // w19
__int64 v83; // x0
__int64 v84; // x1
int v85; // w2
char v86; // w4
char v87; // w3
void (__fastcall *v88)(__int64, __int64 *); // x2
int v89; // w0
float v90; // s0
unsigned int v91; // w0
__int64 v92; // x22
EmoteSprite *v93; // x19
float v94; // s12
float v95; // s12
float v96; // s13
__int64 v97; // x0
void (__fastcall *v98)(EmoteSprite *, __int64 *); // x21
__int64 v99; // x27
__int64 v100; // x0
long double v101; // q0
float v102; // s0
float *v103; // x0
float v104; // s12
float v105; // s0
float v106; // s12
float v107; // s0
__int64 v108; // x0
__int64 v109; // x1
int v110; // w1
int v111; // w19
float v112; // s0
unsigned __int64 v113; // x19
void (__fastcall *v114)(cocos2d::CCObject *, __int64 *); // x19
float *v115; // x0
void (__fastcall *v116)(cocos2d::CCObject *, __int64 *); // x19
float v117; // s13
float v118; // s12
__int64 v119; // x0
float v120; // s12
cocos2d::CCObject *v121; // x19
void (__fastcall *v122)(cocos2d::CCObject *, __int64 *); // x20
long double v123; // q0
void (__fastcall *v124)(cocos2d::CCObject *, __int64 *); // x20
__int64 v125; // x0
void (__fastcall *v126)(cocos2d::CCObject *, __int64 *); // x20
float v127; // s9
__int64 v128; // x0
void (__fastcall *v129)(cocos2d::CCObject *, __int64 *); // x20
float *v130; // x0
void (__fastcall *v131)(cocos2d::CCObject *, __int64 *); // x20
float v132; // s9
__int64 v133; // x0
unsigned __int8 v134; // [xsp+9Fh] [xbp+9Fh]
_BOOL4 v138; // [xsp+B8h] [xbp+B8h]
int v139; // [xsp+BCh] [xbp+BCh]
int v141; // [xsp+E0h] [xbp+E0h]
int v144; // [xsp+F0h] [xbp+F0h]
float v145; // [xsp+F0h] [xbp+F0h]
float v146; // [xsp+F0h] [xbp+F0h]
_BYTE v147[8]; // [xsp+108h] [xbp+108h] BYREF
__int64 v148; // [xsp+110h] [xbp+110h] BYREF
__int64 v149; // [xsp+120h] [xbp+120h] BYREF
__int64 v150; // [xsp+128h] [xbp+128h] BYREF
__int64 v151; // [xsp+130h] [xbp+130h]
void *v152; // [xsp+138h] [xbp+138h]
size_t v153; // [xsp+140h] [xbp+140h] BYREF
__int64 v154; // [xsp+148h] [xbp+148h]
void *v155; // [xsp+150h] [xbp+150h]
v134 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 80LL))(a1);
if ( !v134 )
return 0;
*(_DWORD *)(a1 + 612) = a8;
*(_BYTE *)(a1 + 608) = a7;
*(_BYTE *)(a1 + 692) = a6;
*(float *)(a1 + 616) = a11;
v17 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v134);
ContentScaleFactor = (cocos2d::CCArray *)cocos2d::CCDirector::getContentScaleFactor(v17);
v20 = v19 * a10;
v21 = (cocos2d::CCObject *)cocos2d::CCArray::create(ContentScaleFactor);
*(_QWORD *)(a1 + 632) = v21;
v22 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v21);
v23 = (cocos2d::CCObject *)cocos2d::CCArray::create(v22);
*(_QWORD *)(a1 + 640) = v23;
v24 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v23);
v25 = (cocos2d::CCObject *)cocos2d::CCArray::create(v24);
*(_QWORD *)(a1 + 648) = v25;
v26 = (BitmapFontCache *)cocos2d::CCObject::retain(v25);
v27 = (BitmapFontCache *)BitmapFontCache::sharedFontCache(v26);
v28 = BitmapFontCache::fontWithConfigFile(v27, a2, a9);
*(_QWORD *)(a1 + 600) = v28;
if ( v28 )
cocos2d::CCObject::retain(v28);
if ( *(int *)(a1 + 612) > 0 )
{
v150 = 0;
v151 = 0;
v30 = *a3;
v152 = nullptr;
if ( (v30 & 1) != 0 )
{
std::string::__init(&v150, *((void **)a3 + 2), *((_QWORD *)a3 + 1));
}
else
{
v31 = *((_QWORD *)a3 + 1);
v32 = *((void **)a3 + 2);
v150 = *(_QWORD *)a3;
v151 = v31;
v152 = v32;
}
MultilineBitmapFont::readEmoteInfo(a1, (__int64)&v150, &v153);
if ( (*a3 & 1) != 0 )
{
**((_BYTE **)a3 + 2) = 0;
*((_QWORD *)a3 + 1) = 0;
}
else
{
a3[1] = 0;
*a3 = 0;
}
std::string::reserve((__int64 *)a3, 0);
*((_QWORD *)a3 + 2) = v155;
v33 = v150;
v29 = v153;
v34 = v154;
*(_QWORD *)a3 = v153;
*((_QWORD *)a3 + 1) = v34;
if ( (v33 & 1) != 0 )
operator delete(v152);
}
if ( !*(_BYTE *)(a1 + 692) )
{
v150 = 0;
v151 = 0;
v35 = *a3;
v152 = nullptr;
if ( (v35 & 1) != 0 )
{
std::string::__init(&v150, *((void **)a3 + 2), *((_QWORD *)a3 + 1));
}
else
{
v36 = *((_QWORD *)a3 + 1);
v37 = *((void **)a3 + 2);
v150 = *(_QWORD *)a3;
v151 = v36;
v152 = v37;
}
MultilineBitmapFont::readColorInfo((cocos2d::CCArray **)a1, &v150, (__int64 *)&v153);
if ( (*a3 & 1) != 0 )
{
**((_BYTE **)a3 + 2) = 0;
*((_QWORD *)a3 + 1) = 0;
}
else
{
a3[1] = 0;
*a3 = 0;
}
std::string::reserve((__int64 *)a3, 0);
*((_QWORD *)a3 + 2) = v155;
v38 = v150;
v29 = v153;
v39 = v154;
*(_QWORD *)a3 = v153;
*((_QWORD *)a3 + 1) = v39;
if ( (v38 & 1) != 0 )
operator delete(v152);
}
v40 = *a3;
if ( (v40 & 1) != 0 )
{
v41 = *((_QWORD *)a3 + 1);
if ( v41 )
{
v42 = v41 - 1;
v29 = *((_QWORD *)a3 + 2);
LABEL_22:
v138 = *(unsigned __int8 *)(v29 + v42) == 10;
goto LABEL_23;
}
}
else if ( v40 >> 1 )
{
v42 = (v40 >> 1) - 1LL;
v29 = (size_t)(a3 + 1);
goto LABEL_22;
}
v138 = 0;
LABEL_23:
v43 = 0;
v139 = 0;
v141 = 0;
if ( (v40 & 1) == 0 )
goto LABEL_54;
do
{
v29 = *((_QWORD *)a3 + 1);
if ( !v29 )
goto LABEL_89;
v153 = 0;
v154 = 0;
v44 = *((void **)a3 + 2);
v155 = nullptr;
std::string::__init((__int64 *)&v153, v44, v29);
LABEL_26:
MultilineBitmapFont::stringWithMaxWidth(a1, (__int64)&v153, &v150, v20, a9);
if ( (v153 & 1) != 0 )
operator delete(v155);
v46 = (cocos2d::CCLabelBMFont *)((char *)&v150 + 1);
if ( (v150 & 1) != 0 )
v46 = (cocos2d::CCLabelBMFont *)v152;
v47 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v46, a2, v45);
v48 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v47 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v149, 0.0, (float)v139);
v48(v47, &v149);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v47 + 160LL))(v47, a9);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 648), v47);
v49 = *(float *)(a1 + 688);
v50 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 328LL))(v47);
if ( v49 < (float)(v50 * (*(float (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 168LL))(v47)) )
{
v120 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 328LL))(v47);
v51 = v120 * (*(float (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 168LL))(v47);
}
else
{
v51 = *(float *)(a1 + 688);
}
*(float *)(a1 + 688) = v51;
(*(void (__fastcall **)(cocos2d::CCObject *, float *))(*(_QWORD *)v47 + 296LL))(v47, a4);
LODWORD(v52) = *(_DWORD *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 304LL))(v47);
if ( *(float *)&v52 == 0.5 )
{
v53 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v47 + 296LL);
v54 = (*(__int64 (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v47 + 304LL))(v47, *(float *)&v52);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v149, 0.0, *(float *)(v54 + 4));
v53(v47, &v149);
v55 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v47 + 184LL);
v56 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 192LL))(v47);
v57 = roundf(
v56
- (float)(*(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 328LL))(v47) * 0.5));
v58 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 192LL))(v47);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v149, v57, *(float *)(v58 + 4));
v55(v47, &v149);
}
if ( *(float *)((*(__int64 (__fastcall **)(cocos2d::CCObject *, long double))(*(_QWORD *)v47 + 304LL))(v47, v52) + 4) == 0.5 )
{
v114 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v47 + 296LL);
v115 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 304LL))(v47);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v149, *v115, 0.0);
v114(v47, &v149);
v116 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v47 + 184LL);
v117 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 192LL))(v47);
v118 = *(float *)((*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 192LL))(v47) + 4);
v119 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 328LL))(v47);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v149, v117, roundf(v118 - (float)(*(float *)(v119 + 4) * 0.5)));
v116(v47, &v149);
}
v59 = (unsigned __int8)v150 >> 1;
if ( (v150 & 1) != 0 )
v59 = v151;
v144 = v59;
qsort(
*(void **)(*(_QWORD *)(*(_QWORD *)(a1 + 632) + 56LL) + 16LL),
**(unsigned int **)(*(_QWORD *)(a1 + 632) + 56LL),
8u,
(int (*)(const void *, const void *))textSectionCompare);
v60 = 0;
v61 = v43 + v144;
while ( 1 )
{
if ( !(unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 632))
|| (v73 = (_DWORD *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 632), 0),
v74 = v73[15],
v75 = v73,
v43 > v74) )
{
v43 += v144;
goto LABEL_41;
}
if ( v74 > v61 )
break;
v76 = v73[16];
if ( v76 == -1 || v61 >= v76 )
{
cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)(a1 + 632), 0, 1);
++v60;
v77 = (unsigned int)(v74 - v43);
if ( v75[14] == 5 )
goto LABEL_61;
LABEL_65:
v79 = EmoteSprite::charIndexForByte(&v150, v77);
v80 = EmoteSprite::charIndexForByte(&v150, (unsigned int)(v76 - v43));
if ( v79 == 1 )
v79 = 0;
v81 = v80;
v82 = v79 - ((*(__int64 (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v47 + 480LL))(v47, v79) == 0);
if ( v75[16] == -1 )
{
v108 = (*(__int64 (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v47 + 480LL))(v47, v82);
if ( v108 && v75[14] == 4 )
*(_DWORD *)(v108 + 612) = v75[19];
}
else
{
for ( ; v81 >= (int)v82; ++v82 )
{
v83 = (*(__int64 (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v47 + 480LL))(v47, v82);
v84 = v83;
if ( v83 )
{
v85 = v75[14];
switch ( v85 )
{
case 2:
*(_BYTE *)(v83 + 604) = 1;
*(_DWORD *)(v83 + 608) = v75[18];
break;
case 3:
*(float *)(v83 + 620) = (float)(int)v75[20];
v89 = v75[21];
if ( v89 <= 0 )
v90 = 0.0;
else
v90 = 1.0 / (float)v89;
*(float *)(v84 + 616) = v90;
*(_DWORD *)(v84 + 628) = v60;
break;
case 1:
v86 = *((_BYTE *)v75 + 69);
v87 = *((_BYTE *)v75 + 70);
v88 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v83 + 960LL);
LOBYTE(v149) = *((_BYTE *)v75 + 68);
BYTE1(v149) = v86;
BYTE2(v149) = v87;
v88(v83, &v149);
break;
}
}
}
}
}
else
{
v78 = v73[14];
v76 = v43 + v144;
++v60;
v73[15] = v43 + v144 + 1;
v77 = (unsigned int)(v74 - v43);
if ( v78 != 5 )
goto LABEL_65;
LABEL_61:
if ( v144 <= (int)v77 )
{
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 632), (cocos2d::CCObject *)v75);
break;
}
v91 = EmoteSprite::charIndexForByte(&v150, v77);
v92 = (*(__int64 (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v47 + 480LL))(v47, v91);
if ( v92 )
{
v93 = (EmoteSprite *)EmoteSprite::createWithDef(*((_QWORD *)v75 + 11));
if ( v93 )
{
if ( !*(_QWORD *)(a1 + 624) )
*(_QWORD *)(a1 + 624) = cocos2d::CCNode::create(nullptr);
v94 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 304LL))(v47);
v95 = v94 * *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 328LL))(v47);
v96 = *(float *)((*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 304LL))(v47) + 4);
v97 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 328LL))(v47);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v147, v95, v96 * *(float *)(v97 + 4));
v98 = *(void (__fastcall **)(EmoteSprite *, __int64 *))(*(_QWORD *)v93 + 184LL);
v99 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 192LL))(v47);
v100 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v92 + 192LL))(v92);
cocos2d::CCPoint::operator-(&v148, v100, v147, v101);
v102 = (*(float (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 168LL))(v47);
cocos2d::CCPoint::operator*(&v148, v102);
cocos2d::CCPoint::operator+(&v149, v99);
v98(v93, &v149);
v103 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 328LL))(v47);
v104 = v103[1];
EmoteSprite::heightFactor((EmoteSprite *)v103);
v106 = v104 * v105;
v107 = (*(float (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 168LL))(v47);
EmoteSprite::fitToHeight(v93, v106 * v107, *(float *)(a1 + 616));
(*(void (__fastcall **)(_QWORD, EmoteSprite *))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v93);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 640), v93);
}
}
}
}
v43 += v144;
LABEL_41:
(*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)a1 + 456LL))(a1, v47);
for ( i = 0; i < (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 496LL))(v47); ++i )
{
v63 = *(cocos2d::CCArray **)(a1 + 640);
v64 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v47 + 488LL))(v47);
v65 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v64, i);
cocos2d::CCArray::addObject(v63, v65);
}
v66 = v144;
v67 = *a3;
if ( (*a3 & 1) != 0 )
{
v68 = *((_QWORD *)a3 + 1);
if ( v144 )
{
if ( v144 > v68 )
v66 = *((_QWORD *)a3 + 1);
v69 = v68 - v66;
v70 = *((char **)a3 + 2);
if ( v68 == v66 )
{
LABEL_49:
*((_QWORD *)a3 + 1) = v69;
goto LABEL_50;
}
LABEL_100:
v70 = (char *)memmove(v70, &v70[v66], v69);
if ( (*a3 & 1) != 0 )
goto LABEL_49;
LABEL_101:
*a3 = 2 * v69;
LABEL_50:
v70[v69] = 0;
}
}
else if ( v144 )
{
v113 = v67 >> 1;
if ( v144 > v113 )
v66 = v67 >> 1;
v70 = (char *)(a3 + 1);
v69 = v113 - v66;
if ( v69 )
goto LABEL_100;
goto LABEL_101;
}
++v141;
if ( (v150 & 1) != 0 )
operator delete(v152);
v29 = (unsigned int)-a5;
v40 = *a3;
v139 -= a5;
}
while ( (v40 & 1) != 0 );
LABEL_54:
if ( v40 >> 1 )
{
v71 = *(_QWORD *)a3;
v72 = *((_QWORD *)a3 + 1);
v155 = *((void **)a3 + 2);
v153 = v71;
v154 = v72;
goto LABEL_26;
}
LABEL_89:
if ( v138 )
{
v121 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(
(cocos2d::CCLabelBMFont *)&byte_11E1A70,
a2,
(const char *)v29);
v122 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v121 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v149, 0.0, (float)-(a5 * v141));
v122(v121, &v149);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v121 + 160LL))(v121, a9);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 648), v121);
(*(void (__fastcall **)(cocos2d::CCObject *, float *))(*(_QWORD *)v121 + 296LL))(v121, a4);
LODWORD(v123) = *(_DWORD *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v121 + 304LL))(v121);
if ( *(float *)&v123 == 0.5 )
{
v124 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v121 + 296LL);
v125 = (*(__int64 (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v121 + 304LL))(v121, *(float *)&v123);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v149, 0.0, *(float *)(v125 + 4));
v124(v121, &v149);
v126 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v121 + 184LL);
v127 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v121 + 192LL))(v121);
v145 = roundf(
v127
- (float)(*(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v121 + 328LL))(v121) * 0.5));
v128 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v121 + 192LL))(v121);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v149, v145, *(float *)(v128 + 4));
v126(v121, &v149);
}
if ( *(float *)((*(__int64 (__fastcall **)(cocos2d::CCObject *, long double))(*(_QWORD *)v121 + 304LL))(v121, v123)
+ 4) == 0.5 )
{
v129 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v121 + 296LL);
v130 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v121 + 304LL))(v121);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v149, *v130, 0.0);
v129(v121, &v149);
v131 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v121 + 184LL);
v146 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v121 + 192LL))(v121);
v132 = *(float *)((*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v121 + 192LL))(v121) + 4);
v133 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v121 + 328LL))(v121);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v149, v146, roundf(v132 - (float)(*(float *)(v133 + 4) * 0.5)));
v131(v121, &v149);
}
++v141;
(*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)a1 + 456LL))(a1, v121);
}
v109 = *(_QWORD *)(a1 + 624);
if ( v109 )
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v109, 10);
cocos2d::CCObject::release(*(cocos2d::CCObject **)(a1 + 632));
*(_QWORD *)(a1 + 632) = 0;
v110 = (v141 - 1) * a5;
*(_DWORD *)(a1 + 672) = v110;
v111 = (int)(float)(v20 + 0.0);
*(_DWORD *)(a1 + 676) = v111;
if ( *a4 == 0.0 )
{
v112 = -0.0;
}
else if ( *a4 == 1.0 )
{
v112 = -(float)-v111;
}
else
{
v112 = -(float)(v111 / -2);
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v149, v112, (float)v110);
cocos2d::CCPoint::operator=(a1 + 680, &v149);
return v134;
}