// // cocos2d::CCProgressTimer::updateBar from 0x5d74bc to 0x5d7974 (1208 bytes) // // 1 xrefs: // > cocos2d::CCProgressTimer::updateProgress @ 0x5d7d78 // // 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 cocos2d::CCProgressTimer::updateBar(cocos2d::CCProgressTimer *a1) { float x; // s14 _BOOL4 m_bReverseDirection; // r2 float v4; // s15 bool v5; // cc float y; // s14 bool v7; // fnf cocos2d::ccV2F_C4B_T2F *m_pVertexData; // r3 float v9; // s15 cocos2d::ccV2F_C4B_T2F *v10; // r9 cocos2d::CCPoint v11; // r2 GLfloat v12; // r1 cocos2d::ccTex2F *v13; // r3 float v14; // r2 cocos2d::ccV2F_C4B_T2F *v15; // r9 cocos2d::CCPoint v16; // r2 GLfloat v17; // r1 float v18; // r2 cocos2d::ccV2F_C4B_T2F *v19; // r9 cocos2d::CCPoint v20; // r2 GLfloat v21; // r1 float v22; // r2 cocos2d::ccV2F_C4B_T2F *v23; // r9 cocos2d::CCPoint v24; // r2 GLfloat v25; // r1 float v26; // r2 cocos2d::ccV2F_C4B_T2F *v27; // r9 cocos2d::CCPoint v28; // r2 GLfloat v29; // r1 float v30; // r2 cocos2d::ccV2F_C4B_T2F *v31; // r9 cocos2d::CCPoint v32; // r2 GLfloat v33; // r1 float v34; // r2 cocos2d::ccV2F_C4B_T2F *v35; // r9 cocos2d::CCPoint v36; // r2 GLfloat v37; // r1 cocos2d::ccV2F_C4B_T2F *v38; // r7 cocos2d::ccV2F_C4B_T2F *v39; // r7 cocos2d::ccV2F_C4B_T2F *v40; // r0 cocos2d::ccTex2F *p_texCoords; // r9 cocos2d::CCPoint v42; // r2 GLfloat v; // r1 cocos2d::ccV2F_C4B_T2F *v44; // r9 cocos2d::CCPoint v45; // r2 GLfloat v46; // r1 cocos2d::ccV2F_C4B_T2F *v47; // r9 cocos2d::CCPoint v48; // r2 GLfloat v49; // r1 cocos2d::ccV2F_C4B_T2F *v50; // r9 cocos2d::CCPoint v51; // r2 GLfloat v52; // r1 cocos2d::ccV2F_C4B_T2F *v53; // r9 cocos2d::CCPoint v54; // r2 GLfloat v55; // r1 cocos2d::ccV2F_C4B_T2F *v56; // r9 cocos2d::CCPoint v57; // r2 GLfloat v58; // r1 cocos2d::ccV2F_C4B_T2F *v59; // r9 cocos2d::CCPoint v60; // r2 GLfloat v61; // r1 cocos2d::ccV2F_C4B_T2F *v62; // r9 cocos2d::CCPoint v63; // r2 GLfloat v64; // r1 cocos2d::ccV2F_C4B_T2F *v65; // r9 cocos2d::CCPoint v66; // r2 GLfloat v67; // r1 float v68; // r2 cocos2d::ccV2F_C4B_T2F *v69; // r9 cocos2d::CCPoint v70; // r2 GLfloat v71; // r1 float v72; // r2 cocos2d::ccV2F_C4B_T2F *v73; // r9 cocos2d::CCPoint v74; // r2 GLfloat v75; // r1 float v76; // r2 cocos2d::ccV2F_C4B_T2F *v77; // r9 cocos2d::CCPoint v78; // r2 GLfloat v79; // r1 float v80; // r2 cocos2d::ccV2F_C4B_T2F *v81; // r9 cocos2d::CCPoint v82; // r2 GLfloat v83; // r1 float v84; // r2 cocos2d::ccV2F_C4B_T2F *v85; // r9 cocos2d::CCPoint v86; // r2 GLfloat v87; // r1 float v88; // r2 cocos2d::ccV2F_C4B_T2F *v89; // r9 cocos2d::CCPoint v90; // r2 GLfloat v91; // r1 cocos2d::CCPoint v92; // r2 GLfloat v93; // r1 cocos2d::ccVertex2F v94; // [sp+0h] [bp-3Ch] BYREF cocos2d::ccTex2F v95; // [sp+8h] [bp-34h] BYREF cocos2d::CCPoint v96; // [sp+14h] [bp-28h] BYREF cocos2d::CCPoint v97; // [sp+1Ch] [bp-20h] BYREF cocos2d::CCPoint v98; // [sp+24h] [bp-18h] BYREF cocos2d::CCPoint v99; // [sp+2Ch] [bp-10h] BYREF if ( a1->m_pSprite ) { cocos2d::CCPoint::CCPoint( &v99, (float)(1.0 - a1->m_tBarChangeRate.x) + (float)((float)(a1->m_fPercentage / 100.0) * a1->m_tBarChangeRate.x), (float)(1.0 - a1->m_tBarChangeRate.y) + (float)((float)(a1->m_fPercentage / 100.0) * a1->m_tBarChangeRate.y)); cocos2d::CCPoint::operator*(&v96, &v99.x, 0.5); cocos2d::CCPoint::operator-(&v97, &a1->m_tMidpoint.x, &v96.x); cocos2d::CCPoint::operator+(&v98, &a1->m_tMidpoint.x, &v96.x); x = v97.x; m_bReverseDirection = a1->m_bReverseDirection; if ( v97.x < 0.0 ) { v97.x = 0.0; v98.x = v98.x - x; } v4 = v98.x; v5 = v98.x <= 1.0; if ( v98.x > 1.0 ) { v98.x = 1.0; v4 = v97.x - (float)(v4 - 1.0); } y = v97.y; v7 = v97.y < 0.0; if ( !v5 ) v97.x = v4; if ( v97.y < 0.0 ) { v4 = v98.y; v97.y = 0.0; } m_pVertexData = a1->m_pVertexData; if ( v7 ) v98.y = v4 - y; v9 = v98.y; if ( v98.y > 1.0 ) { v98.y = 1.0; v97.y = v97.y - (float)(v9 - 1.0); } if ( m_bReverseDirection ) { if ( !m_pVertexData ) { a1->m_nVertexDataCount = 8; v40 = (cocos2d::ccV2F_C4B_T2F *)malloc(0xA0u); a1->m_pVertexData = v40; p_texCoords = &v40->texCoords; cocos2d::CCPoint::CCPoint(&v99, 0.0, 1.0); LODWORD(v42.x) = &v99; cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v95, a1, v42); v = v95.v; p_texCoords->u = v95.u; p_texCoords->v = v; v44 = a1->m_pVertexData; cocos2d::CCPoint::CCPoint(&v99, 0.0, 1.0); LODWORD(v45.x) = &v99; cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v94, a1, v45); v46 = v94.y; v44->vertices.x = v94.x; v44->vertices.y = v46; v47 = a1->m_pVertexData; cocos2d::CCPoint::CCPoint(&v99, 0.0, 0.0); LODWORD(v48.x) = &v99; cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v95, a1, v48); v49 = v95.v; v47[1].texCoords.u = v95.u; v47[1].texCoords.v = v49; v50 = a1->m_pVertexData + 1; cocos2d::CCPoint::CCPoint(&v99, 0.0, 0.0); LODWORD(v51.x) = &v99; cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v94, a1, v51); v52 = v94.y; v50->vertices.x = v94.x; v50->vertices.y = v52; v53 = a1->m_pVertexData; cocos2d::CCPoint::CCPoint(&v99, 1.0, 1.0); LODWORD(v54.x) = &v99; cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v95, a1, v54); v55 = v95.v; v53[6].texCoords.u = v95.u; v53[6].texCoords.v = v55; v56 = a1->m_pVertexData + 6; cocos2d::CCPoint::CCPoint(&v99, 1.0, 1.0); LODWORD(v57.x) = &v99; cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v94, a1, v57); v58 = v94.y; v56->vertices.x = v94.x; v56->vertices.y = v58; v59 = a1->m_pVertexData; cocos2d::CCPoint::CCPoint(&v99, 1.0, 0.0); LODWORD(v60.x) = &v99; cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v95, a1, v60); v61 = v95.v; v59[7].texCoords.u = v95.u; v59[7].texCoords.v = v61; v62 = a1->m_pVertexData + 7; cocos2d::CCPoint::CCPoint(&v99, 1.0, 0.0); LODWORD(v63.x) = &v99; cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v94, a1, v63); v64 = v94.y; v62->vertices.x = v94.x; v62->vertices.y = v64; } v65 = a1->m_pVertexData; cocos2d::CCPoint::CCPoint(&v99, v97.x, v98.y); LODWORD(v66.x) = &v99; cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v95, a1, v66); v67 = v95.v; v68 = v98.y; v65[2].texCoords.u = v95.u; v65[2].texCoords.v = v67; v69 = a1->m_pVertexData + 2; cocos2d::CCPoint::CCPoint(&v99, v97.x, v68); LODWORD(v70.x) = &v99; cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v94, a1, v70); v71 = v94.y; v72 = v97.y; v69->vertices.x = v94.x; v69->vertices.y = v71; v73 = a1->m_pVertexData; cocos2d::CCPoint::CCPoint(&v99, v97.x, v72); LODWORD(v74.x) = &v99; cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v95, a1, v74); v75 = v95.v; v76 = v97.y; v73[3].texCoords.u = v95.u; v73[3].texCoords.v = v75; v77 = a1->m_pVertexData + 3; cocos2d::CCPoint::CCPoint(&v99, v97.x, v76); LODWORD(v78.x) = &v99; cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v94, a1, v78); v79 = v94.y; v80 = v98.y; v77->vertices.x = v94.x; v77->vertices.y = v79; v81 = a1->m_pVertexData; cocos2d::CCPoint::CCPoint(&v99, v98.x, v80); LODWORD(v82.x) = &v99; cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v95, a1, v82); v83 = v95.v; v84 = v98.y; v81[4].texCoords.u = v95.u; v81[4].texCoords.v = v83; v85 = a1->m_pVertexData + 4; cocos2d::CCPoint::CCPoint(&v99, v98.x, v84); LODWORD(v86.x) = &v99; cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v94, a1, v86); v87 = v94.y; v88 = v97.y; v85->vertices.x = v94.x; v85->vertices.y = v87; v89 = a1->m_pVertexData; cocos2d::CCPoint::CCPoint(&v99, v98.x, v88); LODWORD(v90.x) = &v99; cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v95, a1, v90); v91 = v95.v; v39 = a1->m_pVertexData + 5; v89[5].texCoords.u = v95.u; v89[5].texCoords.v = v91; } else { if ( !m_pVertexData ) { a1->m_nVertexDataCount = 4; a1->m_pVertexData = (cocos2d::ccV2F_C4B_T2F *)malloc(0x50u); } v10 = a1->m_pVertexData; cocos2d::CCPoint::CCPoint(&v99, v97.x, v98.y); LODWORD(v11.x) = &v99; cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v95, a1, v11); v12 = v95.v; v13 = &v10->texCoords; v14 = v98.y; v15 = a1->m_pVertexData; v13->u = v95.u; v13->v = v12; cocos2d::CCPoint::CCPoint(&v99, v97.x, v14); LODWORD(v16.x) = &v99; cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v94, a1, v16); v17 = v94.y; v18 = v97.y; v15->vertices.x = v94.x; v15->vertices.y = v17; v19 = a1->m_pVertexData; cocos2d::CCPoint::CCPoint(&v99, v97.x, v18); LODWORD(v20.x) = &v99; cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v95, a1, v20); v21 = v95.v; v22 = v97.y; v19[1].texCoords.u = v95.u; v19[1].texCoords.v = v21; v23 = a1->m_pVertexData + 1; cocos2d::CCPoint::CCPoint(&v99, v97.x, v22); LODWORD(v24.x) = &v99; cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v94, a1, v24); v25 = v94.y; v26 = v98.y; v23->vertices.x = v94.x; v23->vertices.y = v25; v27 = a1->m_pVertexData; cocos2d::CCPoint::CCPoint(&v99, v98.x, v26); LODWORD(v28.x) = &v99; cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v95, a1, v28); v29 = v95.v; v30 = v98.y; v27[2].texCoords.u = v95.u; v27[2].texCoords.v = v29; v31 = a1->m_pVertexData + 2; cocos2d::CCPoint::CCPoint(&v99, v98.x, v30); LODWORD(v32.x) = &v99; cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v94, a1, v32); v33 = v94.y; v34 = v97.y; v31->vertices.x = v94.x; v31->vertices.y = v33; v35 = a1->m_pVertexData; cocos2d::CCPoint::CCPoint(&v99, v98.x, v34); LODWORD(v36.x) = &v99; cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v95, a1, v36); v37 = v95.v; v38 = a1->m_pVertexData; v35[3].texCoords.u = v95.u; v35[3].texCoords.v = v37; v39 = v38 + 3; } cocos2d::CCPoint::CCPoint(&v99, v98.x, v97.y); LODWORD(v92.x) = &v99; cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v94, a1, v92); v93 = v94.y; v39->vertices.x = v94.x; v39->vertices.y = v93; cocos2d::CCProgressTimer::updateColor(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source