//
// PlayerObject::setPosition from 0x10022b6d0 to 0x10022c170 (2720 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007c3c70
//
// 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)
{
__int64 *v4; // x0
__n128 v5; // q0
__n128 v6; // q1
cocos2d::CCNode *m_mainLayer; // x21
double v8; // d0
cocos2d::CCParticleSystemQuad *m_trailingParticles; // x21
cocos2d::CCNode *v10; // x0
cocos2d::CCParticleSystemQuad *m_shipClickParticles; // x21
__int64 v12; // x0
cocos2d::CCParticleSystemQuad *m_ufoClickParticles; // x21
__int64 v14; // x0
cocos2d::CCParticleSystemQuad *m_dashParticles; // x21
__int64 v16; // x0
CCSpritePart *m_footSprite; // x21
PlayerFireBoostSprite *m_robotFire; // x22
cocos2d::CCNode *v19; // x23
__n128 v20; // q0
__n128 v21; // q1
PlayerFireBoostSprite *v22; // x22
float v23; // s8
float v24; // s9
float v25; // s0
cocos2d::CCParticleSystemQuad *m_robotBurstParticles; // x21
cocos2d::CCNode *v27; // x22
cocos2d::CCNode *v28; // x23
const cocos2d::CCPoint *v29; // x0
cocos2d::CCParticleSystemQuad *m_swingBurstParticles1; // x21
cocos2d::CCNode *v31; // x22
cocos2d::CCNode *v32; // x23
const cocos2d::CCPoint *v33; // x0
__n128 v34; // q0
__n128 v35; // q1
cocos2d::CCParticleSystemQuad *m_swingBurstParticles2; // x21
cocos2d::CCNode *v37; // x22
cocos2d::CCNode *v38; // x23
const cocos2d::CCPoint *v39; // x0
int v40; // w8
int v41; // w21
__n128 v42; // q0
__n128 v43; // q1
__n128 v44; // q0
__n128 v45; // q1
int m_slopeSlidingMaybeRotated; // w21
float v47; // s8
float m_vehicleSize; // s2
float v49; // s1
float v50; // s2
double v51; // d9
double m_slopeAngleRadians; // d10
double v53; // d0
int m_isGoingLeft; // w22
float v55; // s0
__n128 v56; // q0
__n128 v57; // q1
double v58; // d3
float v59; // s2
cocos2d::CCParticleSystemQuad *m_playerGroundParticles; // x21
__n128 v61; // q0
cocos2d::CCParticleSystemQuad *v62; // x21
__n128 v63; // q0
float v64; // s1
float v65; // s3
cocos2d::CCParticleSystemQuad *m_vehicleGroundParticles; // x21
double v67; // d0
__n128 v68; // q0
__n128 v69; // q0
cocos2d::CCParticleSystemQuad *v70; // x20
__n128 v71; // q1
__n128 v72; // q0
cocos2d::CCMotionStreak *m_regularTrail; // x20
cocos2d::CCNode *v74; // x21
cocos2d::CCNode *v75; // x22
float v76; // s1
__n128 v77; // q0
__n128 v78; // q1
__n128 v79; // q0
float32x2_t *v80; // x23
__n128 v81; // q0
__n128 v82; // q1
cocos2d::CCMotionStreak *v83; // x20
float32x2_t *v84; // x21
__n128 v85; // q0
__n128 v86; // q1
double v87; // d0
__n128 v88; // q1
cocos2d::CCMotionStreak *m_shipStreak; // x20
cocos2d::CCNode *v90; // x21
cocos2d::CCNode *v91; // x22
float32x2_t *v92; // x23
__n128 v93; // q0
__n128 v94; // q1
cocos2d::CCMotionStreak *v95; // x20
__int64 v96; // x1
__n128 v97; // q0
__n128 v98; // q1
__n128 v99; // q0
__n128 v100; // q1
cocos2d::CCMotionStreak *v101; // x20
float32x2_t *v102; // x0
__n128 v103; // q0
__n128 v104; // q1
HardStreak *m_waveTrail; // x20
__int64 *v106; // x0
HardStreak *v107; // x20
__int64 v108; // x0
__n128 v109; // q0
__n128 v110; // q1
__n128 v111; // q0
__n128 v112; // q1
float32x2_t v113; // [xsp+0h] [xbp-A0h] BYREF
float32x2_t v114; // [xsp+8h] [xbp-98h] BYREF
float32x2_t v115; // [xsp+10h] [xbp-90h] BYREF
float32x2_t v116; // [xsp+18h] [xbp-88h] BYREF
float32x2_t v117; // [xsp+20h] [xbp-80h] BYREF
int32x2_t v118; // [xsp+28h] [xbp-78h] BYREF
int32x2_t v119; // [xsp+30h] [xbp-70h] BYREF
__int64 v120; // [xsp+38h] [xbp-68h] BYREF
float32x2_t v121; // [xsp+40h] [xbp-60h] BYREF
cocos2d::CCPoint v122; // [xsp+48h] [xbp-58h] BYREF
cocos2d::CCPoint v123; // 0:kr08_8.8
cocos2d::CCPoint v124; // 0:kr18_8.8
cocos2d::CCPoint v125; // 0:kr28_8.8
cocos2d::CCPoint v126; // 0:kr38_8.8
cocos2d::CCPoint v127; // 0:kr48_8.8
__float2 v128; // 0:kr50_8.8
cocos2d::CCPoint v129; // 0:kr60_8.8
cocos2d::CCPoint v130; // 0:kr70_8.8
*(_WORD *)&a1->m_isObjectRectDirty = 257;
GameObject::setPosition(a1, a2);
sub_1000229B0(&v122);
v4 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_vehicleSprite->getPosition)(a1->m_vehicleSprite);
sub_1000229B8((__int64 *)&v121, v4);
if ( a1->m_isSwing )
{
m_mainLayer = a1->m_mainLayer;
v5.n128_f32[0] = a1->m_vehicleSize * -10.0;
v6.n128_u32[0] = 0;
sub_100022980(v5, v6, &v119);
}
else
{
if ( a1->m_isPlatformer && a1->m_isShip )
{
m_mainLayer = a1->m_mainLayer;
v5.n128_f32[0] = a1->m_vehicleSize * -10.0;
v6.n128_u32[0] = -18.0;
}
else
{
m_mainLayer = a1->m_mainLayer;
if ( a1->m_isBird )
{
v5.n128_u32[0] = 0;
v6.n128_u32[0] = -3.0;
}
else
{
v5.n128_f32[0] = a1->m_vehicleSize * -12.0;
v6.n128_u32[0] = -4.0;
}
}
sub_100022980(v5, v6, &v118);
sub_1000229DC(&v121, (float32x2_t *)&v118, (float32x2_t *)&v119);
}
cocos2d::CCNode::convertToWorldSpace(m_mainLayer, (const cocos2d::CCPoint *)&v119);
v8 = sub_1000229D0(&v122, (double *)&v120);
if ( ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *, double))a1->m_trailingParticles->getParent)(
a1->m_trailingParticles,
v8) )
{
m_trailingParticles = a1->m_trailingParticles;
v10 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_trailingParticles->getParent)(m_trailingParticles);
v123 = cocos2d::CCNode::convertToNodeSpace(v10, &v122);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64 *, float, float))m_trailingParticles->setPosition)(
m_trailingParticles,
&v120,
v123.x,
v123.y);
}
m_shipClickParticles = a1->m_shipClickParticles;
v12 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_trailingParticles->getPosition)(a1->m_trailingParticles);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))m_shipClickParticles->setPosition)(
m_shipClickParticles,
v12);
m_ufoClickParticles = a1->m_ufoClickParticles;
v14 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_trailingParticles->getPosition)(a1->m_trailingParticles);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))m_ufoClickParticles->setPosition)(
m_ufoClickParticles,
v14);
m_dashParticles = a1->m_dashParticles;
v16 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_trailingParticles->getPosition)(a1->m_trailingParticles);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))m_dashParticles->setPosition)(m_dashParticles, v16);
m_footSprite = a1->m_robotSprite->m_footSprite;
m_robotFire = a1->m_robotFire;
v19 = (cocos2d::CCNode *)((__int64 (__fastcall *)(PlayerFireBoostSprite *))m_robotFire->getParent)(m_robotFire);
v20.n128_f32[0] = *(float *)((__int64 (__fastcall *)(CCSpritePart *))m_footSprite->getContentSize)(m_footSprite) * 0.5;
v21.n128_u32[0] = 2.5;
sub_100022980(v20, v21, &v118);
cocos2d::CCNode::convertToWorldSpace(m_footSprite, (const cocos2d::CCPoint *)&v118);
v124 = cocos2d::CCNode::convertToNodeSpace(v19, (const cocos2d::CCPoint *)&v119);
((void (__fastcall *)(PlayerFireBoostSprite *, __int64 *, float, float))m_robotFire->setPosition)(
m_robotFire,
&v120,
v124.x,
v124.y);
v22 = a1->m_robotFire;
v23 = ((float (__fastcall *)(CCSpritePart *))m_footSprite->getRotation)(m_footSprite);
v24 = ((float (__fastcall *)(CCPartAnimSprite *))a1->m_robotSprite->m_paSprite->getScaleX)(a1->m_robotSprite->m_paSprite);
v25 = ((float (__fastcall *)(CCPartAnimSprite *))a1->m_robotSprite->m_paSprite->getRotation)(a1->m_robotSprite->m_paSprite);
((void (__fastcall *)(PlayerFireBoostSprite *, float))v22->setRotation)(v22, v25 + (float)(v23 * v24));
if ( ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_robotBurstParticles->getParent)(a1->m_robotBurstParticles) )
{
m_robotBurstParticles = a1->m_robotBurstParticles;
v27 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_robotBurstParticles->getParent)(m_robotBurstParticles);
v28 = (cocos2d::CCNode *)((__int64 (__fastcall *)(PlayerFireBoostSprite *))a1->m_robotFire->getParent)(a1->m_robotFire);
v29 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(PlayerFireBoostSprite *))a1->m_robotFire->getPosition)(a1->m_robotFire);
cocos2d::CCNode::convertToWorldSpace(v28, v29);
v125 = cocos2d::CCNode::convertToNodeSpace(v27, (const cocos2d::CCPoint *)&v119);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64 *, float, float))m_robotBurstParticles->setPosition)(
m_robotBurstParticles,
&v120,
v125.x,
v125.y);
}
if ( ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_swingBurstParticles1->getParent)(a1->m_swingBurstParticles1) )
{
m_swingBurstParticles1 = a1->m_swingBurstParticles1;
v31 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_swingBurstParticles1->getParent)(m_swingBurstParticles1);
v32 = (cocos2d::CCNode *)((__int64 (__fastcall *)(PlayerFireBoostSprite *))a1->m_swingFireBottom->getParent)(a1->m_swingFireBottom);
v33 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(PlayerFireBoostSprite *))a1->m_swingFireBottom->getPosition)(a1->m_swingFireBottom);
cocos2d::CCNode::convertToWorldSpace(v32, v33);
v126 = cocos2d::CCNode::convertToNodeSpace(v31, (const cocos2d::CCPoint *)&v119);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64 *, float, float))m_swingBurstParticles1->setPosition)(
m_swingBurstParticles1,
&v120,
v126.x,
v126.y);
}
if ( ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_swingBurstParticles2->getParent)(a1->m_swingBurstParticles2) )
{
m_swingBurstParticles2 = a1->m_swingBurstParticles2;
v37 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_swingBurstParticles2->getParent)(m_swingBurstParticles2);
v38 = (cocos2d::CCNode *)((__int64 (__fastcall *)(PlayerFireBoostSprite *))a1->m_swingFireTop->getParent)(a1->m_swingFireTop);
v39 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(PlayerFireBoostSprite *))a1->m_swingFireTop->getPosition)(a1->m_swingFireTop);
cocos2d::CCNode::convertToWorldSpace(v38, v39);
v127 = cocos2d::CCNode::convertToNodeSpace(v37, (const cocos2d::CCPoint *)&v119);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64 *, float, float))m_swingBurstParticles2->setPosition)(
m_swingBurstParticles2,
&v120,
v127.x,
v127.y);
}
if ( a1->m_isUpsideDown )
v40 = -1;
else
v40 = 1;
if ( a1->m_isSwing )
v40 = 1;
if ( a1->m_isOnGround3 )
v41 = v40;
else
v41 = -v40;
v34.n128_u32[0] = 0;
v35.n128_u32[0] = 0;
sub_100022980(v34, v35, &v120);
if ( a1->m_isRobot )
{
v42.n128_u32[0] = 0;
v43.n128_u32[0] = -2.0;
sub_100022980(v42, v43, &v119);
v42.n128_f64[0] = sub_1000229D0(&v120, (double *)&v119);
}
v43.n128_u32[0] = LODWORD(a1->m_vehicleSize);
v42.n128_f32[0] = -(float)((float)(*(float *)&v120 + -10.0) * v43.n128_f32[0]);
if ( !a1->m_isGoingLeft )
v42.n128_f32[0] = (float)(*(float *)&v120 + -10.0) * v43.n128_f32[0];
v43.n128_f32[0] = v43.n128_f32[0] * (float)((float)(*((float *)&v120 + 1) + -13.0) * (float)v41);
sub_100022980(v42, v43, &v119);
if ( a1->m_isOnSlope )
{
m_slopeSlidingMaybeRotated = a1->m_slopeSlidingMaybeRotated;
if ( a1->m_slopeSlidingMaybeRotated )
v47 = 1.0;
else
v47 = -1.0;
m_vehicleSize = a1->m_vehicleSize;
v49 = a1->m_height * m_vehicleSize;
v50 = m_vehicleSize * 20.0;
v51 = (float)(sqrtf((float)(v49 * v49) + (float)(v50 * v50)) * 0.5);
if ( v47 == -1.0 )
m_slopeAngleRadians = -a1->m_slopeAngleRadians;
else
m_slopeAngleRadians = a1->m_slopeAngleRadians;
v53 = atanf(v49 / v50);
m_isGoingLeft = a1->m_isGoingLeft;
if ( (((m_isGoingLeft != m_slopeSlidingMaybeRotated) ^ a1->m_isUpsideDown) & 1) == 0 )
v53 = -v53;
v55 = m_slopeAngleRadians + v53 * v47;
v128 = __sincosf_stret(v55);
v58 = -1.0;
if ( !m_isGoingLeft )
v58 = 1.0;
v57.n128_f64[0] = v58 * (v51 * v128.__cosval);
v59 = v57.n128_f64[0];
v56.n128_f64[0] = v58 * (v51 * v128.__sinval);
v57.n128_f32[0] = v56.n128_f64[0];
v56.n128_f32[0] = v59;
sub_100022980(v56, v57, &v118);
if ( a1->m_isSideways )
v118 = vrev64_s32(v118);
m_playerGroundParticles = a1->m_playerGroundParticles;
v61.n128_u64[0] = (unsigned __int64)sub_1000229F0((float32x2_t *)a2, (float32x2_t *)&v118, &v117);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float32x2_t *, __n128))m_playerGroundParticles->setPosition)(
m_playerGroundParticles,
&v117,
v61);
}
else if ( a1->m_isOnGround2 )
{
if ( a1->m_isSideways )
v119 = vrev64_s32(v119);
v62 = a1->m_playerGroundParticles;
v63.n128_u64[0] = (unsigned __int64)sub_1000229DC((float32x2_t *)a2, (float32x2_t *)&v119, (float32x2_t *)&v118);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, int32x2_t *, __n128))v62->setPosition)(v62, &v118, v63);
}
if ( a1->m_unkA29 )
{
v64 = a1->m_vehicleSize;
v44.n128_f32[0] = -v64;
if ( !a1->m_isGoingLeft )
v44.n128_u32[0] = LODWORD(a1->m_vehicleSize);
v65 = v64 * -15.0;
v45.n128_f32[0] = -(float)(v64 * -15.0);
if ( !a1->m_isUpsideDown )
v45.n128_f32[0] = v65;
sub_100022980(v44, v45, &v118);
if ( a1->m_isSideways )
v118 = vrev64_s32(v118);
m_vehicleGroundParticles = a1->m_vehicleGroundParticles;
*(float32x2_t *)&v67 = sub_1000229DC((float32x2_t *)a2, (float32x2_t *)&v118, &v117);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float32x2_t *, double))m_vehicleGroundParticles->setPosition)(
m_vehicleGroundParticles,
&v117,
v67);
v68.n128_u32[0] = 1121714176;
if ( a1->m_isUpsideDown )
v68.n128_f32[0] = 290.0;
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __n128))a1->m_vehicleGroundParticles->setAngle)(
a1->m_vehicleGroundParticles,
v68);
v70 = a1->m_vehicleGroundParticles;
v71.n128_u32[0] = 1133903872;
if ( !a1->m_isUpsideDown )
v71.n128_f32[0] = -300.0;
v69.n128_u32[0] = -1011941376;
sub_100022980(v69, v71, &v117);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float32x2_t *))v70->setGravity)(v70, &v117);
v72.n128_u32[0] = 1119092736;
if ( !a1->m_isSideways )
v72.n128_f32[0] = 0.0;
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __n128))a1->m_vehicleGroundParticles->setRotation)(
a1->m_vehicleGroundParticles,
v72);
}
if ( a1->m_isShip )
{
if ( a1->m_isPlatformer )
{
m_regularTrail = a1->m_regularTrail;
v74 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCMotionStreak *))m_regularTrail->getParent)(m_regularTrail);
v75 = a1->m_mainLayer;
v76 = a1->m_vehicleSize;
v77.n128_f32[0] = v76 * -10.0;
v78.n128_f32[0] = v76 * -12.0;
sub_100022980(v77, v78, &v116);
LABEL_68:
cocos2d::CCNode::convertToWorldSpace(v75, (const cocos2d::CCPoint *)&v116);
v129 = cocos2d::CCNode::convertToNodeSpace(v74, (const cocos2d::CCPoint *)&v117);
v109.n128_u32[0] = LODWORD(v129.x);
v110.n128_u32[0] = LODWORD(v129.y);
((void (__fastcall *)(cocos2d::CCMotionStreak *, int32x2_t *, __n128, __n128))m_regularTrail->setPosition)(
m_regularTrail,
&v118,
v109,
v110);
goto LABEL_84;
}
v44.n128_u32[0] = 4.0;
if ( a1->m_isGoingLeft )
v44.n128_f32[0] = -4.0;
v45.n128_u32[0] = 0;
sub_100022980(v44, v45, &v118);
if ( a1->m_isSideways )
v118 = vrev64_s32(v118);
v83 = a1->m_regularTrail;
v84 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_trailingParticles->getPosition)(a1->m_trailingParticles);
v86.n128_u32[0] = v118.u32[1];
v85.n128_u32[0] = v118.i32[0];
sub_100022980(v85, v86, &v116);
*(float32x2_t *)&v87 = sub_1000229DC(v84, &v116, &v117);
((void (__fastcall *)(cocos2d::CCMotionStreak *, float32x2_t *, double))v83->setPosition)(v83, &v117, v87);
if ( a1->m_shipStreak )
{
sub_1002173F8(a1->m_shipStreakType, &v117, v79, v88);
m_shipStreak = a1->m_shipStreak;
v90 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCMotionStreak *))a1->m_regularTrail->getParent)(a1->m_regularTrail);
v91 = a1->m_mainLayer;
v92 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_vehicleSprite->getPosition)(a1->m_vehicleSprite);
v94.n128_u32[0] = v117.u32[1];
v93.n128_u32[0] = v117.i32[0];
if ( a1->m_isGoingLeft )
v93.n128_f32[0] = -v117.f32[0];
sub_100022980(v93, v94, &v113);
sub_1000229DC(v92, &v113, &v114);
cocos2d::CCNode::convertToWorldSpace(v91, (const cocos2d::CCPoint *)&v114);
v130 = cocos2d::CCNode::convertToNodeSpace(v90, (const cocos2d::CCPoint *)&v115);
v111.n128_u32[0] = LODWORD(v130.x);
v112.n128_u32[0] = LODWORD(v130.y);
((void (__fastcall *)(cocos2d::CCMotionStreak *, float32x2_t *, __n128, __n128))m_shipStreak->setPosition)(
m_shipStreak,
&v116,
v111,
v112);
}
}
else if ( a1->m_isBird )
{
if ( ((__int64 (__fastcall *)(cocos2d::CCMotionStreak *))a1->m_regularTrail->getParent)(a1->m_regularTrail) )
{
m_regularTrail = a1->m_regularTrail;
v74 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCMotionStreak *))m_regularTrail->getParent)(m_regularTrail);
v75 = a1->m_mainLayer;
v80 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_vehicleSprite->getPosition)(a1->m_vehicleSprite);
v81.n128_u32[0] = 0;
v82.n128_u32[0] = 0;
sub_100022980(v81, v82, &v115);
sub_1000229DC(v80, &v115, &v116);
goto LABEL_68;
}
}
else if ( a1->m_isSwing )
{
v95 = a1->m_regularTrail;
v96 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_trailingParticles->getPosition)(a1->m_trailingParticles);
((void (__fastcall *)(cocos2d::CCMotionStreak *, __int64, __n128, __n128))v95->setPosition)(v95, v96, v97, v98);
}
else
{
v44.n128_f32[0] = -(float)(a1->m_vehicleSize * -2.0);
if ( !a1->m_isGoingLeft )
v44.n128_f32[0] = a1->m_vehicleSize * -2.0;
v45.n128_u32[0] = 0;
sub_100022980(v44, v45, &v118);
if ( a1->m_isSideways )
{
v99.n128_u32[0] = v118.u32[1];
v100.n128_u32[0] = v118.i32[0];
sub_100022980(v99, v100, &v117);
v99.n128_f64[0] = sub_1000229D0(&v118, (double *)&v117);
}
v101 = a1->m_regularTrail;
v102 = (float32x2_t *)((__int64 (__fastcall *)(PlayerObject *, __n128))a1->getPosition)(a1, v99);
v103.n128_u64[0] = (unsigned __int64)sub_1000229DC(v102, (float32x2_t *)&v118, &v117);
((void (__fastcall *)(cocos2d::CCMotionStreak *, float32x2_t *, __n128, __n128))v101->setPosition)(
v101,
&v117,
v103,
v104);
}
LABEL_84:
if ( a1->m_fadeOutStreak && a1->m_isDart )
{
m_waveTrail = a1->m_waveTrail;
v106 = (__int64 *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1);
sub_1000229B8((__int64 *)&v118, v106);
v79.n128_f64[0] = sub_1000229D0(&m_waveTrail->m_currentPoint, (double *)&v118);
}
v107 = a1->m_waveTrail;
v108 = ((__int64 (__fastcall *)(PlayerObject *, __n128))a1->getPosition)(a1, v79);
((void (__fastcall *)(HardStreak *, __int64))v107->setPosition)(v107, v108);
}