//
// CCSpritePlus::setPosition from 0x6c8428 to 0x6c8494 (108 bytes)
//
// 5 xrefs:
// > GameObject::setPosition @ 0x76c854
// > ??> @ 0xc47c8
// > ??> @ 0x1417818
// > ??> @ 0x1421818
// > ??> @ 0x14918f8
//
// 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 12:51:22 +0000
//
__int64 __fastcall CCSpritePlus::setPosition(cocos2d::CCArray **this, const cocos2d::CCPoint *a2)
{
unsigned int v4; // w19
__int64 result; // x0
__int64 v6; // x0
bool v7; // cf
unsigned int v8; // w1
cocos2d::CCSprite::setPosition((cocos2d::CCSprite *)this, a2);
v4 = 0;
result = *((unsigned __int8 *)this + 616);
if ( *((_BYTE *)this + 616) )
{
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 75));
v7 = v4 >= (unsigned int)result;
v8 = v4++;
if ( v7 )
break;
v6 = cocos2d::CCArray::objectAtIndex(*(this + 75), v8);
(*(void (__fastcall **)(__int64, const cocos2d::CCPoint *))(*(_QWORD *)v6 + 184LL))(v6, a2);
}
}
return result;
}