//
// cocos2d::CCParallaxNode::visit from 0xdaaab4 to 0xdaac1c (360 bytes)
//
// 2 xrefs:
// > ??> @ 0xd70f8
// > ??> @ 0x15308d0
//
// This function is hookable on this platform (idp: arm, 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 13:08:34 +0000
//
__int64 __fastcall cocos2d::CCParallaxNode::visit(cocos2d::CCParallaxNode *this)
{
float *v2; // x25
__int64 v3; // x0
unsigned int v4; // w26
float v5; // s9
_QWORD *v6; // x27
float v7; // s8
float v8; // s9
float v9; // s8
__int64 v10; // x22
void (__fastcall *v11)(__int64, float *); // x27
float v13; // [xsp+70h] [xbp+70h]
float v14; // [xsp+80h] [xbp+80h] BYREF
float v15; // [xsp+84h] [xbp+84h]
float v16[2]; // [xsp+88h] [xbp+88h] BYREF
float v17[2]; // [xsp+90h] [xbp+90h] BYREF
v2 = (float *)((char *)this + 328);
cocos2d::CCParallaxNode::absolutePosition(this, &v14);
if ( !cocos2d::CCPoint::equals((cocos2d::CCPoint *)&v14, (const cocos2d::CCPoint *)v2) )
{
v3 = *((_QWORD *)this + 40);
if ( *(_DWORD *)v3 )
{
v4 = 0;
do
{
v5 = v14;
v6 = *(_QWORD **)(*(_QWORD *)(v3 + 16) + 8LL * v4++);
cocos2d::CCPoint::CCPoint(v16, (const cocos2d::CCPoint *)(v6 + 7));
v7 = -(float)(v14 - (float)(v5 * v16[0]));
cocos2d::CCPoint::CCPoint(v17, (const cocos2d::CCPoint *)(v6 + 8));
v8 = v15;
v13 = v7 + v17[0];
cocos2d::CCPoint::CCPoint(v16, (const cocos2d::CCPoint *)(v6 + 7));
v9 = -(float)(v15 - (float)(v8 * v16[1]));
cocos2d::CCPoint::CCPoint(v17, (const cocos2d::CCPoint *)(v6 + 8));
v10 = v6[9];
v11 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v10 + 184LL);
cocos2d::CCPoint::CCPoint(v17, v13, v9 + v17[1]);
v11(v10, v17);
v3 = *((_QWORD *)this + 40);
}
while ( *(_DWORD *)v3 > v4 );
}
cocos2d::CCPoint::operator=(v2, &v14);
}
cocos2d::CCNode::visit(this);
return _stack_chk_guard;
}