//
// GameObject::updateStartPos from 0x76dc6c to 0x76dd64 (248 bytes)
//
// 11 xrefs:
// > GameObject::updateStartValues @ 0x76dd78
// > LevelEditorLayer::rotationForSlopeNearObject @ 0x78b48c
// > LevelEditorLayer::updateVisibility @ 0x78e974
// > EditorUI::findSnapObject @ 0x7c7684
// > GJTransformControl::loadValues @ 0xbd3720
// > EditorUI::getGroupCenter @ 0xc00668
// > EditorUI::getGroupCenter @ 0xc007d0
// > EditorUI::flipObjectsX @ 0xc01478
// > EditorUI::flipObjectsY @ 0xc01634
// > EditorUI::resetObjectEditorValues @ 0xc04294
// > ??> @ 0x89a88
//
// 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:53:11 +0000
//
__int64 __fastcall GameObject::updateStartPos(GameObject *this)
{
const cocos2d::CCPoint *v2; // x0
float v3; // s5
float v4; // s6
double v5; // d4
double v6; // d2
float v7; // s0
float v8; // s1
float v10; // [xsp+30h] [xbp+30h] BYREF
float v11; // [xsp+34h] [xbp+34h]
v2 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)this + 192LL))(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, v2);
v3 = *((float *)this + 240);
v4 = *((float *)this + 241);
v5 = *((double *)this + 118) - v3;
v6 = *((double *)this + 119) - v4;
v7 = v10 - v5;
v8 = v11 - v6;
v10 = v7;
v11 = v8;
if ( v3 != v7 || v4 != v8 )
{
*((_BYTE *)this + 864) = 1;
*((_BYTE *)this + 865) = 1;
*((_BYTE *)this + 840) = 1;
*((double *)this + 119) = v6 + v8;
*((double *)this + 118) = v5 + v7;
cocos2d::CCPoint::operator=((char *)this + 960, &v10);
}
return _stack_chk_guard;
}