//
// PlayerObject::setPosition from 0x100419200 to 0x100419ddc (3036 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009337b8
//
// 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
//
void __fastcall PlayerObject::setPosition(PlayerObject *a1, const cocos2d::CCPoint *a2)
{
double *v3; // rax
bool m_isSwing; // zf
cocos2d::CCNode *m_mainLayer; // r15
cocos2d::CCNode *v6; // r15
float v7; // xmm0_4
float v8; // xmm1_4
double v9; // xmm0_8
cocos2d::CCParticleSystemQuad *m_trailingParticles; // r15
const cocos2d::CCPoint *v11; // rax
cocos2d::CCParticleSystemQuad *m_shipClickParticles; // r15
__int64 v13; // rax
cocos2d::CCParticleSystemQuad *m_ufoClickParticles; // r15
__int64 v15; // rax
cocos2d::CCParticleSystemQuad *m_dashParticles; // r15
__int64 v17; // rax
CCSpritePart *m_footSprite; // r15
PlayerFireBoostSprite *m_robotFire; // r12
float *v20; // rax
PlayerFireBoostSprite *v21; // r12
cocos2d::CCParticleSystemQuad *m_robotBurstParticles; // r15
const cocos2d::CCPoint *v23; // r14
const cocos2d::CCPoint *v24; // r12
cocos2d::CCParticleSystemQuad *m_swingBurstParticles1; // r15
const cocos2d::CCPoint *v26; // r14
const cocos2d::CCPoint *v27; // r12
cocos2d::CCParticleSystemQuad *m_swingBurstParticles2; // r15
const cocos2d::CCPoint *v29; // r14
const cocos2d::CCPoint *v30; // r12
int v31; // ecx
int v32; // r15d
float m_vehicleSize; // xmm1_4
__m128 m_height_low; // xmm0
unsigned __int64 *v35; // r12
char m_slopeSlidingMaybeRotated; // r14
float v37; // xmm5_4
cocos2d::CCMotionStreak *m_regularTrail; // r14
cocos2d::CCNode *v39; // r12
const cocos2d::CCPoint *v40; // rsi
float v41; // xmm1_4
float v42; // xmm1_4
float v43; // xmm3_4
__m128 m_slopeAngleRadians_low; // xmm4
char m_isGoingLeft; // r15
double v46; // xmm1_8
double v47; // xmm3_8
cocos2d::CCParticleSystemQuad *m_playerGroundParticles; // r14
double *v49; // r15
float v50; // xmm0_4
__int64 v51; // xmm2_8
float v52; // xmm1_4
double v53; // xmm1_8
__m128 v54; // xmm0
cocos2d::CCParticleSystemQuad *m_vehicleGroundParticles; // r14
__int64 v56; // xmm0_8
cocos2d::CCParticleSystemQuad *v57; // r14
float v58; // xmm1_4
unsigned __int64 *v59; // r13
unsigned __int64 *v60; // r12
cocos2d::CCMotionStreak *v61; // r14
__int64 v62; // rax
cocos2d::CCMotionStreak *v63; // r14
unsigned __int64 *v64; // r15
unsigned __int64 *v65; // r13
float v66; // xmm0_4
cocos2d::CCMotionStreak_vtbl *v67; // rax
cocos2d::CCMotionStreak *v68; // rdi
double *v69; // rsi
cocos2d::CCPoint *p_m_currentPoint; // r14
double *v71; // rax
HardStreak *m_waveTrail; // r14
__int64 v73; // rax
cocos2d::CCMotionStreak *v74; // r14
unsigned __int64 *v75; // rax
double v76; // [rsp+8h] [rbp-A8h] BYREF
unsigned __int64 v77; // [rsp+10h] [rbp-A0h] BYREF
unsigned __int64 v78; // [rsp+18h] [rbp-98h] BYREF
__m128 v79; // [rsp+20h] [rbp-90h]
unsigned __int64 v80; // [rsp+3Ch] [rbp-74h] BYREF
unsigned __int64 v81; // [rsp+44h] [rbp-6Ch] BYREF
__int64 v82; // [rsp+4Ch] [rbp-64h] BYREF
float v83; // [rsp+54h] [rbp-5Ch]
cocos2d::CCPoint *v84; // [rsp+58h] [rbp-58h]
double v85; // [rsp+60h] [rbp-50h]
double v86; // [rsp+68h] [rbp-48h] BYREF
__int64 v87; // [rsp+70h] [rbp-40h] BYREF
unsigned __int64 v88; // [rsp+78h] [rbp-38h] BYREF
unsigned __int64 v89[6]; // [rsp+80h] [rbp-30h] BYREF
double v90; // 0:xmm0_8.8
double v91; // 0:xmm0_8.8
double v92; // 0:xmm0_8.8
double v93; // 0:xmm0_8.8
double v94; // 0:xmm0_8.8
*(_WORD *)&a1->m_isObjectRectDirty = 257;
GameObject::setPosition(a1, a2);
sub_10028CC30(&v82);
v3 = (double *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_vehicleSprite->getPosition)(a1->m_vehicleSprite);
sub_10028CC60(&v80, v3);
m_isSwing = a1->m_isSwing;
v84 = (cocos2d::CCPoint *)a2;
if ( m_isSwing )
{
m_mainLayer = a1->m_mainLayer;
sub_10028CBE0((float *)&v88, a1->m_vehicleSize * -10.0, 0.0);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v87, (const cocos2d::CCPoint *)m_mainLayer);
}
else
{
if ( a1->m_isPlatformer && a1->m_isShip )
{
v6 = a1->m_mainLayer;
v7 = a1->m_vehicleSize * -10.0;
v8 = -18.0;
}
else
{
v6 = a1->m_mainLayer;
if ( a1->m_isBird )
{
v8 = -3.0;
v7 = 0.0;
}
else
{
v7 = a1->m_vehicleSize * -12.0;
v8 = -4.0;
}
}
sub_10028CBE0((float *)v89, v7, v8);
sub_10028CCE0((double *)&v88, &v80, v89);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v87, (const cocos2d::CCPoint *)v6);
}
v9 = sub_10028CC90(&v82, (double *)&v87);
if ( ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *, double))a1->m_trailingParticles->getParent)(
a1->m_trailingParticles,
v9) )
{
m_trailingParticles = a1->m_trailingParticles;
v11 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_trailingParticles->getParent)(m_trailingParticles);
*(cocos2d::CCPoint *)&v90 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v87, v11);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64 *, double))m_trailingParticles->setPosition)(
m_trailingParticles,
&v87,
v90);
}
m_shipClickParticles = a1->m_shipClickParticles;
v13 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_trailingParticles->getPosition)(a1->m_trailingParticles);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))m_shipClickParticles->setPosition)(
m_shipClickParticles,
v13);
m_ufoClickParticles = a1->m_ufoClickParticles;
v15 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_trailingParticles->getPosition)(a1->m_trailingParticles);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))m_ufoClickParticles->setPosition)(
m_ufoClickParticles,
v15);
m_dashParticles = a1->m_dashParticles;
v17 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_trailingParticles->getPosition)(a1->m_trailingParticles);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))m_dashParticles->setPosition)(m_dashParticles, v17);
m_footSprite = a1->m_robotSprite->m_footSprite;
m_robotFire = a1->m_robotFire;
v85 = COERCE_DOUBLE(((__int64 (__fastcall *)(PlayerFireBoostSprite *))m_robotFire->getParent)(m_robotFire));
v20 = (float *)((__int64 (__fastcall *)(CCSpritePart *))m_footSprite->getContentSize)(m_footSprite);
sub_10028CBE0((float *)v89, *v20 * 0.5, 2.5);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v88, (const cocos2d::CCPoint *)m_footSprite);
*(cocos2d::CCPoint *)&v91 = cocos2d::CCNode::convertToNodeSpace(
(cocos2d::CCNode *)&v87,
*(const cocos2d::CCPoint **)&v85);
((void (__fastcall *)(PlayerFireBoostSprite *, __int64 *, double))m_robotFire->setPosition)(m_robotFire, &v87, v91);
v21 = a1->m_robotFire;
LODWORD(v85) = ((float (__fastcall *)(CCSpritePart *))m_footSprite->getRotation)(m_footSprite);
v83 = ((float (__fastcall *)(CCPartAnimSprite *))a1->m_robotSprite->m_paSprite->getScaleX)(a1->m_robotSprite->m_paSprite);
*(float *)&v91 = ((float (__fastcall *)(CCPartAnimSprite *))a1->m_robotSprite->m_paSprite->getRotation)(a1->m_robotSprite->m_paSprite);
((void (__fastcall *)(PlayerFireBoostSprite *, float))v21->setRotation)(
v21,
*(float *)&v91 + (float)(v83 * *(float *)&v85));
if ( ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_robotBurstParticles->getParent)(a1->m_robotBurstParticles) )
{
m_robotBurstParticles = a1->m_robotBurstParticles;
v23 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_robotBurstParticles->getParent)(m_robotBurstParticles);
v24 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(PlayerFireBoostSprite *))a1->m_robotFire->getParent)(a1->m_robotFire);
((void (__fastcall *)(PlayerFireBoostSprite *))a1->m_robotFire->getPosition)(a1->m_robotFire);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v88, v24);
*(cocos2d::CCPoint *)&v92 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v87, v23);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64 *, double))m_robotBurstParticles->setPosition)(
m_robotBurstParticles,
&v87,
v92);
}
if ( ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_swingBurstParticles1->getParent)(a1->m_swingBurstParticles1) )
{
m_swingBurstParticles1 = a1->m_swingBurstParticles1;
v26 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_swingBurstParticles1->getParent)(m_swingBurstParticles1);
v27 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(PlayerFireBoostSprite *))a1->m_swingFireBottom->getParent)(a1->m_swingFireBottom);
((void (__fastcall *)(PlayerFireBoostSprite *))a1->m_swingFireBottom->getPosition)(a1->m_swingFireBottom);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v88, v27);
*(cocos2d::CCPoint *)&v93 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v87, v26);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64 *, double))m_swingBurstParticles1->setPosition)(
m_swingBurstParticles1,
&v87,
v93);
}
if ( ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_swingBurstParticles2->getParent)(a1->m_swingBurstParticles2) )
{
m_swingBurstParticles2 = a1->m_swingBurstParticles2;
v29 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_swingBurstParticles2->getParent)(m_swingBurstParticles2);
v30 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(PlayerFireBoostSprite *))a1->m_swingFireTop->getParent)(a1->m_swingFireTop);
((void (__fastcall *)(PlayerFireBoostSprite *))a1->m_swingFireTop->getPosition)(a1->m_swingFireTop);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v88, v30);
*(cocos2d::CCPoint *)&v94 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v87, v29);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64 *, double))m_swingBurstParticles2->setPosition)(
m_swingBurstParticles2,
&v87,
v94);
}
v31 = 1;
if ( !a1->m_isSwing )
v31 = a1->m_isUpsideDown ? -1 : 1;
v32 = -v31;
if ( a1->m_isOnGround3 )
v32 = v31;
sub_10028CBE0((float *)&v87, 0.0, 0.0);
if ( a1->m_isRobot )
{
sub_10028CBE0((float *)&v88, 0.0, -2.0);
sub_10028CC90(&v87, (double *)&v88);
}
m_height_low.i64[0] = (unsigned int)v87;
m_vehicleSize = a1->m_vehicleSize;
m_height_low.f32[0] = (float)(*(float *)&v87 + -10.0) * m_vehicleSize;
v35 = (unsigned __int64 *)v84;
if ( a1->m_isGoingLeft )
m_height_low.i64[0] ^= 0x8000000080000000LL;
sub_10028CBE0(
(float *)&v88,
m_height_low.f32[0],
m_vehicleSize * (float)((float)v32 * (float)(*((float *)&v87 + 1) + -13.0)));
if ( a1->m_isOnSlope )
{
m_slopeSlidingMaybeRotated = a1->m_slopeSlidingMaybeRotated;
if ( m_slopeSlidingMaybeRotated )
v37 = 1.0;
else
v37 = -1.0;
v41 = a1->m_vehicleSize;
m_height_low = (__m128)LODWORD(a1->m_height);
m_height_low.f32[0] = m_height_low.f32[0] * v41;
v42 = v41 * 20.0;
v43 = fsqrt((float)(v42 * v42) + (float)(m_height_low.f32[0] * m_height_low.f32[0])) * 0.5;
m_slopeAngleRadians_low = (__m128)LODWORD(a1->m_slopeAngleRadians);
*(double *)m_slopeAngleRadians_low.i64 = m_slopeAngleRadians_low.f32[0];
v83 = v37;
if ( v37 == -1.0 )
m_slopeAngleRadians_low = _mm_xor_ps(m_slopeAngleRadians_low, (__m128)xmmword_100816590);
v79 = m_slopeAngleRadians_low;
v85 = v43;
*(double *)m_height_low.i64 = atanf(m_height_low.f32[0] / v42);
m_isGoingLeft = a1->m_isGoingLeft;
if ( a1->m_isUpsideDown == (m_isGoingLeft != m_slopeSlidingMaybeRotated) )
m_height_low = _mm_xor_ps(m_height_low, (__m128)xmmword_100816590);
m_height_low.f32[0] = *(double *)m_height_low.i64 * v83 + *(double *)v79.i64;
*(__float2 *)m_height_low.f32 = __sincosf_stret(m_height_low.f32[0]);
v46 = _mm_movehdup_ps(m_height_low).f32[0] * v85;
if ( m_isGoingLeft )
v47 = -1.0;
else
v47 = 1.0;
HIDWORD(v51) = 0;
*(float *)&v51 = v46 * v47;
v52 = v85 * m_height_low.f32[0] * v47;
m_height_low.i64[0] = v51;
sub_10028CBE0((float *)v89, *(float *)&v51, v52);
if ( a1->m_isSideways )
{
m_height_low = _mm_shuffle_ps((__m128)v89[0], (__m128)v89[0], 225);
_mm_storel_ps((double *)v89, m_height_low);
}
m_playerGroundParticles = a1->m_playerGroundParticles;
v49 = &v86;
sub_10028CD00(&v86, v35, v89);
}
else
{
if ( !a1->m_isOnGround2 )
{
if ( a1->m_unkA29 )
goto LABEL_51;
LABEL_31:
if ( !a1->m_isShip )
goto LABEL_68;
goto LABEL_32;
}
if ( a1->m_isSideways )
{
m_height_low = _mm_shuffle_ps((__m128)v88, (__m128)v88, 225);
_mm_storel_ps((double *)&v88, m_height_low);
}
m_playerGroundParticles = a1->m_playerGroundParticles;
v49 = (double *)v89;
sub_10028CCE0((double *)v89, v35, &v88);
}
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, double *))m_playerGroundParticles->setPosition)(
m_playerGroundParticles,
v49);
if ( !a1->m_unkA29 )
goto LABEL_31;
LABEL_51:
*(_QWORD *)&v53 = LODWORD(a1->m_vehicleSize);
if ( a1->m_isGoingLeft )
{
v54.i64[0] = *(_QWORD *)&v53 ^ 0x8000000080000000LL;
*(float *)&v53 = *(float *)&v53 * -15.0;
if ( !a1->m_isUpsideDown )
goto LABEL_56;
goto LABEL_55;
}
v54.i64[0] = LODWORD(a1->m_vehicleSize);
*(float *)&v53 = *(float *)&v53 * -15.0;
if ( a1->m_isUpsideDown )
LABEL_55:
*(_QWORD *)&v53 ^= 0x8000000080000000LL;
LABEL_56:
sub_10028CBE0((float *)v89, v54.f32[0], *(float *)&v53);
if ( a1->m_isSideways )
{
v54 = _mm_shuffle_ps((__m128)v89[0], (__m128)v89[0], 225);
_mm_storel_ps((double *)v89, v54);
}
m_vehicleGroundParticles = a1->m_vehicleGroundParticles;
sub_10028CCE0(&v86, v35, v89);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, double *, double, double, double))m_vehicleGroundParticles->setPosition)(
m_vehicleGroundParticles,
&v86,
*(double *)v54.i64,
v53,
COERCE_DOUBLE(0x8000000080000000LL));
if ( a1->m_isUpsideDown )
v56 = 1133576192;
else
v56 = 1121714176;
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, double))a1->m_vehicleGroundParticles->setAngle)(
a1->m_vehicleGroundParticles,
*(double *)&v56);
v57 = a1->m_vehicleGroundParticles;
if ( a1->m_isUpsideDown )
v58 = 300.0;
else
v58 = -300.0;
sub_10028CBE0((float *)&v86, -350.0, v58);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, double *))v57->setGravity)(v57, &v86);
if ( a1->m_isSideways )
m_height_low.i64[0] = 1119092736;
else
m_height_low.i64[0] = 0;
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, double))a1->m_vehicleGroundParticles->setRotation)(
a1->m_vehicleGroundParticles,
*(double *)m_height_low.i64);
if ( !a1->m_isShip )
{
LABEL_68:
if ( a1->m_isBird )
{
if ( ((__int64 (__fastcall *)(cocos2d::CCMotionStreak *))a1->m_regularTrail->getParent)(a1->m_regularTrail) )
{
m_regularTrail = a1->m_regularTrail;
v84 = (cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCMotionStreak *))m_regularTrail->getParent)(m_regularTrail);
v85 = *(double *)&a1->m_mainLayer;
v59 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_vehicleSprite->getPosition)(a1->m_vehicleSprite);
sub_10028CBE0((float *)&v78, 0.0, 0.0);
sub_10028CCE0((double *)&v81, v59, &v78);
v40 = *(const cocos2d::CCPoint **)&v85;
goto LABEL_71;
}
}
else
{
if ( !a1->m_isSwing )
{
m_height_low.i64[0] = LODWORD(a1->m_vehicleSize);
m_height_low.f32[0] = m_height_low.f32[0] * -2.0;
if ( a1->m_isGoingLeft )
m_height_low.i64[0] ^= 0x8000000080000000LL;
sub_10028CBE0((float *)v89, m_height_low.f32[0], 0.0);
if ( a1->m_isSideways )
{
sub_10028CBE0((float *)&v86, *((float *)v89 + 1), *(float *)v89);
*(double *)m_height_low.i64 = sub_10028CC90(v89, &v86);
}
v74 = a1->m_regularTrail;
v75 = (unsigned __int64 *)((__int64 (__fastcall *)(PlayerObject *, double))a1->getPosition)(
a1,
*(double *)m_height_low.i64);
sub_10028CCE0(&v86, v75, v89);
v67 = v74->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v68 = v74;
v69 = &v86;
goto LABEL_82;
}
v61 = a1->m_regularTrail;
v62 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_trailingParticles->getPosition)(a1->m_trailingParticles);
((void (__fastcall *)(cocos2d::CCMotionStreak *, __int64))v61->setPosition)(v61, v62);
}
goto LABEL_83;
}
LABEL_32:
if ( a1->m_isPlatformer )
{
m_regularTrail = a1->m_regularTrail;
v84 = (cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCMotionStreak *))m_regularTrail->getParent)(m_regularTrail);
v39 = a1->m_mainLayer;
sub_10028CBE0((float *)&v81, -10.0 * a1->m_vehicleSize, a1->m_vehicleSize * -12.0);
v40 = (const cocos2d::CCPoint *)v39;
LABEL_71:
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v86, v40);
v60 = v89;
LABEL_81:
*(cocos2d::CCPoint *)m_height_low.f32 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v60, v84);
v67 = m_regularTrail->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v68 = m_regularTrail;
v69 = (double *)v60;
LABEL_82:
((void (__fastcall *)(cocos2d::CCMotionStreak *, double *, double))v67->setPosition)(
v68,
v69,
*(double *)m_height_low.i64);
goto LABEL_83;
}
if ( a1->m_isGoingLeft )
v50 = -4.0;
else
v50 = 4.0;
sub_10028CBE0((float *)v89, v50, 0.0);
if ( a1->m_isSideways )
_mm_storel_ps((double *)v89, _mm_shuffle_ps((__m128)v89[0], (__m128)v89[0], 225));
v63 = a1->m_regularTrail;
v64 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_trailingParticles->getPosition)(a1->m_trailingParticles);
m_height_low.i64[0] = LODWORD(v89[0]);
sub_10028CBE0((float *)&v81, *(float *)v89, *((float *)v89 + 1));
sub_10028CCE0(&v86, v64, &v81);
((void (__fastcall *)(cocos2d::CCMotionStreak *, double *))v63->setPosition)(v63, &v86);
if ( a1->m_shipStreak )
{
sub_1003FA130((float *)&v86, a1->m_shipStreakType);
m_regularTrail = a1->m_shipStreak;
v84 = (cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCMotionStreak *))a1->m_regularTrail->getParent)(a1->m_regularTrail);
v85 = *(double *)&a1->m_mainLayer;
v65 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_vehicleSprite->getPosition)(a1->m_vehicleSprite);
v66 = *(float *)&v86;
if ( a1->m_isGoingLeft )
v66 = -*(float *)&v86;
sub_10028CBE0((float *)&v77, v66, *((float *)&v86 + 1));
sub_10028CCE0(&v76, v65, &v77);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v78, *(const cocos2d::CCPoint **)&v85);
v60 = &v81;
goto LABEL_81;
}
LABEL_83:
if ( a1->m_fadeOutStreak && a1->m_isDart )
{
p_m_currentPoint = &a1->m_waveTrail->m_currentPoint;
v71 = (double *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1);
sub_10028CC60(v89, v71);
*(double *)m_height_low.i64 = sub_10028CC90(p_m_currentPoint, (double *)v89);
}
m_waveTrail = a1->m_waveTrail;
v73 = ((__int64 (__fastcall *)(PlayerObject *, double))a1->getPosition)(a1, *(double *)m_height_low.i64);
((void (__fastcall *)(HardStreak *, __int64))m_waveTrail->setPosition)(m_waveTrail, v73);
}