//
// cocos2d::CCShuffleTiles::getDelta from 0x18003b7c0 to 0x18003b86d (173 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bafd8
//
// 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 11:21:37 +0000
//
float *__fastcall cocos2d::CCShuffleTiles::getDelta(__int64 a1, float *a2, float *a3)
{
float v6; // xmm0_4
__int64 v7; // r8
unsigned int v8; // r9d
float v9; // xmm1_4
float v11; // [rsp+30h] [rbp+8h] BYREF
float v12; // [rsp+34h] [rbp+Ch]
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v11);
v6 = *(float *)(a1 + 100);
v7 = *(_QWORD *)(a1 + 112);
v8 = (int)(float)((float)(v6 * *a3) + a3[1]);
v11 = (float)(int)(*(_DWORD *)(v7 + 4LL * v8) / (unsigned int)(int)v6);
v9 = v11 - *a3;
v12 = (float)(int)(*(_DWORD *)(v7 + 4LL * v8) % (unsigned int)(int)v6);
kmVec2Fill(a2, (float)(int)v9, (float)(int)(float)(v12 - a3[1]));
return a2;
}