//
// cocos2d::CCProgressTimer::vertexFromAlphaPoint from 0x1006049e0 to 0x100604a6a (138 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::ccVertex2F __fastcall cocos2d::CCProgressTimer::vertexFromAlphaPoint(
cocos2d::CCProgressTimer *a1,
cocos2d::CCPoint a2)
{
unsigned __int64 *v2; // rsi
cocos2d::CCSprite *m_pSprite; // rax
float x; // xmm0_4
float y; // xmm1_4
unsigned __int64 v7; // [rsp-28h] [rbp-28h] BYREF
unsigned __int64 v8; // [rsp-20h] [rbp-20h] BYREF
float v9; // [rsp-18h] [rbp-18h]
float v10; // [rsp-14h] [rbp-14h]
m_pSprite = a1->m_pSprite;
if ( !m_pSprite )
return 0;
x = m_pSprite->m_sQuad.bl.vertices.x;
y = m_pSprite->m_sQuad.bl.vertices.y;
v9 = m_pSprite->m_sQuad.tr.vertices.x;
v10 = m_pSprite->m_sQuad.tr.vertices.y;
sub_10028CBE0((float *)&v7, x, y);
sub_10028CBE0((float *)&v8, v9, v10);
return (cocos2d::ccVertex2F)_mm_add_ps(
_mm_mul_ps((__m128)v8, (__m128)*v2),
_mm_mul_ps(_mm_sub_ps((__m128)xmmword_1008154E0, (__m128)*v2), (__m128)v7)).u64[0];
}