// // EnhancedGameObject::updateSyncedAnimation from 0x100245940 to 0x100246dea (5290 bytes) // // 41 xrefs: // > SpecialAnimGameObject::updateSyncedAnimation @ 0x10024773f // > @ 0x100ac7de0 // > @ 0x100ac8628 // > @ 0x100ac8e30 // > @ 0x100ac9638 // > @ 0x100ac9e40 // > @ 0x100aca648 // > @ 0x100acae50 // > @ 0x100accef8 // > @ 0x100acd718 // > @ 0x100acdf38 // > @ 0x100ace758 // > @ 0x100acef78 // > @ 0x100acf798 // > @ 0x100acffb8 // > @ 0x100ad07d8 // > @ 0x100ad0ff8 // > @ 0x100ad1818 // > @ 0x100ad2050 // > @ 0x100ad28b8 // > @ 0x100ad30f0 // > @ 0x100ad3928 // > @ 0x100ad4160 // > @ 0x100ad51b8 // > @ 0x100ad59d8 // > @ 0x100ad61f8 // > @ 0x100ad6a18 // > @ 0x100ad7238 // > @ 0x100ad7a58 // > @ 0x100ad8278 // > @ 0x100ad8a98 // > @ 0x100ad92b8 // > @ 0x100ad9ad8 // > @ 0x100ada2f8 // > @ 0x100adab18 // > @ 0x100adb338 // > @ 0x100adbb58 // > @ 0x100adc378 // > @ 0x100adcb98 // > @ 0x100add3b8 // > @ 0x100b84da0 // // 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:27:20 +0000 // void __fastcall EnhancedGameObject::updateSyncedAnimation( __int64 a1, __int64 a2, __m128 a3, double a4, double a5, double a6) { __int64 v6; // rbx unsigned __int8 v7; // cl bool v8; // r12 __m128 v9; // xmm4 int v10; // r13d char v11; // r15 float v12; // xmm1_4 float v13; // xmm2_4 __m128 v14; // xmm1 double v15; // xmm2_8 int v16; // eax int v17; // edx unsigned __int8 v18; // r8 int v19; // r9d int v20; // eax __int64 v21; // rdx int v22; // eax unsigned int v23; // r14d bool v24; // zf unsigned int v25; // r15d unsigned int v26; // eax int v27; // eax float v28; // xmm1_4 float v29; // xmm0_4 float v30; // xmm0_4 int v31; // ecx int v32; // edx __int64 v33; // rtt int v34; // eax int v35; // edx int v36; // eax float v37; // xmm0_4 __int64 v38; // rax __int64 v39; // rdx __int64 v40; // r12 int v41; // eax unsigned __int8 v42; // r13 float v43; // xmm0_4 int v44; // ecx int v45; // r12d float v46; // xmm0_4 float v47; // xmm0_4 __int64 v48; // rdx unsigned int v49; // r15d int v50; // eax __int64 v51; // rax double v52; // xmm0_8 __int64 v53; // rsi __int64 v54; // rdi __int64 v55; // rax __int64 v56; // rdx __int64 v57; // r12 __int64 v58; // rax int v59; // r12d __int64 v60; // rax double v61; // xmm0_8 __int64 v62; // rsi __int64 v63; // r15 __int64 v64; // r12 __int64 v65; // rax __int64 v66; // rax __int64 v67; // rax __int64 v68; // r15 __int64 v69; // rax char v70; // al __int64 v71; // rdx double v72; // xmm0_8 __int64 v73; // rax __int64 v74; // rax unsigned int v75; // r15d __int64 v76; // rsi __int64 v77; // rdi __int64 CString; // rax __int64 v79; // rdx __int64 v80; // r12 __int64 v81; // rax __int64 v82; // rdx __int64 v83; // rax __int64 v84; // rax __int64 v85; // rax __int64 v86; // rax const char *v87; // r15 __int64 v88; // rdi __int64 v89; // r12 double v90; // xmm0_8 __int64 v91; // rsi __int64 v92; // rax __int64 v93; // rdi __int64 v94; // rax __int64 v95; // rdx __int64 v96; // r12 __int64 v97; // rax __int64 v98; // r13 __int64 v99; // rax __int64 v100; // rsi __int64 v101; // rax __int64 v102; // rdi unsigned int v103; // r12d double v104; // xmm0_8 __int64 v105; // rax __int64 v106; // rdi __int64 v107; // rsi __int64 v108; // rax __int64 v109; // rdx __int64 v110; // r13 __int64 v111; // rax __int64 v112; // rax __int64 v113; // rax __int64 v114; // rax __int64 v115; // rax double v116; // xmm0_8 __int64 v117; // rax __int64 v118; // rax __int64 v119; // r12 __int64 v120; // rax __int64 v121; // rax __int64 v122; // rdi __int64 v123; // rax __int64 v124; // rdx __int64 v125; // r12 unsigned int v126; // r13d double v127; // xmm0_8 __int64 v128; // rax __int64 v129; // rax __int64 v130; // r15 __int64 v131; // rax __int64 v132; // rax unsigned int v133; // r15d const char *v134; // rax float v135; // xmm0_4 double v136; // xmm0_8 __int64 v137; // rsi __int64 v138; // rax __int64 v139; // rdi __int64 v140; // rax __int64 v141; // rdx __int64 v142; // r12 __int64 v143; // rax __int64 v144; // rax __int64 v145; // rax __int64 v146; // rdx __int64 v147; // r12 __int32 v148; // eax __int32 v149; // ecx float v150; // xmm0_4 float v151; // xmm1_4 float v152; // xmm0_4 int v153; // ecx int v154; // edx unsigned int v155; // edx __int64 v156; // rsi __int64 v157; // rdx int v158; // ecx int v159; // r13d unsigned int v160; // r15d double v161; // xmm0_8 __int64 v162; // rsi __int64 v163; // rax __int64 v164; // rdi __int64 v165; // rdx __int64 v166; // rax __int64 v167; // r15 __int64 v168; // rdi __int64 v169; // r12 __int64 v170; // rax __int64 v171; // rax __int64 v172; // rax __int64 v173; // rax __m128 v174; // xmm0 char v175; // r12 __int64 v176; // r13 __int64 v177; // rax __int64 v178; // rax __int64 v179; // rsi __int64 v180; // r12 char *v181; // r13 __int64 v182; // rax __int64 v183; // rax __int64 v184; // rax __int64 v185; // r12 char *v186; // r15 __int64 v187; // rax __int64 v188; // rax __int64 v189; // rax float v190; // xmm0_4 _BOOL4 v191; // eax __int64 v192; // rdx unsigned int v193; // r15d double v194; // xmm0_8 __int64 v195; // rsi __int64 v196; // rax __int64 v197; // rdi __int64 v198; // rax __int64 v199; // rdx __int64 v200; // r12 __int64 v201; // rax __int64 v202; // rax unsigned int v203; // r15d char *v204; // r13 __int64 v205; // rax __int64 v206; // rax __int64 v207; // rax __int64 v208; // r13 __int64 v209; // rax __int64 v210; // rax __int64 v211; // rax double v212; // xmm0_8 __int64 v213; // rax __int64 v214; // rax __int64 v215; // r12 __int64 v216; // rax __int64 v217; // rax const char *v218; // r12 unsigned int v219; // eax double v220; // xmm0_8 __int64 v221; // rax __int64 v222; // rax __int64 v223; // r15 __int64 v224; // rax __int64 v225; // rax __int64 v226; // rsi __int64 v227; // rdi char v228; // al __int64 v229; // rax unsigned int *v230; // rax __int64 v231; // rcx _QWORD *v232; // r13 __int64 v233; // r12 __int64 v234; // rdi __int64 v235; // rsi __int64 v236; // rax __int64 v237; // rdx __int64 v238; // r13 __int64 v239; // rax __int64 v240; // rax __int64 v241; // rax __int64 v242; // r15 __int64 v243; // r12 __int64 v244; // rax __int64 v245; // rax __int64 v246; // rax double v247; // xmm0_8 __int64 v248; // rax __int64 v249; // rax __int64 v250; // r13 __int64 v251; // rax __int64 v252; // rax __int64 v253; // rdi __int64 v254; // rax __int64 v255; // rdx __int64 v256; // r12 double v257; // xmm0_8 __int64 v258; // rax __int64 v259; // rax __int64 v260; // r15 __int64 v261; // rax __int64 v262; // rax char v263[8]; // [rsp+Ch] [rbp-64h] BYREF float v264; // [rsp+14h] [rbp-5Ch] BYREF float v265; // [rsp+18h] [rbp-58h] unsigned int v266; // [rsp+1Ch] [rbp-54h] unsigned __int64 v267; // [rsp+20h] [rbp-50h] float v268; // [rsp+28h] [rbp-48h] BYREF float v269; // [rsp+2Ch] [rbp-44h] __m128 v270; // [rsp+30h] [rbp-40h] int v271; // [rsp+40h] [rbp-30h] unsigned __int32 v272; // [rsp+44h] [rbp-2Ch] v6 = a1; v7 = *(_BYTE *)(a1 + 1417); if ( v7 == 1 ) { if ( *(_BYTE *)(a1 + 1425) != 1 ) return; if ( *(float *)(a1 + 1352) == 0.0 ) *(float *)(a1 + 1352) = -a3.f32[0]; } if ( *(_BYTE *)(a1 + 1416) == 1 ) { v8 = *(float *)(a1 + 1412) < 0.0; v9 = (__m128)*(unsigned int *)(a1 + 1352); v9.f32[0] = v9.f32[0] + a3.f32[0]; if ( *(_BYTE *)(a1 + 1376) != 1 ) goto LABEL_7; } else { v8 = 0; v9 = (__m128)*(unsigned int *)(a1 + 1352); v9.f32[0] = v9.f32[0] + a3.f32[0]; if ( *(_BYTE *)(a1 + 1376) != 1 ) { LABEL_7: if ( !v7 ) { v10 = *(__int16 *)(a1 + 1384); v11 = 0; a1 = 0; goto LABEL_15; } goto LABEL_13; } } *(_QWORD *)&a6 = *(unsigned int *)(a1 + 1356); v12 = *(float *)(a1 + 1364); v9.f32[0] = v9.f32[0] + v12; if ( *(float *)&a6 <= 0.0 ) { LABEL_13: a1 = 0; goto LABEL_14; } v13 = *(float *)(a1 + 1360) + *(float *)&a6; LOBYTE(a1) = 1; if ( v13 <= v9.f32[0] ) { *(float *)(v6 + 1364) = v12 - *(float *)&a6; v9.f32[0] = v9.f32[0] - *(float *)&a6; *(_DWORD *)(v6 + 1356) = 0; goto LABEL_13; } LABEL_14: v10 = *(__int16 *)(v6 + 1384) + 1; v11 = 1; LABEL_15: v14 = v9; v14.f32[0] = v9.f32[0] / *(float *)(v6 + 1380); *(_QWORD *)&v15 = _mm_round_ss((__m128)0LL, v14, 9).u64[0]; v14.i64[0] = 0; *(float *)&v15 = fmaxf(*(float *)&v15, 0.0); v16 = (int)*(float *)&v15; v17 = *(_DWORD *)(v6 + 1420); if ( v17 > 0 ) { v18 = *(_BYTE *)(v6 + 1424); v19 = v17 - 1; if ( v18 | v7 ) v19 = (int)*(float *)&v15; v20 = 0; if ( v18 ) v20 = *(_DWORD *)(v6 + 1420); v16 = v19 + v20; } v21 = (unsigned int)(v16 >> 31); LODWORD(v21) = v16 % v10; v22 = v10 - v16 % v10; v23 = v21 + 1; if ( v8 ) v23 = v22; if ( (int)a2 > 0 ) v23 = a2; LOBYTE(a1) = ~(_BYTE)a1; if ( ((v23 != *(_DWORD *)(v6 + 1432)) & (unsigned __int8)a1) != 0 || *(_BYTE *)(v6 + 1378) == 1 ) { if ( (v24 = *(_BYTE *)(v6 + 648) == 0, v272 = v9.i32[0], !v24) || *(_BYTE *)(v6 + 329) || (a1 = *(_QWORD *)(v6 + 888)) != 0 && (v69 = *(_QWORD *)a1, v270 = a3, v70 = (*(__int64 (__fastcall **)(__int64))(v69 + 896))(a1), v9 = (__m128)v272, v70) || *(_BYTE *)(v6 + 774) || *(int *)(v6 + 1432) <= 0 ) { if ( v11 ) { v25 = *(__int16 *)(v6 + 1384); v26 = v25 + 1; LOBYTE(v26) = v23 == v25 + 1; v266 = v26; if ( v23 != v25 + 1 ) v25 = v23; v27 = *(_DWORD *)(v6 + 1028); if ( v27 > 1696 ) goto LABEL_33; } else { v266 = 0; v25 = v23; v27 = *(_DWORD *)(v6 + 1028); if ( v27 > 1696 ) { LABEL_33: switch ( v27 ) { case 1697: v190 = (float)rand() * 4.6566129e-10; v191 = v190 > 0.34999999; v192 = 3; if ( v190 <= 0.69999999 ) v192 = (unsigned int)(v191 + 1); v193 = 2 - (v190 > 0.69999999 || v191); if ( *(_DWORD *)(v6 + 1436) != (_DWORD)v192 ) v193 = v192; *(_DWORD *)(v6 + 1436) = v193; *(_QWORD *)&v194 = GameManager::sharedState(a1, a2, v192).u64[0]; v195 = *(unsigned int *)(v6 + 1028); v197 = v196; v198 = sub_100247680(v196, v195, v193, v194); if ( v198 ) { v200 = v198; v201 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v194); v197 = v6; v195 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v201, v200); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1160LL))(v6, v195); } if ( !*(_QWORD *)(v6 + 888) ) goto LABEL_191; a3.i64[0] = GameManager::sharedState(v197, v195, v199).u64[0]; v113 = sub_1002476C0(v202, *(unsigned int *)(v6 + 1028), v193, *(double *)a3.i64); if ( !v113 ) goto LABEL_191; goto LABEL_98; case 1698: case 1699: case 1700: case 1701: case 1702: case 1703: case 1704: case 1705: case 1706: case 1707: case 1708: case 1709: case 1710: case 1711: case 1712: case 1713: case 1714: case 1715: case 1716: case 1717: case 1718: case 1719: case 1720: case 1721: case 1722: case 1723: case 1724: case 1725: case 1726: case 1727: case 1728: case 1729: case 1730: case 1731: case 1732: case 1733: case 1734: case 1735: case 1736: case 1737: case 1738: case 1739: case 1740: case 1741: case 1742: case 1743: case 1744: case 1745: case 1746: case 1747: case 1748: case 1749: case 1750: case 1751: case 1752: case 1753: case 1754: case 1755: case 1756: case 1757: case 1758: case 1759: case 1760: case 1761: case 1762: case 1763: case 1764: case 1765: case 1766: case 1767: case 1768: case 1769: case 1770: case 1771: case 1772: case 1773: case 1774: case 1775: case 1776: case 1777: case 1778: case 1779: case 1780: case 1781: case 1782: case 1783: case 1784: case 1785: case 1786: case 1787: case 1788: case 1789: case 1790: case 1791: case 1792: case 1793: case 1794: case 1795: case 1796: case 1797: case 1798: case 1799: case 1800: case 1801: case 1802: case 1803: case 1804: case 1805: case 1806: case 1807: case 1808: case 1809: case 1810: case 1811: case 1812: case 1813: case 1814: case 1815: case 1816: case 1817: case 1818: case 1819: case 1820: case 1821: case 1822: case 1823: case 1824: case 1825: case 1826: case 1827: case 1828: case 1829: case 1830: case 1831: case 1832: case 1833: case 1834: case 1835: case 1836: case 1837: case 1838: case 1843: case 1844: case 1845: case 1846: case 1847: case 1848: case 1849: case 1850: case 1851: case 1852: case 1853: case 1854: case 1856: case 1857: case 1859: case 1860: case 1861: case 1862: case 1863: case 1864: case 1865: case 1866: case 1867: case 1868: case 1869: case 1870: case 1871: case 1872: case 1873: case 1874: case 1875: case 1876: case 1877: case 1878: case 1879: case 1880: case 1881: case 1882: case 1883: case 1884: case 1885: case 1886: case 1887: case 1888: case 1889: case 1890: case 1891: case 1892: case 1893: case 1894: case 1895: case 1896: case 1897: case 1898: case 1899: case 1900: case 1901: case 1902: case 1903: case 1904: case 1905: case 1906: case 1907: case 1908: case 1909: case 1910: case 1911: case 1912: case 1913: case 1914: case 1915: case 1916: case 1917: case 1918: case 1919: case 1920: case 1921: case 1922: case 1923: case 1924: case 1925: case 1926: case 1927: case 1928: case 1929: case 1930: case 1931: case 1932: case 1933: case 1934: case 1935: case 1940: case 1941: case 1942: case 1943: case 1944: case 1945: case 1946: case 1947: case 1948: case 1949: case 1950: case 1951: case 1952: case 1953: case 1954: case 1955: case 1956: case 1957: case 1958: case 1959: case 1960: case 1961: case 1962: case 1963: case 1964: case 1965: case 1966: case 1967: case 1968: case 1969: case 1970: case 1971: case 1972: case 1973: case 1974: case 1975: case 1976: case 1977: case 1978: case 1979: case 1980: case 1981: case 1982: case 1983: case 1984: case 1985: case 1986: case 1987: case 1988: case 1989: case 1990: case 1991: case 1992: case 1993: case 1994: case 1995: case 1996: case 1997: case 1998: case 1999: case 2000: case 2001: case 2002: case 2003: case 2004: case 2005: case 2006: case 2007: case 2008: case 2009: case 2010: case 2011: case 2012: case 2013: case 2014: case 2015: case 2016: case 2017: case 2018: case 2019: case 2046: case 2051: case 2052: case 2053: case 2054: goto LABEL_121; case 1839: case 1840: case 1841: case 1842: v28 = *(float *)(v6 + 1372); if ( *(_BYTE *)(v6 + 1416) == 1 ) { v29 = *(float *)(v6 + 1412); if ( v29 != 0.0 ) v28 = fabs(v29); } v30 = 0.02 / v28; HIDWORD(v15) = 0; *(float *)&v15 = 40.0 / v28; v31 = (int)(float)(40.0 / v28); v14 = v9; v14.f32[0] = v9.f32[0] / v30; v14.i64[0] = _mm_round_ss(v14, v14, 9).u64[0]; LODWORD(v33) = (int)v14.f32[0]; HIDWORD(v33) = (int)v14.f32[0] >> 31; v32 = v33 % v31; v34 = v31 - v32; v35 = v32 + 1; if ( v8 ) v35 = v34; if ( v35 != *(_DWORD *)(v6 + 1432) ) { v36 = v31; if ( *(float *)(v6 + 1356) != -1.0 ) v36 = v35; *(_DWORD *)(v6 + 1432) = v36; if ( v36 == v31 ) { v37 = 0.0; v14.i64[0] = 1065353216; v270.i32[0] = 1065353216; } else { v14.i32[1] = 0; HIDWORD(v15) = 0; *(float *)&v15 = (float)((float)v31 * v30) * 0.5; v14.f32[0] = (float)((float)v36 * v30) / *(float *)&v15; if ( v14.f32[0] >= 1.0 ) { v14.f32[0] = v14.f32[0] + -1.0; HIDWORD(v15) = 0; *(float *)&v15 = (float)((float)((float)((float)(v14.f32[0] + -2.0) * v14.f32[0]) + -1.0) * -0.69999999) + 0.1; v270.f32[0] = *(float *)&v15; } else { v270.f32[0] = (float)((float)(0.69999999 * v14.f32[0]) * v14.f32[0]) + 0.1; } v37 = v31 / 3 <= v36 ? (float)((v31 / 3 - v36) * (255 / (v31 - v31 / 3)) + 255) : 255.0; } v229 = *(_QWORD *)(v6 + 208); if ( v229 ) { v230 = *(unsigned int **)(v229 + 56); v231 = *v230; if ( *v230 ) { v271 = v10; v14.i32[1] = 0; v14.f32[0] = (float)*(unsigned __int8 *)(v6 + 329) / 255.0; v232 = *((_QWORD **)v230 + 2); v267 = (unsigned __int64)&v232[v231 - 1]; do { v233 = *v232; if ( !*v232 ) break; (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)v233 + 160LL))(*v232, v270.f32[0]); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v233 + 912LL))( v233, (unsigned __int8)(int)(float)(v37 * v14.f32[0])); v9.i64[0] = v272; ++v232; } while ( (unsigned __int64)v232 <= v267 ); LABEL_213: v10 = v271; } } } goto LABEL_192; case 1855: *(_QWORD *)&v212 = GameManager::sharedState(a1, a2, v21).u64[0]; v214 = sub_100247680(v213, *(unsigned int *)(v6 + 1028), v25, v212); if ( v214 ) { v215 = v214; v216 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v217 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v216, v215); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1160LL))(v6, v217); } v271 = v10; v270.i32[0] = v23 - 8; if ( v23 - 8 > 8 ) v218 = "gj_drops05_2_001.png"; else v218 = (char *)dword_100A06804 + dword_100A06804[v23 - 8]; v234 = v6; v235 = 2; v236 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 480LL))(v6, 2); if ( v236 ) { v238 = v236; v239 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v234 = v238; v235 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v239, v218); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v238 + 1160LL))(v238, v235); } if ( !*(_QWORD *)(v6 + 888) ) goto LABEL_190; a3.i64[0] = GameManager::sharedState(v234, v235, v237).u64[0]; v241 = sub_1002476C0(v240, *(unsigned int *)(v6 + 1028), v25, *(double *)a3.i64); v10 = v271; if ( v241 ) { v242 = v241; v243 = *(_QWORD *)(v6 + 888); v244 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v245 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v244, v242); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v243 + 1160LL))(v243, v245); } if ( v270.i32[0] > 8u ) v87 = "gj_drops05_2_color_001.png"; else v87 = (char *)dword_100A06828 + dword_100A06828[v270.u32[0]]; v246 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v6 + 888) + 480LL))( *(_QWORD *)(v6 + 888), 2); if ( !v246 ) goto LABEL_191; v89 = v246; goto LABEL_99; case 1858: v203 = v25 - 1; if ( v203 > 7 ) goto LABEL_192; v271 = v10; v204 = (char *)dword_100A0684C + dword_100A0684C[v203]; v267 = dword_100A0686C[v203]; v270.i64[0] = dword_100A0688C[v203]; v205 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*(double *)a3.i64); v206 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v205, v204); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1160LL))(v6, v206); v207 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 480LL))(v6, 2); if ( v207 ) { v208 = v207; v209 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*(double *)a3.i64); v210 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v209, (char *)dword_100A0686C + v267); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v208 + 1160LL))(v208, v210); } v211 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 480LL))(v6, 3); v10 = v271; if ( !v211 ) goto LABEL_191; v89 = v211; v87 = (char *)dword_100A0688C + v270.i64[0]; break; case 1936: case 1937: case 1938: case 1939: case 2020: 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_77; default: switch ( v27 ) { case 2864: 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_77; case 2892: case 2893: v150 = flt_100A067B0[v27 == 2892]; v151 = *(float *)(v6 + 1372); v24 = *(_BYTE *)(v6 + 1416) == 1; v271 = v10; if ( v24 ) { *(_QWORD *)&v15 = *(unsigned int *)(v6 + 1412); a6 = 0.0; if ( *(float *)&v15 != 0.0 ) { *(_QWORD *)&v15 &= 0x7FFFFFFF7FFFFFFFuLL; v151 = *(float *)&v15; } } v152 = v150 / v151; v14 = v9; v14.f32[0] = v9.f32[0] / v152; v153 = (int)_mm_round_ss((__m128)0LL, v14, 9).f32[0]; v154 = v153 + 15; if ( v153 >= 0 ) v154 = v153; v155 = v154 & 0xFFFFFFF0; v156 = v153 - v155; v157 = -v155; v158 = v157 + v153 + 1; v159 = 16 - v156; if ( !v8 ) v159 = v158; if ( v159 == *(_DWORD *)(v6 + 1432) ) goto LABEL_213; *(_DWORD *)(v6 + 1432) = v159; v160 = (char)((char)v159 % (char)(2 * (v27 != 2892) + 2) + 1); *(_QWORD *)&v161 = GameManager::sharedState(a1, v156, v157).u64[0]; v162 = *(unsigned int *)(v6 + 1028); v164 = v163; v267 = sub_100247680(v163, v162, v160, v161); v174 = GameManager::sharedState(v164, v162, v165); v270.i64[0] = sub_1002476C0(v166, *(unsigned int *)(v6 + 1028), v160, *(double *)v174.i64); v167 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 480LL))(v6, 1); v168 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v6 + 888) + 488LL))(*(_QWORD *)(v6 + 888)); v169 = sub_1007FEFE0(v168, 0); v170 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v171 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v170, v267); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v167 + 1160LL))(v167, v171); v172 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v173 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v172, v270.i64[0]); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v169 + 1160LL))(v169, v173); v174.f32[0] = (float)v159; if ( *(_DWORD *)(v6 + 1028) == 2892 ) { v174.f32[0] = v174.f32[0] * -22.5; } else { v174.f32[0] = v174.f32[0] * 0.25; v174 = _mm_round_ss(v174, v174, 9); v174.f32[0] = v174.f32[0] * -90.0; } v10 = v271; v270 = _mm_cvtepi32_ps(_mm_cvttps_epi32(v174)); (*(void (__fastcall **)(__int64))(*(_QWORD *)v167 + 360LL))(v167); (*(void (__fastcall **)(__int64, double))(*(_QWORD *)v169 + 360LL))(v169, *(double *)v270.i64); goto LABEL_191; case 3000: case 3001: case 3002: v145 = (*(__int64 (__fastcall **)(__int64, __int64, __int64, _QWORD, double))(*(_QWORD *)v6 + 480LL))( v6, 1, v21, (unsigned int)(v27 - 2864), *(double *)a3.i64); if ( !v145 ) goto LABEL_191; v147 = v145; v148 = *(_DWORD *)(v6 + 1028); v149 = v148 - 3001; v271 = v10; if ( (unsigned int)(v148 - 3001) >= 2 ) { if ( v148 == 3000 ) { v219 = v25 - 4; switch ( v25 ) { case 4u: LOBYTE(v219) = 1; v270.i32[0] = v219; v25 = 3; break; case 5u: LOBYTE(v219) = 1; v270.i32[0] = v219; v25 = 2; break; case 9u: LOBYTE(v219) = 1; v270.i32[0] = v219; v25 = 8; break; case 0xAu: LOBYTE(v219) = 1; v270.i32[0] = v219; v25 = 7; break; default: LABEL_228: v270.i32[0] = 0; break; } } else { LOBYTE(v148) = 1; v270.i32[0] = v148; } } else { LOBYTE(v149) = 1; v270.i32[0] = v149; switch ( v25 ) { case 7u: v25 = 5; break; case 8u: v25 = 4; break; case 9u: v25 = 3; break; case 0xAu: v25 = 2; break; default: goto LABEL_228; } } *(_QWORD *)&v247 = GameManager::sharedState(v6, 1, v146).u64[0]; v249 = sub_100247680(v248, *(unsigned int *)(v6 + 1028), v25, v247); if ( v249 ) { v250 = v249; v251 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v252 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v251, v250); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v147 + 1160LL))(v147, v252); } cocos2d::CCSprite::setFlipX(v147, v270.u8[0]); v253 = *(_QWORD *)(v6 + 888); if ( !v253 ) goto LABEL_190; v254 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v253 + 480LL))(v253, 1); if ( !v254 ) goto LABEL_190; v256 = v254; *(_QWORD *)&v257 = GameManager::sharedState(v253, 1, v255).u64[0]; v259 = sub_1002476C0(v258, *(unsigned int *)(v6 + 1028), v25, v257); if ( v259 ) { v260 = v259; v261 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v262 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v261, v260); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v256 + 1160LL))(v256, v262); } v227 = v256; v226 = v270.u8[0]; break; default: goto LABEL_121; } goto LABEL_189; } goto LABEL_99; } } if ( v27 <= 1328 ) { if ( (unsigned int)(v27 - 920) <= 4 && v27 != 922 ) { LABEL_77: GameManager::sharedState(a1, a2, v21); *(_QWORD *)&v72 = GameManager::sharedState(a1, a2, v71).u64[0]; v74 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(v73 + 376)); v75 = v25 - 1; v76 = v75; v77 = cocos2d::CCArray::stringAtIndex(v74, v75); CString = cocos2d::CCString::getCString(v77); if ( CString ) { v80 = CString; v81 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v72); v77 = v6; v76 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v81, v80); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1160LL))(v6, v76); } if ( !*(_QWORD *)(v6 + 888) ) goto LABEL_191; GameManager::sharedState(v77, v76, v79); a3.i64[0] = GameManager::sharedState(v77, v76, v82).u64[0]; v84 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(v83 + 384)); v85 = cocos2d::CCArray::stringAtIndex(v84, v75); v86 = cocos2d::CCString::getCString(v85); if ( !v86 ) goto LABEL_191; v87 = (const char *)v86; v88 = (*(__int64 (__fastcall **)(_QWORD, double))(**(_QWORD **)(v6 + 888) + 488LL))( *(_QWORD *)(v6 + 888), *(double *)a3.i64); v89 = sub_1007FEFE0(v88, 0); goto LABEL_99; } if ( (unsigned int)(v27 - 1050) < 3 ) { v38 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 480LL))(v6, 1); if ( v38 ) { v40 = v38; v271 = v10; v41 = *(_DWORD *)(v6 + 1028); v42 = 1; if ( (unsigned int)(v41 - 1051) >= 2 ) { if ( v41 == 1050 ) { switch ( v25 ) { case 4u: LABEL_120: v25 = 3; break; case 5u: LABEL_130: v25 = 2; break; case 9u: v25 = 8; break; case 0xAu: v25 = 7; break; default: LABEL_131: v42 = 0; break; } } } else { switch ( v25 ) { case 7u: v25 = 5; break; case 8u: v25 = 4; break; case 9u: goto LABEL_120; case 0xAu: goto LABEL_130; default: goto LABEL_131; } } *(_QWORD *)&v220 = GameManager::sharedState(v6, 1, v39).u64[0]; v222 = sub_100247680(v221, *(unsigned int *)(v6 + 1028), v25, v220); if ( v222 ) { v223 = v222; v224 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v225 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v224, v223); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v40 + 1160LL))(v40, v225); } v226 = v42; v227 = v40; LABEL_189: cocos2d::CCSprite::setFlipX(v227, v226); LABEL_190: v10 = v271; } LABEL_191: v9.i64[0] = v272; LABEL_192: *(_DWORD *)(v6 + 1432) = v23; if ( *(_BYTE *)(v6 + 1376) == 1 ) { if ( (_BYTE)v266 ) { v272 = v9.i32[0]; *(float *)(v6 + 1356) = (float)((float)((float)rand() * 4.6566129e-10) * 0.5) + 0.2; *(_DWORD *)(v6 + 1360) = v272; v228 = 1; if ( *(_BYTE *)(v6 + 1377) ) goto LABEL_199; goto LABEL_198; } if ( !*(_BYTE *)(v6 + 1377) ) { v228 = 0; LABEL_198: *(_BYTE *)(v6 + 774) = v228; } } LABEL_199: if ( *(_BYTE *)(v6 + 1417) == 1 && *(_BYTE *)(v6 + 1425) == 1 && *(_DWORD *)(v6 + 1432) == v10 ) { *(_BYTE *)(v6 + 1425) = 0; *(_OWORD *)(v6 + 1352) = 0; *(_BYTE *)(v6 + 774) = 1; (*(void (__fastcall **)(__int64, _QWORD, double, double, double, double, double))(*(_QWORD *)v6 + 912LL))( v6, 0, 0.0, *(double *)v14.i64, v15, a6, *(double *)v9.i64); } return; } if ( v27 == 142 ) goto LABEL_91; goto LABEL_121; } if ( v27 <= 1590 ) { if ( v27 == 1329 ) { LABEL_91: v271 = v10; v103 = -v27; if ( !*(_BYTE *)(v6 + 1446) ) v103 = v27; *(_QWORD *)&v104 = GameManager::sharedState(a1, a2, v21).u64[0]; v106 = v105; v107 = v103; v108 = sub_100247680(v105, v103, v25, v104); if ( v108 ) { v110 = v108; v111 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v106 = v6; v107 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v111, v110); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1160LL))(v6, v107); } if ( !*(_QWORD *)(v6 + 888) ) goto LABEL_190; a3.i64[0] = GameManager::sharedState(v106, v107, v109).u64[0]; v102 = v112; v100 = v103; LABEL_97: v113 = sub_1002476C0(v102, v100, v25, *(double *)a3.i64); v10 = v271; if ( !v113 ) goto LABEL_191; LABEL_98: v87 = (const char *)v113; v89 = *(_QWORD *)(v6 + 888); LABEL_99: v114 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*(double *)a3.i64); v115 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v114, v87); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v89 + 1160LL))(v89, v115); goto LABEL_191; } if ( v27 == 1516 || v27 == 1518 ) { v271 = v10; *(_QWORD *)&v90 = GameManager::sharedState(a1, a2, v21).u64[0]; v91 = *(unsigned int *)(v6 + 1028); v93 = v92; v94 = sub_100247680(v92, v91, v25, v90); if ( v94 ) { v96 = v94; v93 = v6; v91 = 1; v97 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 480LL))(v6, 1); if ( v97 ) { v98 = v97; v99 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v93 = v98; v91 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v99, v96); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v98 + 1160LL))(v98, v91); } } if ( !*(_QWORD *)(v6 + 888) ) goto LABEL_190; a3.i64[0] = GameManager::sharedState(v93, v91, v95).u64[0]; v100 = *(unsigned int *)(v6 + 1028); v102 = v101; goto LABEL_97; } LABEL_121: *(_QWORD *)&v136 = GameManager::sharedState(a1, a2, v21).u64[0]; v137 = *(unsigned int *)(v6 + 1028); v139 = v138; v140 = sub_100247680(v138, v137, v25, v136); if ( v140 ) { v142 = v140; v143 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v136); v139 = v6; v137 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v143, v142); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1160LL))(v6, v137); } if ( !*(_QWORD *)(v6 + 888) ) goto LABEL_191; a3.i64[0] = GameManager::sharedState(v139, v137, v141).u64[0]; v113 = sub_1002476C0(v144, *(unsigned int *)(v6 + 1028), v25, *(double *)a3.i64); if ( !v113 ) goto LABEL_191; goto LABEL_98; } switch ( v27 ) { case 1591: case 1593: if ( v27 == 1593 ) { *(_DWORD *)(v6 + 1428) = 1; LABEL_56: v43 = 0.13; v44 = 8; v45 = 1; goto LABEL_57; } v45 = *(_DWORD *)(v6 + 1428); if ( !v45 ) { v270 = a3; v45 = 2; if ( (float)((float)rand() * 4.6566129e-10) <= 0.69999999 ) v45 = 2 * ((float)((float)rand() * 4.6566129e-10) > 0.69999999) + 1; v135 = -v270.f32[0]; *(_DWORD *)(v6 + 1428) = v45; *(float *)(v6 + 1352) = v135; *(_DWORD *)(v6 + 1432) = -1; v9 = 0; } switch ( v45 ) { case 3: v43 = 0.12; v44 = 6; break; case 2: v43 = 0.12; v44 = 8; break; case 1: goto LABEL_56; default: v43 = 1.0; v44 = 1; break; } LABEL_57: v14 = v9; v14.f32[0] = v9.f32[0] / v43; v46 = _mm_round_ss((__m128)0LL, v14, 9).f32[0]; v14.i64[0] = 0; v47 = fmaxf(v46, 0.0); v48 = (unsigned int)((int)v47 >> 31); v49 = (int)v47 % v44 + 1; v50 = *(_DWORD *)(v6 + 1432); if ( v49 == v50 ) goto LABEL_192; if ( v50 >= v44 && *(_DWORD *)(v6 + 1028) != 1593 ) { *(_DWORD *)(v6 + 1428) = 0; return; } v272 = v9.i32[0]; *(_DWORD *)(v6 + 1432) = v49; LODWORD(v48) = (int)v47 % v44; *(_QWORD *)&v52 = GameManager::sharedState(a1, a2, v48).u64[0]; v53 = 2059; if ( v45 != 2 ) v53 = 2 * (unsigned int)(v45 == 3) + 2058; v54 = v51; v55 = sub_100247680(v51, v53, v49, v52); if ( v55 ) { v57 = v55; v58 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v54 = v6; v53 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v58, v57); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1160LL))(v6, v53); } if ( *(_QWORD *)(v6 + 888) ) { v59 = *(_DWORD *)(v6 + 1428); *(_QWORD *)&v61 = GameManager::sharedState(v54, v53, v56).u64[0]; v62 = 2059; if ( v59 != 2 ) v62 = 2 * (unsigned int)(v59 == 3) + 2058; v63 = sub_1002476C0(v60, v62, v49, v61); v64 = *(_QWORD *)(v6 + 888); v65 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v66 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v65, v63); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v64 + 1160LL))(v64, v66); if ( *(_BYTE *)(v6 + 866) == 1 ) { v67 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 328LL))(v6); sub_100278630(&v268, v67); v68 = *(_QWORD *)(v6 + 888); v14.i32[1] = 0; v14.f32[0] = 0.5 * v269; sub_100278250(&v264, v268 * 0.5, 0.5 * v269); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v68 + 184LL))(v68, &v264); } } goto LABEL_191; case 1592: *(_QWORD *)&v116 = GameManager::sharedState(a1, a2, v21).u64[0]; v118 = sub_100247680(v117, *(unsigned int *)(v6 + 1028), v25, v116); if ( v118 ) { v119 = v118; v120 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v121 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v120, v119); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1160LL))(v6, v121); } v122 = *(_QWORD *)(v6 + 888); if ( !v122 ) goto LABEL_191; v123 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v122 + 480LL))(v122, 1); if ( !v123 ) goto LABEL_191; v125 = v123; v271 = v10; v126 = 10 - v25; if ( (int)v25 < 2 ) v126 = v25; *(_QWORD *)&v127 = GameManager::sharedState(v122, 1, v124).u64[0]; v129 = sub_1002476C0(v128, *(unsigned int *)(v6 + 1028), v126, v127); if ( v129 ) { v130 = v129; v131 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v132 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v131, v130); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v125 + 1160LL))(v125, v132); } goto LABEL_190; case 1614: sub_100278600(&v268); v133 = v25 - 1; v271 = v10; switch ( v133 ) { case 0u: v134 = "smallCoin_01_001.png"; goto LABEL_148; case 1u: v134 = "smallCoin_02_001.png"; goto LABEL_148; case 2u: v134 = "smallCoin_03_001.png"; goto LABEL_148; case 3u: v134 = "smallCoin_04_001.png"; LABEL_148: v270.i64[0] = (__int64)v134; v175 = 1; break; default: v175 = 0; v270.i64[0] = 0; break; } v176 = (*(__int64 (__fastcall **)(__int64, __int64, double))(*(_QWORD *)v6 + 480LL))(v6, 1, *(double *)a3.i64); if ( !((v176 == 0) | (unsigned __int8)v175 ^ 1) ) { v177 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v178 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v177, v270.i64[0]); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v176 + 1160LL))(v176, v178); v179 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v176 + 328LL))(v176); sub_100278660(&v268, v179); } v180 = *(_QWORD *)(v6 + 888); if ( v180 ) { if ( v133 <= 3 ) { v181 = (char *)dword_100A067E4 + dword_100A067E4[v133]; v182 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v183 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v182, v181); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v180 + 1160LL))(v180, v183); v180 = *(_QWORD *)(v6 + 888); } v14.i32[1] = 0; v14.f32[0] = 0.5 * v269; sub_100278250(&v264, v268 * 0.5, 0.5 * v269); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v180 + 184LL))(v180, &v264); } v184 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 480LL))(v6, 2); v10 = v271; if ( v184 ) { v185 = v184; if ( v133 <= 3 ) { v186 = (char *)dword_100A067F4 + dword_100A067F4[v133]; v187 = ((__int64 (*)(void))cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache)(); v188 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v187, v186); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v185 + 1160LL))(v185, v188); } v189 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 328LL))(v6); sub_100278630(&v264, v189); v14.i32[1] = 0; v14.f32[0] = 0.5 * v265; sub_100278250(v263, v264 * 0.5, 0.5 * v265); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v185 + 184LL))(v185, v263); } goto LABEL_191; default: goto LABEL_121; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source