// // EnhancedGameObject::updateSyncedAnimation from 0x65d004 to 0x65e054 (4176 bytes) // // 1 xrefs: // > SpecialAnimGameObject::updateSyncedAnimation @ 0x65e12c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:55:35 +0000 // signed int __fastcall EnhancedGameObject::updateSyncedAnimation(signed int this, float a2, int a3) { signed int v3; // r4 int v6; // r6 int v7; // r11 float v8; // s17 float v9; // s14 float v10; // s13 int v11; // r10 _BOOL4 v12; // r7 int v13; // r8 float v14; // r0 int v15; // r3 float v16; // s15 bool v17; // cc int v18; // r1 int v19; // r6 int v20; // r5 int v21; // r10 bool v22; // cc cocos2d::CCSprite *v23; // r10 int v24; // r3 bool v25; // r9 cocos2d::CCSpriteFrameCache *v26; // r0 cocos2d::CCSprite *v27; // r10 int v28; // r3 cocos2d::CCSpriteFrameCache *v29; // r0 const char *v30; // r11 cocos2d::CCSpriteFrameCache *v31; // r0 int v32; // r0 const char *v33; // r5 void (__fastcall *v34)(cocos2d::CCSprite *, int); // r11 cocos2d::CCSpriteFrameCache *v35; // r0 int v36; // r0 cocos2d::CCSpriteFrameCache *v37; // r0 const char *v38; // r9 void (__fastcall *v39)(signed int, int); // r10 cocos2d::CCSpriteFrameCache *v40; // r0 int v41; // r0 signed int v42; // r9 const char *v43; // r5 int v44; // r5 const char *v45; // r10 cocos2d::CCSpriteFrameCache *v46; // r0 cocos2d::CCSpriteFrameCache *v47; // r11 cocos2d::CCSpriteFrameCache *v48; // r0 int v49; // r0 int v50; // r0 int v51; // r10 const char *v52; // r9 void (__fastcall *v53)(int, int); // r11 cocos2d::CCSpriteFrameCache *v54; // r0 int v55; // r0 int v56; // r10 void (__fastcall *v57)(int, _BYTE *); // r11 signed int v58; // r9 const char *v59; // r5 void (__fastcall *v60)(signed int, int); // r10 cocos2d::CCSpriteFrameCache *v61; // r0 int v62; // r0 const cocos2d::CCSize *v63; // r0 const char *v64; // r10 signed int v65; // r9 int (__fastcall *v66)(signed int, int); // r11 cocos2d::CCSpriteFrameCache *v67; // r0 int v68; // r0 int v69; // r3 int v70; // r10 int v71; // r3 float v72; // s15 __int16 v73; // r5 float v74; // r0 int v75; // s15 bool v76; // cc int v77; // r1 int v78; // r3 int v79; // r9 GameManager *v80; // r0 const char *v81; // r5 int (__fastcall *v82)(signed int, int); // r10 cocos2d::CCSpriteFrameCache *v83; // r0 int v84; // r0 int v85; // r3 GameManager *v86; // r0 cocos2d::CCSpriteFrameCache *v87; // r0 int v88; // r9 int (__fastcall *v89)(int, int); // r10 const char *v90; // r5 cocos2d::CCSpriteFrameCache *v91; // r0 int v92; // r0 const cocos2d::CCSize *v93; // r0 int (__fastcall *v94)(signed int, _BYTE *); // r10 float v95; // s14 float v96; // s15 float v97; // s16 int v98; // r9 float v99; // s14 int v100; // r1 float v101; // s15 bool v102; // nf float v103; // s14 float v104; // s16 int v105; // r5 unsigned int v106; // s18 int v107; // r3 _DWORD *v108; // r2 int v109; // r3 int *v110; // r2 unsigned int v111; // r10 int *v112; // r9 int v113; // r11 int v114; // t1 float v115; // s15 cocos2d::CCSpriteFrameCache *v116; // r0 const char *v117; // r9 void (__fastcall *v118)(signed int, int); // r10 cocos2d::CCSpriteFrameCache *v119; // r0 int v120; // r0 const char *v121; // r9 signed int v122; // r11 cocos2d::CCSpriteFrameCache *v123; // r0 int v124; // r0 cocos2d::CCSpriteFrameCache *v125; // r0 const char *v126; // r9 int v127; // r5 void (__fastcall *v128)(int, int); // r11 cocos2d::CCSpriteFrameCache *v129; // r0 int v130; // r0 const char *v131; // r10 const char *v132; // r9 void (__fastcall *v133)(signed int, int); // r11 cocos2d::CCSpriteFrameCache *v134; // r0 int v135; // r0 cocos2d::CCSpriteFrameCache *v136; // r0 cocos2d::CCSpriteFrameCache *v137; // r9 void (__fastcall *v138)(cocos2d::CCSpriteFrameCache *, int); // r11 cocos2d::CCSpriteFrameCache *v139; // r0 int v140; // r0 int (__fastcall *v141)(signed int, int); // r10 cocos2d::CCSpriteFrameCache *v142; // r0 int v143; // r1 float v144; // s14 float v145; // s13 int v146; // r5 int v147; // r5 int v148; // r1 int v149; // r9 int v150; // r10 cocos2d::CCArray *v151; // r0 cocos2d::CCSpriteFrameCache *v152; // r0 cocos2d::CCSpriteFrameCache *v153; // r9 cocos2d::CCSpriteFrameCache *v154; // r0 int v155; // r0 cocos2d::CCSpriteFrameCache *v156; // r0 cocos2d::CCSpriteFrameCache *v157; // r0 int v158; // r0 float v159; // s16 float v160; // s15 float v161; // s15 float v162; // s16 const char *v163; // r9 int (__fastcall *v164)(signed int, int); // r10 cocos2d::CCSpriteFrameCache *v165; // r0 int v166; // r0 const char *v167; // r9 cocos2d::CCArray *v168; // r0 signed int v169; // r5 GameManager *v170; // r10 const char *v171; // r11 int (__fastcall *v172)(signed int, int); // r9 cocos2d::CCSpriteFrameCache *v173; // r0 int v174; // r0 GameManager *v175; // r0 const char *v176; // r9 int (__fastcall *v177)(signed int, int); // r10 cocos2d::CCSpriteFrameCache *v178; // r0 int v179; // r0 int (__fastcall *v180)(signed int, int); // r10 cocos2d::CCSpriteFrameCache *v181; // r0 int v182; // r1 int v183; // r3 void (__fastcall *v184)(cocos2d::CCSprite *, int); // [sp+4h] [bp-30h] void (__fastcall *v185)(cocos2d::CCSpriteFrameCache *, int); // [sp+4h] [bp-30h] int (__fastcall *v186)(signed int, int); // [sp+4h] [bp-30h] int (__fastcall *v187)(int, int); // [sp+4h] [bp-30h] void (__fastcall *v188)(cocos2d::CCSpriteFrameCache *, int); // [sp+4h] [bp-30h] char *v189; // [sp+8h] [bp-2Ch] char *v190; // [sp+Ch] [bp-28h] float v191[2]; // [sp+14h] [bp-20h] BYREF float v192[2]; // [sp+1Ch] [bp-18h] BYREF _BYTE v193[8]; // [sp+24h] [bp-10h] BYREF v3 = this; v6 = *(unsigned __int8 *)(this + 1237); if ( *(_BYTE *)(this + 1237) ) { if ( !*(_BYTE *)(this + 1245) ) return this; if ( *(float *)(this + 1172) == 0.0 ) *(float *)(this + 1172) = -a2; } if ( *(_BYTE *)(this + 1236) ) v7 = *(float *)(this + 1232) < 0.0; else v7 = *(unsigned __int8 *)(this + 1236); v8 = a2 + *(float *)(this + 1172); if ( *(_BYTE *)(this + 1196) ) { v9 = *(float *)(this + 1176); v10 = *(float *)(this + 1184); v8 = v8 + v10; if ( v9 > 0.0 ) { if ( (float)(v8 - (float)(v9 + *(float *)(this + 1180))) < 0.0 ) { v11 = 1; goto LABEL_14; } v8 = v8 - v9; *(float *)(this + 1184) = v10 - v9; *(_DWORD *)(this + 1176) = 0; } v11 = 0; LABEL_14: v12 = 1; v13 = *(__int16 *)(this + 1204) + 1; goto LABEL_15; } if ( v6 ) { v11 = *(unsigned __int8 *)(this + 1196); goto LABEL_14; } v13 = *(__int16 *)(this + 1204); v12 = 0; v11 = 0; LABEL_15: v14 = floorf(v8 / *(float *)(this + 1200)); v15 = *(_DWORD *)(v3 + 1240); v16 = v14; v17 = v14 <= 0.0; if ( v14 <= 0.0 ) v14 = 0.0; else LODWORD(v16) = (int)v14; if ( !v17 ) v14 = v16; if ( v15 > 0 ) { if ( *(_BYTE *)(v3 + 1244) ) { LODWORD(v14) += v15; } else if ( !v6 ) { LODWORD(v14) = v15 - 1; } } v18 = SLODWORD(v14) % v13; this = SLODWORD(v14) / v13; v19 = v18 + 1; if ( v7 ) v19 = v13 - v18; if ( a3 > 0 ) v19 = a3; if ( (v19 != *(_DWORD *)(v3 + 1252) && !v11 || *(_BYTE *)(v3 + 1198)) && (*(_BYTE *)(v3 + 548) || *(_BYTE *)(v3 + 269) || (this = *(_DWORD *)(v3 + 756)) != 0 && (this = (*(int (__fastcall **)(signed int))(*(_DWORD *)this + 448))(this)) != 0 || *(_BYTE *)(v3 + 658) || *(int *)(v3 + 1252) <= 0) ) { if ( v12 ) { v20 = *(__int16 *)(v3 + 1204); v12 = v19 == v20 + 1; if ( v19 != v20 + 1 ) v20 = v19; } else { v20 = v19; } v21 = *(_DWORD *)(v3 + 892); if ( v21 == 1855 ) { GameManager::sharedState((GameManager *)this); v116 = (cocos2d::CCSpriteFrameCache *)sub_65CF52(*(GameManager **)(v3 + 892), v20); v117 = (const char *)v116; if ( v116 ) { v118 = *(void (__fastcall **)(signed int, int))(*(_DWORD *)v3 + 580); v119 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v116); v120 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v119, v117); v118(v3, v120); } switch ( v19 ) { case 8: v121 = "gj_drops05_2_008.png"; break; case 9: v121 = "gj_drops05_2_009.png"; break; case 10: v121 = "gj_drops05_2_010.png"; break; case 11: v121 = "gj_drops05_2_011.png"; break; case 12: v121 = "gj_drops05_2_012.png"; break; case 13: v121 = "gj_drops05_2_013.png"; break; case 14: v121 = "gj_drops05_2_014.png"; break; case 15: v121 = "gj_drops05_2_015.png"; break; case 16: v121 = "gj_drops05_2_016.png"; break; default: v121 = "gj_drops05_2_001.png"; break; } this = (*(int (__fastcall **)(signed int, int))(*(_DWORD *)v3 + 240))(v3, 2); v122 = this; if ( this ) { v186 = *(int (__fastcall **)(signed int, int))(*(_DWORD *)this + 580); v123 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)this); v124 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v123, v121); this = v186(v122, v124); } if ( !*(_DWORD *)(v3 + 756) ) goto LABEL_315; GameManager::sharedState((GameManager *)this); v125 = (cocos2d::CCSpriteFrameCache *)sub_65CF74(*(GameManager **)(v3 + 892), v20); v126 = (const char *)v125; if ( v125 ) { v127 = *(_DWORD *)(v3 + 756); v128 = *(void (__fastcall **)(int, int))(*(_DWORD *)v127 + 580); v129 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v125); v130 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v129, v126); v128(v127, v130); } switch ( v19 ) { case 8: v43 = "gj_drops05_2_color_008.png"; break; case 9: v43 = "gj_drops05_2_color_009.png"; break; case 10: v43 = "gj_drops05_2_color_010.png"; break; case 11: v43 = "gj_drops05_2_color_011.png"; break; case 12: v43 = "gj_drops05_2_color_012.png"; break; case 13: v43 = "gj_drops05_2_color_013.png"; break; case 14: v43 = "gj_drops05_2_color_014.png"; break; case 15: v43 = "gj_drops05_2_color_015.png"; break; case 16: v43 = "gj_drops05_2_color_016.png"; break; default: v43 = "gj_drops05_2_color_001.png"; break; } this = (*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(v3 + 756) + 240))(*(_DWORD *)(v3 + 756), 2); LABEL_279: v42 = this; if ( !this ) goto LABEL_315; goto LABEL_280; } if ( v21 >= 1856 ) { if ( v21 > 2865 ) { if ( v21 <= 2893 ) { if ( v21 >= 2892 ) { if ( v21 != 2892 ) v16 = 0.033333; v144 = *(float *)(v3 + 1192); if ( v21 == 2892 ) v16 = 0.025; if ( *(_BYTE *)(v3 + 1236) ) { v145 = *(float *)(v3 + 1232); if ( v145 != 0.0 ) v144 = fabsf(v145); } this = (int)floorf(v8 / (float)(v16 / v144)); v146 = this % 16; if ( v7 ) v147 = 16 - v146; else v147 = v146 + 1; if ( v147 != *(_DWORD *)(v3 + 1252) ) { *(_DWORD *)(v3 + 1252) = v147; if ( v21 == 2892 ) v148 = 2; else v148 = 4; v149 = v147 % v148 + 1; GameManager::sharedState((GameManager *)(v147 / v148)); v190 = (char *)sub_65CF52(*(GameManager **)(v3 + 892), v149); GameManager::sharedState((GameManager *)v190); v189 = (char *)sub_65CF74(*(GameManager **)(v3 + 892), v149); v150 = (*(int (__fastcall **)(signed int, int))(*(_DWORD *)v3 + 240))(v3, 1); v151 = (cocos2d::CCArray *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v3 + 756) + 244))(*(_DWORD *)(v3 + 756)); v152 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::objectAtIndex(v151, 0); v187 = *(int (__fastcall **)(int, int))(*(_DWORD *)v150 + 580); v153 = v152; v154 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v152); v155 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v154, v190); v156 = (cocos2d::CCSpriteFrameCache *)v187(v150, v155); v188 = *(void (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v153 + 580); v157 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v156); v158 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v157, v189); v188(v153, v158); v159 = (float)v147; if ( *(_DWORD *)(v3 + 892) == 2892 ) { v160 = -22.5; } else { v161 = v159 * 0.25; v159 = -90.0; v160 = floorf(v161); } v162 = (float)(int)(float)(v160 * v159); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v150 + 180))(v150, LODWORD(v162)); this = (*(int (__fastcall **)(cocos2d::CCSpriteFrameCache *, _DWORD))(*(_DWORD *)v153 + 180))( v153, LODWORD(v162)); } goto LABEL_315; } if ( v21 >= 2867 ) goto LABEL_299; goto LABEL_308; } if ( v21 == 2894 ) goto LABEL_299; if ( (unsigned int)(v21 - 3000) > 2 ) goto LABEL_308; this = (*(int (__fastcall **)(signed int, int))(*(_DWORD *)v3 + 240))(v3, 1); v27 = (cocos2d::CCSprite *)this; if ( !this ) goto LABEL_315; v28 = *(_DWORD *)(v3 + 892); if ( v28 == 3000 ) { switch ( v20 ) { case 4: LABEL_121: v25 = 1; v20 = 3; break; case 5: LABEL_118: v25 = 1; v20 = 2; break; case 9: v25 = 1; v20 = 8; break; case 10: v25 = 1; v20 = 7; break; default: LABEL_119: v25 = 0; break; } } else if ( v28 >= 3000 && v28 <= 3002 ) { switch ( v20 ) { case 7: v25 = 1; v20 = 5; break; case 8: v25 = 1; v20 = 4; break; case 9: goto LABEL_121; case 10: goto LABEL_118; default: goto LABEL_119; } } else { v25 = 1; } GameManager::sharedState((GameManager *)this); v29 = (cocos2d::CCSpriteFrameCache *)sub_65CF52(*(GameManager **)(v3 + 892), v20); v30 = (const char *)v29; if ( v29 ) { v184 = *(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v27 + 580); v31 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v29); v32 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v31, v30); v184(v27, v32); } cocos2d::CCSprite::setFlipX(v27, v25); this = *(_DWORD *)(v3 + 756); if ( !this ) goto LABEL_315; this = (*(int (__fastcall **)(signed int, int))(*(_DWORD *)this + 240))(this, 1); v23 = (cocos2d::CCSprite *)this; if ( !this ) goto LABEL_315; GameManager::sharedState((GameManager *)this); v26 = (cocos2d::CCSpriteFrameCache *)sub_65CF74(*(GameManager **)(v3 + 892), v20); goto LABEL_128; } if ( v21 >= 2864 ) goto LABEL_299; if ( v21 > 2045 ) { if ( v21 >= 2047 && (v21 <= 2050 || v21 == 2055) ) goto LABEL_299; goto LABEL_308; } if ( v21 >= 2020 ) goto LABEL_299; if ( v21 == 1858 ) { switch ( v20 ) { case 1: v43 = "gj_drops06_3_001.png"; v131 = "gj_drops06_2_001.png"; v132 = "gj_drops06_001.png"; goto LABEL_276; case 2: v43 = "gj_drops06_3_002.png"; v131 = "gj_drops06_2_002.png"; v132 = "gj_drops06_002.png"; goto LABEL_276; case 3: v43 = "gj_drops06_3_003.png"; v131 = "gj_drops06_2_003.png"; v132 = "gj_drops06_003.png"; goto LABEL_276; case 4: v43 = "gj_drops06_3_004.png"; v131 = "gj_drops06_2_004.png"; v132 = "gj_drops06_004.png"; goto LABEL_276; case 5: v43 = "gj_drops06_3_005.png"; v131 = "gj_drops06_2_005.png"; v132 = "gj_drops06_005.png"; goto LABEL_276; case 6: v43 = "gj_drops06_3_006.png"; v131 = "gj_drops06_2_006.png"; v132 = "gj_drops06_006.png"; goto LABEL_276; case 7: v43 = "gj_drops06_3_007.png"; v131 = "gj_drops06_2_007.png"; v132 = "gj_drops06_007.png"; goto LABEL_276; case 8: v43 = "gj_drops06_3_008.png"; v131 = "gj_drops06_2_008.png"; v132 = "gj_drops06_008.png"; LABEL_276: v133 = *(void (__fastcall **)(signed int, int))(*(_DWORD *)v3 + 580); v134 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)this); v135 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v134, v132); v133(v3, v135); v136 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(signed int, int))(*(_DWORD *)v3 + 240))(v3, 2); v137 = v136; if ( v136 ) { v138 = *(void (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v136 + 580); v139 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v136); v140 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v139, v131); v138(v137, v140); } this = (*(int (__fastcall **)(signed int, int))(*(_DWORD *)v3 + 240))(v3, 3); goto LABEL_279; default: goto LABEL_315; } } if ( v21 >= 1858 ) { v22 = (unsigned int)(v21 - 1936) > 3; LABEL_78: if ( !v22 ) goto LABEL_299; } } else { if ( v21 == 1516 ) goto LABEL_162; if ( v21 <= 1516 ) { if ( v21 <= 924 ) { if ( v21 < 923 ) { if ( v21 != 142 ) { if ( v21 >= 142 ) { v22 = (unsigned int)(v21 - 920) > 1; goto LABEL_78; } goto LABEL_308; } LABEL_304: v170 = (GameManager *)((-*(unsigned __int8 *)(v3 + 1266) ^ v21) + *(unsigned __int8 *)(v3 + 1266)); GameManager::sharedState((GameManager *)this); this = sub_65CF52(v170, v20); v171 = (const char *)this; if ( this ) { v172 = *(int (__fastcall **)(signed int, int))(*(_DWORD *)v3 + 580); v173 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)this); v174 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v173, v171); this = v172(v3, v174); } if ( !*(_DWORD *)(v3 + 756) ) goto LABEL_315; GameManager::sharedState((GameManager *)this); v175 = v170; LABEL_312: this = sub_65CF74(v175, v20); v167 = (const char *)this; if ( this ) { v169 = *(_DWORD *)(v3 + 756); LABEL_314: v180 = *(int (__fastcall **)(signed int, int))(*(_DWORD *)v169 + 580); v181 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)this); v182 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v181, v167); this = v180(v169, v182); } LABEL_315: v183 = *(unsigned __int8 *)(v3 + 1196); *(_DWORD *)(v3 + 1252) = v19; if ( v183 ) { if ( v12 ) { this = rand(); *(float *)(v3 + 1176) = (float)(vcvts_n_f32_s32(this, 0x1Fu) * 0.5) + 0.2; *(float *)(v3 + 1180) = v8; if ( !*(_BYTE *)(v3 + 1197) ) *(_BYTE *)(v3 + 658) = 1; } else if ( !*(_BYTE *)(v3 + 1197) ) { *(_BYTE *)(v3 + 658) = 0; } } if ( *(_BYTE *)(v3 + 1237) && *(_BYTE *)(v3 + 1245) && *(_DWORD *)(v3 + 1252) == v13 ) return EnhancedGameObject::waitForAnimationTrigger((EnhancedGameObject *)v3); return this; } LABEL_299: GameManager::sharedState((GameManager *)this); this = sub_65CF52(*(GameManager **)(v3 + 892), v20); v163 = (const char *)this; if ( this ) { v164 = *(int (__fastcall **)(signed int, int))(*(_DWORD *)v3 + 580); v165 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)this); v166 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v165, v163); this = v164(v3, v166); } if ( !*(_DWORD *)(v3 + 756) ) goto LABEL_315; GameManager::sharedState((GameManager *)this); this = sub_65CF74(*(GameManager **)(v3 + 892), v20); v167 = (const char *)this; if ( !this ) goto LABEL_315; v168 = (cocos2d::CCArray *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v3 + 756) + 244))(*(_DWORD *)(v3 + 756)); this = cocos2d::CCArray::objectAtIndex(v168, 0); v169 = this; goto LABEL_314; } if ( v21 < 1050 ) goto LABEL_308; if ( v21 > 1052 ) { if ( v21 != 1329 ) goto LABEL_308; goto LABEL_304; } this = (*(int (__fastcall **)(signed int, int))(*(_DWORD *)v3 + 240))(v3, 1); v23 = (cocos2d::CCSprite *)this; if ( !this ) goto LABEL_315; v24 = *(_DWORD *)(v3 + 892); if ( v24 == 1050 ) { switch ( v20 ) { case 4: LABEL_105: v25 = 1; v20 = 3; break; case 5: LABEL_102: v25 = 1; v20 = 2; break; case 9: v25 = 1; v20 = 8; break; case 10: v25 = 1; v20 = 7; break; default: LABEL_103: v25 = 0; break; } } else if ( v24 >= 1050 && v24 <= 1052 ) { switch ( v20 ) { case 7: v25 = 1; v20 = 5; break; case 8: v25 = 1; v20 = 4; break; case 9: goto LABEL_105; case 10: goto LABEL_102; default: goto LABEL_103; } } else { v25 = 1; } GameManager::sharedState((GameManager *)this); v26 = (cocos2d::CCSpriteFrameCache *)sub_65CF52(*(GameManager **)(v3 + 892), v20); LABEL_128: v33 = (const char *)v26; if ( v26 ) { v34 = *(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v23 + 580); v35 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v26); v36 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v35, v33); v34(v23, v36); } this = cocos2d::CCSprite::setFlipX(v23, v25); goto LABEL_315; } if ( v21 == 1593 ) goto LABEL_165; if ( v21 <= 1593 ) { if ( v21 != 1591 ) { if ( v21 < 1592 ) { if ( v21 != 1518 ) goto LABEL_308; LABEL_162: GameManager::sharedState((GameManager *)this); this = sub_65CF52(*(GameManager **)(v3 + 892), v20); v64 = (const char *)this; if ( this ) { this = (*(int (__fastcall **)(signed int, int))(*(_DWORD *)v3 + 240))(v3, 1); v65 = this; if ( this ) { v66 = *(int (__fastcall **)(signed int, int))(*(_DWORD *)this + 580); v67 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)this); v68 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v67, v64); this = v66(v65, v68); } } goto LABEL_310; } GameManager::sharedState((GameManager *)this); v37 = (cocos2d::CCSpriteFrameCache *)sub_65CF52(*(GameManager **)(v3 + 892), v20); v38 = (const char *)v37; if ( v37 ) { v39 = *(void (__fastcall **)(signed int, int))(*(_DWORD *)v3 + 580); v40 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v37); v41 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v40, v38); v39(v3, v41); } this = *(_DWORD *)(v3 + 756); if ( !this ) goto LABEL_315; this = (*(int (__fastcall **)(signed int, int))(*(_DWORD *)this + 240))(this, 1); v42 = this; if ( !this ) goto LABEL_315; if ( v20 > 1 ) v20 = 10 - v20; GameManager::sharedState((GameManager *)this); this = sub_65CF74(*(GameManager **)(v3 + 892), v20); v43 = (const char *)this; if ( !this ) goto LABEL_315; LABEL_280: v141 = *(int (__fastcall **)(signed int, int))(*(_DWORD *)v42 + 580); v142 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)this); v143 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v142, v43); this = v141(v42, v143); goto LABEL_315; } LABEL_165: if ( v21 == 1593 ) *(_DWORD *)(v3 + 1248) = 1; if ( *(_DWORD *)(v3 + 1248) ) { LABEL_175: v70 = *(_DWORD *)(v3 + 1248); v71 = v70 - 1; if ( (unsigned int)(v70 - 1) > 2 ) { v72 = 1.0; v73 = 1; } else { v72 = *((float *)&unk_BEF154 + v71); v73 = *((char *)&unk_BEF154 + v71 + 12); } v74 = floorf(v8 / v72); v75 = LODWORD(v74); v76 = v74 <= 0.0; if ( v74 <= 0.0 ) v74 = 0.0; else v75 = (int)v74; if ( !v76 ) v74 = *(float *)&v75; v77 = SLODWORD(v74) % v73; this = SLODWORD(v74) / v73; v78 = *(_DWORD *)(v3 + 1252); v79 = v77 + 1; if ( v77 + 1 == v78 ) goto LABEL_315; if ( v78 >= v73 && *(_DWORD *)(v3 + 892) != 1593 ) { *(_DWORD *)(v3 + 1248) = 0; return this; } *(_DWORD *)(v3 + 1252) = v79; if ( v70 == 2 ) { GameManager::sharedState((GameManager *)this); v80 = (GameManager *)(&stru_7FC + 15); } else { GameManager::sharedState((GameManager *)this); if ( v70 == 3 ) v80 = (GameManager *)&stru_80C; else v80 = (GameManager *)(&stru_7FC + 14); } this = sub_65CF52(v80, v79); v81 = (const char *)this; if ( this ) { v82 = *(int (__fastcall **)(signed int, int))(*(_DWORD *)v3 + 580); v83 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)this); v84 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v83, v81); this = v82(v3, v84); } if ( !*(_DWORD *)(v3 + 756) ) goto LABEL_315; v85 = *(_DWORD *)(v3 + 1248); if ( v85 == 2 ) { GameManager::sharedState((GameManager *)this); v86 = (GameManager *)(&stru_7FC + 15); } else if ( v85 == 3 ) { GameManager::sharedState((GameManager *)this); v86 = (GameManager *)&stru_80C; } else { GameManager::sharedState((GameManager *)this); v86 = (GameManager *)(&stru_7FC + 14); } v87 = (cocos2d::CCSpriteFrameCache *)sub_65CF74(v86, v79); v88 = *(_DWORD *)(v3 + 756); v89 = *(int (__fastcall **)(int, int))(*(_DWORD *)v88 + 580); v90 = (const char *)v87; v91 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v87); v92 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v91, v90); this = v89(v88, v92); if ( !*(_BYTE *)(v3 + 734) ) goto LABEL_315; v93 = (const cocos2d::CCSize *)(*(int (__fastcall **)(signed int))(*(_DWORD *)v3 + 164))(v3); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v192, v93); v58 = *(_DWORD *)(v3 + 756); LABEL_202: v94 = *(int (__fastcall **)(signed int, _BYTE *))(*(_DWORD *)v58 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v193, v192[0] * 0.5, v192[1] * 0.5); this = v94(v58, v193); goto LABEL_315; } if ( v21 != 1593 ) { if ( (float)((float)rand() * 4.6566e-10) > 0.7 ) { v69 = 2; goto LABEL_174; } if ( (float)((float)rand() * 4.6566e-10) > 0.7 ) { v69 = 3; goto LABEL_174; } } v69 = 1; LABEL_174: *(_DWORD *)(v3 + 1248) = v69; v8 = 0.0; *(float *)(v3 + 1172) = -a2; *(_DWORD *)(v3 + 1252) = -1; goto LABEL_175; } if ( v21 == 1697 ) { this = rand(); v115 = vcvts_n_f32_s32(this, 0x1Fu); if ( v115 > 0.7 ) { v20 = 3; } else if ( v115 <= 0.35 ) { v20 = 1; } else { v20 = 2; } if ( *(_DWORD *)(v3 + 1256) == v20 ) { if ( v20 == 1 ) v20 = 2; else v20 = 1; } *(_DWORD *)(v3 + 1256) = v20; goto LABEL_308; } if ( v21 > 1697 ) { if ( (unsigned int)(v21 - 1839) <= 3 ) { v95 = *(float *)(v3 + 1192); if ( *(_BYTE *)(v3 + 1236) ) { v96 = *(float *)(v3 + 1232); if ( v96 != 0.0 ) v95 = fabsf(v96); } v97 = 0.02 / v95; v98 = (int)(float)(40.0 / v95); this = (int)floorf(v8 / (float)(0.02 / v95)) % v98 + 1; if ( v7 ) this = v98 - this + 1; if ( this != *(_DWORD *)(v3 + 1252) ) { if ( *(float *)(v3 + 1176) == -1.0 ) this = (int)(float)(40.0 / v95); *(_DWORD *)(v3 + 1252) = this; v99 = 1.0; if ( this == v98 ) { v105 = 0; v104 = 1.0; } else { v100 = v98 / 3; v101 = (float)(v97 * (float)this) / (float)((float)(v97 * (float)v98) * 0.5); v102 = v101 < 1.0; if ( v101 < 1.0 ) v99 = 0.7; else v101 = v101 - 1.0; if ( v102 ) { v103 = v101 * v99; } else { v103 = (float)(v101 * (float)(v101 - 2.0)) - v99; v101 = -0.7; } v104 = (float)(v103 * v101) + 0.1; if ( this < v100 ) { v105 = 255; } else { this = 255 / (v100 - v98) * (this - v100); v105 = this + 255; } } v106 = *(unsigned __int8 *)(v3 + 269); v107 = *(_DWORD *)(v3 + 192); if ( v107 ) { v108 = *(_DWORD **)(v107 + 52); if ( *v108 ) { v109 = *v108 + 0x40000000; v110 = (int *)v108[3]; v111 = (unsigned int)&v110[v109 - 1]; v112 = v110; while ( (unsigned int)v112 <= v111 ) { v114 = *v112++; v113 = v114; if ( !v114 ) break; (*(void (__fastcall **)(int, float))(*(_DWORD *)v113 + 80))(v113, COERCE_FLOAT(LODWORD(v104))); this = (*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v113 + 456))( v113, (unsigned __int8)(int)(float)((float)v105 * (float)((float)v106 / 255.0))); } } } } goto LABEL_315; } goto LABEL_308; } if ( v21 == 1614 ) { v44 = v20 - 1; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v191); switch ( v44 ) { case 0: v45 = "smallCoin_01_001.png"; break; case 1: v45 = "smallCoin_02_001.png"; break; case 2: v45 = "smallCoin_03_001.png"; break; case 3: v45 = "smallCoin_04_001.png"; break; default: v45 = nullptr; break; } v46 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(signed int, int))(*(_DWORD *)v3 + 240))(v3, 1); v47 = v46; if ( v46 && v45 ) { v185 = *(void (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v46 + 580); v48 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v46); v49 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v48, v45); v185(v47, v49); v50 = (*(int (__fastcall **)(cocos2d::CCSpriteFrameCache *))(*(_DWORD *)v47 + 164))(v47); v46 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSize::operator=(v191, v50); } v51 = *(_DWORD *)(v3 + 756); if ( v51 ) { switch ( v44 ) { case 0: v52 = "smallCoin_01_color_001.png"; goto LABEL_153; case 1: v52 = "smallCoin_02_color_001.png"; goto LABEL_153; case 2: v52 = "smallCoin_03_color_001.png"; goto LABEL_153; case 3: v52 = "smallCoin_04_color_001.png"; LABEL_153: v53 = *(void (__fastcall **)(int, int))(*(_DWORD *)v51 + 580); v54 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v46); v55 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v54, v52); v53(v51, v55); break; default: break; } v56 = *(_DWORD *)(v3 + 756); v57 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v56 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v193, v191[0] * 0.5, v191[1] * 0.5); v57(v56, v193); } this = (*(int (__fastcall **)(signed int, int))(*(_DWORD *)v3 + 240))(v3, 2); v58 = this; if ( !this ) goto LABEL_315; switch ( v44 ) { case 0: v59 = "smallCoin_01_highlight_001.png"; goto LABEL_160; case 1: v59 = "smallCoin_02_highlight_001.png"; goto LABEL_160; case 2: v59 = "smallCoin_03_highlight_001.png"; goto LABEL_160; case 3: v59 = "smallCoin_04_highlight_001.png"; LABEL_160: v60 = *(void (__fastcall **)(signed int, int))(*(_DWORD *)this + 580); v61 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)this); v62 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v61, v59); v60(v58, v62); break; default: break; } v63 = (const cocos2d::CCSize *)(*(int (__fastcall **)(signed int))(*(_DWORD *)v3 + 164))(v3); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v192, v63); goto LABEL_202; } } LABEL_308: GameManager::sharedState((GameManager *)this); this = sub_65CF52(*(GameManager **)(v3 + 892), v20); v176 = (const char *)this; if ( this ) { v177 = *(int (__fastcall **)(signed int, int))(*(_DWORD *)v3 + 580); v178 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)this); v179 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v178, v176); this = v177(v3, v179); } LABEL_310: if ( !*(_DWORD *)(v3 + 756) ) goto LABEL_315; GameManager::sharedState((GameManager *)this); v175 = *(GameManager **)(v3 + 892); goto LABEL_312; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source