//
// cocos2d::CCParallaxNode::removeChild from 0xdaa9ec to 0xdaaa84 (152 bytes)
//
// 2 xrefs:
// > ??> @ 0xaa308
// > ??> @ 0x1530808
//
// 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::removeChild(
cocos2d::CCParallaxNode *this,
cocos2d::CCNode *a2,
unsigned __int8 a3)
{
__int64 v5; // x0
unsigned int v7; // w19
__int64 v8; // x0
v5 = *((_QWORD *)this + 40);
v7 = 0;
if ( *(_DWORD *)v5 )
{
while ( 1 )
{
v8 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v5 + 16) + 8LL * v7) + 72LL);
if ( (*(unsigned __int8 (__fastcall **)(__int64, cocos2d::CCNode *))(*(_QWORD *)v8 + 24LL))(v8, a2) )
break;
v5 = *((_QWORD *)this + 40);
if ( *(_DWORD *)v5 <= ++v7 )
return cocos2d::CCNode::removeChild((__int64)this, a2, a3);
}
cocos2d::ccArrayRemoveObjectAtIndex(*((int **)this + 40), v7, 1);
}
return cocos2d::CCNode::removeChild((__int64)this, a2, a3);
}