//
// sub_1008BF550 from 0x1008bf550 to 0x1008c0c78 (5928 bytes)
//
// 1 xrefs:
// > sub_1008C0CD0 @ 0x1008c0e67
//
// 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:37:29 +0000
//
void __fastcall sub_1008BF550(__int64 a1, __int64 a2, double a3)
{
char *v4; // rax
__int64 v5; // rbx
double v6; // xmm0_8
const char *v7; // rdi
char *v8; // rax
char *v9; // r14
__int64 v10; // rax
__int64 v11; // r14
void *v12; // r13
float v13; // xmm0_4
float v14; // xmm1_4
int v15; // eax
unsigned int v16; // ebx
unsigned int v17; // esi
int v18; // eax
char *v19; // rax
__int64 CString; // rax
__int64 *v21; // r12
char *v22; // rax
__int64 v23; // rax
void *v24; // rbx
__int64 v25; // rax
float *v26; // rax
double v27; // xmm0_8
const char *v28; // rdi
char *v29; // rbx
const char *v30; // rdi
char *v31; // r14
__int64 v32; // rax
__int64 v33; // rax
float v34; // xmm0_4
float v35; // xmm0_4
void *v36; // r14
__int64 v37; // rax
void *v38; // r15
__int64 v39; // rax
__int64 v40; // rax
double v41; // xmm0_8
__int64 v42; // rbx
bool v43; // zf
int v44; // eax
char *v45; // r14
__int64 v46; // rax
float *v47; // rax
__int64 v48; // rax
void *v49; // r15
void *v50; // r12
__int64 v51; // rax
__int64 v52; // rax
double v53; // xmm0_8
const char *v54; // r14
const char *v55; // rdi
char *v56; // r13
double v57; // xmm0_8
const char *v58; // rdi
char *v59; // r13
double v60; // xmm0_8
const char *v61; // rdi
char *v62; // r13
double v63; // xmm0_8
char *v64; // rsi
char *v65; // rbx
char *v66; // rsi
int v67; // esi
int v68; // esi
char *v69; // rax
__int64 v70; // rax
void *v71; // rbx
_QWORD *v72; // rax
void *v73; // r14
int v74; // ebx
const char *v75; // rdi
char *v76; // r15
char *v77; // r14
char v78; // bl
const char *v79; // rsi
unsigned int v80; // r15d
size_t v81; // r14
__int64 v82; // r13
char v83; // r13
char *v84; // r15
size_t v85; // r12
char *v86; // rdi
char *v87; // rax
__int64 v88; // r12
_DWORD *v89; // r14
__int64 v90; // r15
const char *v91; // rsi
char *v92; // rax
const char *v93; // rax
__int64 v94; // rax
__int64 v95; // r15
const char *v96; // rsi
char *v97; // rax
const char *v98; // rax
__int64 v99; // rax
__int64 v100; // r15
const char *v101; // rsi
char *v102; // rax
const char *v103; // rax
__int64 v104; // rax
__int64 v105; // r15
const char *v106; // rsi
char *v107; // rax
const char *v108; // rax
__int64 v109; // rax
__int64 v110; // r15
const char *v111; // rsi
char *v112; // rax
const char *v113; // rax
__int64 v114; // rax
__int64 v115; // r15
const char *v116; // rsi
char *v117; // rax
const char *v118; // rax
__int64 v119; // rax
__int64 v120; // r15
const char *v121; // rsi
char *v122; // rax
const char *v123; // rax
__int64 v124; // rax
__int64 v125; // r15
const char *v126; // rsi
char *v127; // rax
const char *v128; // rax
__int64 v129; // rax
__int64 v130; // r15
const char *v131; // rsi
char *v132; // rax
const char *v133; // rax
__int64 v134; // rax
__int64 v135; // r15
const char *v136; // rsi
char *v137; // rax
const char *v138; // rax
__int64 v139; // rax
__int64 v140; // r15
const char *v141; // rsi
char *v142; // rax
const char *v143; // rax
__int64 v144; // rax
__int64 v145; // r15
const char *v146; // rsi
char *v147; // rax
const char *v148; // rax
__int64 v149; // rax
char *v150; // rax
_DWORD *v151; // rsi
char *v152; // [rsp+0h] [rbp-D0h]
void *v153; // [rsp+8h] [rbp-C8h]
char *v154; // [rsp+10h] [rbp-C0h]
float v155[2]; // [rsp+1Ch] [rbp-B4h] BYREF
float v156; // [rsp+24h] [rbp-ACh]
__int64 v157; // [rsp+28h] [rbp-A8h]
__int128 v158; // [rsp+30h] [rbp-A0h] BYREF
void *__p; // [rsp+40h] [rbp-90h]
float v160; // [rsp+4Ch] [rbp-84h]
__int64 v161; // [rsp+50h] [rbp-80h]
float v162; // [rsp+5Ch] [rbp-74h]
void *v163; // [rsp+60h] [rbp-70h]
__int64 *v164; // [rsp+68h] [rbp-68h]
float v165; // [rsp+74h] [rbp-5Ch]
void *__dst[2]; // [rsp+78h] [rbp-58h] BYREF
void *v167; // [rsp+88h] [rbp-48h]
void *v168; // [rsp+90h] [rbp-40h]
float v169; // [rsp+9Ch] [rbp-34h]
float v170; // [rsp+A0h] [rbp-30h]
float v171; // [rsp+A4h] [rbp-2Ch]
v4 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"deathMarker_bg_001.png", a3);
if ( v4 )
{
v5 = (__int64)v4;
sub_100278250((float *)__dst, 0.5, 0.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v5 + 296LL))(v5, __dst);
sub_100278250((float *)__dst, *(float *)a2, *(float *)(a2 + 4) + -5.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v5 + 184LL))(v5, __dst);
v161 = a2;
*(_QWORD *)&v6 = *(unsigned int *)(a2 + 44);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 160LL))(v5, *(float *)&v6);
v7 = "deathMarker_x_white_001.png";
if ( *(_BYTE *)(a1 + 424) )
v7 = "deathMarker_red_global_001.png";
v8 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v7, v6);
if ( v8 )
{
v9 = v8;
v171 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 328LL))(v5) * 0.5;
v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 328LL))(v5);
sub_100278250((float *)__dst, v171, 0.5 * *(float *)(v10 + 4));
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v9 + 184LL))(v9, __dst);
if ( !*(_BYTE *)(a1 + 424) )
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v9 + 960LL))(v9, a1 + 426);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v5 + 456LL))(v5, v9);
}
cocos2d::CCObject::retain(v5);
v11 = v161;
*(_QWORD *)(v161 + 64) = v5;
if ( *(_BYTE *)(a1 + 424) == 1 )
{
if ( *(int *)(v11 + 52) <= 0 && *(int *)(v11 + 20) <= 0 && *(int *)(v11 + 24) <= 0 )
return;
}
else if ( *(int *)(v11 + 32) < 3 )
{
return;
}
v12 = cocos2d::CCNode::create();
sub_100278250((float *)__dst, 0.5, 0.0);
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v12 + 296LL))(v12, __dst);
v13 = *(float *)(v11 + 40);
v157 = a1;
if ( *(_BYTE *)(a1 + 424) )
v14 = 14.0;
else
v14 = 4.0;
sub_100278250((float *)__dst, v13, v14 + *(float *)(v11 + 36));
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v12 + 184LL))(v12, __dst);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v12 + 160LL))(v12, 0.5);
if ( *(_BYTE *)(v157 + 424) == 1 )
{
v15 = *(_DWORD *)(v11 + 20);
v16 = 0;
v17 = 0;
if ( v15 > 0 )
{
v17 = 1;
if ( (unsigned int)v15 >= 0xF )
v17 = (v15 + 5) / 0xAu;
}
v18 = *(_DWORD *)(v161 + 24);
if ( v18 > 0 )
{
v16 = 1;
if ( (unsigned int)v18 >= 0xF )
v16 = (v18 + 5) / 0xAu;
}
v19 = sub_10088E820("%d%%", v17);
CString = cocos2d::CCString::getCString((__int64)v19);
v21 = (__int64 *)cocos2d::CCLabelBMFont::create_3(CString, (__int64)"bigFont.fnt");
v22 = sub_10088E820("%d%%", v16);
v23 = cocos2d::CCString::getCString((__int64)v22);
v24 = cocos2d::CCLabelBMFont::create_3(v23, (__int64)"bigFont.fnt");
v25 = *v21;
LODWORD(v168) = 1061997773;
(*(void (__fastcall **)(__int64 *))(v25 + 160))(v21);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v24 + 160LL))(v24, 0.80000001);
v169 = *(float *)((*(__int64 (__fastcall **)(__int64 *))(*v21 + 328))(v21) + 4) * 0.80000001;
v171 = *(float *)(*(__int64 (__fastcall **)(__int64 *))(*v21 + 328))(v21) * 0.80000001;
v163 = v24;
v26 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v24 + 328LL))(v24);
*(_QWORD *)&v27 = (unsigned int)v168;
*(float *)&v27 = *(float *)&v168 * *v26;
*(float *)&v168 = *(float *)&v27;
v28 = "death_skullIconGray_001.png";
if ( *(_BYTE *)(v157 + 425) )
v28 = "death_skullIcon_001.png";
v29 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v28, v27);
v30 = "death_wallIconGray_001.png";
if ( *(_BYTE *)(v157 + 425) )
v30 = "death_wallIcon_001.png";
v31 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v30, v27);
v170 = 1.15 * v169;
v32 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v29 + 328LL))(v29);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v29 + 160LL))(v29, v170 / *(float *)(v32 + 4));
v33 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v31 + 328LL))(v31);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v31 + 160LL))(v31, v169 / *(float *)(v33 + 4));
v170 = *(float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v29 + 328LL))(v29);
v34 = (*(float (__fastcall **)(char *))(*(_QWORD *)v29 + 168LL))(v29);
v165 = v34 * v170;
v170 = *(float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v31 + 328LL))(v31);
v154 = v31;
v35 = (*(float (__fastcall **)(char *))(*(_QWORD *)v31 + 168LL))(v31);
v160 = v35 * v170;
v162 = (float)((float)((float)((float)((float)((float)((float)(v165 + 8.0) + 3.0) + v171) + 14.0)
+ (float)(v35 * v170))
+ 3.0)
+ *(float *)&v168)
+ 8.0;
v170 = v169 + 6.0;
sub_100278260((float *)__dst, v162, v169 + 6.0);
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v12 + 320LL))(v12, __dst);
v36 = cocos2d::extension::CCScale9Sprite::create_3((__int64)"square02d_001.png");
*(float *)&v168 = (float)(0.94999999 * v162) * 1.1;
v164 = v21;
v37 = (*(__int64 (__fastcall **)(__int64 *))(*v21 + 328))(v21);
sub_100278260((float *)__dst, *(float *)&v168, (float)(*(float *)(v37 + 4) + 6.0) * 1.1);
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v36 + 320LL))(v36, __dst);
v170 = v170 * 0.5;
v162 = v162 * 0.5;
sub_100278250((float *)__dst, v162, v170);
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v36 + 184LL))(v36, __dst);
(*(void (__fastcall **)(void *, void *))(*(_QWORD *)v36 + 960LL))(v36, &unk_100A13680);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v36 + 72LL))(v36, 91);
v38 = cocos2d::extension::CCScale9Sprite::create_3((__int64)"square02b_001.png");
*(float *)&v168 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v36 + 328LL))(v36) + 4.0;
v39 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v36 + 328LL))(v36);
sub_100278260((float *)__dst, *(float *)&v168, *(float *)(v39 + 4) + 4.0);
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v38 + 320LL))(v38, __dst);
v40 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v36 + 192LL))(v36);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v38 + 184LL))(v38, v40);
(*(void (__fastcall **)(void *, void *, _QWORD))(*(_QWORD *)v12 + 464LL))(v12, v38, 0);
v153 = v36;
(*(void (__fastcall **)(void *, void *, __int64))(*(_QWORD *)v12 + 464LL))(v12, v36, 1);
sub_100278250((float *)__dst, 0.0, 0.5);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v29 + 296LL))(v29, __dst);
sub_100278250((float *)__dst, 7.5, v170 + 0.5);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v29 + 184LL))(v29, __dst);
v152 = v29;
(*(void (__fastcall **)(void *, char *, __int64))(*(_QWORD *)v12 + 464LL))(v12, v29, 2);
*(float *)&v168 = (float)(v165 + 3.0) + 8.0;
sub_100278250((float *)__dst, 0.0, 0.5);
(*(void (__fastcall **)(__int64 *, void **))(*v164 + 296))(v164, __dst);
v156 = v170 + 0.75;
sub_100278250((float *)__dst, *(float *)&v168, v170 + 0.75);
(*(void (__fastcall **)(__int64 *, void **))(*v164 + 184))(v164, __dst);
(*(void (__fastcall **)(void *, __int64 *, __int64))(*(_QWORD *)v12 + 464LL))(v12, v21, 2);
v171 = (float)(v171 + 14.0) + *(float *)&v168;
sub_100278250((float *)__dst, 0.0, 0.5);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v154 + 296LL))(v154, __dst);
*(float *)&v164 = v171 + -2.5;
sub_100278250((float *)__dst, v171 + -2.5, v170);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v154 + 184LL))(v154, __dst);
(*(void (__fastcall **)(void *, char *, __int64))(*(_QWORD *)v12 + 464LL))(v12, v154, 2);
v171 = (float)(v160 + 3.0) + v171;
sub_100278250((float *)__dst, 0.0, 0.5);
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v163 + 296LL))(v163, __dst);
*(_QWORD *)&v41 = LODWORD(v171);
sub_100278250((float *)__dst, v171, v156);
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v163 + 184LL))(v163, __dst);
(*(void (__fastcall **)(void *, void *, __int64))(*(_QWORD *)v12 + 464LL))(v12, v163, 2);
v42 = v161;
v43 = *(_QWORD *)(v161 + 56) == 0;
v44 = *(_DWORD *)(v161 + 56) | *(_DWORD *)(v161 + 60);
v168 = v12;
if ( !v43 )
{
v165 = (float)(v165 * 0.5) + 7.5;
v160 = (float)(v160 * 0.5) + *(float *)&v164;
HIDWORD(v41) = 0;
*(float *)&v41 = v170 + -4.0;
*(float *)&v163 = v170 + -4.0;
LOBYTE(v44) = 1;
do
{
LODWORD(v164) = v44;
v74 = *(_DWORD *)(v42 + 4LL * ((v44 & 1) == 0) + 56);
if ( v74 )
{
*(_QWORD *)&v41 = LODWORD(v165);
v171 = v165;
if ( ((unsigned __int8)v164 & 1) == 0 )
{
*(_QWORD *)&v41 = LODWORD(v160);
v171 = v160;
}
if ( v74 > 0 )
{
v75 = "death_wallIcon_glow_001.png";
if ( ((unsigned __int8)v164 & 1) != 0 )
v75 = "death_skullIcon_glow_001.png";
v76 = v154;
if ( ((unsigned __int8)v164 & 1) != 0 )
v76 = v152;
v77 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v75, v41);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v77 + 1080LL))(v77, 0x100000302LL);
BYTE2(__dst[0]) = ((unsigned int)*(unsigned __int8 *)(v157 + 425) - 1) >> 16;
LOWORD(__dst[0]) = -1;
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v77 + 960LL))(v77, __dst);
(*(void (__fastcall **)(char *))(*(_QWORD *)v76 + 168LL))(v76);
(*(void (__fastcall **)(char *))(*(_QWORD *)v77 + 160LL))(v77);
*(_QWORD *)&v41 = LODWORD(v171);
sub_100278250((float *)__dst, v171, v170);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v77 + 184LL))(v77, __dst);
(*(void (__fastcall **)(void *, char *, __int64))(*(_QWORD *)v12 + 464LL))(v12, v77, 3);
if ( v74 != 1 )
{
v78 = 1;
do
{
v79 = "playerDash2_outline_";
if ( (v78 & 1) != 0 )
v79 = "playerDash2_";
v80 = 8 * ((v78 & 1) == 0);
v81 = v80 + 12LL;
LOBYTE(__dst[0]) = 2 * (8 * ((v78 & 1) == 0) + 12);
memcpy((char *)__dst + 1, v79, v81);
v82 = v80 + 19LL;
BYTE5(__dst[v80 / 8 + 1]) = 0;
if ( (v78 & 1) != 0 )
{
v41 = 0.0;
v158 = 0;
__p = nullptr;
v83 = 2 * (v80 + 19);
LOBYTE(v158) = v83;
v84 = nullptr;
}
else
{
v85 = (v82 | 7) + 1;
if ( (v82 | 7) == 0x17 )
v85 = 26;
v84 = (char *)operator new(v85);
*(_QWORD *)&v158 = v85 | 1;
__p = v84;
*((_QWORD *)&v158 + 1) = v82;
v83 = v85 | 1;
}
if ( (v83 & 1) == 0 )
v84 = (char *)&v158 + 1;
memcpy(v84, (char *)__dst + 1, v81);
strcpy(&v84[v81], "001.png");
v86 = (char *)&v158 + 1;
if ( (v158 & 1) != 0 )
v86 = (char *)__p;
v87 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v86, v41);
v12 = v168;
v88 = (__int64)v87;
if ( (v158 & 1) != 0 )
operator delete(__p);
v89 = cocos2d::CCAnimation::create_1();
v90 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v91 = (char *)__dst + 1;
if ( ((__int64)__dst[0] & 1) != 0 )
v91 = (const char *)v167;
v92 = sub_10088E820("%s%03d.png", v91, 1);
v93 = (const char *)cocos2d::CCString::getCString((__int64)v92);
v94 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v90, v93);
cocos2d::CCAnimation::addSpriteFrame((__int64)v89, v94);
v95 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v96 = (char *)__dst + 1;
if ( ((__int64)__dst[0] & 1) != 0 )
v96 = (const char *)v167;
v97 = sub_10088E820("%s%03d.png", v96, 2);
v98 = (const char *)cocos2d::CCString::getCString((__int64)v97);
v99 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v95, v98);
cocos2d::CCAnimation::addSpriteFrame((__int64)v89, v99);
v100 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v101 = (char *)__dst + 1;
if ( ((__int64)__dst[0] & 1) != 0 )
v101 = (const char *)v167;
v102 = sub_10088E820("%s%03d.png", v101, 3);
v103 = (const char *)cocos2d::CCString::getCString((__int64)v102);
v104 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v100, v103);
cocos2d::CCAnimation::addSpriteFrame((__int64)v89, v104);
v105 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v106 = (char *)__dst + 1;
if ( ((__int64)__dst[0] & 1) != 0 )
v106 = (const char *)v167;
v107 = sub_10088E820("%s%03d.png", v106, 4);
v108 = (const char *)cocos2d::CCString::getCString((__int64)v107);
v109 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v105, v108);
cocos2d::CCAnimation::addSpriteFrame((__int64)v89, v109);
v110 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v111 = (char *)__dst + 1;
if ( ((__int64)__dst[0] & 1) != 0 )
v111 = (const char *)v167;
v112 = sub_10088E820("%s%03d.png", v111, 5);
v113 = (const char *)cocos2d::CCString::getCString((__int64)v112);
v114 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v110, v113);
cocos2d::CCAnimation::addSpriteFrame((__int64)v89, v114);
v115 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v116 = (char *)__dst + 1;
if ( ((__int64)__dst[0] & 1) != 0 )
v116 = (const char *)v167;
v117 = sub_10088E820("%s%03d.png", v116, 6);
v118 = (const char *)cocos2d::CCString::getCString((__int64)v117);
v119 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v115, v118);
cocos2d::CCAnimation::addSpriteFrame((__int64)v89, v119);
v120 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v121 = (char *)__dst + 1;
if ( ((__int64)__dst[0] & 1) != 0 )
v121 = (const char *)v167;
v122 = sub_10088E820("%s%03d.png", v121, 7);
v123 = (const char *)cocos2d::CCString::getCString((__int64)v122);
v124 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v120, v123);
cocos2d::CCAnimation::addSpriteFrame((__int64)v89, v124);
v125 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v126 = (char *)__dst + 1;
if ( ((__int64)__dst[0] & 1) != 0 )
v126 = (const char *)v167;
v127 = sub_10088E820("%s%03d.png", v126, 8);
v128 = (const char *)cocos2d::CCString::getCString((__int64)v127);
v129 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v125, v128);
cocos2d::CCAnimation::addSpriteFrame((__int64)v89, v129);
v130 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v131 = (char *)__dst + 1;
if ( ((__int64)__dst[0] & 1) != 0 )
v131 = (const char *)v167;
v132 = sub_10088E820("%s%03d.png", v131, 9);
v133 = (const char *)cocos2d::CCString::getCString((__int64)v132);
v134 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v130, v133);
cocos2d::CCAnimation::addSpriteFrame((__int64)v89, v134);
v135 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v136 = (char *)__dst + 1;
if ( ((__int64)__dst[0] & 1) != 0 )
v136 = (const char *)v167;
v137 = sub_10088E820("%s%03d.png", v136, 10);
v138 = (const char *)cocos2d::CCString::getCString((__int64)v137);
v139 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v135, v138);
cocos2d::CCAnimation::addSpriteFrame((__int64)v89, v139);
v140 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v141 = (char *)__dst + 1;
if ( ((__int64)__dst[0] & 1) != 0 )
v141 = (const char *)v167;
v142 = sub_10088E820("%s%03d.png", v141, 11);
v143 = (const char *)cocos2d::CCString::getCString((__int64)v142);
v144 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v140, v143);
cocos2d::CCAnimation::addSpriteFrame((__int64)v89, v144);
v145 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v146 = (char *)__dst + 1;
if ( ((__int64)__dst[0] & 1) != 0 )
v146 = (const char *)v167;
v147 = sub_10088E820("%s%03d.png", v146, 12);
v148 = (const char *)cocos2d::CCString::getCString((__int64)v147);
v149 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v145, v148);
cocos2d::CCAnimation::addSpriteFrame((__int64)v89, v149);
v89[15] = 1032805417;
v150 = cocos2d::CCAnimate::create((__int64)v89);
v151 = cocos2d::CCRepeatForever::create((__int64)v150);
cocos2d::CCNode::runAction(v88, (__int64)v151);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v88 + 360LL))(v88, 90.0);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v88 + 128LL))(v88, 0.46000001);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v88 + 144LL))(v88, 0.80000001);
*(_QWORD *)&v41 = LODWORD(v171);
sub_100278250((float *)&v158, v171, *(float *)&v163);
(*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v88 + 184LL))(v88, &v158);
if ( (v78 & 1) != 0 )
{
BYTE2(v158) = 0;
LOWORD(v158) = 16639;
}
else
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v88 + 1080LL))(v88, 0x100000302LL);
BYTE2(v158) = 0;
LOWORD(v158) = -23041;
}
(*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v88 + 960LL))(v88, &v158);
(*(void (__fastcall **)(void *, __int64, __int64))(*(_QWORD *)v12 + 464LL))(v12, v88, 1);
if ( ((__int64)__dst[0] & 1) != 0 )
operator delete(v167);
v43 = (v78 & 1) == 0;
v78 = 0;
}
while ( !v43 );
}
}
}
v44 = 0;
v42 = v161;
}
while ( ((unsigned __int8)v164 & 1) != 0 );
}
if ( *(int *)(v42 + 52) > 0 )
{
v45 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_starsIcon_001.png", v41);
v169 = (float)(v169 * 0.60000002) * 1.1;
v46 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v45 + 328LL))(v45);
*(float *)&v164 = v169 / *(float *)(v46 + 4);
v47 = (float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v45 + 328LL))(v45);
v171 = *v47 * *(float *)&v164;
*(float *)&v163 = 5.0 * v171;
v165 = (float)((float)((float)((float)((float)(5.0 * v171) + 11.0) + 17.6) * 1.05) * 1.2) * 0.89999998;
v169 = v169 + 13.200001;
v48 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v153 + 328LL))(v153);
v170 = v170 + (float)(*(float *)(v48 + 4) * 0.5);
v49 = cocos2d::extension::CCScale9Sprite::create_3((__int64)"square04_001.png");
sub_100278260((float *)__dst, v165 + v165, (float)(v169 + v169) + (float)(v169 + v169));
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v49 + 320LL))(v49, __dst);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v49 + 160LL))(v49, 0.5);
BYTE2(__dst[0]) = 0;
LOWORD(__dst[0]) = 0;
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v49 + 960LL))(v49, __dst);
sub_100278250((float *)__dst, v162, (float)(v170 + -6.0) + -2.0);
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v49 + 184LL))(v49, __dst);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v49 + 72LL))(v49, 92);
v50 = cocos2d::extension::CCScale9Sprite::create_3((__int64)"square04_001.png");
v165 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v49 + 328LL))(v49) + 8.0;
v51 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v49 + 328LL))(v49);
sub_100278260((float *)__dst, v165, *(float *)(v51 + 4) + 8.0);
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v50 + 320LL))(v50, __dst);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v50 + 160LL))(v50, 0.5);
v52 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v49 + 192LL))(v49);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v50 + 184LL))(v50, v52);
(*(void (__fastcall **)(void *, void *, _QWORD))(*(_QWORD *)v168 + 464LL))(v168, v50, 0);
(*(void (__fastcall **)(void *, void *, _QWORD))(*(_QWORD *)v168 + 464LL))(v168, v49, 0);
v169 = (float)((float)((float)(v169 + -6.0) * 0.5) + v170) + -3.0;
*(float *)&v163 = (float)((float)(*(float *)&v163 + 17.6) * -0.5) + v162;
v171 = v171 + 4.4000001;
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v45 + 160LL))(v45, *(float *)&v164);
sub_100278250((float *)__dst, 0.0, 0.5);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v45 + 296LL))(v45, __dst);
*(_QWORD *)&v53 = LODWORD(v171);
*(float *)&v53 = (float)(v171 * 0.0) + *(float *)&v163;
sub_100278250((float *)__dst, *(float *)&v53, v169);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v45 + 184LL))(v45, __dst);
(*(void (__fastcall **)(void *, char *, _QWORD))(*(_QWORD *)v168 + 464LL))(v168, v45, 0);
v54 = "GJ_starsIcon_gray_001.png";
v55 = "GJ_starsIcon_gray_001.png";
if ( *(int *)(v161 + 52) >= 2 )
v55 = "GJ_starsIcon_001.png";
v56 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v55, v53);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v56 + 160LL))(v56, *(float *)&v164);
sub_100278250((float *)__dst, 0.0, 0.5);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v56 + 296LL))(v56, __dst);
*(_QWORD *)&v57 = LODWORD(v171);
*(float *)&v57 = v171 + *(float *)&v163;
sub_100278250((float *)__dst, v171 + *(float *)&v163, v169);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v56 + 184LL))(v56, __dst);
(*(void (__fastcall **)(void *, char *, _QWORD))(*(_QWORD *)v168 + 464LL))(v168, v56, 0);
v58 = "GJ_starsIcon_gray_001.png";
if ( *(int *)(v161 + 52) >= 3 )
v58 = "GJ_starsIcon_001.png";
v59 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v58, v57);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v59 + 160LL))(v59, *(float *)&v164);
sub_100278250((float *)__dst, 0.0, 0.5);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v59 + 296LL))(v59, __dst);
*(_QWORD *)&v60 = LODWORD(v171);
*(float *)&v60 = (float)(*(float *)&v60 + *(float *)&v60) + *(float *)&v163;
sub_100278250((float *)__dst, *(float *)&v60, v169);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v59 + 184LL))(v59, __dst);
(*(void (__fastcall **)(void *, char *, _QWORD))(*(_QWORD *)v168 + 464LL))(v168, v59, 0);
v61 = "GJ_starsIcon_gray_001.png";
if ( *(int *)(v161 + 52) >= 4 )
v61 = "GJ_starsIcon_001.png";
v62 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v61, v60);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v62 + 160LL))(v62, *(float *)&v164);
sub_100278250((float *)__dst, 0.0, 0.5);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v62 + 296LL))(v62, __dst);
HIDWORD(v63) = 0;
*(float *)&v63 = (float)(3.0 * v171) + *(float *)&v163;
sub_100278250((float *)__dst, *(float *)&v63, v169);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v62 + 184LL))(v62, __dst);
v64 = v62;
v12 = v168;
(*(void (__fastcall **)(void *, char *, _QWORD))(*(_QWORD *)v168 + 464LL))(v168, v64, 0);
if ( *(int *)(v161 + 52) >= 5 )
v54 = "GJ_starsIcon_001.png";
v65 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v54, v63);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v65 + 160LL))(v65, *(float *)&v164);
sub_100278250((float *)__dst, 0.0, 0.5);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v65 + 296LL))(v65, __dst);
sub_100278250((float *)__dst, (float)(v171 * 4.0) + *(float *)&v163, v169);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v65 + 184LL))(v65, __dst);
v66 = v65;
v42 = v161;
(*(void (__fastcall **)(void *, char *, _QWORD))(*(_QWORD *)v12 + 464LL))(v12, v66, 0);
}
}
else
{
if ( *(_BYTE *)(v157 + 448) == 1
&& *(_DWORD *)(v157 + 440) == -858993459
* (unsigned int)((unsigned __int64)(v11 - *(_QWORD *)(v157 + 320)) >> 4)
&& (v67 = *(_DWORD *)(v11 + 32), v67 >= 2) )
{
v68 = v67 - 1;
}
else
{
v68 = *(_DWORD *)(v11 + 32);
}
v69 = sub_10088E820("%d", v68);
v70 = cocos2d::CCString::getCString((__int64)v69);
v71 = cocos2d::CCLabelBMFont::create_3(v70, (__int64)"bigFont.fnt");
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v71 + 72LL))(v71, 93);
BYTE2(__dst[0]) = -1;
LOWORD(__dst[0]) = -1;
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v71 + 1072LL))(v71, __dst);
v72 = (_QWORD *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v71 + 328LL))(v71);
sub_100278630(__dst, v72);
sub_100278260((float *)&v158, *(float *)__dst + 14.0, *((float *)__dst + 1) + 6.0);
(*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v12 + 320LL))(v12, &v158);
v73 = cocos2d::extension::CCScale9Sprite::create_3((__int64)"square02d_001.png");
sub_100278260(v155, *(float *)&v158 * 1.1, 1.1 * *((float *)&v158 + 1));
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v73 + 320LL))(v73, v155);
sub_100278250(v155, *(float *)&v158 * 0.5, (float)(*((float *)&v158 + 1) * 0.5) + -2.0);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v73 + 184LL))(v73, v155);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v73 + 960LL))(v73, v157 + 426);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v73 + 72LL))(v73, 91);
(*(void (__fastcall **)(void *, void *, _QWORD))(*(_QWORD *)v12 + 464LL))(v12, v73, 0);
sub_100278250(v155, 0.5, 0.5);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v71 + 296LL))(v71, v155);
sub_100278250(v155, *(float *)&v158 * 0.5, 0.5 * *((float *)&v158 + 1));
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v71 + 184LL))(v71, v155);
(*(void (__fastcall **)(void *, void *, __int64))(*(_QWORD *)v12 + 464LL))(v12, v71, 1);
v42 = v161;
}
cocos2d::CCObject::retain((__int64)v12);
*(_QWORD *)(v42 + 72) = v12;
}
}