//
// cocos2d::CCProgressTimer::textureCoordFromAlphaPoint from 0x1006dc310 to 0x1006dc3bc (172 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:35:43 +0000
//
double __fastcall cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(__int64 a1, double *a2)
{
float *v2; // rax
float v3; // xmm0_4
float v4; // xmm1_4
__m128 v5; // xmm1
double result; // xmm0_8
unsigned __int64 v7; // [rsp-30h] [rbp-30h] BYREF
unsigned __int64 v8; // [rsp-28h] [rbp-28h] BYREF
float v9; // [rsp-20h] [rbp-20h]
float v10; // [rsp-1Ch] [rbp-1Ch]
v2 = *(float **)(a1 + 352);
if ( !v2 )
return 0.0;
v3 = v2[125];
v4 = v2[126];
v9 = v2[131];
v10 = v2[132];
sub_100278250((float *)&v7, v3, v4);
sub_100278250((float *)&v8, v9, v10);
v5 = (__m128)*(unsigned __int64 *)a2;
if ( *(_BYTE *)(*(_QWORD *)(a1 + 352) + 440LL) == 1 )
{
v5 = _mm_shuffle_ps(v5, v5, 225);
_mm_storel_ps(a2, v5);
}
*(_QWORD *)&result = _mm_add_ps(
_mm_mul_ps((__m128)v8, v5),
_mm_mul_ps((__m128)v7, _mm_sub_ps((__m128)xmmword_100A038B0, v5))).u64[0];
return result;
}