//
// cocos2d::CCShuffleTiles::placeTile from 0x5bba48 to 0x5bbb22 (218 bytes)
//
// 1 xrefs:
// > cocos2d::CCShuffleTiles::update @ 0x5bbbbc
//
// 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
//
int __fastcall cocos2d::CCShuffleTiles::placeTile(cocos2d::CCPoint *a1, int a2, float *a3)
{
const cocos2d::CCPoint *v6; // r0
float v7; // s14
float v8; // s15
int v9; // r3
cocos2d::CCPoint v11; // [sp+4h] [bp-3Ch] BYREF
float v12; // [sp+Ch] [bp-34h] BYREF
float v13; // [sp+10h] [bp-30h]
float v14; // [sp+18h] [bp-28h]
float v15; // [sp+1Ch] [bp-24h]
float v16; // [sp+24h] [bp-1Ch]
float v17; // [sp+28h] [bp-18h]
float v18; // [sp+30h] [bp-10h]
float v19; // [sp+34h] [bp-Ch]
cocos2d::CCTiledGrid3DAction::originalTile((cocos2d::CCTiledGrid3DAction *)&v12, a1);
v6 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)LODWORD(a1[7].x) + 296))(LODWORD(a1[7].x));
cocos2d::CCPoint::CCPoint(&v11, v6 + 9);
v7 = (float)(int)(float)(*a3 * v11.x);
v12 = v12 + v7;
v8 = (float)(int)(float)(a3[1] * v11.y);
v13 = v13 + v8;
v14 = v14 + v7;
v15 = v15 + v8;
v16 = v16 + v7;
v17 = v17 + v8;
v18 = v18 + v7;
v19 = v19 + v8;
return cocos2d::CCTiledGrid3DAction::setTile((int)a1, a2, (int)&v12, v9);
}