//
// CheckpointGameObject::updateSyncedAnimation from 0x1404ba870 to 0x1404babb8 (840 bytes)
//
// 3 xrefs:
// > ??> @ 0x140611e48
// > ??> @ 0x1406dcd34
// > ??> @ 0x1406dcd40
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
void CheckpointGameObject::updateSyncedAnimation(CheckpointGameObject *a1, float a2, int a3)
{
__int64 v3; // rdx
float v4; // xmm0_4
const cocos2d::CCSize *v6; // rax
CheckpointGameObject_vtbl *v7; // rax
__int64 v8; // rbx
float v9; // xmm0_4
cocos2d::CCNode *v10; // rax
__int64 v11; // rdx
__int64 v12; // rbx
float v13; // xmm0_4
cocos2d::CCNode *v14; // rbx
float v15; // xmm0_4
cocos2d::CCNode *v16; // rbx
float v17; // xmm0_4
cocos2d::CCNode *v18; // rsi
cocos2d::CCNode *v19; // rbx
cocos2d::CCNode_vtbl *v20; // rdi
__int64 v21; // rax
cocos2d::CCNode *v22; // rsi
cocos2d::CCNode *v23; // rbx
cocos2d::CCNode_vtbl *v24; // rdi
__int64 v25; // rax
cocos2d::CCNode *v26; // rsi
cocos2d::CCNode *v27; // rbx
cocos2d::CCNode_vtbl *v28; // rdi
__int64 v29; // rax
char v30; // [rsp+80h] [rbp+8h] BYREF
char v31; // [rsp+98h] [rbp+20h] BYREF
((__int64 (__fastcall *)(CheckpointGameObject *, __int64, int))a1->getContentSize)(a1, v3, a3);
v6 = a1->getContentSize(a1);
cocos2d::CCPoint::CCPoint(v4, v6->width * 0.5);
v7 = a1->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( a1->m_checkpointActivated )
{
v8 = (__int64)v7->getChildByTag(a1, 1128);
v9 = sub_1404BA7A0(*(double *)&a2, COERCE_DOUBLE(1077936128), 5.0, 2.0).m128_f32[0] + 0.0;
cocos2d::CCPoint::CCPoint(v9, 0.0);
cocos2d::CCPoint::operator+(&v30, &v31);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v8 + 184LL))(v8, &v31);
v10 = a1->getChildByTag(a1, 1128);
v11 = 1128;
}
else
{
v12 = (__int64)v7->getChildByTag(a1, 1125);
v13 = sub_1404BA7A0(*(double *)&a2, COERCE_DOUBLE(1083179008), 4.5, 1.8).m128_f32[0];
cocos2d::CCPoint::CCPoint(v13, -1.0);
cocos2d::CCPoint::operator+(&v30, &v31);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v12 + 184LL))(v12, &v31);
v14 = a1->getChildByTag(a1, 1126);
v15 = sub_1404BA7A0(*(double *)&a2, COERCE_DOUBLE(1079194419), 3.3, 1.8).m128_f32[0];
cocos2d::CCPoint::CCPoint(v15, 0.5);
cocos2d::CCPoint::operator+(&v30, &v31);
v14->setPosition_0(v14, (const cocos2d::CCPoint *)&v31);
v16 = a1->getChildByTag(a1, 1127);
v17 = sub_1404BA7A0(*(double *)&a2, COERCE_DOUBLE(1077936128), 3.0, 1.8).m128_f32[0] - 1.0;
cocos2d::CCPoint::CCPoint(v17, 0.5);
cocos2d::CCPoint::operator+(&v30, &v31);
v16->setPosition_0(v16, (const cocos2d::CCPoint *)&v31);
v18 = a1->getChildByTag(a1, 1125);
v19 = a1->m_colorSprite->getChildByTag(a1->m_colorSprite, 1125);
v20 = v19->__vftable;
v21 = (__int64)v18->getPosition_0(v18);
v20->setPosition_0(v19, (const cocos2d::CCPoint *)v21);
v22 = a1->getChildByTag(a1, 1126);
v23 = a1->m_colorSprite->getChildByTag(a1->m_colorSprite, 1126);
v24 = v23->__vftable;
v25 = (__int64)v22->getPosition_0(v22);
v24->setPosition_0(v23, (const cocos2d::CCPoint *)v25);
v10 = a1->getChildByTag(a1, 1127);
v11 = 1127;
}
v26 = v10;
v27 = a1->m_colorSprite->getChildByTag(a1->m_colorSprite, v11);
v28 = v27->__vftable;
v29 = (__int64)v26->getPosition_0(v26);
v28->setPosition_0(v27, (const cocos2d::CCPoint *)v29);
}