//
// cocos2d::CCSprite::setPosition from 0x1002d552c to 0x1002d55c4 (152 bytes)
//
// 28 xrefs:
// > CCSpritePlus::setPosition @ 0x10024d930
// > sub_1002F828C @ 0x1002f82c0
// > ??> @ 0x1008ae928
// > ??> @ 0x1008bfe28
// > ??> @ 0x1008c0780
// > ??> @ 0x1008c1990
// > ??> @ 0x1008c3f58
// > ??> @ 0x1008c79a8
// > ??> @ 0x1008d4218
// > ??> @ 0x1008dfd20
// > ??> @ 0x1008eea90
// > ??> @ 0x100903e08
// > ??> @ 0x1009043d0
// > ??> @ 0x1009105f8
// > ??> @ 0x100911808
// > ??> @ 0x10091c9c8
// > ??> @ 0x10091f9d0
// > ??> @ 0x1009204d0
// > ??> @ 0x100921d50
// > ??> @ 0x100922318
// > ??> @ 0x10093c9f8
// > ??> @ 0x100942240
// > ??> @ 0x100942808
// > ??> @ 0x100944538
// > ??> @ 0x100944ad0
// > ??> @ 0x100963958
// > ??> @ 0x100969d70
// > ??> @ 0x10098c758
//
// 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 11:02:40 +0000
//
__int64 __fastcall cocos2d::CCSprite::setPosition(__int64 result, float *a2)
{
__int64 v2; // x19
v2 = result;
if ( *(float *)(result + 76) != *a2 || *(float *)(result + 80) != a2[1] )
{
result = cocos2d::CCNode::setPosition_1(result, a2);
if ( *(_QWORD *)(v2 + 368) && (*(_BYTE *)(v2 + 377) & 1) == 0 )
{
*(_BYTE *)(v2 + 377) = 1;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1200LL))(v2, 1);
if ( *(_BYTE *)(v2 + 378) == 1 )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1232LL))(v2, 1);
}
}
return result;
}