//
// cocos2d::CCParallaxNode::removeChild from 0x1004a7d50 to 0x1004a7dd0 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b53198
//
// This function is hookable on this platform (idp: pc, 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 12:30:55 +0000
//
__int64 __fastcall cocos2d::CCParallaxNode::removeChild(__int64 a1, unsigned int *a2, char a3)
{
unsigned int *v5; // rdi
__int64 v6; // r12
__int64 v7; // rdi
char v8; // al
v5 = *(unsigned int **)(a1 + 320);
if ( *v5 )
{
v6 = 0;
while ( 1 )
{
v7 = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)v5 + 2) + 8 * v6) + 72LL);
v8 = (*(__int64 (__fastcall **)(__int64, unsigned int *))(*(_QWORD *)v7 + 24LL))(v7, a2);
v5 = *(unsigned int **)(a1 + 320);
if ( v8 )
break;
if ( ++v6 >= (unsigned __int64)*v5 )
return cocos2d::CCNode::removeChild(a1, a2, a3);
}
sub_1007470D0(v5, (unsigned int)v6, 1);
}
return cocos2d::CCNode::removeChild(a1, a2, a3);
}