// // HardStreak::updateStroke from 0x825838 to 0x826010 (2008 bytes) // // 7 xrefs: // > PlayerObject::updateEffects @ 0x622bcc // > HardStreak::resumeStroke @ 0x826024 // > HardStreak::firstSetup @ 0x826238 // > @ 0x87df8 // > HardStreak::scheduleAutoUpdate @ 0x825534 // > HardStreak::stopStroke @ 0x825580 // > @ 0x122c968 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void HardStreak::updateStroke(HardStreak *a1, float a2) { int v3; // w1 const cocos2d::CCPoint *v4; // x0 cocos2d::CCArray *m_pointArray; // x0 cocos2d::ccArray *data; // x1 cocos2d::CCObject **arr; // x20 __int64 v8; // x0 char *v9; // x23 const cocos2d::CCPoint *i; // x19 const cocos2d::CCPoint *v11; // x19 float v12; // s0 float v13; // s1 float v14; // s0 float v15; // s1 unsigned int v16; // w27 unsigned int v17; // w24 const cocos2d::CCPoint *v18; // x0 const cocos2d::CCPoint *v19; // x0 __int64 j; // x25 cocos2d::CCPoint *v21; // x0 float m_waveSize; // s0 float v23; // s0 float v24; // s8 float v25; // s4 float v26; // s13 float v27; // s0 double v28; // d14 float v29; // s8 float v30; // s8 float v31; // s0 float v32; // s1 float v33; // s0 float v34; // s1 cocos2d::CCPoint *v35; // x0 float v36; // s0 float v37; // s1 cocos2d::CCPoint *v38; // x0 float v39; // s0 float v40; // s1 const cocos2d::ccColor3B *v41; // x0 int g; // w2 float b; // s1 HardStreak_vtbl *v44; // x1 float r; // s0 float v46; // s1 cocos2d::CCArray *v47; // x0 cocos2d::ccArray *v48; // x1 cocos2d::CCObject **v49; // x20 __int64 v50; // x0 char *v51; // x21 const cocos2d::CCPoint *k; // x19 const cocos2d::CCPoint *v53; // x19 float v54; // s0 float v55; // s1 float v56; // s0 float v57; // s1 float v58; // s0 float v59; // s1 float v60; // s0 float v61; // s1 float v62; // s0 float v63; // s1 float v64; // s0 float v65; // s1 float v66; // s0 float v67; // s1 float v68; // s14 float v69; // s14 const cocos2d::CCPoint *p_m_currentPoint; // [xsp+B0h] [xbp+B0h] int v71; // [xsp+C0h] [xbp+C0h] int v72; // [xsp+C4h] [xbp+C4h] int v73; // [xsp+CCh] [xbp+CCh] cocos2d::CCPoint v74; // [xsp+D8h] [xbp+D8h] BYREF cocos2d::CCPoint v75; // [xsp+E0h] [xbp+E0h] BYREF cocos2d::CCPoint v76; // [xsp+E8h] [xbp+E8h] BYREF float v77; // [xsp+F0h] [xbp+F0h] BYREF cocos2d::CCPoint v78; // [xsp+F8h] [xbp+F8h] BYREF cocos2d::CCPoint v79; // [xsp+100h] [xbp+100h] BYREF cocos2d::CCPoint v80; // [xsp+108h] [xbp+108h] BYREF float v81; // [xsp+110h] [xbp+110h] float v82; // [xsp+114h] [xbp+114h] cocos2d::CCPoint v83; // [xsp+118h] [xbp+118h] BYREF int v84; // [xsp+120h] [xbp+120h] int v85; // [xsp+124h] [xbp+124h] _BYTE v86[8]; // [xsp+128h] [xbp+128h] BYREF __int64 v87; // [xsp+130h] [xbp+130h] BYREF __int64 v88; // [xsp+138h] [xbp+138h] BYREF __int64 v89; // [xsp+140h] [xbp+140h] BYREF cocos2d::CCPoint v90; // 0:s0.4,4:s1.4 cocos2d::CCPoint v91; // 0:s2.4,4:s3.4 if ( !a1->m_drawStreak ) return; cocos2d::CCDrawNode::clear(a1); if ( !(unsigned int)cocos2d::CCArray::count(a1->m_pointArray) || !a1->getOpacity(a1) ) return; if ( a1->m_isSolid ) v3 = 1; else v3 = 2; v71 = v3; v4 = a1->getPosition(a1); cocos2d::CCPoint::CCPoint(&v74, v4); m_pointArray = a1->m_pointArray; if ( m_pointArray ) { data = m_pointArray->data; if ( data->num ) { arr = data->arr; v8 = 8LL * data->num - 8; v9 = (char *)arr + v8; if ( arr <= (cocos2d::CCObject **)((char *)arr + v8) ) { for ( i = (const cocos2d::CCPoint *)*arr; *arr; i = (const cocos2d::CCPoint *)*arr ) { v11 = i + 7; ++arr; cocos2d::CCPoint::CCPoint(&v80, v11); cocos2d::CCPoint::operator-(&v83, &v80, &v74); cocos2d::CCPoint::operator=(v11, v12, v13); if ( v9 < (char *)arr ) break; } } } } p_m_currentPoint = &a1->m_currentPoint; v73 = 0; cocos2d::CCPoint::operator-(&v83, &a1->m_currentPoint, &v74); cocos2d::CCPoint::operator=(&a1->m_currentPoint, v14, v15); do { v16 = 1; v17 = 0; if ( (unsigned int)cocos2d::CCArray::count(a1->m_pointArray) ) { while ( 1 ) { v18 = (const cocos2d::CCPoint *)cocos2d::CCArray::objectAtIndex(a1->m_pointArray, v17); cocos2d::CCPoint::CCPoint(&v75, v18 + 7); if ( (unsigned int)cocos2d::CCArray::count(a1->m_pointArray) - 1 <= v17 ) { cocos2d::CCPoint::CCPoint(&v76, p_m_currentPoint); } else { v19 = (const cocos2d::CCPoint *)cocos2d::CCArray::objectAtIndex(a1->m_pointArray, v16); cocos2d::CCPoint::CCPoint(&v76, v19 + 7); } if ( v75.x != v76.x || v75.y != v76.y ) break; LABEL_41: v17 = v16++; if ( (unsigned int)cocos2d::CCArray::count(a1->m_pointArray) <= v16 - 1 ) goto LABEL_42; } if ( a1->m_isFlipped ) { cocos2d::CCPoint::CCPoint(&v83, &v76); cocos2d::CCPoint::operator=(&v76, v58, v59); cocos2d::CCPoint::operator=(&v75, v60, v61); } for ( j = 0; j != 32; j += 8 ) { v21 = (cocos2d::CCPoint *)&v86[j]; cocos2d::CCPoint::CCPoint(v21); } m_waveSize = a1->m_waveSize; if ( v73 ) v23 = m_waveSize + m_waveSize; else v23 = m_waveSize * 6.0; v24 = v23 * a1->m_pulseSize; cocos2d::CCPoint::CCPoint(&v80, &v75); cocos2d::CCPoint::CCPoint(&v83, &v76); v90.x = v24; HardStreak::quadCornerOffset(a1, v90, v91, v25); v26 = fabsf(v77); v27 = asinh((float)(v26 / (float)(v24 * 0.5))); v28 = tanh(v27); v29 = v28 * v26; v30 = fabsf(v29); if ( v17 < (unsigned int)cocos2d::CCArray::count(a1->m_pointArray) - 1 || v73 || a1->m_isFlipped ) { v72 = 0; } else { if ( fabsf(cocos2d::ccpDistance(&v75, &v76)) > 10.0 ) { v68 = v28 * 4.0; v69 = fabsf(v68); if ( a1->m_isFlipped ) { v75.x = v75.x + 4.0; v72 = 1; if ( v75.y >= v76.y ) v75.y = v75.y - v69; else v75.y = v69 + v75.y; } else { v76.x = v76.x - 4.0; v72 = 1; if ( v75.y >= v76.y ) v76.y = v69 + v76.y; else v76.y = v76.y - v69; } cocos2d::CCPoint::CCPoint(&v78, &v75); cocos2d::CCPoint::CCPoint(&v79, &v76); v78.x = v78.x - v26; v79.x = v79.x + v26; goto LABEL_62; } v72 = 1; } cocos2d::CCPoint::CCPoint(&v78, &v75); cocos2d::CCPoint::CCPoint(&v79, &v76); v78.x = v78.x - v26; v79.x = v79.x + v26; if ( v73 ) { v75.x = v75.x + v26; v76.x = v76.x - v26; if ( v78.y < v79.y ) { v78.y = v78.y - v30; v79.y = v30 + v79.y; v75.y = v75.y + v30; v76.y = v76.y - v30; LABEL_32: cocos2d::CCPoint::operator-(&v83, &v78, &v77); cocos2d::CCPoint::operator=(v86, v31, v32); cocos2d::CCPoint::operator+(&v83, &v75, &v77); cocos2d::CCPoint::operator=(&v87, v33, v34); if ( v72 ) v35 = &v76; else v35 = &v79; cocos2d::CCPoint::operator+(&v83, v35, &v77); cocos2d::CCPoint::operator=(&v88, v36, v37); v38 = &v76; goto LABEL_36; } v78.y = v78.y + v30; v79.y = v79.y - v30; v75.y = v75.y - v30; v76.y = v76.y + v30; goto LABEL_52; } LABEL_62: if ( v79.y > v78.y ) { v78.y = v78.y - v30; v79.y = v30 + v79.y; goto LABEL_32; } v78.y = v30 + v78.y; v79.y = v79.y - v30; LABEL_52: cocos2d::CCPoint::operator-(&v83, &v75, &v77); cocos2d::CCPoint::operator=(v86, v62, v63); cocos2d::CCPoint::operator+(&v83, &v78, &v77); cocos2d::CCPoint::operator=(&v87, v64, v65); cocos2d::CCPoint::operator+(&v83, &v76, &v77); cocos2d::CCPoint::operator=(&v88, v66, v67); if ( v72 ) v38 = &v76; else v38 = &v79; LABEL_36: cocos2d::CCPoint::operator-(&v83, v38, &v77); cocos2d::CCPoint::operator=(&v89, v39, v40); v41 = (const cocos2d::ccColor3B *)&off_EEA2F0; if ( !v73 ) v41 = a1->getColor(a1); g = v41->g; b = (float)v41->b; v44 = a1->cocos2d::CCDrawNode::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; r = (float)v41->r; v82 = 1.0; v81 = b / 255.0; v80.y = (float)g / 255.0; v80.x = r / 255.0; if ( v73 ) v46 = (float)((float)v44->getOpacity(a1) / 255.0) * 0.65; else v46 = (float)v44->getOpacity(a1) / 255.0; v82 = v46; v83.x = 0.0; v83.y = 0.0; v84 = 0; v85 = 0; cocos2d::CCDrawNode::drawPolygon(a1, v86, 4, &v80, &v83, 0, 0.0); goto LABEL_41; } LABEL_42: ++v73; } while ( v73 != v71 ); v47 = a1->m_pointArray; if ( v47 ) { v48 = v47->data; if ( v48->num ) { v49 = v48->arr; v50 = 8LL * v48->num - 8; v51 = (char *)v49 + v50; if ( v49 <= (cocos2d::CCObject **)((char *)v49 + v50) ) { for ( k = (const cocos2d::CCPoint *)*v49; *v49; k = (const cocos2d::CCPoint *)*v49 ) { v53 = k + 7; ++v49; cocos2d::CCPoint::CCPoint(&v80, v53); cocos2d::CCPoint::operator+(&v83, &v80, &v74); cocos2d::CCPoint::operator=(v53, v54, v55); if ( v51 < (char *)v49 ) break; } } } } cocos2d::CCPoint::operator+(&v83, p_m_currentPoint, &v74); cocos2d::CCPoint::operator=(p_m_currentPoint, v56, v57); }
GD Web Decomp Icon

GD Web Decomp

Raw Source