//
// CheckpointGameObject::updateSyncedAnimation from 0x14065b8c0 to 0x14065bbfd (829 bytes)
//
// 3 xrefs:
// > ??> @ 0x1408243b0
// > ??> @ 0x140931940
// > ??> @ 0x14093194c
//
// 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:35:46 +0000
//
__int64 __fastcall CheckpointGameObject::updateSyncedAnimation(__int64 a1, double a2)
{
float *v3; // rbx
__int64 v4; // rax
__int64 (__fastcall *v5)(__int64, __int64); // r8
__int64 v6; // rbx
float v7; // xmm0_4
__int64 v8; // rax
__int64 v9; // rax
__int64 v10; // rdx
__int64 v11; // rbx
float v12; // xmm0_4
__int64 v13; // rax
__int64 v14; // rbx
float v15; // xmm0_4
__int64 v16; // rax
__int64 v17; // rbx
float v18; // xmm0_4
__int64 v19; // rax
__int64 v20; // rsi
__int64 *v21; // rdi
__int64 v22; // rbx
__int64 v23; // rax
__int64 v24; // rsi
__int64 *v25; // rdi
__int64 v26; // rbx
__int64 v27; // rax
__int64 v28; // rsi
__int64 *v29; // rdi
__int64 v30; // rbx
__int64 v31; // rax
_BYTE v33[16]; // [rsp+20h] [rbp-48h] BYREF
char v34; // [rsp+70h] [rbp+8h] BYREF
char v35; // [rsp+88h] [rbp+20h] BYREF
v3 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v34, *v3 * 0.5, *(float *)(v4 + 4) * 0.5);
v5 = *(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 472LL);
if ( *(_BYTE *)(a1 + 1856) )
{
v6 = v5(a1, 1128);
v7 = sub_14065B7F0(a2, COERCE_DOUBLE(1077936128), 5.0, 2.0).m128_f32[0] + 0.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 0.0, v7);
cocos2d::CCPoint::operator+(&v34, &v35, v8);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v6 + 184LL))(v6, &v35);
v9 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 472LL))(a1, 1128);
v10 = 1128;
}
else
{
v11 = v5(a1, 1125);
v12 = sub_14065B7F0(a2, COERCE_DOUBLE(1083179008), 4.5, 1.8).m128_f32[0];
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, -1.0, v12);
cocos2d::CCPoint::operator+(&v34, &v35, v13);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v11 + 184LL))(v11, &v35);
v14 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 472LL))(a1, 1126);
v15 = sub_14065B7F0(a2, COERCE_DOUBLE(1079194419), 3.3, 1.8).m128_f32[0];
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 0.5, v15);
cocos2d::CCPoint::operator+(&v34, &v35, v16);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v14 + 184LL))(v14, &v35);
v17 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 472LL))(a1, 1127);
v18 = sub_14065B7F0(a2, COERCE_DOUBLE(1077936128), 3.0, 1.8).m128_f32[0] - 1.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 0.5, v18);
cocos2d::CCPoint::operator+(&v34, &v35, v19);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v17 + 184LL))(v17, &v35);
v20 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 472LL))(a1, 1125);
v21 = (__int64 *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 896) + 472LL))(
*(_QWORD *)(a1 + 896),
1125);
v22 = *v21;
v23 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v20 + 200LL))(v20);
(*(void (__fastcall **)(__int64 *, __int64))(v22 + 184))(v21, v23);
v24 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 472LL))(a1, 1126);
v25 = (__int64 *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 896) + 472LL))(
*(_QWORD *)(a1 + 896),
1126);
v26 = *v25;
v27 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v24 + 200LL))(v24);
(*(void (__fastcall **)(__int64 *, __int64))(v26 + 184))(v25, v27);
v9 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 472LL))(a1, 1127);
v10 = 1127;
}
v28 = v9;
v29 = (__int64 *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 896) + 472LL))(
*(_QWORD *)(a1 + 896),
v10);
v30 = *v29;
v31 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v28 + 200LL))(v28);
return (*(__int64 (__fastcall **)(__int64 *, __int64))(v30 + 184))(v29, v31);
}