//
// cocos2d::CCShuffleTiles::getDelta from 0x1007b5d40 to 0x1007b5dd4 (148 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::CCSize __fastcall cocos2d::CCShuffleTiles::getDelta(cocos2d::CCShuffleTiles *a1, const cocos2d::CCSize *a2)
{
__int64 v2; // rax
float *v3; // rdx
float *v4; // r14
float width; // xmm0_4
float v6; // xmm2_4
float v7; // xmm1_4
cocos2d::CCSize v8; // rcx
signed int v9; // eax
signed int v10; // edx
__m128 v11; // xmm0
__m128 v12; // xmm3
__int64 v14; // [rsp+0h] [rbp-20h] BYREF
cocos2d::CCSize result; // 0:xmm0_8.8
v14 = v2;
v4 = v3;
sub_10028CC30(&v14);
width = a2[12].width;
v6 = *v4;
v7 = v4[1];
v8 = a2[14];
v10 = *(_DWORD *)(*(_QWORD *)&v8 + 4LL * (unsigned int)(int)(float)((float)(*v4 * width) + v7))
% (unsigned int)(int)width;
v9 = *(_DWORD *)(*(_QWORD *)&v8 + 4LL * (unsigned int)(int)(float)((float)(*v4 * width) + v7))
/ (unsigned int)(int)width;
v11 = 0;
v12 = 0;
*(float *)&v14 = (float)v9;
*((float *)&v14 + 1) = (float)v10;
v11.f32[0] = (float)v9 - v6;
result = (cocos2d::CCSize)_mm_cvtepi32_ps(_mm_cvttps_epi32(v11)).u64[0];
v12.f32[0] = (float)v10 - v7;
sub_10028CBF0((float *)a1, result.width, _mm_cvtepi32_ps(_mm_cvttps_epi32(v12)).f32[0]);
return result;
}