//
// cocos2d::CCParallaxNode::removeChild from 0x1800aacf0 to 0x1800aad79 (137 bytes)
//
// 3 xrefs:
// > ??> @ 0x1801053c0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b7fc8
//
// 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::removeChild(
cocos2d::CCParallaxNode *this,
struct cocos2d::CCNode *a2,
char a3)
{
__int64 v3; // r9
__int64 v4; // rbx
__int64 v8; // rcx
char v9; // al
v3 = *((_QWORD *)this + 40);
v4 = 0;
if ( *(_DWORD *)v3 )
{
while ( 1 )
{
v8 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v3 + 16) + 8 * v4) + 72LL);
v9 = (*(__int64 (__fastcall **)(__int64, struct cocos2d::CCNode *))(*(_QWORD *)v8 + 16LL))(v8, a2);
v3 = *((_QWORD *)this + 40);
if ( v9 )
break;
v4 = (unsigned int)(v4 + 1);
if ( (unsigned int)v4 >= *(_DWORD *)v3 )
goto LABEL_6;
}
sub_18009DEE0(*((_QWORD *)this + 40), v4, 1);
}
LABEL_6:
cocos2d::CCNode::removeChild(this, a2, a3);
}