//
// cocos2d::CCProgressTimer::updateBar from 0x7df86c to 0x7dfd20 (1204 bytes)
//
// 1 xrefs:
// > cocos2d::CCProgressTimer::updateProgress @ 0x7e0124
//
// 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 12:00:48 +0000
//
float *__fastcall cocos2d::CCProgressTimer::updateBar(float *this)
{
int v1; // r5
float v2; // s14
int v3; // r2
float v4; // s15
bool v5; // cc
float v6; // s14
bool v7; // fnf
int v8; // r3
float v9; // s15
int v10; // r8
int v11; // r1
float v12; // r2
int v13; // r8
int v14; // r1
int v15; // r8
int v16; // r1
float v17; // r2
int v18; // r8
int v19; // r1
int v20; // r8
int v21; // r1
float v22; // r2
int v23; // r8
int v24; // r1
int v25; // r8
int v26; // r1
int v27; // r8
char *v28; // r0
char *v29; // r8
int v30; // r1
int v31; // r8
int v32; // r1
int v33; // r8
int v34; // r1
int v35; // r8
int v36; // r1
int v37; // r8
int v38; // r1
int v39; // r8
int v40; // r1
int v41; // r8
int v42; // r1
int v43; // r8
int v44; // r1
int v45; // r8
int v46; // r1
float v47; // r2
int v48; // r8
int v49; // r1
int v50; // r8
int v51; // r1
float v52; // r2
int v53; // r8
int v54; // r1
int v55; // r8
int v56; // r1
float v57; // r2
int v58; // r8
int v59; // r1
int v60; // r8
int v61; // r1
int v62; // r1
float v63; // [sp+0h] [bp-30h] BYREF
int v64; // [sp+4h] [bp-2Ch]
float v65[2]; // [sp+Ch] [bp-24h] BYREF
float v66; // [sp+14h] [bp-1Ch] BYREF
float v67; // [sp+18h] [bp-18h]
float v68; // [sp+1Ch] [bp-14h] BYREF
float v69; // [sp+20h] [bp-10h]
float v70[2]; // [sp+24h] [bp-Ch] BYREF
v1 = (int)this;
if ( *((_DWORD *)this + 72) )
{
cocos2d::CCPoint::CCPoint(
v70,
(float)(1.0 - *(this + 77)) + (float)((float)(*(this + 71) / 100.0) * *(this + 77)),
(float)(1.0 - *(this + 78)) + (float)((float)(*(this + 71) / 100.0) * *(this + 78)));
cocos2d::CCPoint::operator*(v65, v70, 0.5);
cocos2d::CCPoint::operator-(&v66, (float *)(v1 + 300), v65);
cocos2d::CCPoint::operator+(&v68, (float *)(v1 + 300), v65);
v2 = v66;
v3 = *(unsigned __int8 *)(v1 + 316);
if ( v66 < 0.0 )
{
v66 = 0.0;
v68 = v68 - v2;
}
v4 = v68;
v5 = v68 <= 1.0;
if ( v68 > 1.0 )
{
v68 = 1.0;
v4 = v66 - (float)(v4 - 1.0);
}
v6 = v67;
v7 = v67 < 0.0;
if ( !v5 )
v66 = v4;
if ( v67 < 0.0 )
{
v4 = v69;
v67 = 0.0;
}
v8 = *(_DWORD *)(v1 + 296);
if ( v7 )
v69 = v4 - v6;
v9 = v69;
if ( v69 > 1.0 )
{
v69 = 1.0;
v67 = v67 - (float)(v9 - 1.0);
}
if ( v3 )
{
if ( !v8 )
{
*(_DWORD *)(v1 + 292) = 8;
v28 = (char *)malloc(0xA0u);
*(_DWORD *)(v1 + 296) = v28;
v29 = v28 + 12;
cocos2d::CCPoint::CCPoint(v70, 0.0, 1.0);
cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v63, v1, v70);
v30 = v64;
*(float *)v29 = v63;
*((_DWORD *)v29 + 1) = v30;
v31 = *(_DWORD *)(v1 + 296);
cocos2d::CCPoint::CCPoint(v70, 0.0, 1.0);
cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v63, v1, v70);
v32 = v64;
*(float *)v31 = v63;
*(_DWORD *)(v31 + 4) = v32;
v33 = *(_DWORD *)(v1 + 296);
cocos2d::CCPoint::CCPoint(v70, 0.0, 0.0);
cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v63, v1, v70);
v34 = v64;
*(float *)(v33 + 32) = v63;
*(_DWORD *)(v33 + 36) = v34;
v35 = *(_DWORD *)(v1 + 296) + 20;
cocos2d::CCPoint::CCPoint(v70, 0.0, 0.0);
cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v63, v1, v70);
v36 = v64;
*(float *)v35 = v63;
*(_DWORD *)(v35 + 4) = v36;
v37 = *(_DWORD *)(v1 + 296);
cocos2d::CCPoint::CCPoint(v70, 1.0, 1.0);
cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v63, v1, v70);
v38 = v64;
*(float *)(v37 + 132) = v63;
*(_DWORD *)(v37 + 136) = v38;
v39 = *(_DWORD *)(v1 + 296) + 120;
cocos2d::CCPoint::CCPoint(v70, 1.0, 1.0);
cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v63, v1, v70);
v40 = v64;
*(float *)v39 = v63;
*(_DWORD *)(v39 + 4) = v40;
v41 = *(_DWORD *)(v1 + 296);
cocos2d::CCPoint::CCPoint(v70, 1.0, 0.0);
cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v63, v1, v70);
v42 = v64;
*(float *)(v41 + 152) = v63;
*(_DWORD *)(v41 + 156) = v42;
v43 = *(_DWORD *)(v1 + 296) + 140;
cocos2d::CCPoint::CCPoint(v70, 1.0, 0.0);
cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v63, v1, v70);
v44 = v64;
*(float *)v43 = v63;
*(_DWORD *)(v43 + 4) = v44;
}
v45 = *(_DWORD *)(v1 + 296);
cocos2d::CCPoint::CCPoint(v70, v66, v69);
cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v63, v1, v70);
v46 = v64;
v47 = v69;
*(float *)(v45 + 52) = v63;
*(_DWORD *)(v45 + 56) = v46;
v48 = *(_DWORD *)(v1 + 296) + 40;
cocos2d::CCPoint::CCPoint(v70, v66, v47);
cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v63, v1, v70);
v49 = v64;
*(float *)v48 = v63;
*(_DWORD *)(v48 + 4) = v49;
v50 = *(_DWORD *)(v1 + 296);
cocos2d::CCPoint::CCPoint(v70, v66, v67);
cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v63, v1, v70);
v51 = v64;
v52 = v67;
*(float *)(v50 + 72) = v63;
*(_DWORD *)(v50 + 76) = v51;
v53 = *(_DWORD *)(v1 + 296) + 60;
cocos2d::CCPoint::CCPoint(v70, v66, v52);
cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v63, v1, v70);
v54 = v64;
*(float *)v53 = v63;
*(_DWORD *)(v53 + 4) = v54;
v55 = *(_DWORD *)(v1 + 296);
cocos2d::CCPoint::CCPoint(v70, v68, v69);
cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v63, v1, v70);
v56 = v64;
v57 = v69;
*(float *)(v55 + 92) = v63;
*(_DWORD *)(v55 + 96) = v56;
v58 = *(_DWORD *)(v1 + 296) + 80;
cocos2d::CCPoint::CCPoint(v70, v68, v57);
cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v63, v1, v70);
v59 = v64;
*(float *)v58 = v63;
*(_DWORD *)(v58 + 4) = v59;
v60 = *(_DWORD *)(v1 + 296);
cocos2d::CCPoint::CCPoint(v70, v68, v67);
cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v63, v1, v70);
v61 = v64;
*(float *)(v60 + 112) = v63;
*(_DWORD *)(v60 + 116) = v61;
v27 = *(_DWORD *)(v1 + 296) + 100;
}
else
{
if ( !v8 )
{
*(_DWORD *)(v1 + 292) = 4;
*(_DWORD *)(v1 + 296) = malloc(0x50u);
}
v10 = *(_DWORD *)(v1 + 296);
cocos2d::CCPoint::CCPoint(v70, v66, v69);
cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v63, v1, v70);
v11 = v64;
v12 = v69;
*(float *)(v10 + 12) = v63;
*(_DWORD *)(v10 + 16) = v11;
v13 = *(_DWORD *)(v1 + 296);
cocos2d::CCPoint::CCPoint(v70, v66, v12);
cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v63, v1, v70);
v14 = v64;
*(float *)v13 = v63;
*(_DWORD *)(v13 + 4) = v14;
v15 = *(_DWORD *)(v1 + 296);
cocos2d::CCPoint::CCPoint(v70, v66, v67);
cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v63, v1, v70);
v16 = v64;
v17 = v67;
*(float *)(v15 + 32) = v63;
*(_DWORD *)(v15 + 36) = v16;
v18 = *(_DWORD *)(v1 + 296) + 20;
cocos2d::CCPoint::CCPoint(v70, v66, v17);
cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v63, v1, v70);
v19 = v64;
*(float *)v18 = v63;
*(_DWORD *)(v18 + 4) = v19;
v20 = *(_DWORD *)(v1 + 296);
cocos2d::CCPoint::CCPoint(v70, v68, v69);
cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v63, v1, v70);
v21 = v64;
v22 = v69;
*(float *)(v20 + 52) = v63;
*(_DWORD *)(v20 + 56) = v21;
v23 = *(_DWORD *)(v1 + 296) + 40;
cocos2d::CCPoint::CCPoint(v70, v68, v22);
cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v63, v1, v70);
v24 = v64;
*(float *)v23 = v63;
*(_DWORD *)(v23 + 4) = v24;
v25 = *(_DWORD *)(v1 + 296);
cocos2d::CCPoint::CCPoint(v70, v68, v67);
cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(&v63, v1, v70);
v26 = v64;
*(float *)(v25 + 72) = v63;
*(_DWORD *)(v25 + 76) = v26;
v27 = *(_DWORD *)(v1 + 296) + 60;
}
cocos2d::CCPoint::CCPoint(v70, v68, v67);
cocos2d::CCProgressTimer::vertexFromAlphaPoint(&v63, v1, v70);
v62 = v64;
*(float *)v27 = v63;
*(_DWORD *)(v27 + 4) = v62;
return (float *)cocos2d::CCProgressTimer::updateColor((_DWORD *)v1);
}
return this;
}