//
// cocos2d::CCSprite::setPosition from 0xd87d5c to 0xd87de8 (140 bytes)
//
// 33 xrefs:
// > CCSpritePlus::setPosition @ 0x6c8440
// > GameObject::quickUpdatePosition @ 0x786ac8
// > ??> @ 0xc4d20
// > ??> @ 0x1413698
// > ??> @ 0x1413c58
// > ??> @ 0x1414a08
// > ??> @ 0x1417278
// > ??> @ 0x141b138
// > ??> @ 0x141b768
// > ??> @ 0x141cbe8
// > ??> @ 0x1421dc8
// > ??> @ 0x1423788
// > ??> @ 0x1423d38
// > ??> @ 0x1424308
// > ??> @ 0x1428ce8
// > ??> @ 0x1433b58
// > ??> @ 0x143a0c8
// > ??> @ 0x145ae78
// > ??> @ 0x145b418
// > ??> @ 0x1477508
// > ??> @ 0x14795b8
// > ??> @ 0x1486a18
// > ??> @ 0x1486fc8
// > ??> @ 0x1496d38
// > ??> @ 0x1499288
// > ??> @ 0x14c1bb8
// > ??> @ 0x14d95b8
// > ??> @ 0x150c9d8
// > ??> @ 0x1517898
// > ??> @ 0x1517e38
// > ??> @ 0x15189b8
// > ??> @ 0x152e418
// > ??> @ 0x152fc18
//
// This function is hookable on this platform (idp: arm, 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 13:08:13 +0000
//
__int64 __fastcall cocos2d::CCSprite::setPosition(__int64 this, const cocos2d::CCPoint *a2)
{
__int64 v2; // x19
__int64 v3; // x2
if ( *(float *)(this + 76) != *(float *)a2 || *(float *)(this + 80) != *((float *)a2 + 1) )
{
v2 = this;
cocos2d::CCNode::setPosition(this, a2);
this = *(_QWORD *)(v2 + 368);
if ( this )
{
this = *(unsigned __int8 *)(v2 + 377);
if ( !*(_BYTE *)(v2 + 377) )
{
v3 = *(_QWORD *)v2;
*(_BYTE *)(v2 + 377) = 1;
(*(void (__fastcall **)(__int64, __int64))(v3 + 1200))(v2, 1);
this = *(unsigned __int8 *)(v2 + 378);
if ( *(_BYTE *)(v2 + 378) )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1232LL))(v2, 1);
}
}
}
return this;
}