//
// sub_100998310 from 0x100998310 to 0x10099a713 (9219 bytes)
//
// 1 xrefs:
// > AccountReviewPopup::adminAccountReviewFinished @ 0x100998246
//
// 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 12:39:13 +0000
//
__int64 __fastcall sub_100998310(__int64 a1, __int64 a2)
{
__m128 v2; // xmm0
bool v3; // zf
unsigned int v4; // eax
int v5; // eax
const char *v6; // rdx
const char *v7; // rbx
size_t v8; // rax
std::string::size_type v9; // r14
char *v10; // r15
unsigned int v11; // eax
std::string::size_type v12; // rax
const std::string::value_type *data; // rsi
std::string::size_type size; // rdx
size_t v15; // r12
const std::string::value_type *v16; // rsi
char *v17; // rax
const std::string::value_type *CString; // rax
unsigned int v19; // eax
std::string *v20; // rax
const std::string::value_type *v21; // rsi
std::string::size_type v22; // rdx
unsigned int v23; // eax
std::string *v24; // rax
const std::string::value_type *v25; // rsi
std::string::size_type v26; // rdx
unsigned __int64 v27; // rax
const std::string::value_type *v28; // rsi
std::string *v29; // rax
const std::string::value_type *v30; // rsi
std::string::size_type v31; // rdx
unsigned int v32; // esi
__int64 v33; // rdx
time_t v34; // rbx
time_t v35; // r14
std::string *v36; // rax
__int64 v37; // rdx
__m128i v38; // xmm0
__m128 v39; // xmm2
int epi32; // esi
const char *v41; // r15
const char *v42; // rcx
char *v43; // rax
const char *v44; // rbx
size_t v45; // rax
std::string::size_type v46; // r14
char *v47; // r12
__int64 v48; // r13
int v49; // esi
size_t v50; // r13
char *v51; // rax
const std::string::value_type *v52; // rax
int v53; // esi
char *v54; // rax
const char *v55; // rbx
size_t v56; // rax
std::string::size_type v57; // r14
char *v58; // r15
size_t v59; // r12
const __m128i *v60; // rax
const std::string::value_type *v61; // rsi
std::string::size_type v62; // rdx
int v63; // esi
char *v64; // rax
const std::string::value_type *v65; // rax
signed int v66; // edi
const std::string::value_type *v67; // rax
std::string *v68; // rax
const std::string::value_type *v69; // rsi
std::string::size_type v70; // rdx
unsigned int v71; // esi
const __m128i *v72; // rax
const std::string::value_type *v73; // rsi
std::string::size_type v74; // rdx
std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v75; // al
std::string::size_type v76; // rax
std::string::size_type v77; // rax
const __m128i *v78; // rax
const std::string::value_type *v79; // rsi
std::string::size_type v80; // rdx
const __m128i *v81; // rax
const std::string::value_type *v82; // rsi
std::string::size_type v83; // rdx
const __m128i *v84; // rax
const std::string::value_type *v85; // rsi
std::string::size_type v86; // rdx
std::string::size_type v87; // rax
const __m128i *v88; // rax
const std::string::value_type *v89; // rsi
std::string::size_type v90; // rdx
std::string::size_type v91; // rax
const __m128i *v92; // rax
const std::string::value_type *v93; // rsi
std::string::size_type v94; // rdx
const __m128i *v95; // rax
const std::string::value_type *v96; // rsi
std::string::size_type v97; // rdx
time_t v98; // rsi
const __m128i *v99; // rax
int v100; // esi
const char *v101; // rdx
char *v102; // rax
const char *v103; // rbx
size_t v104; // rax
std::string::size_type v105; // r14
char *v106; // r15
int v107; // esi
const char *v108; // rdx
char *v109; // rax
size_t v110; // rax
size_t v111; // r12
size_t v112; // r12
unsigned int v113; // eax
_BYTE *v114; // rbx
const __m128i *v115; // rax
__m128i *v116; // r14
std::string::pointer v117; // rdi
const __m128i *v118; // rax
const std::string::value_type *v119; // rsi
std::string::size_type v120; // rdx
unsigned int v121; // eax
const std::string::value_type *v122; // rsi
std::string::size_type v123; // rdx
unsigned int v124; // eax
const __m128i *v125; // rax
const std::string::value_type *v126; // rsi
std::string::size_type v127; // rdx
_BYTE *v128; // rax
__int64 v129; // rdx
unsigned __int64 v130; // r15
char *v131; // r8
char *v132; // r13
char *v133; // r12
__int64 v134; // r14
__int64 v135; // rdi
void *v136; // rbx
signed __int64 v137; // r13
__int64 v138; // r14
unsigned __int64 v139; // rax
unsigned __int64 v140; // rsi
unsigned __int64 v141; // r12
_QWORD *v142; // r15
void *v143; // rbx
char *v144; // r12
__int64 v145; // r13
void *v146; // r15
unsigned int v147; // r15d
unsigned __int64 v148; // r14
bool v149; // al
__int64 v150; // xmm1_8
bool v151; // cl
char *v152; // rbx
unsigned int v153; // r15d
unsigned __int64 v154; // r14
bool v155; // al
__int64 v156; // xmm1_8
bool v157; // cl
char *v158; // rbx
unsigned int v159; // r15d
unsigned __int64 v160; // r14
bool v161; // al
__int64 v162; // xmm1_8
bool v163; // cl
char *v164; // rbx
unsigned int v165; // r15d
unsigned __int64 v166; // r14
bool v167; // al
__int64 v168; // xmm1_8
bool v169; // cl
__int64 v170; // r14
char *v171; // rax
__int64 v172; // r14
__int64 v173; // r12
float v174; // xmm3_4
float v175; // xmm0_4
float v176; // xmm0_4
unsigned int v177; // eax
__int64 v178; // rbx
float v179; // xmm0_4
char *v180; // rbx
unsigned __int64 v181; // rax
float v182; // xmm0_4
_BYTE *v183; // rsi
signed __int64 v184; // rbx
__int64 v185; // r13
unsigned __int64 v186; // rcx
__int64 v187; // rax
unsigned __int64 v188; // r14
_QWORD *v189; // r15
float v190; // xmm0_4
double v191; // xmm1_8
char *v192; // rbx
unsigned __int64 v193; // rax
__int64 v194; // r12
_BYTE *v195; // r14
signed __int64 v196; // rbx
__int64 v197; // r12
unsigned __int64 v198; // rcx
__int64 v199; // rax
unsigned __int64 v200; // r13
_QWORD *v201; // r15
__int64 v202; // rbx
char *v203; // rax
const std::string::value_type *v204; // rax
__int64 v205; // rbx
char *v206; // rax
const std::string::value_type *v207; // rax
__int64 v208; // rbx
char *v209; // rax
const std::string::value_type *v210; // rax
__int64 v211; // rbx
int v212; // esi
char *v213; // rax
const std::string::value_type *v214; // rsi
void **v215; // rbx
void **v216; // r14
void *v217; // rdi
char *v219; // rbx
unsigned int v220; // r15d
unsigned __int64 v221; // r14
float v222; // xmm3_4
float v223; // xmm3_4
bool v224; // al
float v225; // xmm1_4
__int64 v226; // [rsp+8h] [rbp-168h]
char *v227; // [rsp+18h] [rbp-158h]
float v228; // [rsp+24h] [rbp-14Ch]
void *v230[2]; // [rsp+30h] [rbp-140h] BYREF
__int64 v231; // [rsp+40h] [rbp-130h]
float v232; // [rsp+50h] [rbp-120h]
float v233; // [rsp+54h] [rbp-11Ch]
unsigned __int8 v234; // [rsp+58h] [rbp-118h] BYREF
std::string::value_type v235[7]; // [rsp+59h] [rbp-117h] BYREF
std::string::size_type v236; // [rsp+60h] [rbp-110h]
void *v237; // [rsp+68h] [rbp-108h]
char *v238; // [rsp+70h] [rbp-100h]
void *v239; // [rsp+78h] [rbp-F8h]
std::string v240; // [rsp+80h] [rbp-F0h] BYREF
unsigned int v241; // [rsp+9Ch] [rbp-D4h]
unsigned __int64 v242; // [rsp+A0h] [rbp-D0h]
void **v243; // [rsp+A8h] [rbp-C8h] BYREF
float v244; // [rsp+B4h] [rbp-BCh]
__int64 v245; // [rsp+B8h] [rbp-B8h]
__int64 v246; // [rsp+C0h] [rbp-B0h]
void *__src; // [rsp+C8h] [rbp-A8h]
std::string __s; // [rsp+D0h] [rbp-A0h] BYREF
std::string v249; // [rsp+F0h] [rbp-80h] BYREF
float v250; // [rsp+10Ch] [rbp-64h]
std::string __dst; // [rsp+110h] [rbp-60h] BYREF
double v252; // [rsp+138h] [rbp-38h] BYREF
sub_10099ADD0();
v2 = (__m128)*(unsigned int *)(a1 + 672);
v2.f32[0] = (float)(v2.f32[0] * 0.5) + *(float *)(a1 + 664);
v232 = 0.5 * *(float *)(a1 + 704);
v233 = COERCE_FLOAT(_mm_cvtsi128_si32(_mm_cvtsi32_si128(*(_DWORD *)(a1 + 660))));
_mm_storel_ps(&v252, _mm_add_ps(_mm_moveldup_ps(v2), (__m128)xmmword_100A14B90));
*(_OWORD *)v230 = 0;
v231 = 0;
v243 = v230;
v3 = *(_DWORD *)(a2 + 28) == 0;
v245 = a2;
if ( !v3 )
{
if ( *(int *)(a2 + 112) < 0 )
{
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14;
strcpy(__dst.__r_.__value_.__s.__data_, "No case");
sub_10099AEA0(&v243, &__dst, 14803425);
goto LABEL_69;
}
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)16;
strcpy(__dst.__r_.__value_.__s.__data_, "Reviewed");
v4 = *(unsigned __int8 *)(a2 + 64);
if ( (v4 & 1) != 0 )
{
if ( !*(_QWORD *)(a2 + 72) )
goto LABEL_35;
}
else if ( !(v4 >> 1) )
{
goto LABEL_35;
}
std::operator+(&__s, " by ", v245 + 64);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
{
data = __s.__r_.__value_.__l.__data_;
size = __s.__r_.__value_.__l.__size_;
}
else
{
size = *(_BYTE *)&__s.__r_.__value_.__l.0 >> 1;
data = __s.__r_.__value_.__s.__data_;
}
std::string::append(&__dst, data, size);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
LABEL_35:
v23 = *(unsigned __int8 *)(v245 + 88);
if ( (v23 & 1) != 0 )
{
if ( !*(_QWORD *)(v245 + 96) )
goto LABEL_46;
}
else if ( !(v23 >> 1) )
{
LABEL_46:
v249.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4;
strcpy(v249.__r_.__value_.__s.__data_, ": ");
v27 = *(unsigned int *)(v245 + 112);
if ( v27 > 3 )
v28 = "";
else
v28 = (char *)dword_100A14C10 + dword_100A14C10[v27];
v29 = std::string::append(&v249, v28);
__s = *v29;
*(_OWORD *)&v29->__r_.__value_.__l.0 = 0;
v29->__r_.__value_.__r.__words[2] = 0;
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
{
v30 = __s.__r_.__value_.__l.__data_;
v31 = __s.__r_.__value_.__l.__size_;
}
else
{
v31 = *(_BYTE *)&__s.__r_.__value_.__l.0 >> 1;
v30 = __s.__r_.__value_.__s.__data_;
}
std::string::append(&__dst, v30, v31);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v249.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v249.__r_.__value_.__l.__data_);
v32 = -6881386;
if ( (*(_DWORD *)(v245 + 112) & 0xFFFFFFFD) == 1 )
v32 = 5286655;
v33 = 7895295;
if ( *(_DWORD *)(v245 + 112) != 2 )
v33 = v32;
sub_10099AEA0(&v243, &__dst, v33);
goto LABEL_67;
}
std::operator+(&v249, " ", v245 + 88);
v24 = std::string::append(&v249, " ago");
__s = *v24;
*(_OWORD *)&v24->__r_.__value_.__l.0 = 0;
v24->__r_.__value_.__r.__words[2] = 0;
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
{
v25 = __s.__r_.__value_.__l.__data_;
v26 = __s.__r_.__value_.__l.__size_;
}
else
{
v26 = *(_BYTE *)&__s.__r_.__value_.__l.0 >> 1;
v25 = __s.__r_.__value_.__s.__data_;
}
std::string::append(&__dst, v25, v26);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v249.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v249.__r_.__value_.__l.__data_);
goto LABEL_46;
}
v5 = *(_DWORD *)(a2 + 32);
v6 = "";
if ( v5 == 1 )
v6 = "AD SPAM";
v7 = "PREDATOR";
if ( v5 != 2 )
v7 = v6;
v8 = strlen(v7);
if ( v8 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v9 = v8;
if ( v8 >= 0x17 )
{
v15 = 26;
if ( (v8 | 7) != 0x17 )
v15 = (v8 | 7) + 1;
v10 = (char *)operator new(v15);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)v10;
__dst.__r_.__value_.__r.__words[0] = v15 | 1;
__dst.__r_.__value_.__l.__size_ = v9;
LABEL_22:
memcpy(v10, v7, v9);
v10[v9] = 0;
v11 = (unsigned int)__dst.__r_.__value_.__l.0;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
goto LABEL_14;
goto LABEL_23;
}
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v8);
v10 = __dst.__r_.__value_.__s.__data_;
if ( v8 )
goto LABEL_22;
__dst.__r_.__value_.__s.__data_[0] = 0;
v11 = (unsigned int)__dst.__r_.__value_.__l.0;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
LABEL_14:
v12 = __dst.__r_.__value_.__l.__size_;
goto LABEL_24;
}
LABEL_23:
v12 = v11 >> 1;
LABEL_24:
v16 = " CASE";
if ( !v12 )
v16 = "CASE";
std::string::append(&__dst, v16);
v17 = sub_10088E820(" - score %i", *(_DWORD *)(v245 + 36));
CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v17);
std::string::append(&__dst, CString);
v19 = *(unsigned __int8 *)(v245 + 40);
if ( (v19 & 1) != 0 )
{
if ( !*(_QWORD *)(v245 + 48) )
goto LABEL_66;
LABEL_30:
std::operator+(&v249, " - since ", v245 + 40);
v20 = std::string::append(&v249, " ago");
__s = *v20;
*(_OWORD *)&v20->__r_.__value_.__l.0 = 0;
v20->__r_.__value_.__r.__words[2] = 0;
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
{
v21 = __s.__r_.__value_.__l.__data_;
v22 = __s.__r_.__value_.__l.__size_;
}
else
{
v22 = *(_BYTE *)&__s.__r_.__value_.__l.0 >> 1;
v21 = __s.__r_.__value_.__s.__data_;
}
std::string::append(&__dst, v21, v22);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v249.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v249.__r_.__value_.__l.__data_);
goto LABEL_66;
}
if ( v19 >> 1 )
goto LABEL_30;
LABEL_66:
sub_10099AEA0(&v243, &__dst, 7895295);
LABEL_67:
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
LABEL_69:
if ( *(int *)(v245 + 328) > 0 )
{
v34 = time(nullptr);
v35 = *(int *)(v245 + 328);
GameToolbox::timestampToHumanReadable((char *)&__s, v35);
v36 = std::string::insert(&__s, 0, "Joined ");
__dst = *v36;
*(_OWORD *)&v36->__r_.__value_.__l.0 = 0;
v36->__r_.__value_.__r.__words[2] = 0;
v37 = 4292993505LL;
if ( v34 - v35 < 604800 )
v37 = 7913215;
sub_10099AEA0(&v243, &__dst, v37);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
}
v38 = _mm_loadu_si128((const __m128i *)(v245 + 116));
v39 = (__m128)_mm_cmpgt_epi32(v38, (__m128i)0LL);
if ( !_mm_movemask_ps(v39) )
{
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)20;
strcpy(__dst.__r_.__value_.__s.__data_, "No reports");
sub_10099AEA0(&v243, &__dst, 14803425);
v48 = v245;
goto LABEL_120;
}
epi32 = _mm_extract_epi32(v38, 1);
v41 = "s";
v42 = "s";
if ( epi32 == 1 )
v42 = "";
v43 = sub_10088E820("%i %s%s", epi32, "reporter", v42);
v44 = (const char *)cocos2d::CCString::getCString((__int64)v43);
v45 = strlen(v44);
if ( v45 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v46 = v45;
if ( v45 >= 0x17 )
{
v50 = 26;
if ( (v45 | 7) != 0x17 )
v50 = (v45 | 7) + 1;
v47 = (char *)operator new(v50);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)v47;
__dst.__r_.__value_.__r.__words[0] = v50 | 1;
__dst.__r_.__value_.__l.__size_ = v46;
v48 = v245;
LABEL_88:
memmove(v47, v44, v46);
v47[v46] = 0;
v49 = *(_DWORD *)(v48 + 124);
if ( v49 <= 0 )
goto LABEL_90;
goto LABEL_89;
}
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v45);
v47 = __dst.__r_.__value_.__s.__data_;
v48 = v245;
if ( v45 )
goto LABEL_88;
__dst.__r_.__value_.__s.__data_[0] = 0;
v49 = *(_DWORD *)(v245 + 124);
if ( v49 > 0 )
{
LABEL_89:
v51 = sub_10088E820(" +%i anonymous", v49);
v52 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v51);
std::string::append(&__dst, v52);
}
LABEL_90:
v53 = *(_DWORD *)(v48 + 116);
if ( v53 > 0 )
{
if ( v53 == 1 )
v41 = "";
v54 = sub_10088E820("%i %s%s", v53, "item", v41);
v55 = (const char *)cocos2d::CCString::getCString((__int64)v54);
v56 = strlen(v55);
if ( v56 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v57 = v56;
if ( v56 >= 0x17 )
{
v59 = 26;
if ( (v56 | 7) != 0x17 )
v59 = (v56 | 7) + 1;
v58 = (char *)operator new(v59);
v249.__r_.__value_.__r.__words[2] = (std::string::size_type)v58;
v249.__r_.__value_.__r.__words[0] = v59 | 1;
v249.__r_.__value_.__l.__size_ = v57;
}
else
{
v249.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v56);
v58 = v249.__r_.__value_.__s.__data_;
if ( !v56 )
goto LABEL_101;
}
memmove(v58, v55, v57);
LABEL_101:
v58[v57] = 0;
v60 = (const __m128i *)std::string::insert(&v249, 0, " on ");
__s.__r_.__value_.__r.__words[2] = v60[1].u64[0];
*(__m128i *)&__s.__r_.__value_.__l.0 = _mm_loadu_si128(v60);
*v60 = 0;
v60[1].i64[0] = 0;
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
{
v61 = __s.__r_.__value_.__l.__data_;
v62 = __s.__r_.__value_.__l.__size_;
}
else
{
v62 = *(_BYTE *)&__s.__r_.__value_.__l.0 >> 1;
v61 = __s.__r_.__value_.__s.__data_;
}
std::string::append(&__dst, v61, v62);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v249.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v249.__r_.__value_.__l.__data_);
}
v63 = *(_DWORD *)(v48 + 128);
if ( v63 > 0 )
{
v64 = sub_10088E820(" - reported directly x%i", v63);
v65 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v64);
std::string::append(&__dst, v65);
}
v66 = *(_DWORD *)(v48 + 132);
if ( v66 >= 0 )
{
v249.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)16;
strcpy(v249.__r_.__value_.__s.__data_, " - top: ");
v67 = sub_100964350(v66);
v68 = std::string::append(&v249, v67);
__s = *v68;
*(_OWORD *)&v68->__r_.__value_.__l.0 = 0;
v68->__r_.__value_.__r.__words[2] = 0;
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
{
v69 = __s.__r_.__value_.__l.__data_;
v70 = __s.__r_.__value_.__l.__size_;
}
else
{
v70 = *(_BYTE *)&__s.__r_.__value_.__l.0 >> 1;
v69 = __s.__r_.__value_.__s.__data_;
}
std::string::append(&__dst, v69, v70);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v249.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v249.__r_.__value_.__l.__data_);
}
sub_10099AEA0(&v243, &__dst, 3986175);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
LABEL_120:
memset(&__s, 0, sizeof(__s));
v71 = *(_DWORD *)(v48 + 136);
if ( !v71 )
{
v75 = 0;
if ( *(_DWORD *)(v48 + 140) )
goto LABEL_133;
LABEL_124:
if ( !*(_DWORD *)(v48 + 144) )
goto LABEL_155;
goto LABEL_125;
}
sub_10098E040((__int64)&v249, v71);
v72 = (const __m128i *)std::string::insert(&v249, 0, "comments ");
__dst.__r_.__value_.__r.__words[2] = v72[1].u64[0];
*(__m128i *)&__dst.__r_.__value_.__l.0 = _mm_loadu_si128(v72);
*v72 = 0;
v72[1].i64[0] = 0;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
v73 = __dst.__r_.__value_.__l.__data_;
v74 = __dst.__r_.__value_.__l.__size_;
}
else
{
v74 = *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1;
v73 = __dst.__r_.__value_.__s.__data_;
}
std::string::append(&__s, v73, v74);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v249.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v249.__r_.__value_.__l.__data_);
v75 = __s.__r_.__value_.__s.0;
if ( !*(_DWORD *)(v48 + 140) )
goto LABEL_124;
LABEL_133:
if ( (*(_BYTE *)&v75 & 1) != 0 )
v77 = __s.__r_.__value_.__l.__size_;
else
v77 = *(unsigned __int8 *)&v75 >> 1;
v240.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(4 * (v77 != 0));
if ( v77 )
*(_WORD *)((char *)&v240.__r_.__value_.__l.0 + 1) = 8236;
*((_BYTE *)&v240.__r_.__value_.__l.0 + 2 * (v77 != 0) + 1) = 0;
v78 = (const __m128i *)std::string::append(&v240, "uploads ");
v249.__r_.__value_.__r.__words[2] = v78[1].u64[0];
*(__m128i *)&v249.__r_.__value_.__l.0 = _mm_loadu_si128(v78);
*v78 = 0;
v78[1].i64[0] = 0;
sub_10098E040((__int64)&v234, *(_DWORD *)(v48 + 140));
if ( (v234 & 1) != 0 )
{
v79 = (const std::string::value_type *)v237;
v80 = v236;
}
else
{
v80 = v234 >> 1;
v79 = v235;
}
v81 = (const __m128i *)std::string::append(&v249, v79, v80);
__dst.__r_.__value_.__r.__words[2] = v81[1].u64[0];
*(__m128i *)&__dst.__r_.__value_.__l.0 = _mm_loadu_si128(v81);
*v81 = 0;
v81[1].i64[0] = 0;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
v82 = __dst.__r_.__value_.__l.__data_;
v83 = __dst.__r_.__value_.__l.__size_;
}
else
{
v83 = *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1;
v82 = __dst.__r_.__value_.__s.__data_;
}
std::string::append(&__s, v82, v83);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
operator delete(__dst.__r_.__value_.__l.__data_);
if ( (v234 & 1) == 0 )
{
LABEL_151:
if ( (*(_BYTE *)&v249.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_152;
goto LABEL_160;
}
}
else if ( (v234 & 1) == 0 )
{
goto LABEL_151;
}
operator delete(v237);
if ( (*(_BYTE *)&v249.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_152:
if ( (*(_BYTE *)&v240.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_154;
goto LABEL_153;
}
LABEL_160:
operator delete(v249.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v240.__r_.__value_.__s.0 & 1) != 0 )
LABEL_153:
operator delete(v240.__r_.__value_.__l.__data_);
LABEL_154:
v75 = __s.__r_.__value_.__s.0;
if ( !*(_DWORD *)(v48 + 144) )
{
LABEL_155:
if ( *(_DWORD *)(v48 + 332) == 2 )
goto LABEL_156;
LABEL_172:
if ( *(_DWORD *)(v48 + 336) != 2 )
goto LABEL_195;
goto LABEL_173;
}
LABEL_125:
if ( (*(_BYTE *)&v75 & 1) != 0 )
v76 = __s.__r_.__value_.__l.__size_;
else
v76 = *(unsigned __int8 *)&v75 >> 1;
v240.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(4 * (v76 != 0));
if ( v76 )
*(_WORD *)((char *)&v240.__r_.__value_.__l.0 + 1) = 8236;
*((_BYTE *)&v240.__r_.__value_.__l.0 + 2 * (v76 != 0) + 1) = 0;
v84 = (const __m128i *)std::string::append(&v240, "messages ");
v249.__r_.__value_.__r.__words[2] = v84[1].u64[0];
*(__m128i *)&v249.__r_.__value_.__l.0 = _mm_loadu_si128(v84);
*v84 = 0;
v84[1].i64[0] = 0;
sub_10098E040((__int64)&v234, *(_DWORD *)(v48 + 144));
if ( (v234 & 1) != 0 )
{
v85 = (const std::string::value_type *)v237;
v86 = v236;
}
else
{
v86 = v234 >> 1;
v85 = v235;
}
v88 = (const __m128i *)std::string::append(&v249, v85, v86);
__dst.__r_.__value_.__r.__words[2] = v88[1].u64[0];
*(__m128i *)&__dst.__r_.__value_.__l.0 = _mm_loadu_si128(v88);
*v88 = 0;
v88[1].i64[0] = 0;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
v89 = __dst.__r_.__value_.__l.__data_;
v90 = __dst.__r_.__value_.__l.__size_;
}
else
{
v90 = *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1;
v89 = __dst.__r_.__value_.__s.__data_;
}
std::string::append(&__s, v89, v90);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
operator delete(__dst.__r_.__value_.__l.__data_);
if ( (v234 & 1) == 0 )
{
LABEL_168:
if ( (*(_BYTE *)&v249.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_169;
goto LABEL_177;
}
}
else if ( (v234 & 1) == 0 )
{
goto LABEL_168;
}
operator delete(v237);
if ( (*(_BYTE *)&v249.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_169:
if ( (*(_BYTE *)&v240.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_171;
goto LABEL_170;
}
LABEL_177:
operator delete(v249.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v240.__r_.__value_.__s.0 & 1) != 0 )
LABEL_170:
operator delete(v240.__r_.__value_.__l.__data_);
LABEL_171:
v75 = __s.__r_.__value_.__s.0;
if ( *(_DWORD *)(v48 + 332) != 2 )
goto LABEL_172;
LABEL_156:
if ( (*(_BYTE *)&v75 & 1) != 0 )
v87 = __s.__r_.__value_.__l.__size_;
else
v87 = *(unsigned __int8 *)&v75 >> 1;
v249.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(4 * (v87 != 0));
if ( v87 )
*(_WORD *)((char *)&v249.__r_.__value_.__l.0 + 1) = 8236;
*((_BYTE *)&v249.__r_.__value_.__l.0 + 2 * (v87 != 0) + 1) = 0;
v92 = (const __m128i *)std::string::append(&v249, "trending");
__dst.__r_.__value_.__r.__words[2] = v92[1].u64[0];
*(__m128i *)&__dst.__r_.__value_.__l.0 = _mm_loadu_si128(v92);
*v92 = 0;
v92[1].i64[0] = 0;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
v93 = __dst.__r_.__value_.__l.__data_;
v94 = __dst.__r_.__value_.__l.__size_;
}
else
{
v94 = *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1;
v93 = __dst.__r_.__value_.__s.__data_;
}
std::string::append(&__s, v93, v94);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v249.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v249.__r_.__value_.__l.__data_);
v75 = __s.__r_.__value_.__s.0;
if ( *(_DWORD *)(v48 + 336) != 2 )
{
LABEL_195:
if ( (*(_BYTE *)&v75 & 1) != 0 )
goto LABEL_196;
goto LABEL_204;
}
LABEL_173:
if ( (*(_BYTE *)&v75 & 1) != 0 )
v91 = __s.__r_.__value_.__l.__size_;
else
v91 = *(unsigned __int8 *)&v75 >> 1;
v249.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(4 * (v91 != 0));
if ( v91 )
*(_WORD *)((char *)&v249.__r_.__value_.__l.0 + 1) = 8236;
*((_BYTE *)&v249.__r_.__value_.__l.0 + 2 * (v91 != 0) + 1) = 0;
v95 = (const __m128i *)std::string::append(&v249, "name change");
__dst.__r_.__value_.__r.__words[2] = v95[1].u64[0];
*(__m128i *)&__dst.__r_.__value_.__l.0 = _mm_loadu_si128(v95);
*v95 = 0;
v95[1].i64[0] = 0;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
v96 = __dst.__r_.__value_.__l.__data_;
v97 = __dst.__r_.__value_.__l.__size_;
}
else
{
v97 = *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1;
v96 = __dst.__r_.__value_.__s.__data_;
}
std::string::append(&__s, v96, v97);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v249.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v249.__r_.__value_.__l.__data_);
v75 = __s.__r_.__value_.__s.0;
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
{
LABEL_196:
if ( !__s.__r_.__value_.__l.__size_ )
goto LABEL_207;
goto LABEL_205;
}
LABEL_204:
if ( !(*(unsigned __int8 *)&v75 >> 1) )
goto LABEL_207;
LABEL_205:
std::operator+(&__dst, "Banned: ", &__s);
sub_10099AEA0(&v243, &__dst, 9869055);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
LABEL_207:
v98 = *(int *)(v48 + 340);
if ( v98 > 0 )
{
GameToolbox::timestampToHumanReadable((char *)&v249, v98);
v99 = (const __m128i *)std::string::insert(&v249, 0, "Queue muted ");
__dst.__r_.__value_.__r.__words[2] = v99[1].u64[0];
*(__m128i *)&__dst.__r_.__value_.__l.0 = _mm_loadu_si128(v99);
*v99 = 0;
v99[1].i64[0] = 0;
sub_10099AEA0(&v243, &__dst, 13158600);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v249.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v249.__r_.__value_.__l.__data_);
}
v100 = *(_DWORD *)(v48 + 148);
if ( v100 > 0 )
{
v101 = "s";
if ( v100 == 1 )
v101 = "";
v102 = sub_10088E820("Blocked by %i user%s this week", v100, v101);
v103 = (const char *)cocos2d::CCString::getCString((__int64)v102);
v104 = strlen(v103);
if ( v104 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v105 = v104;
if ( v104 >= 0x17 )
{
v111 = 26;
if ( (v104 | 7) != 0x17 )
v111 = (v104 | 7) + 1;
v106 = (char *)operator new(v111);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)v106;
__dst.__r_.__value_.__r.__words[0] = v111 | 1;
__dst.__r_.__value_.__l.__size_ = v105;
}
else
{
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v104);
v106 = __dst.__r_.__value_.__s.__data_;
if ( !v104 )
goto LABEL_234;
}
goto LABEL_233;
}
v107 = *(_DWORD *)(v48 + 152);
if ( v107 <= 0 )
goto LABEL_236;
v108 = "s";
if ( v107 == 1 )
v108 = "";
v109 = sub_10088E820("Blocked by %i user%s in 30 days", v107, v108);
v103 = (const char *)cocos2d::CCString::getCString((__int64)v109);
v110 = strlen(v103);
if ( v110 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v105 = v110;
if ( v110 >= 0x17 )
{
v112 = 26;
if ( (v110 | 7) != 0x17 )
v112 = (v110 | 7) + 1;
v106 = (char *)operator new(v112);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)v106;
__dst.__r_.__value_.__r.__words[0] = v112 | 1;
__dst.__r_.__value_.__l.__size_ = v105;
goto LABEL_233;
}
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v110);
v106 = __dst.__r_.__value_.__s.__data_;
if ( v110 )
LABEL_233:
memmove(v106, v103, v105);
LABEL_234:
v106[v105] = 0;
sub_10099AEA0(&v243, &__dst, 7913215);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
LABEL_236:
v113 = *(unsigned __int8 *)(v48 + 168);
if ( (v113 & 1) != 0 )
{
if ( *(_QWORD *)(v48 + 176) )
goto LABEL_238;
LABEL_245:
v116 = (__m128i *)operator new(0x20u);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)v116;
__dst.__r_.__value_.__r.__words[0] = 33;
__dst.__r_.__value_.__l.__size_ = 24;
*v116 = _mm_loadu_si128((const __m128i *)"No moderator actions yet");
strcpy(v116[1].i8, "ions yet");
sub_10099AEA0(&v243, &__dst, 14803425);
v117 = (std::string::pointer)v116;
goto LABEL_279;
}
if ( !(v113 >> 1) )
goto LABEL_245;
LABEL_238:
v114 = (_BYTE *)(v48 + 192);
sub_10099B140(&__dst, v48 + 168, v48 + 192);
v115 = (const __m128i *)std::string::insert(&__dst, 0, "Last action: ");
v249.__r_.__value_.__r.__words[2] = v115[1].u64[0];
*(__m128i *)&v249.__r_.__value_.__l.0 = _mm_loadu_si128(v115);
*v115 = 0;
v115[1].i64[0] = 0;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( (*v114 & 1) != 0 )
{
if ( *(_QWORD *)(v48 + 200) == 4 && **(_DWORD **)(v48 + 208) == 1836213616 )
goto LABEL_256;
}
else if ( *v114 == 8 && *(_DWORD *)(v48 + 193) == 1836213616 )
{
LABEL_256:
std::string::append(&v249, " Permanent");
goto LABEL_257;
}
if ( *(int *)(v48 + 216) > 0 )
{
sub_10099B740(&v240);
v118 = (const __m128i *)std::string::insert(&v240, 0, " ");
__dst.__r_.__value_.__r.__words[2] = v118[1].u64[0];
*(__m128i *)&__dst.__r_.__value_.__l.0 = _mm_loadu_si128(v118);
*v118 = 0;
v118[1].i64[0] = 0;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
v119 = __dst.__r_.__value_.__l.__data_;
v120 = __dst.__r_.__value_.__l.__size_;
}
else
{
v120 = *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1;
v119 = __dst.__r_.__value_.__s.__data_;
}
std::string::append(&v249, v119, v120);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v240.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v240.__r_.__value_.__l.__data_);
}
LABEL_257:
v121 = *(unsigned __int8 *)(v48 + 224);
if ( (v121 & 1) != 0 )
{
if ( !*(_QWORD *)(v48 + 232) )
goto LABEL_266;
}
else if ( !(v121 >> 1) )
{
goto LABEL_266;
}
std::operator+(&__dst, " by ", v48 + 224);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
v122 = __dst.__r_.__value_.__l.__data_;
v123 = __dst.__r_.__value_.__l.__size_;
}
else
{
v123 = *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1;
v122 = __dst.__r_.__value_.__s.__data_;
}
std::string::append(&v249, v122, v123);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
LABEL_266:
v124 = *(unsigned __int8 *)(v48 + 248);
if ( (v124 & 1) != 0 )
{
if ( !*(_QWORD *)(v48 + 256) )
goto LABEL_277;
LABEL_270:
std::operator+(&v240, " ", v48 + 248);
v125 = (const __m128i *)std::string::append(&v240, " ago");
__dst.__r_.__value_.__r.__words[2] = v125[1].u64[0];
*(__m128i *)&__dst.__r_.__value_.__l.0 = _mm_loadu_si128(v125);
*v125 = 0;
v125[1].i64[0] = 0;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
v126 = __dst.__r_.__value_.__l.__data_;
v127 = __dst.__r_.__value_.__l.__size_;
}
else
{
v127 = *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1;
v126 = __dst.__r_.__value_.__s.__data_;
}
std::string::append(&v249, v126, v127);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v240.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v240.__r_.__value_.__l.__data_);
goto LABEL_277;
}
if ( v124 >> 1 )
goto LABEL_270;
LABEL_277:
sub_10099AEA0(&v243, &v249, 16768150);
if ( (*(_BYTE *)&v249.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_280;
v117 = v249.__r_.__value_.__l.__data_;
LABEL_279:
operator delete(v117);
LABEL_280:
v128 = v230[0];
if ( v230[1] == v230[0] )
{
v134 = 0;
v131 = nullptr;
}
else
{
v129 = 0;
v130 = 0;
v131 = nullptr;
v132 = nullptr;
v133 = nullptr;
do
{
__src = v131;
v3 = (v128[v129] & 1) == 0;
v246 = v129;
if ( v3 )
v135 = (__int64)&v128[v129 + 1];
else
v135 = *(_QWORD *)&v128[v129 + 16];
v136 = cocos2d::CCLabelBMFont::create_3(v135, (__int64)"chatFont.fnt");
sub_100278250((float *)&__dst, 0.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v136 + 296LL))(v136, &__dst);
(*(void (__fastcall **)(void *, char *))(*(_QWORD *)v136 + 1072LL))(v136, (char *)v230[0] + v246 + 24);
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v136 + 1024LL))(
v136,
*((unsigned __int8 *)v230[0] + v246 + 27));
if ( v132 < v133 )
{
*(_QWORD *)v132 = v136;
v134 = (__int64)(v132 + 8);
v131 = (char *)__src;
}
else
{
v137 = v132 - (_BYTE *)__src;
v138 = v137 >> 3;
v139 = (v137 >> 3) + 1;
if ( v139 > 0x1FFFFFFFFFFFFFFFLL )
sub_1008D94A0();
v140 = v133 - (_BYTE *)__src;
v141 = (v133 - (_BYTE *)__src) >> 2;
if ( v141 <= v139 )
v141 = (v137 >> 3) + 1;
if ( v140 >= 0x7FFFFFFFFFFFFFF8LL )
v141 = 0x1FFFFFFFFFFFFFFFLL;
v242 = v130;
if ( v141 )
{
if ( v141 > 0x1FFFFFFFFFFFFFFFLL )
sub_10001ADB0();
v142 = operator new(8 * v141);
}
else
{
v142 = nullptr;
}
v133 = (char *)&v142[v141];
v142[v138] = v136;
v134 = (__int64)&v142[v138 + 1];
v143 = __src;
memcpy(v142, __src, v137);
if ( v143 )
operator delete(v143);
v131 = (char *)v142;
v130 = v242;
}
++v130;
v128 = v230[0];
v129 = v246 + 32;
v132 = (char *)v134;
}
while ( v130 < ((char *)v230[1] - (char *)v230[0]) >> 5 );
}
if ( *(int *)(v245 + 272) <= 0 )
{
v146 = nullptr;
v145 = a1;
v144 = v131;
}
else
{
v144 = v131;
v145 = a1;
v146 = sub_100995AA0((char *)(v245 + 280), v245 + 304, 0.54000002);
}
*(_DWORD *)&__dst.__r_.__value_.__l.0 = *(_DWORD *)(v145 + 704);
v250 = *(float *)&__dst.__r_.__value_.__l.0;
HIDWORD(__dst.__r_.__value_.__r.__words[0]) = __dst.__r_.__value_.__l.0;
if ( v146 )
{
v39.i64[0] = 1045220557;
cocos2d::CCLabelBMFont::limitLabelWidth(
(__int64)v146,
150.0,
(__m128)_mm_cvtsi32_si128(0x3F0A1CACu),
(__m128)0x3E4CCCCDu);
(*(void (__fastcall **)(std::string *, void *))(*(_QWORD *)v146 + 336LL))(&v249, v146);
*((float *)__dst.__r_.__value_.__r.__words + 1) = v250 - (float)(*(float *)&v249.__r_.__value_.__l.0 + 12.0);
}
v239 = v146;
__src = v144;
if ( (char *)v134 != v144 )
{
v228 = v233 - v232;
v238 = (char *)v134;
v242 = (v134 - (__int64)v144) >> 3;
v147 = 0;
v148 = 1;
v244 = 0.64999998;
v39.i32[0] = 0;
do
{
LODWORD(v246) = v39.i32[0];
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)&v144[8 * v148 - 8] + 160LL))(
*(_QWORD *)&v144[8 * v148 - 8],
0.64999998);
(*(void (__fastcall **)(std::string *))(**(_QWORD **)&v144[8 * v148 - 8] + 336LL))(&v249);
v39.i64[0] = (unsigned int)v246;
v149 = 1;
if ( *(float *)&v246 > 0.0 && (float)(*(float *)&v246 + *(float *)&v249.__r_.__value_.__l.0) > v250 )
{
v150 = 0;
v149 = v147 == 0;
if ( v147 )
v150 = (unsigned int)v246;
v147 = 1;
v39.i64[0] = v150;
}
v250 = *((float *)&__dst.__r_.__value_.__l.0 + v147);
v151 = v149 && *(float *)&v249.__r_.__value_.__l.0 <= v250;
if ( v148 >= v242 )
break;
v39.f32[0] = v39.f32[0] + (float)(*(float *)&v249.__r_.__value_.__l.0 + 14.0);
++v148;
}
while ( v151 );
if ( !v151 )
{
*(_DWORD *)&__dst.__r_.__value_.__l.0 = *(_DWORD *)(v145 + 704);
v250 = *(float *)&__dst.__r_.__value_.__l.0;
HIDWORD(__dst.__r_.__value_.__r.__words[0]) = __dst.__r_.__value_.__l.0;
v146 = v239;
v152 = v238;
if ( v239 )
{
v39.i64[0] = 1045220557;
cocos2d::CCLabelBMFont::limitLabelWidth(
(__int64)v239,
150.0,
(__m128)_mm_cvtsi32_si128(0x3EFEF9DBu),
(__m128)0x3E4CCCCDu);
(*(void (__fastcall **)(std::string *, void *))(*(_QWORD *)v146 + 336LL))(&v249, v146);
*((float *)__dst.__r_.__value_.__r.__words + 1) = v250 - (float)(*(float *)&v249.__r_.__value_.__l.0 + 12.0);
}
if ( v152 == v144 )
goto LABEL_380;
v153 = 0;
v154 = 1;
v244 = 0.60000002;
v39.i32[0] = 0;
do
{
LODWORD(v246) = v39.i32[0];
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)&v144[8 * v154 - 8] + 160LL))(
*(_QWORD *)&v144[8 * v154 - 8],
0.60000002);
(*(void (__fastcall **)(std::string *))(**(_QWORD **)&v144[8 * v154 - 8] + 336LL))(&v249);
v39.i64[0] = (unsigned int)v246;
v155 = 1;
if ( *(float *)&v246 > 0.0 && (float)(*(float *)&v246 + *(float *)&v249.__r_.__value_.__l.0) > v250 )
{
v156 = 0;
v155 = v153 == 0;
if ( v153 )
v156 = (unsigned int)v246;
v153 = 1;
v39.i64[0] = v156;
}
v250 = *((float *)&__dst.__r_.__value_.__l.0 + v153);
v157 = v155 && *(float *)&v249.__r_.__value_.__l.0 <= v250;
if ( v154 >= v242 )
break;
v39.f32[0] = v39.f32[0] + (float)(*(float *)&v249.__r_.__value_.__l.0 + 14.0);
++v154;
}
while ( v157 );
if ( !v157 )
{
*(_DWORD *)&__dst.__r_.__value_.__l.0 = *(_DWORD *)(v145 + 704);
v250 = *(float *)&__dst.__r_.__value_.__l.0;
HIDWORD(__dst.__r_.__value_.__r.__words[0]) = __dst.__r_.__value_.__l.0;
v146 = v239;
v158 = v238;
if ( v239 )
{
v39.i64[0] = 1045220557;
cocos2d::CCLabelBMFont::limitLabelWidth(
(__int64)v239,
150.0,
(__m128)_mm_cvtsi32_si128(0x3EE9BA5Eu),
(__m128)0x3E4CCCCDu);
(*(void (__fastcall **)(std::string *, void *))(*(_QWORD *)v146 + 336LL))(&v249, v146);
*((float *)__dst.__r_.__value_.__r.__words + 1) = v250 - (float)(*(float *)&v249.__r_.__value_.__l.0 + 12.0);
}
if ( v158 == v144 )
goto LABEL_380;
v159 = 0;
v160 = 1;
v244 = 0.55000001;
v39.i32[0] = 0;
do
{
LODWORD(v246) = v39.i32[0];
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)&v144[8 * v160 - 8] + 160LL))(
*(_QWORD *)&v144[8 * v160 - 8],
0.55000001);
(*(void (__fastcall **)(std::string *))(**(_QWORD **)&v144[8 * v160 - 8] + 336LL))(&v249);
v39.i64[0] = (unsigned int)v246;
v161 = 1;
if ( *(float *)&v246 > 0.0 && (float)(*(float *)&v246 + *(float *)&v249.__r_.__value_.__l.0) > v250 )
{
v162 = 0;
v161 = v159 == 0;
if ( v159 )
v162 = (unsigned int)v246;
v159 = 1;
v39.i64[0] = v162;
}
v250 = *((float *)&__dst.__r_.__value_.__l.0 + v159);
v163 = v161 && *(float *)&v249.__r_.__value_.__l.0 <= v250;
if ( v160 >= v242 )
break;
v39.f32[0] = v39.f32[0] + (float)(*(float *)&v249.__r_.__value_.__l.0 + 14.0);
++v160;
}
while ( v163 );
if ( !v163 )
{
*(_DWORD *)&__dst.__r_.__value_.__l.0 = *(_DWORD *)(v145 + 704);
v250 = *(float *)&__dst.__r_.__value_.__l.0;
HIDWORD(__dst.__r_.__value_.__r.__words[0]) = __dst.__r_.__value_.__l.0;
v146 = v239;
v164 = v238;
if ( v239 )
{
v39.i64[0] = 1045220557;
cocos2d::CCLabelBMFont::limitLabelWidth(
(__int64)v239,
150.0,
(__m128)_mm_cvtsi32_si128(0x3ED47AE1u),
(__m128)0x3E4CCCCDu);
(*(void (__fastcall **)(std::string *, void *))(*(_QWORD *)v146 + 336LL))(&v249, v146);
*((float *)__dst.__r_.__value_.__r.__words + 1) = v250 - (float)(*(float *)&v249.__r_.__value_.__l.0 + 12.0);
}
if ( v164 == v144 )
goto LABEL_380;
v165 = 0;
v166 = 1;
v244 = 0.5;
v39.i32[0] = 0;
do
{
LODWORD(v246) = v39.i32[0];
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)&v144[8 * v166 - 8] + 160LL))(
*(_QWORD *)&v144[8 * v166 - 8],
0.5);
(*(void (__fastcall **)(std::string *))(**(_QWORD **)&v144[8 * v166 - 8] + 336LL))(&v249);
v39.i64[0] = (unsigned int)v246;
v167 = 1;
if ( *(float *)&v246 > 0.0 && (float)(*(float *)&v246 + *(float *)&v249.__r_.__value_.__l.0) > v250 )
{
v168 = 0;
v167 = v165 == 0;
if ( v165 )
v168 = (unsigned int)v246;
v165 = 1;
v39.i64[0] = v168;
}
v250 = *((float *)&__dst.__r_.__value_.__l.0 + v165);
v169 = v167 && *(float *)&v249.__r_.__value_.__l.0 <= v250;
if ( v166 >= v242 )
break;
v39.f32[0] = v39.f32[0] + (float)(*(float *)&v249.__r_.__value_.__l.0 + 14.0);
++v166;
}
while ( v169 );
if ( !v169 )
{
*(_DWORD *)&__dst.__r_.__value_.__l.0 = *(_DWORD *)(v145 + 704);
v250 = *(float *)&__dst.__r_.__value_.__l.0;
HIDWORD(__dst.__r_.__value_.__r.__words[0]) = __dst.__r_.__value_.__l.0;
v146 = v239;
v219 = v238;
if ( v239 )
{
v39.i64[0] = 1045220557;
cocos2d::CCLabelBMFont::limitLabelWidth(
(__int64)v239,
150.0,
(__m128)_mm_cvtsi32_si128(0x3EBF3B64u),
(__m128)0x3E4CCCCDu);
(*(void (__fastcall **)(std::string *, void *))(*(_QWORD *)v146 + 336LL))(&v249, v146);
*((float *)__dst.__r_.__value_.__r.__words + 1) = v250
- (float)(*(float *)&v249.__r_.__value_.__l.0 + 12.0);
}
if ( v219 == v144 )
goto LABEL_380;
v220 = 0;
v221 = 1;
v244 = 0.44999999;
v222 = 0.0;
do
{
*(float *)&v246 = v222;
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)&v144[8 * v221 - 8] + 160LL))(
*(_QWORD *)&v144[8 * v221 - 8],
0.44999999);
(*(void (__fastcall **)(std::string *))(**(_QWORD **)&v144[8 * v221 - 8] + 336LL))(&v249);
v223 = *(float *)&v246;
v224 = 1;
if ( *(float *)&v246 > 0.0 && (float)(*(float *)&v246 + *(float *)&v249.__r_.__value_.__l.0) > v250 )
{
v225 = 0.0;
v224 = v220 == 0;
if ( v220 )
v225 = *(float *)&v246;
v220 = 1;
v223 = v225;
}
if ( v221 >= v242 )
break;
v39.i64[0] = *((unsigned int *)&__dst.__r_.__value_.__l.0 + v220);
v250 = v39.f32[0];
if ( *(float *)&v249.__r_.__value_.__l.0 > v39.f32[0] )
break;
v222 = v223 + (float)(*(float *)&v249.__r_.__value_.__l.0 + 14.0);
++v221;
}
while ( v224 );
}
}
}
}
v146 = v239;
if ( v238 != v144 )
{
v242 += v242 == 0;
v170 = 0;
v171 = nullptr;
v39.i32[0] = 0;
v241 = 0;
while ( 1 )
{
LODWORD(v246) = v39.i32[0];
v238 = v171;
v173 = *(_QWORD *)&v144[8 * (_QWORD)v171];
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v173 + 160LL))(v173, v244);
(*(void (__fastcall **)(std::string *, __int64))(*(_QWORD *)v173 + 336LL))(&v249, v173);
v174 = *(float *)&v249.__r_.__value_.__l.0;
v39.i64[0] = (unsigned int)v246;
if ( *(float *)&v246 <= 0.0 )
break;
v175 = *((float *)&__dst.__r_.__value_.__l.0 + v241);
if ( (float)(*(float *)&v246 + *(float *)&v249.__r_.__value_.__l.0) <= v175 )
{
v177 = v241;
goto LABEL_364;
}
if ( !v241 )
{
v39.i32[0] = 0;
v177 = 1;
goto LABEL_364;
}
v176 = v175 - v39.f32[0];
v241 = 1;
if ( v176 < 60.0 )
{
v144 = (char *)__src;
v171 = v238 + 1;
v170 += 32;
if ( (char *)v242 == v238 + 1 )
goto LABEL_380;
}
else
{
sub_10099B890(v173, (char *)v230[0] + v170, v176, v244);
(*(void (__fastcall **)(std::string *, __int64))(*(_QWORD *)v173 + 336LL))(&v249, v173);
v174 = *(float *)&v249.__r_.__value_.__l.0;
v177 = 1;
v39.i32[0] = v246;
LABEL_364:
v241 = v177;
v178 = v177;
v179 = *((float *)&__dst.__r_.__value_.__l.0 + v177);
LODWORD(v246) = v39.i32[0];
if ( v174 > v179 )
{
sub_10099B890(v173, (char *)v230[0] + v170, v179, v244);
(*(void (__fastcall **)(std::string *, __int64))(*(_QWORD *)v173 + 336LL))(&v249, v173);
v174 = *(float *)&v249.__r_.__value_.__l.0;
v39.i32[0] = v246;
}
v250 = v174;
sub_100278250((float *)&v249, v228 + v39.f32[0], *((float *)&v252 + v178));
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v173 + 184LL))(v173, &v249);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v145 + 584) + 464LL))(
*(_QWORD *)(v145 + 584),
v173,
1);
v180 = *(char **)(v145 + 1480);
v181 = *(_QWORD *)(v145 + 1488);
v182 = v250;
v226 = v170;
if ( (unsigned __int64)v180 < v181 )
{
*(_QWORD *)v180 = v173;
v172 = (__int64)(v180 + 8);
v144 = (char *)__src;
v39.i64[0] = (unsigned int)v246;
}
else
{
v183 = *(_BYTE **)(v145 + 1472);
v184 = v180 - v183;
v185 = v184 >> 3;
v186 = (v184 >> 3) + 1;
if ( v186 > 0x1FFFFFFFFFFFFFFFLL )
sub_1008C65D0();
v187 = v181 - (_QWORD)v183;
v188 = v187 >> 2;
if ( v187 >> 2 <= v186 )
v188 = (v184 >> 3) + 1;
if ( (unsigned __int64)v187 >= 0x7FFFFFFFFFFFFFF8LL )
v188 = 0x1FFFFFFFFFFFFFFFLL;
if ( v188 )
{
if ( v188 > 0x1FFFFFFFFFFFFFFFLL )
sub_10001ADB0();
v189 = operator new(8 * v188);
}
else
{
v189 = nullptr;
}
v227 = (char *)&v189[v188];
v189[v185] = v173;
v172 = (__int64)&v189[v185 + 1];
memcpy(v189, v183, v184);
v145 = a1;
*(_QWORD *)(a1 + 1472) = v189;
*(_QWORD *)(a1 + 1480) = v172;
*(_QWORD *)(a1 + 1488) = v227;
if ( v183 )
operator delete(v183);
v144 = (char *)__src;
v146 = v239;
v39.i64[0] = (unsigned int)v246;
v182 = v250;
}
*(_QWORD *)(v145 + 1480) = v172;
v39.f32[0] = v39.f32[0] + (float)(v182 + 14.0);
v171 = v238 + 1;
v170 = v226 + 32;
if ( (char *)v242 == v238 + 1 )
goto LABEL_380;
}
}
v177 = v241;
goto LABEL_364;
}
}
LABEL_380:
if ( v146 )
{
v190 = v233 + v232;
*(_QWORD *)&v191 = _mm_cvtsi32_si128(HIDWORD(v252)).u64[0];
sub_100278250((float *)&v249, v233 + v232, *(float *)&v191);
(*(void (__fastcall **)(void *, std::string *, float, double, double))(*(_QWORD *)v146 + 184LL))(
v146,
&v249,
v190,
v191,
*(double *)v39.i64);
(*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(v145 + 584) + 464LL))(
*(_QWORD *)(v145 + 584),
v146,
1);
v192 = *(char **)(v145 + 1480);
v193 = *(_QWORD *)(v145 + 1488);
if ( (unsigned __int64)v192 >= v193 )
{
v195 = *(_BYTE **)(v145 + 1472);
v196 = v192 - v195;
v197 = v196 >> 3;
v198 = (v196 >> 3) + 1;
if ( v198 > 0x1FFFFFFFFFFFFFFFLL )
sub_1008C65D0();
v199 = v193 - (_QWORD)v195;
v200 = v199 >> 2;
if ( v199 >> 2 <= v198 )
v200 = (v196 >> 3) + 1;
if ( (unsigned __int64)v199 >= 0x7FFFFFFFFFFFFFF8LL )
v200 = 0x1FFFFFFFFFFFFFFFLL;
if ( v200 )
{
if ( v200 > 0x1FFFFFFFFFFFFFFFLL )
sub_10001ADB0();
v201 = operator new(8 * v200);
}
else
{
v201 = nullptr;
}
v201[v197] = v239;
v194 = (__int64)&v201[v197 + 1];
memcpy(v201, v195, v196);
*(_QWORD *)(a1 + 1472) = v201;
*(_QWORD *)(a1 + 1480) = v194;
*(_QWORD *)(a1 + 1488) = &v201[v200];
v145 = a1;
if ( v195 )
operator delete(v195);
}
else
{
*(_QWORD *)v192 = v146;
v194 = (__int64)(v192 + 8);
}
*(_QWORD *)(v145 + 1480) = v194;
v144 = (char *)__src;
}
v202 = *(_QWORD *)(v145 + 1384);
v203 = sub_10088E820("Reported %i", *(_DWORD *)(v245 + 116) + (unsigned int)(*(_DWORD *)(v245 + 128) > 0));
v204 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v203);
ButtonSprite::setString(v202, v204);
v205 = *(_QWORD *)(v145 + 1392);
v206 = sub_10088E820("Filter %i", *(_DWORD *)(v245 + 160));
v207 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v206);
ButtonSprite::setString(v205, v207);
v208 = *(_QWORD *)(v145 + 1400);
v209 = sub_10088E820("History %i", *(_DWORD *)(v245 + 164));
v210 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v209);
ButtonSprite::setString(v208, v210);
v211 = *(_QWORD *)(v145 + 1408);
v212 = *(_DWORD *)(v245 + 156);
if ( v212 <= 0 )
{
v214 = "Notes";
}
else
{
v213 = sub_10088E820("Notes %i", v212);
v214 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v213);
}
ButtonSprite::setString(v211, v214);
sub_100995E40(*(float **)(v145 + 1408));
if ( v144 )
operator delete(v144);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
v215 = (void **)v230[0];
if ( v230[0] )
{
v216 = (void **)v230[1];
v217 = v230[0];
if ( v230[1] != v230[0] )
{
do
{
if ( (*(_BYTE *)(v216 - 4) & 1) != 0 )
operator delete(*(v216 - 2));
v216 -= 4;
}
while ( v216 != v215 );
v217 = v230[0];
}
v230[1] = v215;
operator delete(v217);
}
return __stack_chk_guard;
}