//
// GameObject::setPosition from 0x140294d10 to 0x140294e84 (372 bytes)
//
// 51 xrefs:
// > EndPortalObject::setPosition @ 0x140209409
// > PlayerObject::setPosition @ 0x1404fa9ad
// > TeleportPortalObject::setPosition @ 0x1406538cb
// > TeleportPortalObject::setPosition @ 0x14065391a
// > ??> @ 0x140754720
// > ??> @ 0x14075e268
// > ??> @ 0x14075e970
// > ??> @ 0x14081ed78
// > ??> @ 0x14081f4a8
// > ??> @ 0x14081fcf0
// > ??> @ 0x140820448
// > ??> @ 0x140820b00
// > ??> @ 0x140821268
// > ??> @ 0x140821920
// > ??> @ 0x140822000
// > ??> @ 0x1408226b8
// > ??> @ 0x140823710
// > ??> @ 0x140823dc8
// > ??> @ 0x1408245c0
// > ??> @ 0x140824c78
// > ??> @ 0x140825330
// > ??> @ 0x140825ba0
// > ??> @ 0x140826398
// > ??> @ 0x140826b40
// > ??> @ 0x140827270
// > ??> @ 0x140827928
// > ??> @ 0x140828080
// > ??> @ 0x1408288c8
// > ??> @ 0x140828f80
// > ??> @ 0x140829700
// > ??> @ 0x140829e80
// > ??> @ 0x14082a538
// > ??> @ 0x14082abf0
// > ??> @ 0x14082b600
// > ??> @ 0x14082bd30
// > ??> @ 0x14082c3e8
// > ??> @ 0x14082caa0
// > ??> @ 0x14082d158
// > ??> @ 0x14082d928
// > ??> @ 0x14082e0d0
// > ??> @ 0x14082e788
// > ??> @ 0x14082ee40
// > ??> @ 0x14082f4f8
// > ??> @ 0x14082fbb0
// > ??> @ 0x140830268
// > ??> @ 0x140830920
// > ??> @ 0x140831140
// > ??> @ 0x1408318c0
// > ??> @ 0x1408af0d4
// > ??> @ 0x1408af108
// > ??> @ 0x14091d414
//
// This function is hookable on this platform (idp: pc, 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:29:10 +0000
//
void __fastcall GameObject::setPosition(__int64 a1, float *a2)
{
unsigned int i; // ebx
struct cocos2d::CCObject *v5; // rax
__int64 v6; // rcx
__int64 *v7; // rdi
__int64 v8; // rbx
__int64 v9; // rax
__int64 v10; // rcx
__int64 v11; // rcx
float v12; // [rsp+40h] [rbp+8h] BYREF
float v13; // [rsp+44h] [rbp+Ch]
float v14; // [rsp+50h] [rbp+18h] BYREF
float v15; // [rsp+54h] [rbp+1Ch]
char v16; // [rsp+58h] [rbp+20h] BYREF
cocos2d::CCSprite::setPosition((cocos2d::CCSprite *)a1, (const struct cocos2d::CCPoint *)a2);
if ( *(_BYTE *)(a1 + 616) )
{
for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 600)); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 600), i);
(*(void (__fastcall **)(struct cocos2d::CCObject *, float *))(*(_QWORD *)v5 + 184LL))(v5, a2);
}
}
v6 = *(_QWORD *)(a1 + 776);
if ( v6 )
{
if ( *(float *)(a1 + 820) == 0.0 && *(float *)(a1 + 824) == 0.0 )
{
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v6 + 184LL))(v6, a2);
}
else
{
cocos2d::CCNode::convertToWorldSpace(a1, &v12, a1 + 820);
cocos2d::CCNode::convertToWorldSpace(a1, &v14, &unk_14090A8F0);
v7 = *(__int64 **)(a1 + 776);
v8 = *v7;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, (float)(v12 + *a2) - v14, (float)(v13 + a2[1]) - v15);
(*(void (__fastcall **)(__int64 *, __int64))(v8 + 184))(v7, v9);
}
}
v10 = *(_QWORD *)(a1 + 752);
if ( v10 )
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v10 + 184LL))(v10, a2);
v11 = *(_QWORD *)(a1 + 896);
if ( v11 )
{
if ( !*(_BYTE *)(a1 + 874) )
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v11 + 184LL))(v11, a2);
}
}