//
// sub_100518264 from 0x100518264 to 0x100519194 (3888 bytes)
//
// 8 xrefs:
// > sub_100518168 @ 0x100518174
// > sub_10051817C @ 0x1005181ac
// > sub_1005181B4 @ 0x100518260
// > sub_1005192D4 @ 0x100519480
// > NewsPopup::newsImageDownloaded @ 0x100519b98
// > NewsPopup::newsImageFailed @ 0x100519c44
// > NewsPopup::keyDown @ 0x100519d0c
// > NewsPopup::keyDown @ 0x100519d40
//
// 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 11:07:07 +0000
//
void __fastcall sub_100518264(__int64 a1, int a2)
{
__int64 v4; // x20
__n128 v5; // q0
__int64 v6; // kr00_8
int v7; // w22
int v8; // w23
int v9; // w8
__int64 v10; // x21
void *v11; // x0
__int64 CString; // x0
__int64 v13; // x22
__int64 v14; // x0
const char *v15; // x0
void *v16; // x21
void *v17; // x21
__int128 v18; // q0
void *v19; // x0
__int64 v20; // x21
__n128 v21; // q0
__int64 v22; // x0
std::string *p_dst; // x0
void *v24; // x21
float v25; // s9
float v26; // s10
__n128 v27; // q0
float v28; // s10
__int64 v29; // x8
__int64 v30; // x21
float v31; // s11
float v32; // s8
int *v33; // x23
int v34; // w8
_BYTE *v35; // x8
__int64 v36; // x24
_BYTE *v37; // x9
__int64 v38; // x11
_BYTE *v39; // x10
_BYTE *v40; // x8
__int64 v41; // x22
int v42; // w8
int v43; // w9
float v44; // s14
void *v45; // x27
__int64 v46; // x24
__int128 v47; // q0
const char *v48; // x0
void *v49; // x27
float v50; // s14
float v51; // s8
float v52; // s15
float v53; // s11
void *v54; // x28
float v55; // s8
_BYTE *v56; // x27
std::string::size_type v57; // x28
std::string::size_type size; // x8
__int64 v59; // x25
bool v60; // zf
int v61; // w8
std::string::size_type v62; // x11
bool v63; // cc
int *v64; // x8
_BYTE *v65; // x9
_BYTE *v66; // x10
std::string::size_type v67; // x11
_BYTE *v68; // x8
__int64 v69; // x8
__int64 v70; // x9
__int64 v71; // x23
__int64 v72; // x24
__int128 *v73; // x10
__int128 v74; // q0
unsigned __int64 v75; // x2
float *v76; // x27
int v77; // w0
int v78; // w24
__int64 v79; // x24
__int128 v80; // q0
std::string *v81; // x0
std::error_code *v82; // x1
void *v83; // x28
float *v84; // x0
__int64 v85; // x0
void *v86; // x24
const std::__fs::filesystem::path *v87; // x0
void *v88; // x28
__int64 v89; // x28
const char *v90; // x0
void *v91; // x24
__int64 v92; // x24
__int128 v93; // q0
_BYTE *v94; // x28
float v95; // [xsp+24h] [xbp-1ACh]
__int64 v96; // [xsp+28h] [xbp-1A8h]
void *v97[2]; // [xsp+40h] [xbp-190h] BYREF
__int64 v98; // [xsp+50h] [xbp-180h]
void *v99[2]; // [xsp+60h] [xbp-170h] BYREF
__int64 v100; // [xsp+70h] [xbp-160h]
void *v101[2]; // [xsp+80h] [xbp-150h] BYREF
__int64 v102; // [xsp+90h] [xbp-140h]
void *__p[2]; // [xsp+A0h] [xbp-130h] BYREF
__int64 v104; // [xsp+B0h] [xbp-120h]
__int64 v105; // [xsp+C0h] [xbp-110h] BYREF
__int64 v106; // [xsp+C8h] [xbp-108h]
__int64 v107; // [xsp+D0h] [xbp-100h]
void *v108; // [xsp+D8h] [xbp-F8h] BYREF
void *v109; // [xsp+E0h] [xbp-F0h]
__int64 v110; // [xsp+E8h] [xbp-E8h]
std::string __dst; // [xsp+F0h] [xbp-E0h] BYREF
__int64 v112; // [xsp+108h] [xbp-C8h] BYREF
std::string v113; // [xsp+110h] [xbp-C0h] BYREF
std::allocator __a; // [xsp+12Fh] [xbp-A1h] BYREF
float v115[4]; // [xsp+130h] [xbp-A0h] BYREF
v4 = *(_QWORD *)(*(_QWORD *)(a1 + 712) + 416LL);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 584LL))(v4, 1);
*(_QWORD *)(a1 + 720) = 0;
*(_BYTE *)(a1 + 728) = 0;
*(_QWORD *)(a1 + 744) = 0;
ScrollableContentLayer::scrollTo(*(_QWORD *)(a1 + 712), 0.0);
v5.n128_f64[0] = sub_100026438(&v112, (double *)(*(_QWORD *)(a1 + 712) + 424LL));
v6 = v112;
v7 = -858993459 * ((*(_QWORD *)(a1 + 688) - *(_QWORD *)(a1 + 680)) >> 4);
v8 = v7 - 1;
if ( (v8 & ~(v8 >> 31)) >= a2 )
v9 = a2;
else
v9 = v7 - 1;
*(_DWORD *)(a1 + 704) = v9 & ~(v9 >> 31);
(*(void (__fastcall **)(_QWORD, bool, __n128))(**(_QWORD **)(a1 + 752) + 344LL))(*(_QWORD *)(a1 + 752), v9 > 0, v5);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 760) + 344LL))(
*(_QWORD *)(a1 + 760),
*(_DWORD *)(a1 + 704) < v8);
v10 = *(_QWORD *)(a1 + 736);
if ( v7 )
{
v11 = sub_1003065B0("%i of %i", *(_DWORD *)(a1 + 704) + 1, v7);
CString = cocos2d::CCString::getCString((__int64)v11);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 928LL))(v10, CString);
v13 = *(_QWORD *)(a1 + 680) + 80LL * *(int *)(a1 + 704);
v14 = cocos2d::CCMenu::create();
*(_QWORD *)(a1 + 720) = v14;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v14 + 296LL))(v14, &unk_1009F8430);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 720) + 320LL))(*(_QWORD *)(a1 + 720), &unk_1009F8438);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 720) + 184LL))(*(_QWORD *)(a1 + 720), &unk_1009F8430);
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v4 + 464LL))(v4, *(_QWORD *)(a1 + 720), 5);
v15 = (const char *)(v13 + 8);
if ( *(char *)(v13 + 31) < 0 )
v15 = *(const char **)v15;
v16 = cocos2d::CCLabelBMFont::create_1(v15, "goldFont.fnt");
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v16 + 160LL))(v16, 0.45);
sub_1000262BC((float *)&v113, 0.0, 1.0);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v16 + 296LL))(v16, &v113);
sub_1000262BC((float *)&v113, 20.0, -10.0);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v16 + 184LL))(v16, &v113);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v4 + 456LL))(v4, v16);
if ( *(_DWORD *)v13 > *(_DWORD *)(a1 + 708) )
{
v17 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"newMusicIcon_001.png");
sub_1000262BC((float *)&v113, *(float *)&v6 + -20.0, -20.0);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v17 + 184LL))(v17, &v113);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v4 + 464LL))(v4, v17, 6);
}
if ( *(char *)(v13 + 55) < 0 )
{
sub_1000097D0(&__dst, *(void **)(v13 + 32), *(_QWORD *)(v13 + 40));
}
else
{
v18 = *(_OWORD *)(v13 + 32);
__dst.__r_.__value_.__r.__words[2] = *(_QWORD *)(v13 + 48);
*(_OWORD *)&__dst.__r_.__value_.__l.__data_ = v18;
}
v108 = nullptr;
v109 = nullptr;
v110 = 0;
EmoteSprite::parseTokens(&__dst, (__int64)&v108, 3);
if ( v108 != v109 )
{
EmoteSprite::replaceTokens((__int64)&__dst, (__int64 *)&v108, (__int64)&v113, 0.0);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst = v113;
}
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
p_dst = &__dst;
else
p_dst = (std::string *)__dst.__r_.__value_.__r.__words[0];
v24 = cocos2d::CCLabelBMFont::create_1((const char *)p_dst, "bigFont.fnt");
v25 = *(float *)&v6 + -40.0;
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v24, (float)(*(float *)&v6 + -40.0) + -30.0, 0.62, 0.3);
sub_1000262BC((float *)&v113, 0.0, 1.0);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v24 + 296LL))(v24, &v113);
sub_1000262BC((float *)&v113, 20.0, -32.0);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v24 + 184LL))(v24, &v113);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v4 + 456LL))(v4, v24);
EmoteSprite::attachToLabel((__int64)v24, v4, (__int64 *)&v108, 0.0);
v26 = *(float *)((*(__int64 (__fastcall **)(void *))(*(_QWORD *)v24 + 328LL))(v24) + 4);
v28 = -32.0 - (float)((float)(v26 * (*(float (__fastcall **)(void *))(*(_QWORD *)v24 + 168LL))(v24)) + 12.0);
v29 = *(_QWORD *)(v13 + 56);
if ( (int)(-1431655765 * ((unsigned __int64)(*(_QWORD *)(v13 + 64) - v29) >> 5)) >= 1 )
{
v30 = 0;
v31 = -10.0;
v95 = v25 + -10.0;
v32 = 0.75;
v96 = v13;
while ( 1 )
{
v33 = (int *)(v29 + 96 * v30);
v34 = *v33;
if ( *v33 == 2 )
break;
if ( v34 == 1 )
{
v42 = v33[14];
if ( v42 < 1 )
goto LABEL_125;
v43 = v33[15];
if ( v43 < 1 )
goto LABEL_125;
v44 = v95 * (float)((float)(unsigned int)v43 / (float)(unsigned int)v42);
sub_1000262BC((float *)&v105, *(float *)&v6 * 0.5, v28 - (float)(v44 * 0.5));
sub_1000262BC(v115, (float)(v25 + -10.0) * 0.5, v44 * 0.5);
v45 = cocos2d::CCSprite::create_1();
sub_1000262C4((float *)&v113, v95, v44);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v45 + 320LL))(v45, &v113);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v45 + 984LL))(v45, 1);
v46 = MusicDownloadManager::sharedState();
if ( *((char *)v33 + 55) < 0 )
{
sub_1000097D0(v101, *((void **)v33 + 4), *((_QWORD *)v33 + 5));
}
else
{
v47 = *((_OWORD *)v33 + 2);
v102 = *((_QWORD *)v33 + 6);
*(_OWORD *)v101 = v47;
}
v77 = sub_1001E1488(v46, (__int64)v101);
v78 = v77;
if ( SHIBYTE(v102) < 0 )
{
operator delete(v101[0]);
if ( v78 )
goto LABEL_90;
goto LABEL_111;
}
if ( !v77 )
goto LABEL_111;
LABEL_90:
v79 = MusicDownloadManager::sharedState();
if ( *((char *)v33 + 55) < 0 )
{
sub_1000097D0(v99, *((void **)v33 + 4), *((_QWORD *)v33 + 5));
}
else
{
v80 = *((_OWORD *)v33 + 2);
v100 = *((_QWORD *)v33 + 6);
*(_OWORD *)v99 = v80;
}
sub_1001E12D4(v79, (__int64)v99, &v113);
if ( SHIBYTE(v100) < 0 )
operator delete(v99[0]);
if ( (v113.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v81 = &v113;
else
v81 = (std::string *)v113.__r_.__value_.__r.__words[0];
v83 = cocos2d::CCSprite::create((__int64)v81);
if ( v83 )
{
sub_1000D8F30((__int64 **)(a1 + 816), (__int64)&v113, (__int64)&v113);
v84 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v83 + 328LL))(v83);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v83 + 128LL))(v83, v95 / *v84);
v85 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v83 + 328LL))(v83);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v83 + 144LL))(v83, v44 / *(float *)(v85 + 4));
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v83 + 184LL))(v83, v115);
(*(void (__fastcall **)(void *, void *))(*(_QWORD *)v45 + 456LL))(v45, v83);
if ( *((_BYTE *)v33 + 64) == 1 )
{
v86 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"youtubePlayButton_001.png");
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v86 + 184LL))(v86, v115);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v86 + 160LL))(v86, 1.25);
(*(void (__fastcall **)(void *, void *, __int64))(*(_QWORD *)v45 + 464LL))(v45, v86, 2);
}
}
else
{
if ( (v113.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v87 = (const std::__fs::filesystem::path *)&v113;
else
v87 = (const std::__fs::filesystem::path *)v113.__r_.__value_.__r.__words[0];
remove(v87, v82);
sub_1000D8F30((__int64 **)(a1 + 792), (__int64)(v33 + 8), (__int64)(v33 + 8));
}
if ( SHIBYTE(v113.__r_.__value_.__r.__words[2]) < 0 )
{
operator delete(v113.__r_.__value_.__l.__data_);
if ( !v83 )
goto LABEL_111;
LABEL_107:
if ( (*((char *)v33 + 95) & 0x8000000000000000LL) != 0 )
{
if ( *((_QWORD *)v33 + 10) )
goto LABEL_122;
}
else if ( *((_BYTE *)v33 + 95) )
{
goto LABEL_122;
}
(*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v45 + 184LL))(v45, &v105);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v4 + 456LL))(v4, v45);
}
else
{
if ( v83 )
goto LABEL_107;
LABEL_111:
sub_1000262CC((float *)&v113, 0.0, 0.0, 40.0, 40.0);
v88 = cocos2d::extension::CCScale9Sprite::create((__int64)"square02_small.png", (__int64)&v113);
sub_1000262C4((float *)&v113, v95, v44);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v88 + 320LL))(v88, &v113);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v88 + 912LL))(v88, 90);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v88 + 184LL))(v88, v115);
(*(void (__fastcall **)(void *, void *))(*(_QWORD *)v45 + 456LL))(v45, v88);
v89 = sub_1000D9098(a1 + 792, (const void **)v33 + 4);
if ( v89 )
v90 = "Tap to retry";
else
v90 = "Loading...";
v91 = cocos2d::CCLabelBMFont::create_1(v90, "bigFont.fnt");
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v91 + 160LL))(v91, 0.5);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v91 + 1024LL))(v91, 150);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v91 + 184LL))(v91, v115);
(*(void (__fastcall **)(void *, void *, __int64))(*(_QWORD *)v45 + 464LL))(v45, v91, 2);
if ( !v89 )
{
v92 = MusicDownloadManager::sharedState();
if ( *((char *)v33 + 55) < 0 )
{
sub_1000097D0(v97, *((void **)v33 + 4), *((_QWORD *)v33 + 5));
}
else
{
v93 = *((_OWORD *)v33 + 2);
v98 = *((_QWORD *)v33 + 6);
*(_OWORD *)v97 = v93;
}
sub_1001E159C(v92, (__int128 *)v97);
if ( SHIBYTE(v98) < 0 )
operator delete(v97[0]);
}
LABEL_122:
v94 = CCMenuItemSpriteExtra::create((__int64)v45, 0, a1, (__int64)sub_1005192D4, 0);
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v94 + 72LL))(v94, v30);
sub_1000262C4((float *)&v113, v95, v44);
(*(void (__fastcall **)(_BYTE *, std::string *))(*(_QWORD *)v94 + 320LL))(v94, &v113);
CCMenuItemSpriteExtra::setSizeMult((__int64)v94, 1.0);
v94[408] = 0;
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v45 + 184LL))(v45, v115);
(*(void (__fastcall **)(_BYTE *, __int64 *))(*(_QWORD *)v94 + 184LL))(v94, &v105);
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 720) + 456LL))(*(_QWORD *)(a1 + 720), v94);
}
v27.n128_u32[0] = 10.0;
LABEL_124:
v28 = v28 - (float)(v44 + v27.n128_f32[0]);
v31 = -10.0;
v32 = 0.75;
goto LABEL_125;
}
if ( !v34 )
{
v105 = 0;
v106 = 0;
v107 = 0;
v35 = *((_BYTE **)v33 + 1);
if ( *((char *)v33 + 31) < 0 )
{
v36 = *((_QWORD *)v33 + 2);
}
else
{
v35 = v33 + 2;
v36 = *((unsigned __int8 *)v33 + 31);
}
if ( v36 )
{
v37 = &v35[v36];
v38 = v36;
v39 = v35;
while ( *v39 != 10 )
{
++v39;
if ( !--v38 )
{
v39 = &v35[v36];
break;
}
}
v40 = (_BYTE *)(v39 - v35);
if ( v39 == v37 )
v41 = -1;
else
v41 = (__int64)v40;
}
else
{
v41 = -1;
}
v57 = 0;
do
{
std::string::basic_string(&v113, (const std::string *)(v33 + 2), v57, v41 - v57, &__a);
size = HIBYTE(v113.__r_.__value_.__r.__words[2]);
if ( (v113.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
size = v113.__r_.__value_.__l.__size_;
if ( v57 != v36 || size )
sub_100017C70((__int64)&v105);
if ( v41 == -1 )
goto LABEL_51;
v57 = v41 + 1;
v61 = *((char *)v33 + 31);
v62 = *((_QWORD *)v33 + 2);
v63 = v61 < 0;
if ( v61 >= 0 )
v64 = v33 + 2;
else
v64 = *((int **)v33 + 1);
if ( !v63 )
v62 = *((unsigned __int8 *)v33 + 31);
if ( v62 <= v57 )
{
LABEL_51:
v59 = -1;
}
else
{
v65 = (char *)v64 + v62;
v66 = (char *)v64 + v57;
v67 = ~v41 + v62;
while ( *v66 != 10 )
{
++v66;
if ( !--v67 )
{
v66 = v65;
break;
}
}
v68 = (_BYTE *)(v66 - (_BYTE *)v64);
if ( v66 == v65 )
v59 = -1;
else
v59 = (__int64)v68;
}
if ( SHIBYTE(v113.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v113.__r_.__value_.__l.__data_);
v60 = v41 == -1;
v41 = v59;
}
while ( !v60 );
v70 = v105;
v69 = v106;
if ( (int)(-1431655765 * ((unsigned __int64)(v106 - v105) >> 3)) >= 1 )
{
v71 = 0;
v72 = 0;
v13 = v96;
while ( 1 )
{
v73 = (__int128 *)(v70 + v71);
if ( *(char *)(v70 + v71 + 23) < 0 )
{
v75 = *((_QWORD *)v73 + 1);
if ( v75 )
{
sub_1000097D0(__p, *(void **)v73, v75);
goto LABEL_77;
}
}
else if ( *(_BYTE *)(v70 + v71 + 23) )
{
v74 = *v73;
v104 = *((_QWORD *)v73 + 2);
*(_OWORD *)__p = v74;
LABEL_77:
sub_1000262BC((float *)&v113, 0.0, 1.0);
v76 = (float *)TextArea::create(
(__int64)__p,
(__int64)"chatFont.fnt",
(double *)&v113,
0,
10,
1.0,
(float)(v25 + -20.0) / 0.75,
20.0);
if ( SHIBYTE(v104) < 0 )
operator delete(__p[0]);
sub_1000262BC((float *)&v113, 0.0, 1.0);
(*(void (__fastcall **)(float *, std::string *))(*(_QWORD *)v76 + 296LL))(v76, &v113);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v76 + 160LL))(v76, 0.75);
sub_1000262BC((float *)&v113, 20.0, v28);
(*(void (__fastcall **)(float *, std::string *))(*(_QWORD *)v76 + 184LL))(v76, &v113);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 456LL))(v4, v76);
v28 = v28 - (float)((float)((float)(v76[109] + 20.0) * v32) + 4.0);
v70 = v105;
v69 = v106;
goto LABEL_81;
}
v28 = v28 + v31;
LABEL_81:
++v72;
v71 += 24;
if ( v72 >= (int)(-1431655765 * ((unsigned __int64)(v69 - v70) >> 3)) )
goto LABEL_84;
}
}
v13 = v96;
LABEL_84:
v28 = v28 + -4.0;
v113.__r_.__value_.__r.__words[0] = (std::string::size_type)&v105;
sub_100018250((void ***)&v113);
}
LABEL_125:
++v30;
v29 = *(_QWORD *)(v13 + 56);
if ( v30 >= (int)(-1431655765 * ((unsigned __int64)(*(_QWORD *)(v13 + 64) - v29) >> 5)) )
goto LABEL_126;
}
v48 = (const char *)(v33 + 2);
if ( *((char *)v33 + 31) < 0 )
v48 = *(const char **)v48;
v49 = cocos2d::CCLabelBMFont::create_1(v48, "chatFont.fnt");
v113.__r_.__value_.__s.__data_[2] = -1;
LOWORD(v113.__r_.__value_.__l.__data_) = -14286;
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v49 + 1072LL))(v49, &v113);
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v49, v25 + -20.0, 0.75, 0.3);
v50 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v49 + 328LL))(v49);
v51 = (*(float (__fastcall **)(void *))(*(_QWORD *)v49 + 168LL))(v49);
v52 = *(float *)((*(__int64 (__fastcall **)(void *))(*(_QWORD *)v49 + 328LL))(v49) + 4);
v53 = (*(float (__fastcall **)(void *))(*(_QWORD *)v49 + 168LL))(v49);
v54 = cocos2d::CCSprite::create_1();
v55 = v50 * v51;
v44 = v52 * v53;
sub_1000262C4((float *)&v113, v55, v52 * v53);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v54 + 320LL))(v54, &v113);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v54 + 984LL))(v54, 1);
sub_1000262BC((float *)&v113, v55 * 0.5, (float)(v52 * v53) * 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v49 + 184LL))(v49, &v113);
(*(void (__fastcall **)(void *, void *))(*(_QWORD *)v54 + 456LL))(v54, v49);
v56 = CCMenuItemSpriteExtra::create((__int64)v54, 0, a1, (__int64)sub_1005192D4, 0);
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v56 + 72LL))(v56, v30);
sub_1000262C4((float *)&v113, v55, v52 * v53);
(*(void (__fastcall **)(_BYTE *, std::string *))(*(_QWORD *)v56 + 320LL))(v56, &v113);
CCMenuItemSpriteExtra::setSizeMult((__int64)v56, 1.2);
v56[408] = 0;
sub_1000262BC((float *)&v113, (float)(v55 * 0.5) + 20.0, v28 - (float)((float)(v52 * v53) * 0.5));
(*(void (__fastcall **)(_BYTE *, std::string *))(*(_QWORD *)v56 + 184LL))(v56, &v113);
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 720) + 456LL))(*(_QWORD *)(a1 + 720), v56);
v27.n128_u32[0] = 8.0;
goto LABEL_124;
}
LABEL_126:
v27.n128_f32[0] = 6.0 - v28;
if ( (float)(6.0 - v28) < *((float *)&v6 + 1) )
v27.n128_f32[0] = *((float *)&v6 + 1);
ScrollableContentLayer::setContentHeight(*(_QWORD *)(a1 + 712), v27);
sub_100519720(a1, (unsigned int)(*(_DWORD *)(a1 + 704) - 1));
sub_100519720(a1, (unsigned int)(*(_DWORD *)(a1 + 704) + 1));
if ( v108 )
{
v109 = v108;
operator delete(v108);
}
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
}
else
{
(*(void (__fastcall **)(_QWORD, const char *))(*(_QWORD *)v10 + 928LL))(*(_QWORD *)(a1 + 736), "");
v19 = cocos2d::CCLabelBMFont::create_1("Loading news...", "bigFont.fnt");
*(_QWORD *)(a1 + 744) = v19;
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v19 + 160LL))(v19, 0.55);
v20 = *(_QWORD *)(a1 + 744);
sub_1000262BC((float *)&v113, *(float *)&v6 * 0.5, *((float *)&v6 + 1) * -0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v20 + 184LL))(v20, &v113);
v21 = ((__n128 (__fastcall *)(__int64, _QWORD))*(_QWORD *)(*(_QWORD *)v4 + 456LL))(v4, *(_QWORD *)(a1 + 744));
v21.n128_u32[0] = HIDWORD(v6);
ScrollableContentLayer::setContentHeight(*(_QWORD *)(a1 + 712), v21);
v22 = MusicDownloadManager::sharedState();
MusicDownloadManager::tryUpdateNewsFeed(v22);
}
}