//
// EnhancedGameObject::updateSyncedAnimation from 0x1402a50b0 to 0x1402a6cc2 (7186 bytes)
//
// 41 xrefs:
// > SpecialAnimGameObject::updateSyncedAnimation @ 0x1402a6cdf
// > ??> @ 0x14075ef58
// > ??> @ 0x1408202d8
// > ??> @ 0x140820a30
// > ??> @ 0x1408210e8
// > ??> @ 0x140821f08
// > ??> @ 0x1408225e8
// > ??> @ 0x140822ca0
// > ??> @ 0x1408235b0
// > ??> @ 0x140823cf8
// > ??> @ 0x140824ba8
// > ??> @ 0x140825260
// > ??> @ 0x140825918
// > ??> @ 0x140826188
// > ??> @ 0x140826980
// > ??> @ 0x140827128
// > ??> @ 0x140827858
// > ??> @ 0x140827f10
// > ??> @ 0x140828668
// > ??> @ 0x140828eb0
// > ??> @ 0x140829568
// > ??> @ 0x140829ce8
// > ??> @ 0x14082a468
// > ??> @ 0x14082ab20
// > ??> @ 0x14082b1d8
// > ??> @ 0x14082bbe8
// > ??> @ 0x14082c318
// > ??> @ 0x14082c9d0
// > ??> @ 0x14082d088
// > ??> @ 0x14082d740
// > ??> @ 0x14082df10
// > ??> @ 0x14082e6b8
// > ??> @ 0x14082ed70
// > ??> @ 0x14082f428
// > ??> @ 0x14082fae0
// > ??> @ 0x140830198
// > ??> @ 0x140830850
// > ??> @ 0x140830f08
// > ??> @ 0x140831728
// > ??> @ 0x140831ea8
// > ??> @ 0x14091daa4
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:29:18 +0000
//
// Hidden C++ exception states: #wind=25
int __fastcall EnhancedGameObject::updateSyncedAnimation(__int64 *a1, float a2, int a3)
{
_UNKNOWN **v3; // rax
char v6; // di
bool v7; // r15
float v8; // xmm8_4
char v9; // bl
float v10; // xmm3_4
float v11; // xmm2_4
char v12; // r12
int v13; // r14d
int v14; // eax
int v15; // ecx
int v16; // edx
unsigned int v17; // r14d
__int64 v18; // rcx
int v19; // edi
__int64 v20; // rcx
__int64 v21; // rcx
__int64 v22; // rdx
__int64 v23; // rcx
const char *v24; // rdi
__int64 v25; // rbx
cocos2d::CCSpriteFrameCache *v26; // rax
struct cocos2d::CCSpriteFrame *v27; // rax
__int64 v28; // rax
void (__fastcall *v29)(__int64); // rdx
__int64 v30; // rdx
__int64 v31; // rdx
const char *v32; // r14
_QWORD *v33; // rcx
__int64 v34; // rdi
_QWORD *v35; // rbx
cocos2d::CCSpriteFrameCache *v36; // rax
struct cocos2d::CCSpriteFrame *v37; // rax
const char *v38; // r15
_QWORD *v39; // rax
__int64 v40; // rdx
_QWORD *v41; // rdi
__int64 v42; // rbx
cocos2d::CCSpriteFrameCache *v43; // rax
struct cocos2d::CCSpriteFrame *v44; // rax
__int64 v45; // rdx
const char *v46; // r15
__int64 v47; // rbx
cocos2d::CCSpriteFrameCache *v48; // rax
struct cocos2d::CCSpriteFrame *v49; // rax
__int64 v50; // rcx
cocos2d::CCSprite *v51; // rdi
bool v52; // r12
__int64 v53; // rdx
__int64 v54; // rcx
const char *v55; // r14
__int64 v56; // rbx
cocos2d::CCSpriteFrameCache *v57; // rax
struct cocos2d::CCSpriteFrame *v58; // rax
__int64 v59; // rcx
const char *v60; // rdi
_QWORD *v61; // rax
__int64 v62; // rdx
__int64 v63; // rcx
_QWORD *v64; // r15
__int64 v65; // rbx
cocos2d::CCSpriteFrameCache *v66; // rax
struct cocos2d::CCSpriteFrame *v67; // rax
__int64 v68; // rax
__int64 *v69; // rdi
__int64 v70; // rcx
const char *v71; // r15
__int64 v72; // rdi
__int64 v73; // rbx
cocos2d::CCSpriteFrameCache *v74; // rax
struct cocos2d::CCSpriteFrame *v75; // rax
__int64 v76; // rdi
__int64 v77; // rbx
__int64 v78; // rax
__int64 *v79; // rax
__int64 v80; // rdx
__int64 v81; // rcx
__int64 *v82; // r15
unsigned int v83; // r14d
unsigned int v84; // r14d
unsigned int v85; // r14d
const char *v86; // rdi
__int64 v87; // rbx
cocos2d::CCSpriteFrameCache *v88; // rax
struct cocos2d::CCSpriteFrame *v89; // rax
const struct cocos2d::CCSize *v90; // rax
__int64 v91; // rbx
__int64 v92; // rax
float v93; // xmm7_4
int v94; // r12d
int v95; // r15d
__int64 v96; // rcx
unsigned int v97; // edi
__int64 v98; // rdx
__int64 v99; // rdx
__int64 v100; // rcx
const char *v101; // r14
__int64 v102; // rbx
cocos2d::CCSpriteFrameCache *v103; // rax
struct cocos2d::CCSpriteFrame *v104; // rax
int v105; // eax
__int64 v106; // rax
__int64 v107; // rdx
__int64 v108; // rcx
__int64 **v109; // r14
__int64 v110; // rdx
const char *v111; // r15
__int64 v112; // rdi
__int64 v113; // rbx
cocos2d::CCSpriteFrameCache *v114; // rax
struct cocos2d::CCSpriteFrame *v115; // rax
const struct cocos2d::CCSize *v116; // rax
__int64 v117; // rdi
__int64 *v118; // rbx
__int64 v119; // rax
__int64 v120; // rdx
__int64 v121; // rcx
const char *v122; // rdi
__int64 v123; // rbx
cocos2d::CCSpriteFrameCache *v124; // rax
struct cocos2d::CCSpriteFrame *v125; // rax
__int64 v126; // rcx
__int64 v127; // rcx
struct cocos2d::CCObject *v128; // rdi
__int64 v129; // rdx
__int64 v130; // rcx
__int64 v131; // r14
__int64 v132; // rbx
cocos2d::CCSpriteFrameCache *v133; // rax
const char *v134; // rdx
struct cocos2d::CCSpriteFrame *v135; // rax
__int64 v136; // rcx
float v137; // xmm0_4
__int64 v138; // rdx
const char *v139; // rdi
__int64 v140; // rbx
cocos2d::CCSpriteFrameCache *v141; // rax
struct cocos2d::CCSpriteFrame *v142; // rax
float v143; // xmm1_4
float v144; // xmm0_4
int v145; // ebx
int v146; // ecx
int v147; // r9d
int v148; // r15d
__int64 v149; // rdi
unsigned int *v150; // rdi
__int64 v151; // rax
_QWORD *v152; // rdi
_QWORD *i; // r14
_QWORD *v154; // rbx
const char *v155; // rdi
__int64 v156; // rbx
cocos2d::CCSpriteFrameCache *v157; // rax
struct cocos2d::CCSpriteFrame *v158; // rax
const char *v159; // rdi
_QWORD *v160; // rax
__int64 v161; // rcx
_QWORD *v162; // r12
__int64 v163; // rbx
cocos2d::CCSpriteFrameCache *v164; // rax
struct cocos2d::CCSpriteFrame *v165; // rax
__int64 **v166; // r12
const char *v167; // r14
const char *v168; // rdx
__int64 v169; // rdi
__int64 *v170; // rbx
cocos2d::CCSpriteFrameCache *v171; // rax
struct cocos2d::CCSpriteFrame *v172; // rax
const char *v173; // rdi
const char *v174; // r12
_QWORD *v175; // rax
__int64 v176; // rdx
__int64 v177; // rcx
_QWORD *v178; // r14
__int64 v179; // rbx
cocos2d::CCSpriteFrameCache *v180; // rax
struct cocos2d::CCSpriteFrame *v181; // rax
const char *v182; // r14
const char *v183; // rdi
const char *v184; // r12
__int64 v185; // rbx
cocos2d::CCSpriteFrameCache *v186; // rax
struct cocos2d::CCSpriteFrame *v187; // rax
_QWORD *v188; // rax
_QWORD *v189; // r14
__int64 v190; // rbx
cocos2d::CCSpriteFrameCache *v191; // rax
struct cocos2d::CCSpriteFrame *v192; // rax
struct cocos2d::CCObject *v193; // rax
__int64 v194; // rcx
cocos2d::CCSprite *v195; // rdi
bool v196; // r13
const char *v197; // r15
__int64 v198; // rbx
cocos2d::CCSpriteFrameCache *v199; // rax
struct cocos2d::CCSpriteFrame *v200; // rax
__int64 v201; // rcx
__int64 v202; // rcx
cocos2d::CCSprite *v203; // rdi
const char *v204; // r14
__int64 v205; // rbx
cocos2d::CCSpriteFrameCache *v206; // rax
struct cocos2d::CCSpriteFrame *v207; // rax
float v208; // xmm1_4
float v209; // xmm0_4
float v210; // xmm2_4
__int64 v211; // rcx
int v212; // r13d
int v213; // r14d
int v214; // ebx
__int64 v215; // rcx
const char *v216; // rdi
__int64 v217; // r14
cocos2d::CCArray *v218; // rax
struct cocos2d::CCObject *v219; // r15
__int64 v220; // rbx
cocos2d::CCSpriteFrameCache *v221; // rax
struct cocos2d::CCSpriteFrame *v222; // rax
__int64 v223; // rbx
cocos2d::CCSpriteFrameCache *v224; // rax
struct cocos2d::CCSpriteFrame *v225; // rax
__int64 v226; // rdx
__int64 v227; // rcx
const char *v228; // rdi
__int64 v229; // rbx
cocos2d::CCSpriteFrameCache *v230; // rax
struct cocos2d::CCSpriteFrame *v231; // rax
cocos2d::CCArray *v232; // rax
int v234; // [rsp+28h] [rbp-59h]
float v235[2]; // [rsp+30h] [rbp-51h] BYREF
const char *v236; // [rsp+38h] [rbp-49h] BYREF
__int128 v237; // [rsp+40h] [rbp-41h] BYREF
_UNKNOWN *retaddr; // [rsp+E0h] [rbp+5Fh] BYREF
char v239; // [rsp+E8h] [rbp+67h]
unsigned int v240; // [rsp+100h] [rbp+7Fh]
v3 = &retaddr;
v6 = *((_BYTE *)a1 + 1433);
if ( v6 )
{
if ( !*((_BYTE *)a1 + 1441) )
return (int)v3;
if ( *((float *)a1 + 342) == 0.0 )
*((float *)a1 + 342) = -a2;
}
v7 = *((_BYTE *)a1 + 1432) && *((float *)a1 + 357) < 0.0;
v8 = a2 + *((float *)a1 + 342);
v9 = 0;
if ( *((_BYTE *)a1 + 1392) )
{
v10 = *((float *)a1 + 345);
v8 = v8 + v10;
v11 = *((float *)a1 + 343);
if ( v11 > 0.0 )
{
if ( (float)(v8 - (float)(v11 + *((float *)a1 + 344))) >= 0.0 )
{
*((float *)a1 + 345) = v10 - v11;
v8 = v8 - v11;
*((_DWORD *)a1 + 343) = 0;
}
else
{
v9 = 1;
}
}
goto LABEL_13;
}
if ( v6 )
{
LABEL_13:
v12 = 1;
v13 = *((__int16 *)a1 + 700) + 1;
goto LABEL_14;
}
v12 = 0;
v13 = *((__int16 *)a1 + 700);
LABEL_14:
v234 = v13;
v14 = (int)fmaxf(0.0, floorf(v8 / *((float *)a1 + 349)));
v15 = *((_DWORD *)a1 + 359);
if ( v15 > 0 )
{
if ( *((_BYTE *)a1 + 1440) )
{
v14 += v15;
}
else if ( !v6 )
{
v14 = v15 - 1;
}
}
v16 = v14 % v13;
LODWORD(v3) = v14 / v13;
v17 = v16 + 1;
if ( v7 )
{
LODWORD(v3) = v234 - v17;
v17 = v234 - v16;
}
if ( a3 > 0 )
v17 = a3;
v240 = v17;
if ( v17 != *((_DWORD *)a1 + 362) && !v9 || *((_BYTE *)a1 + 1394) )
{
if ( *((_BYTE *)a1 + 652)
|| *((_BYTE *)a1 + 329)
|| (v18 = a1[112]) != 0
&& (LODWORD(v3) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(v18 + 320) + 32LL))(v18 + 320), (_BYTE)v3)
|| *((_BYTE *)a1 + 774)
|| *((int *)a1 + 362) <= 0 )
{
v239 = 0;
if ( v12 && v17 == *((__int16 *)a1 + 700) + 1 )
{
v17 = *((__int16 *)a1 + 700);
v239 = 1;
}
v19 = *((_DWORD *)a1 + 259);
v20 = (unsigned int)v19;
if ( v19 <= 2020 )
{
if ( v19 != 2020 )
{
if ( v19 <= 1591 )
{
if ( v19 != 1591 )
{
if ( v19 > 1050 )
{
if ( v19 != 1051 && v19 != 1052 )
{
v21 = (unsigned int)(v19 - 1329);
if ( v19 != 1329 )
{
v20 = (unsigned int)(v19 - 1516);
if ( v19 == 1516 || v19 == 1518 )
{
if ( !qword_14090BFD0 )
{
v236 = (const char *)operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v236);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v38 = (const char *)sub_1402AC8D0(v20, *((unsigned int *)a1 + 259), v17);
if ( v38 )
{
v39 = (_QWORD *)(*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 472))(a1, 1);
v41 = v39;
if ( v39 )
{
v42 = *v39;
v43 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(
v23,
v40);
v44 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v43, v38);
(*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSpriteFrame *))(v42 + 1008))(v41, v44);
}
}
if ( !a1[112] )
goto LABEL_59;
if ( qword_14090BFD0 )
goto LABEL_56;
v236 = (const char *)operator new(0x6E8u);
v28 = GameManager::GameManager((__int64)v236);
goto LABEL_55;
}
goto LABEL_48;
}
goto LABEL_76;
}
}
else if ( v19 != 1050 )
{
v21 = (unsigned int)(v19 - 142);
if ( v19 != 142 )
{
v20 = (unsigned int)(v19 - 920);
if ( v19 != 920 )
{
v20 = (unsigned int)(v19 - 921);
if ( v19 != 921 )
{
v20 = (unsigned int)(v19 - 923);
if ( (unsigned int)v20 >= 2 )
{
LABEL_48:
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v24 = (const char *)sub_1402AC8D0(v20, *((unsigned int *)a1 + 259), v17);
if ( v24 )
{
v25 = *a1;
v26 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(
v23,
v22);
v27 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v26, v24);
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v25 + 1008))(a1, v27);
}
if ( !a1[112] )
goto LABEL_59;
if ( qword_14090BFD0 )
goto LABEL_56;
LABEL_54:
*(_QWORD *)&v237 = operator new(0x6E8u);
v28 = GameManager::GameManager(v237);
LABEL_55:
v29 = *(void (__fastcall **)(__int64))(*(_QWORD *)v28 + 72LL);
qword_14090BFD0 = v28;
v29(v28);
LABEL_56:
v30 = *((unsigned int *)a1 + 259);
LABEL_57:
v32 = (const char *)sub_1402AC960(v23, v30, v17);
if ( v32 )
{
v33 = (_QWORD *)a1[112];
v34 = *v33;
v35 = v33;
v36 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(
v33,
v31);
v37 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v36, v32);
(*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSpriteFrame *))(v34 + 1008))(v35, v37);
}
goto LABEL_59;
}
}
}
goto LABEL_340;
}
LABEL_76:
if ( *((_BYTE *)a1 + 1462) )
v19 = -v19;
if ( !qword_14090BFD0 )
{
v236 = (const char *)operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v236);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v46 = (const char *)sub_1402AC8D0(v21, (unsigned int)v19, v17);
if ( v46 )
{
v47 = *a1;
v48 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v23, v45);
v49 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v48, v46);
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v47 + 1008))(a1, v49);
}
if ( !a1[112] )
goto LABEL_59;
if ( !qword_14090BFD0 )
{
v236 = (const char *)operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v236);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v30 = (unsigned int)v19;
goto LABEL_57;
}
v51 = (cocos2d::CCSprite *)(*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 472))(a1, 1);
if ( v51 )
{
v52 = 1;
if ( *((_DWORD *)a1 + 259) == 1050 )
{
v50 = v17 - 4;
if ( v17 != 4 )
{
v50 = v17 - 5;
if ( v17 != 5 )
{
v50 = v17 - 9;
if ( v17 == 9 )
{
v17 = 8;
}
else if ( v17 == 10 )
{
v17 = 7;
}
else
{
v52 = 0;
}
goto LABEL_105;
}
goto LABEL_103;
}
}
else
{
if ( (unsigned int)(*((_DWORD *)a1 + 259) - 1051) > 1 )
{
LABEL_105:
if ( !qword_14090BFD0 )
{
v236 = (const char *)operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v236);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v55 = (const char *)sub_1402AC8D0(v50, *((unsigned int *)a1 + 259), v17);
if ( v55 )
{
v56 = *(_QWORD *)v51;
v57 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v54, v53);
v58 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v57, v55);
(*(void (__fastcall **)(cocos2d::CCSprite *, struct cocos2d::CCSpriteFrame *))(v56 + 1008))(
v51,
v58);
}
cocos2d::CCSprite::setFlipX(v51, v52);
goto LABEL_59;
}
v50 = v17 - 7;
if ( v17 == 7 )
{
v17 = 5;
goto LABEL_105;
}
v50 = v17 - 8;
if ( v17 == 8 )
{
v17 = 4;
goto LABEL_105;
}
v50 = v17 - 9;
if ( v17 != 9 )
{
if ( v17 != 10 )
{
v52 = 0;
goto LABEL_105;
}
LABEL_103:
v17 = 2;
goto LABEL_105;
}
}
v17 = 3;
goto LABEL_105;
}
LABEL_59:
LODWORD(v3) = v240;
*((_DWORD *)a1 + 362) = v240;
if ( *((_BYTE *)a1 + 1392) )
{
if ( v239 )
{
LODWORD(v3) = rand();
*((float *)a1 + 343) = (float)((float)((float)(int)v3 / 32767.0) * 0.5) + 0.2;
*((float *)a1 + 344) = v8;
if ( !*((_BYTE *)a1 + 1393) )
*((_BYTE *)a1 + 774) = 1;
}
else if ( !*((_BYTE *)a1 + 1393) )
{
*((_BYTE *)a1 + 774) = 0;
}
}
if ( *((_BYTE *)a1 + 1433) )
{
if ( *((_BYTE *)a1 + 1441) )
{
LODWORD(v3) = v234;
if ( *((_DWORD *)a1 + 362) == v234 )
{
*((_BYTE *)a1 + 1441) = 0;
a1[172] = 0;
a1[171] = 0;
*((_BYTE *)a1 + 774) = 1;
LODWORD(v3) = (*(__int64 (__fastcall **)(__int64 *, _QWORD))(a1[40] + 40))(a1 + 40, 0);
}
}
}
return (int)v3;
}
LABEL_148:
v93 = 1.0;
v94 = 1;
if ( v19 == 1593 )
*((_DWORD *)a1 + 361) = 1;
v95 = *((_DWORD *)a1 + 361);
if ( v95 )
{
LABEL_158:
if ( v95 == 1 )
{
v93 = 0.13;
}
else
{
if ( v95 != 2 )
{
if ( v95 == 3 )
{
v93 = 0.12;
v94 = 6;
}
LABEL_165:
v97 = (int)fmaxf(0.0, floorf(v8 / v93)) % v94 + 1;
LODWORD(v3) = *((_DWORD *)a1 + 362);
if ( v97 != (_DWORD)v3 )
{
if ( (int)v3 >= v94 && *((_DWORD *)a1 + 259) != 1593 )
{
*((_DWORD *)a1 + 361) = 0;
return (int)v3;
}
*((_DWORD *)a1 + 362) = v97;
if ( v95 == 2 )
{
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v98 = 2059;
}
else if ( v95 == 3 )
{
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v98 = 2060;
}
else
{
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v98 = 2058;
}
v101 = (const char *)sub_1402AC8D0(v96, v98, v97);
if ( v101 )
{
v102 = *a1;
v103 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(
v100,
v99);
v104 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v103, v101);
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v102 + 1008))(a1, v104);
}
if ( a1[112] )
{
v105 = *((_DWORD *)a1 + 361);
if ( v105 == 2 )
{
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v106 = sub_1402AC960(v100, 2059, v97);
v109 = (__int64 **)(a1 + 112);
}
else
{
v109 = (__int64 **)(a1 + 112);
if ( v105 == 3 )
{
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v109 = (__int64 **)(a1 + 112);
}
v110 = 2060;
}
else
{
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v109 = (__int64 **)(a1 + 112);
}
v110 = 2058;
}
v106 = sub_1402AC960(v100, v110, v97);
}
v111 = (const char *)v106;
v112 = *(_QWORD *)a1[112];
v113 = a1[112];
v114 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(
v108,
v107);
v115 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v114, v111);
(*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v112 + 1008))(v113, v115);
if ( *((_BYTE *)a1 + 874) )
{
v116 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v236, v116);
v117 = **v109;
v118 = *v109;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v237,
*(float *)&v236 * 0.5,
*((float *)&v236 + 1) * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v117 + 184))(v118, v119);
}
}
}
goto LABEL_59;
}
v93 = 0.12;
}
v94 = 8;
goto LABEL_165;
}
if ( v19 != 1593 )
{
if ( (float)((float)rand() / 32767.0) > 0.69999999 )
{
v95 = 2;
*((_DWORD *)a1 + 361) = 2;
LABEL_157:
*((float *)a1 + 342) = -a2;
*((_DWORD *)a1 + 362) = -1;
v8 = 0.0;
goto LABEL_158;
}
if ( (float)((float)rand() / 32767.0) > 0.69999999 )
{
*((_DWORD *)a1 + 361) = 3;
v95 = 3;
goto LABEL_157;
}
}
v95 = 1;
*((_DWORD *)a1 + 361) = 1;
goto LABEL_157;
}
if ( v19 > 1697 )
{
v20 = (unsigned int)(v19 - 1839);
switch ( v19 )
{
case 1839:
case 1840:
case 1841:
case 1842:
v143 = *((float *)a1 + 347);
if ( *((_BYTE *)a1 + 1432) )
{
v144 = *((float *)a1 + 357);
if ( v144 != 0.0 )
v143 = fabs(v144);
}
v145 = (int)(float)(40.0 / v143);
v146 = (int)floorf(v8 / (float)(0.02 / v143)) % v145 + 1;
if ( v7 )
v146 = v145 - v146 + 1;
if ( v146 != *((_DWORD *)a1 + 362) )
{
if ( *((float *)a1 + 343) == -1.0 )
{
*((_DWORD *)a1 + 362) = v145;
v147 = 0;
}
else
{
*((_DWORD *)a1 + 362) = v146;
if ( v146 == v145 )
{
v147 = 0;
}
else
{
v147 = 255;
if ( v146 >= v145 / 3 )
v147 = (v145 / 3 - v146) * (255 / (v145 - v145 / 3)) + 255;
}
}
v148 = (int)(float)((float)((float)*((unsigned __int8 *)a1 + 329) / 255.0) * (float)v147);
v149 = a1[26];
if ( v149 )
{
v150 = *(unsigned int **)(v149 + 56);
v151 = *v150;
if ( (_DWORD)v151 )
{
v152 = *((_QWORD **)v150 + 2);
for ( i = &v152[v151 - 1]; v152 <= i; ++v152 )
{
v154 = (_QWORD *)*v152;
if ( !*v152 )
break;
(*(void (__fastcall **)(_QWORD))(*v154 + 160LL))(*v152);
(*(void (__fastcall **)(_QWORD *, _QWORD))(v154[40] + 40LL))(v154 + 40, (unsigned __int8)v148);
}
}
}
}
break;
case 1855:
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v155 = (const char *)sub_1402AC8D0(v20, *((unsigned int *)a1 + 259), v17);
if ( v155 )
{
v156 = *a1;
v157 = (cocos2d::CCSpriteFrameCache *)((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)();
v158 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v157, v155);
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v156 + 1008))(a1, v158);
}
v159 = "gj_drops05_2_001.png";
switch ( v240 )
{
case 8u:
v159 = "gj_drops05_2_008.png";
break;
case 9u:
v159 = "gj_drops05_2_009.png";
break;
case 0xAu:
v159 = "gj_drops05_2_010.png";
break;
case 0xBu:
v159 = "gj_drops05_2_011.png";
break;
case 0xCu:
v159 = "gj_drops05_2_012.png";
break;
case 0xDu:
v159 = "gj_drops05_2_013.png";
break;
case 0xEu:
v159 = "gj_drops05_2_014.png";
break;
case 0xFu:
v159 = "gj_drops05_2_015.png";
break;
case 0x10u:
v159 = "gj_drops05_2_016.png";
break;
default:
break;
}
v160 = (_QWORD *)(*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 472))(a1, 2);
v162 = v160;
if ( v160 )
{
v163 = *v160;
v164 = (cocos2d::CCSpriteFrameCache *)((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)();
v165 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v164, v159);
(*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSpriteFrame *))(v163 + 1008))(v162, v165);
}
v166 = (__int64 **)(a1 + 112);
if ( a1[112] )
{
v236 = (const char *)(a1 + 112);
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v236 = (const char *)(a1 + 112);
}
v167 = (const char *)sub_1402AC960(v161, *((unsigned int *)a1 + 259), v17);
v168 = (const char *)(a1 + 112);
if ( v167 )
{
v169 = **v166;
v170 = *v166;
v171 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(
*v166,
v168);
v172 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v171, v167);
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v169 + 1008))(v170, v172);
v168 = v236;
}
v173 = "gj_drops05_2_color_001.png";
v174 = v168;
switch ( v240 )
{
case 8u:
v173 = "gj_drops05_2_color_008.png";
break;
case 9u:
v173 = "gj_drops05_2_color_009.png";
break;
case 0xAu:
v173 = "gj_drops05_2_color_010.png";
break;
case 0xBu:
v173 = "gj_drops05_2_color_011.png";
break;
case 0xCu:
v173 = "gj_drops05_2_color_012.png";
break;
case 0xDu:
v173 = "gj_drops05_2_color_013.png";
break;
case 0xEu:
v173 = "gj_drops05_2_color_014.png";
break;
case 0xFu:
v173 = "gj_drops05_2_color_015.png";
break;
case 0x10u:
v173 = "gj_drops05_2_color_016.png";
break;
default:
v174 = (const char *)(a1 + 112);
break;
}
v175 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)v174 + 472LL))(
*(_QWORD *)v174,
2);
v178 = v175;
if ( v175 )
{
v179 = *v175;
v180 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(
v177,
v176);
v181 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v180, v173);
(*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSpriteFrame *))(v179 + 1008))(v178, v181);
}
}
break;
case 1858:
switch ( v17 )
{
case 1u:
v182 = "gj_drops06_001.png";
v183 = "gj_drops06_2_001.png";
v184 = "gj_drops06_3_001.png";
goto LABEL_284;
case 2u:
v182 = "gj_drops06_002.png";
v183 = "gj_drops06_2_002.png";
v184 = "gj_drops06_3_002.png";
goto LABEL_284;
case 3u:
v182 = "gj_drops06_003.png";
v183 = "gj_drops06_2_003.png";
v184 = "gj_drops06_3_003.png";
goto LABEL_284;
case 4u:
v182 = "gj_drops06_004.png";
v183 = "gj_drops06_2_004.png";
v184 = "gj_drops06_3_004.png";
goto LABEL_284;
case 5u:
v182 = "gj_drops06_005.png";
v183 = "gj_drops06_2_005.png";
v184 = "gj_drops06_3_005.png";
goto LABEL_284;
case 6u:
v182 = "gj_drops06_006.png";
v183 = "gj_drops06_2_006.png";
v184 = "gj_drops06_3_006.png";
goto LABEL_284;
case 7u:
v182 = "gj_drops06_007.png";
v183 = "gj_drops06_2_007.png";
v184 = "gj_drops06_3_007.png";
goto LABEL_284;
case 8u:
v182 = "gj_drops06_008.png";
v183 = "gj_drops06_2_008.png";
v184 = "gj_drops06_3_008.png";
LABEL_284:
v185 = *a1;
v186 = (cocos2d::CCSpriteFrameCache *)((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)();
v187 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v186, v182);
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v185 + 1008))(a1, v187);
v188 = (_QWORD *)(*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 472))(a1, 2);
v189 = v188;
if ( v188 )
{
v190 = *v188;
v191 = (cocos2d::CCSpriteFrameCache *)((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)();
v192 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v191, v183);
(*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSpriteFrame *))(v190 + 1008))(v189, v192);
}
v193 = (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 472))(
a1,
3);
v128 = v193;
if ( !v193 )
goto LABEL_59;
v132 = *(_QWORD *)v193;
v133 = (cocos2d::CCSpriteFrameCache *)((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)();
v134 = v184;
break;
default:
goto LABEL_59;
}
goto LABEL_210;
case 1936:
case 1937:
case 1938:
case 1939:
goto LABEL_340;
default:
goto LABEL_48;
}
goto LABEL_59;
}
if ( v19 == 1697 )
{
v137 = (float)rand() / 32767.0;
if ( v137 <= 0.69999999 )
v17 = (v137 > 0.34999999) + 1;
else
v17 = 3;
if ( *((_DWORD *)a1 + 363) == v17 )
v17 = (v17 == 1) + 1;
*((_DWORD *)a1 + 363) = v17;
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v139 = (const char *)sub_1402AC8D0(v136, *((unsigned int *)a1 + 259), v17);
if ( v139 )
{
v140 = *a1;
v141 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v23, v138);
v142 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v141, v139);
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v140 + 1008))(a1, v142);
}
if ( !a1[112] )
goto LABEL_59;
if ( qword_14090BFD0 )
goto LABEL_56;
goto LABEL_54;
}
v59 = (unsigned int)(v19 - 1592);
if ( v19 == 1592 )
{
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v122 = (const char *)sub_1402AC8D0(v59, *((unsigned int *)a1 + 259), v17);
if ( v122 )
{
v123 = *a1;
v124 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v121, v120);
v125 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v124, v122);
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v123 + 1008))(a1, v125);
}
v126 = a1[112];
if ( !v126 )
goto LABEL_59;
v128 = (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v126 + 472LL))(
v126,
1);
if ( !v128 )
goto LABEL_59;
if ( (int)v17 > 1 )
{
v127 = 10 - v17;
v17 = 10 - v17;
}
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v131 = sub_1402AC960(v127, *((unsigned int *)a1 + 259), v17);
if ( !v131 )
goto LABEL_59;
v132 = *(_QWORD *)v128;
goto LABEL_209;
}
v20 = (unsigned int)(v19 - 1593);
if ( v19 == 1593 )
goto LABEL_148;
if ( v19 != 1614 )
goto LABEL_48;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v235);
v60 = nullptr;
switch ( v17 )
{
case 1u:
v60 = "smallCoin_01_001.png";
break;
case 2u:
v60 = "smallCoin_02_001.png";
break;
case 3u:
v60 = "smallCoin_03_001.png";
break;
case 4u:
v60 = "smallCoin_04_001.png";
break;
}
v61 = (_QWORD *)(*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 472))(a1, 1);
v64 = v61;
if ( v61 && v60 )
{
v65 = *v61;
v66 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v63, v62);
v67 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v66, v60);
(*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSpriteFrame *))(v65 + 1008))(v64, v67);
v68 = (*(__int64 (__fastcall **)(_QWORD *))(*v64 + 320LL))(v64);
cocos2d::CCSize::operator=(v235, v68);
}
v69 = (__int64 *)a1[112];
if ( !v69 )
{
LABEL_137:
v79 = (__int64 *)(*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 472))(a1, 2);
v82 = v79;
if ( !v79 )
goto LABEL_59;
v83 = v17 - 1;
if ( v83 )
{
v84 = v83 - 1;
if ( v84 )
{
v85 = v84 - 1;
if ( v85 )
{
if ( v85 != 1 )
{
LABEL_147:
v90 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v236, v90);
v91 = *v82;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v237,
*(float *)&v236 * 0.5,
*((float *)&v236 + 1) * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v91 + 184))(v82, v92);
goto LABEL_59;
}
v86 = "smallCoin_04_highlight_001.png";
}
else
{
v86 = "smallCoin_03_highlight_001.png";
}
}
else
{
v86 = "smallCoin_02_highlight_001.png";
}
}
else
{
v86 = "smallCoin_01_highlight_001.png";
}
v87 = *v79;
v88 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v81, v80);
v89 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v88, v86);
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v87 + 1008))(v82, v89);
goto LABEL_147;
}
v70 = v17 - 1;
if ( v17 == 1 )
{
v71 = "smallCoin_01_color_001.png";
}
else
{
v70 = v17 - 2;
if ( v17 == 2 )
{
v71 = "smallCoin_02_color_001.png";
}
else
{
v70 = v17 - 3;
if ( v17 == 3 )
{
v71 = "smallCoin_03_color_001.png";
}
else
{
if ( v17 != 4 )
{
LABEL_136:
v76 = *(_QWORD *)a1[112];
v77 = a1[112];
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v236, v235[0] * 0.5, v235[1] * 0.5);
(*(void (__fastcall **)(__int64, __int64))(v76 + 184))(v77, v78);
goto LABEL_137;
}
v71 = "smallCoin_04_color_001.png";
}
}
}
v72 = *v69;
v73 = a1[112];
v74 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v70, v62);
v75 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v74, v71);
(*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v72 + 1008))(v73, v75);
goto LABEL_136;
}
LABEL_340:
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v228 = (const char *)sub_1402AC8D0(v20, *((unsigned int *)a1 + 259), v17);
if ( v228 )
{
v229 = *a1;
v230 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v227, v226);
v231 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v230, v228);
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v229 + 1008))(a1, v231);
}
if ( !a1[112] )
goto LABEL_59;
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v131 = sub_1402AC960(v227, *((unsigned int *)a1 + 259), v17);
if ( !v131 )
goto LABEL_59;
v232 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1[112] + 480LL))(a1[112]);
v128 = cocos2d::CCArray::objectAtIndex(v232, 0);
v132 = *(_QWORD *)v128;
LABEL_209:
v133 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v130, v129);
v134 = (const char *)v131;
LABEL_210:
v135 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v133, v134);
(*(void (__fastcall **)(struct cocos2d::CCObject *, struct cocos2d::CCSpriteFrame *))(v132 + 1008))(v128, v135);
goto LABEL_59;
}
if ( v19 <= 2864 )
{
if ( v19 != 2864 )
{
v20 = (unsigned int)(v19 - 2021);
switch ( v19 )
{
case 2021:
case 2022:
case 2023:
case 2024:
case 2025:
case 2026:
case 2027:
case 2028:
case 2029:
case 2030:
case 2031:
case 2032:
case 2033:
case 2034:
case 2035:
case 2036:
case 2037:
case 2038:
case 2039:
case 2040:
case 2041:
case 2042:
case 2043:
case 2044:
case 2045:
case 2047:
case 2048:
case 2049:
case 2050:
case 2055:
goto LABEL_340;
default:
goto LABEL_48;
}
}
goto LABEL_340;
}
v20 = (unsigned int)(v19 - 2865);
switch ( v19 )
{
case 2865:
case 2867:
case 2868:
case 2869:
case 2870:
case 2871:
case 2872:
case 2873:
case 2874:
case 2875:
case 2876:
case 2877:
case 2878:
case 2879:
case 2880:
case 2881:
case 2882:
case 2883:
case 2884:
case 2885:
case 2886:
case 2887:
case 2888:
case 2889:
case 2890:
case 2891:
case 2894:
goto LABEL_340;
case 2892:
case 2893:
if ( v19 == 2892 )
v208 = 0.025;
else
v208 = 0.033333335;
v209 = *((float *)a1 + 347);
if ( *((_BYTE *)a1 + 1432) )
{
v210 = *((float *)a1 + 357);
if ( v210 != 0.0 )
v209 = fabs(v210);
}
v212 = (int)floorf(v8 / (float)(v208 / v209)) % 16 + 1;
if ( v7 )
v212 = 17 - v212;
if ( v212 != *((_DWORD *)a1 + 362) )
{
*((_DWORD *)a1 + 362) = v212;
v213 = 4;
if ( *((_DWORD *)a1 + 259) == 2892 )
v213 = 2;
v214 = v212 % v213;
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v236 = (const char *)sub_1402AC8D0(v211, *((unsigned int *)a1 + 259), (unsigned int)(v214 + 1));
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v216 = (const char *)sub_1402AC960(v215, *((unsigned int *)a1 + 259), (unsigned int)(v214 + 1));
v217 = (*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 472))(a1, 1);
v218 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1[112] + 480LL))(a1[112]);
v219 = cocos2d::CCArray::objectAtIndex(v218, 0);
v220 = *(_QWORD *)v217;
v221 = (cocos2d::CCSpriteFrameCache *)((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)();
v222 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v221, v236);
(*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v220 + 1008))(v217, v222);
v223 = *(_QWORD *)v219;
v224 = (cocos2d::CCSpriteFrameCache *)((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)();
v225 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v224, v216);
(*(void (__fastcall **)(struct cocos2d::CCObject *, struct cocos2d::CCSpriteFrame *))(v223 + 1008))(
v219,
v225);
if ( *((_DWORD *)a1 + 259) != 2892 )
floorf((float)v212 * 0.25);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v217 + 352LL))(v217);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v219 + 352LL))(v219);
}
goto LABEL_59;
case 3000:
case 3001:
case 3002:
v195 = (cocos2d::CCSprite *)(*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 472))(a1, 1);
if ( !v195 )
goto LABEL_59;
v196 = 1;
if ( *((_DWORD *)a1 + 259) == 3000 )
{
v194 = v17 - 4;
if ( v17 != 4 )
{
v194 = v17 - 5;
if ( v17 == 5 )
{
LABEL_309:
v17 = 2;
goto LABEL_311;
}
v194 = v17 - 9;
if ( v17 == 9 )
{
v17 = 8;
}
else if ( v17 == 10 )
{
v17 = 7;
}
else
{
v196 = 0;
}
LABEL_311:
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v197 = (const char *)sub_1402AC8D0(v194, *((unsigned int *)a1 + 259), v17);
if ( v197 )
{
v198 = *(_QWORD *)v195;
v199 = (cocos2d::CCSpriteFrameCache *)((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)();
v200 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v199, v197);
(*(void (__fastcall **)(cocos2d::CCSprite *, struct cocos2d::CCSpriteFrame *))(v198 + 1008))(v195, v200);
}
cocos2d::CCSprite::setFlipX(v195, v196);
v201 = a1[112];
if ( v201 )
{
v203 = (cocos2d::CCSprite *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v201 + 472LL))(
v201,
1);
if ( v203 )
{
if ( !qword_14090BFD0 )
{
*(_QWORD *)&v237 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v237);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v204 = (const char *)sub_1402AC960(v202, *((unsigned int *)a1 + 259), v17);
if ( v204 )
{
v205 = *(_QWORD *)v203;
v206 = (cocos2d::CCSpriteFrameCache *)((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)();
v207 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v206, v204);
(*(void (__fastcall **)(cocos2d::CCSprite *, struct cocos2d::CCSpriteFrame *))(v205 + 1008))(
v203,
v207);
}
cocos2d::CCSprite::setFlipX(v203, v196);
}
}
goto LABEL_59;
}
}
else
{
if ( (unsigned int)(*((_DWORD *)a1 + 259) - 3001) > 1 )
goto LABEL_311;
v194 = v17 - 7;
if ( v17 == 7 )
{
v17 = 5;
goto LABEL_311;
}
v194 = v17 - 8;
if ( v17 == 8 )
{
v17 = 4;
goto LABEL_311;
}
v194 = v17 - 9;
if ( v17 != 9 )
{
if ( v17 != 10 )
{
v196 = 0;
goto LABEL_311;
}
goto LABEL_309;
}
}
v17 = 3;
goto LABEL_311;
default:
goto LABEL_48;
}
}
}
return (int)v3;
}