//
// cocos2d::CCFadeOutTRTiles::transformTile from 0x10089ba30 to 0x10089bb05 (213 bytes)
//
// 2 xrefs:
// > ??> @ 0x100ba90f8
// > ??> @ 0x100ba91b8
//
// 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:37:09 +0000
//
__int64 __fastcall cocos2d::CCFadeOutTRTiles::transformTile(__int64 a1, __int64 a2, float a3)
{
__int64 v3; // rax
__m128 v4; // xmm0
__m128 v5; // xmm1
__m128 v6; // xmm0
__m128 v7; // xmm2
__m128 v8; // xmm4
__m128 v9; // xmm5
unsigned __int64 v11; // [rsp+8h] [rbp-58h] BYREF
unsigned __int64 v12; // [rsp+14h] [rbp-4Ch] BYREF
unsigned __int64 v13; // [rsp+20h] [rbp-40h] BYREF
unsigned __int64 v14; // [rsp+2Ch] [rbp-34h] BYREF
unsigned __int64 v15; // [rsp+38h] [rbp-28h] BYREF
float v16; // [rsp+44h] [rbp-1Ch]
v16 = a3;
cocos2d::CCTiledGrid3DAction::originalTile((__int64)&v11, a1, a2);
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 64) + 608LL))(*(_QWORD *)(a1 + 64));
sub_1002782D0(&v15, (_QWORD *)(v3 + 80));
v4 = (__m128)0x3F800000u;
v4.f32[0] = 1.0 - v16;
v5 = (__m128)v15;
v6 = _mm_moveldup_ps(v4);
v7 = (__m128)v12;
v8 = (__m128)v13;
v9 = (__m128)v14;
_mm_storel_ps(
(double *)&v11,
_mm_add_ps((__m128)v11, _mm_mul_ps(_mm_mul_ps((__m128)xmmword_100A04CE0, (__m128)v15), v6)));
_mm_storel_ps((double *)&v12, _mm_add_ps(_mm_mul_ps(_mm_mul_ps((__m128)0x3F000000BF000000uLL, v5), v6), v7));
_mm_storel_ps((double *)&v13, _mm_add_ps(_mm_mul_ps(_mm_mul_ps(v5, (__m128)xmmword_100A13040), v6), v8));
_mm_storel_ps((double *)&v14, _mm_add_ps(_mm_mul_ps(_mm_mul_ps((__m128)xmmword_100A093E0, v5), v6), v9));
return cocos2d::CCTiledGrid3DAction::setTile(a1, a2, (__int64)&v11);
}