//
// cocos2d::CCParallaxNode::addChild from 0x5f6b90 to 0x5f6cac (284 bytes)
//
// 0 xrefs:
//
// 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 cocos2d::CCParallaxNode::addChild(
cocos2d::CCParallaxNode *a1,
cocos2d::CCNode *a2,
unsigned int a3,
const cocos2d::CCPoint *a4,
const cocos2d::CCPoint *a5)
{
int v8; // r4
int v9; // r2
bool v10; // r3
bool v11; // r3
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r3
float y; // s14
cocos2d::CCPoint v14; // [sp+14h] [bp-18h] BYREF
cocos2d::CCPoint v15; // [sp+1Ch] [bp-10h] BYREF
cocos2d::CCPoint v16; // [sp+24h] [bp-8h] BYREF
cocos2d::CCPoint v17; // [sp+2Ch] [bp+0h] BYREF
cocos2d::CCPoint::CCPoint(&v14, a4);
cocos2d::CCPoint::CCPoint(&v15, a5);
v8 = operator new(0x48u);
memset((void *)v8, 0, 0x48u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v8);
*(_DWORD *)v8 = &off_AAE638;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v8 + 52));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v8 + 60));
cocos2d::CCPoint::CCPoint(&v17, &v14);
cocos2d::CCPoint::CCPoint(&v16, &v15);
cocos2d::CCPoint::operator=((cocos2d::CCPoint *)(v8 + 52), &v17.x, v9, v10);
cocos2d::CCPoint::operator=((cocos2d::CCPoint *)(v8 + 60), &v16.x, v8 + 60, v11);
*(_DWORD *)(v8 + 68) = 0;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);
*(_DWORD *)(v8 + 68) = a2;
cocos2d::ccArrayAppendObjectWithResize((int *)a1[1].__vftable, (cocos2d::CCObject *)v8);
cocos2d::CCPoint::CCPoint(&v17, &a1->m_obPosition);
setPosition = a2->setPosition;
y = a4->y;
v17.x = a5->x + (float)(v17.x * a4->x);
v17.y = a5->y + (float)(v17.y * y);
setPosition(a2, &v17);
a2->getTag(a2);
cocos2d::CCNode::addChild(a1);
}