//
// cocos2d::CCTMXLayer::removeChild from 0x1002456d0 to 0x100245737 (103 bytes)
//
// 1 xrefs:
// > ??> @ 0x100af04f8
//
// 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:27:19 +0000
//
__int64 __fastcall cocos2d::CCTMXLayer::removeChild(_QWORD *a1, __int64 a2, unsigned __int8 a3)
{
__int64 v6; // rsi
__int64 v7; // rdi
__int64 result; // rax
if ( a2 )
{
sub_1007FF080(a1[26], a2);
v6 = *(unsigned int *)(a2 + 360);
v7 = a1[58];
*(_DWORD *)(a1[47] + 4LL * *(unsigned int *)(*(_QWORD *)(v7 + 16) + 8 * v6)) = 0;
sub_100747B50(v7, v6);
return cocos2d::CCSpriteBatchNode::removeChild((__int64)a1, a2, a3);
}
return result;
}