//
// EnhancedGameObject::updateSyncedAnimation from 0x1003e60e8 to 0x1003e725c (4468 bytes)
//
// 41 xrefs:
// > SpecialAnimGameObject::updateSyncedAnimation @ 0x1003e730c
// > ??> @ 0x100929278
// > ??> @ 0x10094da58
// > ??> @ 0x10094e2a0
// > ??> @ 0x10094eaa8
// > ??> @ 0x10094f2b0
// > ??> @ 0x10094fab8
// > ??> @ 0x1009502c0
// > ??> @ 0x100950ac8
// > ??> @ 0x100952b60
// > ??> @ 0x100953380
// > ??> @ 0x100953ba0
// > ??> @ 0x1009543c0
// > ??> @ 0x100954be0
// > ??> @ 0x100955400
// > ??> @ 0x100955c20
// > ??> @ 0x100956440
// > ??> @ 0x100956c60
// > ??> @ 0x100957480
// > ??> @ 0x100957cb8
// > ??> @ 0x100958520
// > ??> @ 0x100958d58
// > ??> @ 0x100959590
// > ??> @ 0x100959dc8
// > ??> @ 0x10095ae20
// > ??> @ 0x10095b640
// > ??> @ 0x10095be60
// > ??> @ 0x10095c680
// > ??> @ 0x10095cea0
// > ??> @ 0x10095d6c0
// > ??> @ 0x10095dee0
// > ??> @ 0x10095e700
// > ??> @ 0x10095ef20
// > ??> @ 0x10095f740
// > ??> @ 0x10095ff60
// > ??> @ 0x100960780
// > ??> @ 0x100960fa0
// > ??> @ 0x1009617c0
// > ??> @ 0x100961fe0
// > ??> @ 0x100962800
// > ??> @ 0x100963020
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:04:26 +0000
//
__int64 __fastcall EnhancedGameObject::updateSyncedAnimation(__int64 result, int a2, float a3)
{
__int64 v4; // x19
int v5; // w8
_BOOL4 v6; // w21
float v7; // s9
float v8; // s0
float v9; // s1
int v10; // w9
int v11; // w24
int v12; // w20
int v13; // w10
int v14; // w11
int v15; // w8
int v16; // w10
int v17; // w8
int v18; // w10
unsigned int v19; // w8
__int64 v20; // x25
unsigned int v21; // w8
_BOOL4 v22; // w26
__int64 v23; // x20
int v24; // w8
unsigned __int8 *v25; // x21
int v26; // w8
int v27; // w9
float v28; // s1
float v29; // s2
bool v30; // zf
float v31; // s2
unsigned int v32; // w9
int v33; // w10
bool v34; // nf
int v35; // w9
int v36; // w9
int v37; // w9
signed int v38; // w27
int v39; // w8
__int64 v40; // x20
__int64 v41; // x0
__int64 v42; // x22
__int64 v43; // x0
__int64 v44; // x23
__int64 v45; // x20
__int64 v46; // x0
__int64 v47; // x21
__int64 v48; // x0
__int64 v49; // x0
__int64 v50; // x0
__int64 v51; // x0
__int64 v52; // x0
float v53; // s0
float v54; // s1
float v55; // s8
float v56; // s1
float v57; // s0
float v58; // s0
float v59; // s0
int v60; // w8
int v61; // w9
int v62; // w9
float v63; // s1
float v64; // s0
float v65; // s8
int v66; // w8
char *v67; // x22
char *v68; // x21
const char *v69; // x20
__int64 v70; // x0
__int64 v71; // x0
__int64 v72; // x0
__int64 v73; // x22
__int64 v74; // x0
__int64 v75; // x0
__int64 v76; // x0
__int64 v77; // x0
__int64 v78; // x21
__int64 v79; // x0
__int64 v80; // x0
__int64 v81; // x21
__int64 v82; // x0
__int64 v83; // x21
__int64 v84; // x0
unsigned int v85; // w20
__int64 v86; // x0
__int64 v87; // x0
__int64 v88; // x21
__int64 v89; // x0
__int64 v90; // x0
__int64 v91; // x21
__int64 v92; // x0
__int64 v93; // x0
__int64 v94; // x0
__int64 v95; // x0
__int64 v96; // x0
__int64 v97; // x1
char v98; // w8
float v99; // s0
unsigned int v100; // w9
unsigned int v101; // w8
__int64 v102; // x0
__int64 v103; // x21
__int64 v104; // x0
__int64 v105; // x1
__int64 v106; // x0
__int64 v107; // x21
__int64 v108; // x22
__int64 v109; // x0
__int64 v110; // x1
__int64 v111; // x0
__int64 v112; // x1
int v113; // w8
int v114; // w21
float v115; // s0
__int64 v116; // x21
__int64 v117; // x0
__int64 v118; // x22
__int64 v119; // x0
__int64 v120; // x0
__int64 v121; // x0
__int64 v122; // x0
__int64 v123; // x21
__int64 v124; // x0
__int64 v125; // x0
unsigned int v126; // w23
const char *v127; // x21
float v128; // s0
_BOOL4 v129; // w23
const char *v130; // x21
unsigned __int8 *v131; // x21
int v132; // w8
__int64 v133; // x22
__int64 v134; // x0
__int64 v135; // x0
__int64 v136; // x0
__int64 v137; // x0
__int64 v138; // x20
__int64 v139; // x21
__int64 v140; // x0
__int64 v141; // x0
bool v142; // vf
int v143; // w9
__int64 v144; // x8
unsigned int *v145; // x9
__int64 v146; // x8
int v147; // w21
_QWORD *v148; // x22
unsigned __int64 v149; // x23
__int64 v150; // x20
int v151; // w22
__int64 v152; // x0
__n128 v153; // q0
__int64 v154; // x22
__int64 v155; // x0
__int64 v156; // x0
double *v157; // x0
__int64 v158; // x21
char *v159; // x22
__int64 v160; // x0
__int64 v161; // x0
__int64 v162; // x21
char *v163; // x20
__int64 v164; // x0
__int64 v165; // x0
double *v166; // x0
__int64 v167; // x20
int v168; // w9
__int64 v169; // x0
unsigned int v170; // w8
__int64 v171; // x1
__int64 v172; // x21
__int64 v173; // x0
__int64 v174; // x0
int v175; // w21
__int64 v176; // x0
unsigned int v177; // w8
__int64 v178; // x1
__int64 v179; // x20
__int64 v180; // x21
__int64 v181; // x0
__int64 v182; // x0
double *v183; // x0
__int64 v184; // x20
__int64 v185; // x0
__int64 v186; // x0
__int64 v187; // x20
__int64 v188; // x0
__int64 v189; // x0
__int64 v190; // x0
__int64 v191; // x0
__int64 v192; // x23
__int64 v193; // x0
__int64 v194; // x0
__int64 v195; // x0
float v196; // [xsp+8h] [xbp-78h] BYREF
__int64 v197; // [xsp+10h] [xbp-70h] BYREF
__int64 v198; // [xsp+18h] [xbp-68h] BYREF
v4 = result;
v5 = *(unsigned __int8 *)(result + 1417);
if ( v5 == 1 )
{
if ( *(_BYTE *)(result + 1425) != 1 )
return result;
if ( *(float *)(result + 1352) == 0.0 )
*(float *)(result + 1352) = -a3;
}
v6 = *(_BYTE *)(result + 1416) == 1 && *(float *)(result + 1412) < 0.0;
v7 = *(float *)(result + 1352) + a3;
if ( *(_BYTE *)(result + 1376) == 1 )
{
v8 = *(float *)(result + 1364);
v7 = v7 + v8;
v9 = *(float *)(result + 1356);
if ( v9 > 0.0 )
{
if ( v7 >= (float)(v9 + *(float *)(result + 1360)) )
{
v10 = 0;
*(float *)(result + 1364) = v8 - v9;
v7 = v7 - v9;
*(_DWORD *)(result + 1356) = 0;
}
else
{
v10 = 1;
}
goto LABEL_14;
}
LABEL_13:
v10 = 0;
LABEL_14:
v11 = *(__int16 *)(result + 1384) + 1;
v12 = 1;
goto LABEL_16;
}
if ( v5 )
goto LABEL_13;
v12 = 0;
v10 = 0;
v11 = *(__int16 *)(result + 1384);
LABEL_16:
v13 = (int)fmaxf(floorf(v7 / *(float *)(result + 1380)), 0.0);
v14 = *(_DWORD *)(result + 1420);
if ( v14 >= 1 )
{
if ( ((*(_BYTE *)(result + 1424) | (unsigned __int8)v5) & 1) != 0 )
v15 = v13;
else
v15 = v14 - 1;
if ( *(_BYTE *)(result + 1424) )
v16 = *(_DWORD *)(result + 1420);
else
v16 = 0;
v13 = v15 + v16;
}
v17 = v13 % v11;
v18 = v11 - v13 % v11;
if ( v6 )
v19 = v18;
else
v19 = v17 + 1;
if ( a2 <= 0 )
v20 = v19;
else
v20 = (unsigned int)a2;
if ( (((_DWORD)v20 != *(_DWORD *)(result + 1432)) & ~v10) != 0 || *(_BYTE *)(result + 1378) == 1 )
{
if ( (*(_BYTE *)(result + 648) & 1) != 0
|| *(_BYTE *)(result + 329)
|| (result = *(_QWORD *)(result + 888)) != 0
&& (result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 896LL))(result), (_DWORD)result)
|| (*(_BYTE *)(v4 + 774) & 1) != 0
|| *(int *)(v4 + 1432) <= 0 )
{
if ( v12 )
{
v21 = *(__int16 *)(v4 + 1384);
v22 = v20 == v21 + 1;
if ( (_DWORD)v20 == v21 + 1 )
v23 = v21;
else
v23 = (unsigned int)v20;
}
else
{
v22 = 0;
v23 = v20;
}
v24 = *(_DWORD *)(v4 + 1028);
if ( v24 <= 2019 )
{
if ( v24 <= 1592 )
{
if ( v24 <= 1328 )
{
if ( (unsigned int)(v24 - 920) <= 4 && v24 != 922 )
goto LABEL_113;
if ( (unsigned int)(v24 - 1050) < 3 )
{
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 480LL))(v4, 1);
if ( !result )
goto LABEL_120;
v25 = (unsigned __int8 *)result;
v26 = *(_DWORD *)(v4 + 1028);
if ( (unsigned int)(v26 - 1051) >= 2 )
{
if ( v26 != 1050 )
goto LABEL_285;
if ( (int)v23 > 8 )
{
if ( (_DWORD)v23 == 9 )
{
v23 = 8;
goto LABEL_285;
}
if ( (_DWORD)v23 == 10 )
{
v23 = 7;
goto LABEL_285;
}
goto LABEL_227;
}
if ( (_DWORD)v23 != 4 )
{
if ( (_DWORD)v23 != 5 )
goto LABEL_227;
goto LABEL_218;
}
}
else
{
if ( (int)v23 <= 8 )
{
if ( (_DWORD)v23 == 7 )
{
v23 = 5;
goto LABEL_285;
}
if ( (_DWORD)v23 == 8 )
{
v23 = 4;
LABEL_285:
v151 = 1;
LABEL_286:
v185 = GameManager::sharedState();
v186 = sub_1003E725C(v185, *(unsigned int *)(v4 + 1028), v23);
if ( v186 )
{
LABEL_287:
v187 = v186;
v188 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v186);
v189 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v188, v187);
(*(void (__fastcall **)(unsigned __int8 *, __int64))(*(_QWORD *)v25 + 1160LL))(v25, v189);
}
LABEL_288:
result = (__int64)cocos2d::CCSprite::setFlipX(v25, v151);
goto LABEL_120;
}
LABEL_227:
v151 = 0;
goto LABEL_286;
}
if ( (_DWORD)v23 != 9 )
{
if ( (_DWORD)v23 != 10 )
goto LABEL_227;
LABEL_218:
v23 = 2;
goto LABEL_285;
}
}
v23 = 3;
goto LABEL_285;
}
if ( v24 == 142 )
goto LABEL_160;
goto LABEL_147;
}
if ( v24 <= 1517 )
{
if ( v24 == 1329 )
{
LABEL_160:
if ( *(_BYTE *)(v4 + 1446) )
v116 = (unsigned int)-v24;
else
v116 = (unsigned int)v24;
v117 = GameManager::sharedState();
result = sub_1003E725C(v117, v116, v23);
if ( result )
{
v118 = result;
v119 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(result);
v120 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v119, v118);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 1160LL))(v4, v120);
}
if ( !*(_QWORD *)(v4 + 888) )
goto LABEL_120;
v111 = GameManager::sharedState();
v112 = v116;
goto LABEL_167;
}
if ( v24 != 1516 )
goto LABEL_147;
}
else if ( v24 != 1518 )
{
if ( v24 != 1591 )
{
if ( v24 == 1592 )
{
v76 = GameManager::sharedState();
v77 = sub_1003E725C(v76, *(unsigned int *)(v4 + 1028), v23);
if ( v77 )
{
v78 = v77;
v79 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v77);
v80 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v79, v78);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 1160LL))(v4, v80);
}
result = *(_QWORD *)(v4 + 888);
if ( result )
{
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 480LL))(result, 1);
if ( result )
{
v81 = result;
v23 = (int)v23 <= 1 ? (unsigned int)v23 : (unsigned int)(10 - v23);
v82 = GameManager::sharedState();
result = sub_1003E7294(v82, *(unsigned int *)(v4 + 1028), v23);
if ( result )
{
v69 = (const char *)result;
LABEL_119:
v96 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(result);
v97 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v96, v69);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v81 + 1160LL))(v81, v97);
goto LABEL_120;
}
}
}
goto LABEL_120;
}
goto LABEL_147;
}
LABEL_156:
if ( v24 == 1593 )
{
*(_DWORD *)(v4 + 1428) = 1;
LABEL_158:
v113 = 8;
v114 = 1;
v115 = 0.13;
goto LABEL_259;
}
v114 = *(_DWORD *)(v4 + 1428);
if ( !v114 )
{
result = rand();
if ( vcvts_n_f32_s32(result, 0x1Fu) <= 0.7 )
{
result = rand();
if ( vcvts_n_f32_s32(result, 0x1Fu) <= 0.7 )
v114 = 1;
else
v114 = 3;
}
else
{
v114 = 2;
}
*(_DWORD *)(v4 + 1428) = v114;
*(float *)(v4 + 1352) = -a3;
*(_DWORD *)(v4 + 1432) = -1;
v7 = 0.0;
}
switch ( v114 )
{
case 3:
v113 = 6;
break;
case 2:
v113 = 8;
break;
case 1:
goto LABEL_158;
default:
v115 = 1.0;
v113 = 1;
LABEL_259:
v167 = (unsigned int)((int)fmaxf(floorf(v7 / v115), 0.0) % v113 + 1);
v168 = *(_DWORD *)(v4 + 1432);
if ( (_DWORD)v167 != v168 )
{
if ( v168 >= v113 && *(_DWORD *)(v4 + 1028) != 1593 )
{
*(_DWORD *)(v4 + 1428) = 0;
return result;
}
*(_DWORD *)(v4 + 1432) = v167;
v169 = GameManager::sharedState();
if ( v114 == 3 )
v170 = 2060;
else
v170 = 2058;
if ( v114 == 2 )
v171 = 2059;
else
v171 = v170;
result = sub_1003E725C(v169, v171, v167);
if ( result )
{
v172 = result;
v173 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(result);
v174 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v173, v172);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 1160LL))(v4, v174);
}
if ( *(_QWORD *)(v4 + 888) )
{
v175 = *(_DWORD *)(v4 + 1428);
v176 = GameManager::sharedState();
v177 = v175 == 3 ? 2060 : 2058;
v178 = v175 == 2 ? 2059LL : v177;
v179 = sub_1003E7294(v176, v178, v167);
v180 = *(_QWORD *)(v4 + 888);
v181 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v179);
v182 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v181, v179);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v180 + 1160LL))(v180, v182);
if ( *(_BYTE *)(v4 + 866) == 1 )
{
v183 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 328LL))(v4);
sub_100026438(&v198, v183);
v184 = *(_QWORD *)(v4 + 888);
sub_1000262BC((float *)&v197, *(float *)&v198 * 0.5, *((float *)&v198 + 1) * 0.5);
result = (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v184 + 184LL))(v184, &v197);
}
}
}
goto LABEL_120;
}
v115 = 0.12;
goto LABEL_259;
}
v106 = GameManager::sharedState();
result = sub_1003E725C(v106, *(unsigned int *)(v4 + 1028), v23);
if ( result )
{
v107 = result;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 480LL))(v4, 1);
if ( result )
{
v108 = result;
v109 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(result);
v110 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v109, v107);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v108 + 1160LL))(v108, v110);
}
}
goto LABEL_154;
}
if ( v24 > 1854 )
{
if ( (unsigned int)(v24 - 1936) < 4 )
goto LABEL_113;
if ( v24 == 1855 )
{
v121 = GameManager::sharedState();
v122 = sub_1003E725C(v121, *(unsigned int *)(v4 + 1028), v23);
if ( v122 )
{
v123 = v122;
v124 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v122);
v125 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v124, v123);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 1160LL))(v4, v125);
}
v126 = v20 - 8;
if ( (unsigned int)(v20 - 8) > 8 )
v127 = "gj_drops05_2_001.png";
else
v127 = off_10094AEA8[v126];
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 480LL))(v4, 2);
if ( result )
{
v133 = result;
v134 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(result);
v135 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v134, v127);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v133 + 1160LL))(v133, v135);
}
if ( !*(_QWORD *)(v4 + 888) )
goto LABEL_120;
v136 = GameManager::sharedState();
v137 = sub_1003E7294(v136, *(unsigned int *)(v4 + 1028), v23);
if ( v137 )
{
v138 = v137;
v139 = *(_QWORD *)(v4 + 888);
v140 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v137);
v141 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v140, v138);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v139 + 1160LL))(v139, v141);
}
if ( v126 > 8 )
v69 = "gj_drops05_2_color_001.png";
else
v69 = off_10094AEF0[v126];
result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v4 + 888) + 480LL))(
*(_QWORD *)(v4 + 888),
2);
}
else
{
if ( v24 != 1858 )
{
LABEL_147:
v102 = GameManager::sharedState();
result = sub_1003E725C(v102, *(unsigned int *)(v4 + 1028), v23);
if ( result )
{
v103 = result;
v104 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(result);
v105 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v104, v103);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 1160LL))(v4, v105);
}
LABEL_154:
if ( !*(_QWORD *)(v4 + 888) )
goto LABEL_120;
v111 = GameManager::sharedState();
v112 = *(unsigned int *)(v4 + 1028);
LABEL_167:
result = sub_1003E7294(v111, v112, v23);
if ( result )
{
v69 = (const char *)result;
v81 = *(_QWORD *)(v4 + 888);
goto LABEL_119;
}
goto LABEL_120;
}
v66 = v23 - 1;
if ( (unsigned int)(v23 - 1) > 7 )
goto LABEL_120;
v67 = off_10094AF38[v66];
v68 = off_10094AF78[v66];
v69 = off_10094AFB8[v66];
v70 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(result);
v71 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v70, v67);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 1160LL))(v4, v71);
v72 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 480LL))(v4, 2);
if ( v72 )
{
v73 = v72;
v74 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v72);
v75 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v74, v68);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v73 + 1160LL))(v73, v75);
}
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 480LL))(v4, 3);
}
if ( result )
goto LABEL_118;
goto LABEL_120;
}
if ( v24 > 1838 )
{
if ( (unsigned int)(v24 - 1839) < 4 )
{
v56 = *(float *)(v4 + 1372);
if ( *(_BYTE *)(v4 + 1416) == 1 )
{
v57 = *(float *)(v4 + 1412);
v30 = v57 == 0.0;
v58 = fabsf(v57);
if ( !v30 )
v56 = v58;
}
v59 = 0.02 / v56;
v60 = (int)(float)(40.0 / v56);
v61 = (int)vcvtms_s32_f32(v7 / (float)(0.02 / v56)) % v60;
if ( v6 )
v62 = v60 - v61;
else
v62 = v61 + 1;
if ( v62 != *(_DWORD *)(v4 + 1432) )
{
v63 = *(float *)(v4 + 1356);
if ( v63 == -1.0 )
v62 = v60;
*(_DWORD *)(v4 + 1432) = v62;
if ( v62 == v60 )
{
v64 = 0.0;
v65 = 1.0;
}
else
{
v128 = (float)(v59 * (float)v62) / (float)((float)(v59 * (float)v60) * 0.5);
if ( v128 >= 1.0 )
{
v63 = 0.1;
v65 = (float)((float)((float)((float)(v128 + -1.0) * (float)((float)(v128 + -1.0) + -2.0)) + -1.0)
* -0.7)
+ 0.1;
}
else
{
v63 = v128 * 0.7;
v65 = (float)((float)(v128 * 0.7) * v128) + 0.1;
}
v142 = __OFSUB__(v60 / 3, v62);
v143 = v60 / 3 - v62;
if ( (v143 < 0) ^ v142 | (v143 == 0) )
v64 = (float)(255 / (v60 - v60 / 3) * v143 + 255);
else
v64 = 255.0;
}
v144 = *(_QWORD *)(v4 + 208);
if ( v144 )
{
v145 = *(unsigned int **)(v144 + 56);
v146 = *v145;
if ( (_DWORD)v146 )
{
LOBYTE(v63) = *(_BYTE *)(v4 + 329);
v147 = (int)(float)(v64 * (float)((float)LODWORD(v63) / 255.0));
v148 = *((_QWORD **)v145 + 2);
v149 = (unsigned __int64)&v148[v146 - 1];
do
{
v150 = *v148;
if ( !*v148 )
break;
(*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)v150 + 160LL))(*v148, v65);
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v150 + 912LL))(
v150,
(unsigned __int8)v147);
++v148;
}
while ( (unsigned __int64)v148 <= v149 );
}
}
}
goto LABEL_120;
}
goto LABEL_147;
}
if ( v24 == 1593 )
goto LABEL_156;
if ( v24 != 1614 )
{
if ( v24 == 1697 )
{
v99 = vcvts_n_f32_s32(rand(), 0x1Fu);
if ( v99 <= 0.35 )
v100 = 1;
else
v100 = 2;
if ( v99 > 0.35 )
v101 = 1;
else
v101 = 2;
if ( v99 > 0.7 )
v100 = 3;
if ( *(_DWORD *)(v4 + 1436) == v100 )
v23 = v101;
else
v23 = v100;
*(_DWORD *)(v4 + 1436) = v23;
}
goto LABEL_147;
}
sub_100026430(&v198);
if ( (int)v23 > 2 )
{
if ( (_DWORD)v23 == 3 )
{
v130 = "smallCoin_03_001.png";
}
else
{
if ( (_DWORD)v23 != 4 )
{
v129 = 0;
v130 = nullptr;
LABEL_236:
v152 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 480LL))(v4, 1);
if ( v129 )
{
v154 = v152;
if ( v152 )
{
v155 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v152);
v156 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v155, v130);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v154 + 1160LL))(v154, v156);
v157 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v154 + 328LL))(v154);
v153.n128_f64[0] = sub_100026450(&v198, v157);
}
}
v158 = *(_QWORD *)(v4 + 888);
if ( v158 )
{
if ( (unsigned int)(v23 - 1) <= 3 )
{
v159 = off_10094AE68[(unsigned int)(v23 - 1)];
v160 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v152);
v161 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v160, v159);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v158 + 1160LL))(v158, v161);
v158 = *(_QWORD *)(v4 + 888);
}
sub_1000262BC((float *)&v197, *(float *)&v198 * 0.5, *((float *)&v198 + 1) * 0.5);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v158 + 184LL))(v158, &v197);
}
result = (*(__int64 (__fastcall **)(__int64, __int64, __n128))(*(_QWORD *)v4 + 480LL))(v4, 2, v153);
if ( result )
{
v162 = result;
if ( (unsigned int)(v23 - 1) <= 3 )
{
v163 = off_10094AE88[(unsigned int)(v23 - 1)];
v164 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(result);
v165 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v164, v163);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v162 + 1160LL))(v162, v165);
}
v166 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 328LL))(v4);
sub_100026438(&v197, v166);
sub_1000262BC(&v196, *(float *)&v197 * 0.5, *((float *)&v197 + 1) * 0.5);
result = (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v162 + 184LL))(v162, &v196);
}
goto LABEL_120;
}
v130 = "smallCoin_04_001.png";
}
}
else
{
if ( (_DWORD)v23 != 1 )
{
v129 = v23 == 2;
if ( (_DWORD)v23 == 2 )
v130 = "smallCoin_02_001.png";
else
v130 = nullptr;
goto LABEL_236;
}
v130 = "smallCoin_01_001.png";
}
v129 = 1;
goto LABEL_236;
}
if ( (unsigned int)(v24 - 2020) <= 0x23 && ((1LL << ((unsigned __int8)v24 + 28)) & 0x87BFFFFFFLL) != 0 )
{
LABEL_113:
GameManager::sharedState();
v83 = *(int *)(v4 + 1028);
v84 = GameManager::sharedState();
cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(v84 + 376), v83);
v85 = v23 - 1;
v87 = cocos2d::CCArray::stringAtIndex(v86, v85);
result = cocos2d::CCString::getCString(v87);
if ( result )
{
v88 = result;
v89 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(result);
v90 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v89, v88);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 1160LL))(v4, v90);
}
if ( *(_QWORD *)(v4 + 888) )
{
GameManager::sharedState();
v91 = *(int *)(v4 + 1028);
v92 = GameManager::sharedState();
cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(v92 + 384), v91);
v94 = cocos2d::CCArray::stringAtIndex(v93, v85);
result = cocos2d::CCString::getCString(v94);
if ( result )
{
v69 = (const char *)result;
v95 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v4 + 888) + 488LL))(*(_QWORD *)(v4 + 888));
result = sub_1002E75A0(v95, 0);
LABEL_118:
v81 = result;
goto LABEL_119;
}
}
LABEL_120:
*(_DWORD *)(v4 + 1432) = v20;
if ( *(_BYTE *)(v4 + 1376) == 1 )
{
if ( v22 )
{
result = rand();
*(float *)(v4 + 1356) = (float)(vcvts_n_f32_s32(result, 0x1Fu) * 0.5) + 0.2;
*(float *)(v4 + 1360) = v7;
if ( (*(_BYTE *)(v4 + 1377) & 1) == 0 )
{
v98 = 1;
LABEL_126:
*(_BYTE *)(v4 + 774) = v98;
}
}
else if ( (*(_BYTE *)(v4 + 1377) & 1) == 0 )
{
v98 = 0;
goto LABEL_126;
}
}
if ( *(_BYTE *)(v4 + 1417) == 1 && *(_BYTE *)(v4 + 1425) == 1 && *(_DWORD *)(v4 + 1432) == v11 )
{
*(_BYTE *)(v4 + 1425) = 0;
*(_QWORD *)(v4 + 1352) = 0;
*(_QWORD *)(v4 + 1360) = 0;
*(_BYTE *)(v4 + 774) = 1;
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 912LL))(v4, 0);
}
return result;
}
if ( (unsigned int)(v24 - 2864) <= 0x1E )
{
v27 = 1 << (v24 - 48);
if ( (v27 & 0x4FFFFFFB) != 0 )
goto LABEL_113;
if ( (v27 & 0x30000000) != 0 )
{
v28 = *(float *)(v4 + 1372);
if ( *(_BYTE *)(v4 + 1416) == 1 )
{
v29 = *(float *)(v4 + 1412);
v30 = v29 == 0.0;
v31 = fabsf(v29);
if ( !v30 )
v28 = v31;
}
v32 = vcvtms_s32_f32(v7 / (float)(flt_10076E4B8[v24 == 2892] / v28));
v33 = v32 & 0xF;
v35 = -v32;
v34 = v35 < 0;
v36 = v35 & 0xF;
if ( v34 )
v37 = v33;
else
v37 = -v36;
if ( v6 )
v38 = 16 - v37;
else
v38 = v37 + 1;
if ( v38 != *(_DWORD *)(v4 + 1432) )
{
*(_DWORD *)(v4 + 1432) = v38;
if ( v24 == 2892 )
v39 = 2;
else
v39 = 4;
v40 = (unsigned int)(char)((char)v38 % v39 + 1);
v41 = GameManager::sharedState();
v42 = sub_1003E725C(v41, *(unsigned int *)(v4 + 1028), v40);
v43 = GameManager::sharedState();
v44 = sub_1003E7294(v43, *(unsigned int *)(v4 + 1028), v40);
v45 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 480LL))(v4, 1);
v46 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v4 + 888) + 488LL))(*(_QWORD *)(v4 + 888));
v47 = sub_1002E75A0(v46, 0);
v48 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v47);
v49 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v48, v42);
v50 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v45 + 1160LL))(v45, v49);
v51 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v50);
v52 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v51, v44);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v47 + 1160LL))(v47, v52);
v53 = (float)v38 * -22.5;
v54 = floorf(vcvts_n_f32_s32(v38, 2u)) * -90.0;
if ( *(_DWORD *)(v4 + 1028) != 2892 )
v53 = v54;
v55 = (float)(int)v53;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v45 + 360LL))(v45, v55);
result = (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v47 + 360LL))(v47, v55);
}
goto LABEL_120;
}
}
if ( (unsigned int)(v24 - 3000) >= 3 )
goto LABEL_147;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 480LL))(v4, 1);
if ( !result )
goto LABEL_120;
v131 = (unsigned __int8 *)result;
v132 = *(_DWORD *)(v4 + 1028);
if ( (unsigned int)(v132 - 3001) >= 2 )
{
if ( v132 != 3000 )
goto LABEL_296;
if ( (int)v23 > 8 )
{
if ( (_DWORD)v23 == 9 )
{
v23 = 8;
goto LABEL_296;
}
if ( (_DWORD)v23 == 10 )
{
v23 = 7;
goto LABEL_296;
}
goto LABEL_293;
}
if ( (_DWORD)v23 != 4 )
{
if ( (_DWORD)v23 != 5 )
goto LABEL_293;
goto LABEL_282;
}
}
else
{
if ( (int)v23 <= 8 )
{
if ( (_DWORD)v23 == 7 )
{
v23 = 5;
goto LABEL_296;
}
if ( (_DWORD)v23 == 8 )
{
v23 = 4;
LABEL_296:
v151 = 1;
LABEL_297:
v190 = GameManager::sharedState();
v191 = sub_1003E725C(v190, *(unsigned int *)(v4 + 1028), v23);
if ( v191 )
{
v192 = v191;
v193 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v191);
v194 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v193, v192);
(*(void (__fastcall **)(unsigned __int8 *, __int64))(*(_QWORD *)v131 + 1160LL))(v131, v194);
}
cocos2d::CCSprite::setFlipX(v131, v151);
result = *(_QWORD *)(v4 + 888);
if ( !result )
goto LABEL_120;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 480LL))(result, 1);
if ( !result )
goto LABEL_120;
v25 = (unsigned __int8 *)result;
v195 = GameManager::sharedState();
v186 = sub_1003E7294(v195, *(unsigned int *)(v4 + 1028), v23);
if ( v186 )
goto LABEL_287;
goto LABEL_288;
}
LABEL_293:
v151 = 0;
goto LABEL_297;
}
if ( (_DWORD)v23 != 9 )
{
if ( (_DWORD)v23 != 10 )
goto LABEL_293;
LABEL_282:
v23 = 2;
goto LABEL_296;
}
}
v23 = 3;
goto LABEL_296;
}
}
return result;
}