//
// cocos2d::CCNode::getChildByTag from 0x7c3746 to 0x7c378a (68 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:22 +0000
//
int __fastcall cocos2d::CCNode::getChildByTag(cocos2d::CCNode *this, int a2)
{
cocos2d::CCArray *v3; // r0
int result; // r0
int *v6; // r3
int *v7; // r2
int *v8; // r3
int v9; // t1
v3 = *((cocos2d::CCArray **)this + 48);
if ( !v3 || !cocos2d::CCArray::count(v3) )
return 0;
result = *((_DWORD *)this + 48);
if ( result )
{
v6 = *(int **)(result + 52);
result = *v6;
if ( *v6 )
{
v7 = (int *)v6[3];
v8 = &v7[result - 1];
while ( v7 <= v8 )
{
v9 = *v7++;
result = v9;
if ( !v9 || *(_DWORD *)(result + 12) == a2 )
return result;
}
return 0;
}
}
return result;
}