//
// cocos2d::CCNode::getChildByTag from 0x180003340 to 0x1800033c1 (129 bytes)
//
// 87 xrefs:
// > ??> @ 0x1800e55a8
// > ??> @ 0x1800e5c08
// > ??> @ 0x1800e5f78
// > ??> @ 0x1800e68d8
// > ??> @ 0x1800e6de0
// > ??> @ 0x1800eb5a8
// > ??> @ 0x1800eba48
// > ??> @ 0x1800ebf20
// > ??> @ 0x1800ec448
// > ??> @ 0x1800ecaa0
// > ??> @ 0x1800ed0b8
// > ??> @ 0x1800ed578
// > ??> @ 0x1800edab0
// > ??> @ 0x1800ee018
// > ??> @ 0x1800ee5f0
// > ??> @ 0x1800eeab0
// > ??> @ 0x1800eee38
// > ??> @ 0x1800ef1b8
// > ??> @ 0x1800ef540
// > ??> @ 0x1800ef8c0
// > ??> @ 0x1800efc40
// > ??> @ 0x1800effe0
// > ??> @ 0x1800f0380
// > ??> @ 0x1800f0720
// > ??> @ 0x1800f0ac0
// > ??> @ 0x1800f0e60
// > ??> @ 0x1800f1200
// > ??> @ 0x1800f15a0
// > ??> @ 0x1800f1940
// > ??> @ 0x1800f1cd0
// > ??> @ 0x1800f2058
// > ??> @ 0x1800f23e0
// > ??> @ 0x1800f2768
// > ??> @ 0x1800f2af0
// > ??> @ 0x1800f2e78
// > ??> @ 0x1800f3200
// > ??> @ 0x1800f3588
// > ??> @ 0x1800f3908
// > ??> @ 0x1800f3c98
// > ??> @ 0x1800f4030
// > ??> @ 0x1800f43c8
// > ??> @ 0x1800f4760
// > ??> @ 0x1800f4af8
// > ??> @ 0x1800f4e90
// > ??> @ 0x1800f5240
// > ??> @ 0x1800f55c8
// > ??> @ 0x1800f5958
// > ??> @ 0x1800f5ce8
// > ??> @ 0x1800f6078
// > ??> @ 0x1800f6408
// > ??> @ 0x1800f6798
// > ??> @ 0x1800f6b28
// > ??> @ 0x1800f6ec0
// > ??> @ 0x1800f7428
// > ??> @ 0x1800f7850
// > ??> @ 0x1800f7c98
// > ??> @ 0x1800f80e0
// > ??> @ 0x1800f8528
// > ??> @ 0x1800f8988
// > ??> @ 0x1800f8de8
// > ??> @ 0x1800f9238
// > ??> @ 0x1800f9600
// > ??> @ 0x1800f9a18
// > ??> @ 0x1800f9e28
// > ??> @ 0x1800fa258
// > ??> @ 0x1800fa8c8
// > ??> @ 0x1800faf38
// > ??> @ 0x1800fb5a8
// > ??> @ 0x1800fbc18
// > ??> @ 0x1800fc288
// > ??> @ 0x1800fc8f8
// > ??> @ 0x1800fcf68
// > ??> @ 0x1800fd5d8
// > ??> @ 0x1800fdc48
// > ??> @ 0x1800fe2b8
// > ??> @ 0x1800fe928
// > ??> @ 0x1800ff170
// > ??> @ 0x1800ffc10
// > ??> @ 0x180103958
// > ??> @ 0x180103e48
// > ??> @ 0x180105380
// > ??> @ 0x180105758
// > ??> @ 0x180105bb0
// > ??> @ 0x180106018
// > ??> @ 0x180106950
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ad2b8
//
// 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
//
struct cocos2d::CCNode *__fastcall cocos2d::CCNode::getChildByTag(cocos2d::CCNode *this, int a2)
{
cocos2d::CCArray *m_pChildren; // rcx
cocos2d::CCArray *v5; // rax
cocos2d::ccArray *data; // rax
__int64 num; // rcx
cocos2d::CCObject **arr; // rax
cocos2d::CCObject **v9; // rdx
m_pChildren = this->m_pChildren;
if ( m_pChildren )
{
if ( cocos2d::CCArray::count(m_pChildren) )
{
v5 = this->m_pChildren;
if ( v5 )
{
data = v5->data;
num = data->num;
if ( (_DWORD)num )
{
arr = data->arr;
v9 = &arr[num - 1];
if ( arr <= v9 )
{
while ( *arr )
{
if ( (*arr)->m_nTag == a2 )
return (struct cocos2d::CCNode *)*arr;
if ( ++arr > v9 )
return nullptr;
}
}
}
}
}
}
return nullptr;
}