//
// cocos2d::CCProgressTimer::vertexFromAlphaPoint from 0x18005f110 to 0x18005f1e5 (213 bytes)
//
// 20 xrefs:
// > cocos2d::CCProgressTimer::updateBar @ 0x18005e4e4
// > cocos2d::CCProgressTimer::updateBar @ 0x18005e553
// > cocos2d::CCProgressTimer::updateBar @ 0x18005e5c3
// > cocos2d::CCProgressTimer::updateBar @ 0x18005e633
// > cocos2d::CCProgressTimer::updateBar @ 0x18005e6c5
// > cocos2d::CCProgressTimer::updateBar @ 0x18005e72c
// > cocos2d::CCProgressTimer::updateBar @ 0x18005e79a
// > cocos2d::CCProgressTimer::updateBar @ 0x18005e808
// > cocos2d::CCProgressTimer::updateBar @ 0x18005e87e
// > cocos2d::CCProgressTimer::updateBar @ 0x18005e8ee
// > cocos2d::CCProgressTimer::updateBar @ 0x18005e95e
// > cocos2d::CCProgressTimer::updateBar @ 0x18005e9ce
// > cocos2d::CCProgressTimer::updateRadial @ 0x18005eee2
// > cocos2d::CCProgressTimer::updateRadial @ 0x18005ef47
// > cocos2d::CCProgressTimer::updateRadial @ 0x18005f02f
// > cocos2d::CCProgressTimer::updateRadial @ 0x18005f0b3
// > ??> @ 0x1801393f4
// > ??> @ 0x180139404
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b333c
//
// 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
//
struct cocos2d::CCPoint __fastcall cocos2d::CCProgressTimer::vertexFromAlphaPoint(
cocos2d::CCProgressTimer *this,
struct cocos2d::CCPoint a2,
float *a3)
{
cocos2d::CCSprite *m_pSprite; // rax
__m128 v6; // xmm6
float v7; // xmm1_4
float v8; // xmm2_4
float v9; // xmm1_4
float v11; // [rsp+A0h] [rbp+8h] BYREF
float v12; // [rsp+A4h] [rbp+Ch]
float v13; // [rsp+A8h] [rbp+10h] BYREF
float v14; // [rsp+ACh] [rbp+14h]
**(_QWORD **)&a2 = 0;
m_pSprite = this->m_pSprite;
if ( m_pSprite )
{
v6 = *(__m128 *)&m_pSprite->m_sQuad.tr.vertices.x;
kmVec2Fill(
&v11,
_mm_shuffle_ps(*(__m128 *)&m_pSprite->m_sQuad.tl.texCoords.u, *(__m128 *)&m_pSprite->m_sQuad.tl.texCoords.u, 170).m128_f32[0],
_mm_shuffle_ps(*(__m128 *)&m_pSprite->m_sQuad.tl.texCoords.u, *(__m128 *)&m_pSprite->m_sQuad.tl.texCoords.u, 255).m128_f32[0]);
kmVec2Fill(&v13, v6.m128_f32[0], _mm_shuffle_ps(v6, v6, 85).m128_f32[0]);
v7 = a3[1];
v8 = 1.0 - v7;
v9 = v7 * v14;
**(float **)&a2 = (float)((float)(1.0 - *a3) * v11) + (float)(*a3 * v13);
*(float *)(*(_QWORD *)&a2 + 4LL) = (float)(v8 * v12) + v9;
}
return a2;
}