//
// cocos2d::CCShuffleTiles::placeTile from 0x18003b2b0 to 0x18003b3c8 (280 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0ef4
//
// 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
//
void __fastcall cocos2d::CCShuffleTiles::placeTile(
cocos2d::CCShuffleTiles *this,
struct cocos2d::CCPoint *a2,
struct cocos2d::Tile *a3)
{
__int64 v6; // rax
float v7; // xmm3_4
float v8; // xmm2_4
float v9[2]; // [rsp+20h] [rbp-58h] BYREF
__int128 v10; // [rsp+28h] [rbp-50h] BYREF
float v11; // [rsp+38h] [rbp-40h]
float v12; // [rsp+40h] [rbp-38h]
float v13; // [rsp+44h] [rbp-34h]
float v14; // [rsp+4Ch] [rbp-2Ch]
float v15; // [rsp+50h] [rbp-28h]
cocos2d::CCTiledGrid3DAction::originalTile((__int64)this, &v10, (float *)a2);
v6 = ((__int64 (__fastcall *)(cocos2d::CCNode *))this->m_pTarget->getGrid)(this->m_pTarget);
cocos2d::cc_timeval::operator=(v9, (_DWORD *)(v6 + 80));
v7 = (float)(int)(float)(v9[0] * *(float *)a3);
v8 = (float)(int)(float)(v9[1] * *((float *)a3 + 1));
*(float *)&v10 = *(float *)&v10 + v7;
*((float *)&v10 + 3) = *((float *)&v10 + 3) + v7;
*((float *)&v10 + 1) = *((float *)&v10 + 1) + v8;
v12 = v12 + v7;
v11 = v11 + v8;
v14 = v14 + v7;
v13 = v13 + v8;
v15 = v15 + v8;
cocos2d::CCTiledGrid3DAction::setTile(this, a2, (const struct cocos2d::_ccQuad3 *)&v10);
}