//
// cocos2d::CCParallaxNode::addChild_1 from 0x1004ae9b0 to 0x1004aea6c (188 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009484a0
//
// 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 cocos2d::CCParallaxNode::addChild_1(
cocos2d::CCParallaxNode *a1,
cocos2d::CCNode *a2,
unsigned int a3,
const cocos2d::CCPoint *a4,
const cocos2d::CCPoint *a5)
{
double v8; // xmm0_8
__int64 v9; // rax
__int64 v10; // [rsp+4h] [rbp-3Ch] BYREF
unsigned int v11; // [rsp+Ch] [rbp-34h]
double v12[6]; // [rsp+10h] [rbp-30h] BYREF
v11 = a3;
sub_10028CC60(v12, (double *)a4);
v8 = sub_10028CC60(&v10, (double *)a5);
v9 = sub_1004AEA70(v12, &v10, v8);
*(_QWORD *)(v9 + 72) = a2;
sub_1006676C0(a1[1].__vftable, v9);
sub_10028CC60(v12, (double *)&a1->m_obPosition);
_mm_storel_ps(
v12,
_mm_add_ps((__m128)*(_QWORD *)a5, _mm_mul_ps((__m128)*(_QWORD *)a4, (__m128)*(unsigned __int64 *)&v12[0])));
((void (__fastcall *)(cocos2d::CCNode *, double *))a2->setPosition)(a2, v12);
((void (__fastcall *)(cocos2d::CCNode *))a2->getTag)(a2);
cocos2d::CCNode::addChild(a1, (int)a2, v11);
}