// // cocos2d::CCProgressTimer::updateRadial from 0xd69cd8 to 0xd6a178 (1184 bytes) // // 2 xrefs: // > cocos2d::CCProgressTimer::updateProgress @ 0xd6a19c // > @ 0xd25b0 // // 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 13:07:56 +0000 // __int64 __fastcall cocos2d::CCProgressTimer::updateRadial(cocos2d::CCProgressTimer *this) { float v2; // s8 float v3; // s9 const cocos2d::CCPoint *v4; // x2 float v5; // s11 int v6; // w25 int v7; // w23 const cocos2d::CCPoint *v8; // x2 float *v9; // x6 int v10; // w26 void *v11; // x0 __int64 v12; // x21 int v13; // s0 int v14; // s1 _DWORD *v15; // x21 int v16; // s0 int v17; // s1 __int64 v18; // x21 int v19; // s0 int v20; // s1 __int64 v21; // x21 int v22; // s0 int v23; // s1 __int64 v24; // x22 int v25; // w26 unsigned __int8 v26; // w1 __int64 v27; // x24 int v28; // s0 int v29; // s1 __int64 v30; // x24 __int64 v31; // x28 int v32; // s0 int v33; // s1 __int64 v34; // x21 int v35; // s0 int v36; // s1 __int64 v37; // x22 __int64 v38; // x21 int v39; // s0 int v40; // s1 float *v42; // x6 float v43; // [xsp+94h] [xbp+94h] BYREF float v44; // [xsp+98h] [xbp+98h] BYREF float v45; // [xsp+A0h] [xbp+A0h] BYREF int v46; // [xsp+A8h] [xbp+A8h] BYREF float v47; // [xsp+B0h] [xbp+B0h] BYREF float v48; // [xsp+B8h] [xbp+B8h] BYREF float v49; // [xsp+C0h] [xbp+C0h] BYREF if ( *((_QWORD *)this + 44) ) { v2 = *((float *)this + 86) / 100.0; if ( *((_BYTE *)this + 392) ) v3 = v2 * 6.2832; else v3 = (float)(1.0 - v2) * 6.2832; cocos2d::CCPoint::CCPoint(&v44, *((float *)this + 94), 1.0); cocos2d::ccpRotateByAngle((cocos2d *)&v44, (cocos2d::CCProgressTimer *)((char *)this + 376), v4, v3); cocos2d::CCPoint::CCPoint(&v46, (const cocos2d::CCPoint *)&unk_15604B0); if ( v2 == 0.0 ) { v10 = 3; v7 = 0; cocos2d::CCPoint::operator=((float *)&v46, &v44); v11 = *((void **)this + 46); if ( *((_DWORD *)this + 90) != 3 ) { LABEL_16: if ( v11 ) free(v11); *((_DWORD *)this + 90) = v10; *((_QWORD *)this + 46) = malloc(20LL * v10); cocos2d::CCProgressTimer::updateColor((__int64)this); v12 = *((_QWORD *)this + 46); cocos2d::CCPoint::CCPoint(&v49, (cocos2d::CCProgressTimer *)((char *)this + 376)); cocos2d::CCProgressTimer::textureCoordFromAlphaPoint((__int64)this, &v49); *(_DWORD *)(v12 + 12) = v13; *(_DWORD *)(v12 + 16) = v14; v15 = *((_DWORD **)this + 46); cocos2d::CCPoint::CCPoint(&v49, (cocos2d::CCProgressTimer *)((char *)this + 376)); cocos2d::CCProgressTimer::vertexFromAlphaPoint((__int64)this, &v49); *v15 = v16; v15[1] = v17; v18 = *((_QWORD *)this + 46); cocos2d::CCPoint::CCPoint(&v49, (const cocos2d::CCPoint *)&v44); cocos2d::CCProgressTimer::textureCoordFromAlphaPoint((__int64)this, &v49); *(_DWORD *)(v18 + 32) = v19; *(_DWORD *)(v18 + 36) = v20; v21 = *((_QWORD *)this + 46); cocos2d::CCPoint::CCPoint(&v49, (const cocos2d::CCPoint *)&v44); cocos2d::CCProgressTimer::vertexFromAlphaPoint((__int64)this, &v49); *(_DWORD *)(v21 + 20) = v22; *(_DWORD *)(v21 + 24) = v23; if ( v7 ) { v24 = 40; v25 = 0; do { v26 = v25++; cocos2d::CCProgressTimer::boundaryTexCoord(this, v26, &v48); v27 = *((_QWORD *)this + 46) + v24; cocos2d::CCPoint::CCPoint(&v49, (const cocos2d::CCPoint *)&v48); cocos2d::CCProgressTimer::textureCoordFromAlphaPoint((__int64)this, &v49); *(_DWORD *)(v27 + 12) = v28; *(_DWORD *)(v27 + 16) = v29; v30 = *((_QWORD *)this + 46); cocos2d::CCPoint::CCPoint(&v49, (const cocos2d::CCPoint *)&v48); v31 = v30 + v24; cocos2d::CCProgressTimer::vertexFromAlphaPoint((__int64)this, &v49); *(_DWORD *)(v30 + v24) = v32; v24 += 20; *(_DWORD *)(v31 + 4) = v33; } while ( v25 != v7 ); } LABEL_21: v34 = *((_QWORD *)this + 46) + 20LL * *((int *)this + 90) - 20; cocos2d::CCPoint::CCPoint(&v49, (const cocos2d::CCPoint *)&v46); cocos2d::CCProgressTimer::textureCoordFromAlphaPoint((__int64)this, &v49); *(_DWORD *)(v34 + 12) = v35; *(_DWORD *)(v34 + 16) = v36; v37 = *((_QWORD *)this + 46); v38 = 20LL * *((int *)this + 90) - 20; cocos2d::CCPoint::CCPoint(&v49, (const cocos2d::CCPoint *)&v46); cocos2d::CCProgressTimer::vertexFromAlphaPoint((__int64)this, &v49); *(_DWORD *)(v37 + v38) = v39; *(_DWORD *)(v37 + v38 + 4) = v40; return _stack_chk_guard; } } else { if ( v2 != 1.0 ) { v5 = 3.4028e38; v6 = 0; v7 = 0; while ( 1 ) { cocos2d::CCProgressTimer::boundaryTexCoord(this, v6 & 3, &v47); cocos2d::CCProgressTimer::boundaryTexCoord(this, (v6 + 3) & 3, &v48); if ( v6 ) { if ( v6 != 4 ) { v43 = 0.0; v49 = 0.0; if ( (unsigned __int8)cocos2d::ccpLineIntersect( (cocos2d *)&v47, (const cocos2d::CCPoint *)&v48, (cocos2d::CCProgressTimer *)((char *)this + 376), (const cocos2d::CCPoint *)&v45, (const cocos2d::CCPoint *)&v43, &v49, v9) ) goto LABEL_10; goto LABEL_13; } cocos2d::ccpLerp((cocos2d *)&v47, (const cocos2d::CCPoint *)&v48, v8, 1.0 - *((float *)this + 94)); cocos2d::CCPoint::operator=(&v47, &v49); } else { cocos2d::ccpLerp((cocos2d *)&v47, (const cocos2d::CCPoint *)&v48, v8, 1.0 - *((float *)this + 94)); cocos2d::CCPoint::operator=(&v48, &v49); } v43 = 0.0; v49 = 0.0; if ( (unsigned __int8)cocos2d::ccpLineIntersect( (cocos2d *)&v47, (const cocos2d::CCPoint *)&v48, (cocos2d::CCProgressTimer *)((char *)this + 376), (const cocos2d::CCPoint *)&v45, (const cocos2d::CCPoint *)&v43, &v49, v42) && v43 >= 0.0 && v43 <= 1.0 ) { LABEL_10: if ( v49 < v5 && v49 >= 0.0 ) { v5 = v49; v7 = v6; } } LABEL_13: if ( ++v6 == 5 ) { v10 = v7 + 3; cocos2d::CCPoint::operator-(&v45, (float *)this + 94, &v47); cocos2d::CCPoint::operator*(&v47, &v48, v5); cocos2d::CCPoint::operator+(&v49, (float *)this + 94, &v48); cocos2d::CCPoint::operator=((float *)&v46, &v49); goto LABEL_15; } } } v10 = 7; v7 = 4; cocos2d::CCPoint::operator=((float *)&v46, &v44); LABEL_15: v11 = *((void **)this + 46); if ( v10 != *((_DWORD *)this + 90) ) goto LABEL_16; } if ( !v11 ) *((_QWORD *)this + 46) = malloc(20LL * v10); cocos2d::CCProgressTimer::updateColor((__int64)this); goto LABEL_21; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source