//
// cocos2d::CCProgressTimer::textureCoordFromAlphaPoint from 0x10047e2cc to 0x10047e368 (156 bytes)
//
// 16 xrefs:
// > cocos2d::CCProgressTimer::updateRadial @ 0x10047e648
// > cocos2d::CCProgressTimer::updateRadial @ 0x10047e688
// > cocos2d::CCProgressTimer::updateRadial @ 0x10047e6ec
// > cocos2d::CCProgressTimer::updateRadial @ 0x10047e744
// > cocos2d::CCProgressTimer::updateBar @ 0x10047e8f4
// > cocos2d::CCProgressTimer::updateBar @ 0x10047e93c
// > cocos2d::CCProgressTimer::updateBar @ 0x10047e984
// > cocos2d::CCProgressTimer::updateBar @ 0x10047e9cc
// > cocos2d::CCProgressTimer::updateBar @ 0x10047ea18
// > cocos2d::CCProgressTimer::updateBar @ 0x10047ea58
// > cocos2d::CCProgressTimer::updateBar @ 0x10047ea98
// > cocos2d::CCProgressTimer::updateBar @ 0x10047eadc
// > cocos2d::CCProgressTimer::updateBar @ 0x10047eb40
// > cocos2d::CCProgressTimer::updateBar @ 0x10047eb80
// > cocos2d::CCProgressTimer::updateBar @ 0x10047ebc0
// > cocos2d::CCProgressTimer::updateBar @ 0x10047ec04
//
// 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 11:05:45 +0000
//
float32x2_t __fastcall cocos2d::CCProgressTimer::textureCoordFromAlphaPoint(__int64 a1, float32x2_t *a2)
{
float *v2; // x8
float v5; // s8
float v6; // s9
float32x2_t v7; // d0
float32x2_t v14; // [xsp+0h] [xbp-30h] BYREF
float32x2_t v15; // [xsp+8h] [xbp-28h] BYREF
v2 = *(float **)(a1 + 352);
if ( v2 )
{
v5 = v2[131];
v6 = v2[132];
sub_1000262BC((float *)&v15, v2[125], v2[126]);
sub_1000262BC((float *)&v14, v5, v6);
v7 = *a2;
if ( *(_BYTE *)(*(_QWORD *)(a1 + 352) + 440LL) == 1 )
{
v7 = (float32x2_t)vrev64_s32((int32x2_t)v7);
*a2 = v7;
}
__asm { FMOV V1.2S, #1.0 }
return vmla_f32(vmul_f32(v7, v14), vsub_f32(_D1, v7), v15);
}
else
{
return 0;
}
}