//
// cocos2d::CCSprite::setPosition from 0x7f1df8 to 0x7f1e5c (100 bytes)
//
// 2 xrefs:
// > CCSpritePlus::setPosition @ 0x3e65c0
// > GameObject::quickUpdatePosition @ 0x45e556
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:05 +0000
//
int __fastcall cocos2d::CCSprite::setPosition(int this, const cocos2d::CCPoint *a2)
{
int v2; // r4
int v3; // r3
v2 = this;
if ( *(float *)(this + 72) != *(float *)a2 || *(float *)(this + 76) != *((float *)a2 + 1) )
{
this = cocos2d::CCNode::setPosition(this, a2);
if ( *(_DWORD *)(v2 + 292) && !*(_BYTE *)(v2 + 297) )
{
v3 = *(_DWORD *)v2;
*(_BYTE *)(v2 + 297) = 1;
this = (*(int (__fastcall **)(int, int))(v3 + 600))(v2, 1);
if ( *(_BYTE *)(v2 + 298) )
return (*(int (__fastcall **)(int, int))(*(_DWORD *)v2 + 616))(v2, 1);
}
}
return this;
}