//
// cocos2d::CCSprite::setChildColor from 0x1002d5db4 to 0x1002d5e54 (160 bytes)
//
// 29 xrefs:
// > ??> @ 0x1008aecb8
// > ??> @ 0x1008c01b8
// > ??> @ 0x1008c0b10
// > ??> @ 0x1008c1d20
// > ??> @ 0x1008c42e8
// > ??> @ 0x1008c7d38
// > ??> @ 0x1008c82e8
// > ??> @ 0x1008d45a8
// > ??> @ 0x1008e00b0
// > ??> @ 0x1008eee20
// > ??> @ 0x100904198
// > ??> @ 0x100904760
// > ??> @ 0x10090ab58
// > ??> @ 0x100910988
// > ??> @ 0x100911b98
// > ??> @ 0x10091cd58
// > ??> @ 0x10091fd60
// > ??> @ 0x100920860
// > ??> @ 0x1009220e0
// > ??> @ 0x1009226a8
// > ??> @ 0x10093cd88
// > ??> @ 0x1009425d0
// > ??> @ 0x100942b98
// > ??> @ 0x1009448c8
// > ??> @ 0x100944e60
// > ??> @ 0x100947dd0
// > ??> @ 0x100963ce8
// > ??> @ 0x10096a100
// > ??> @ 0x10098cae8
//
// This function is hookable on this platform (idp: arm, 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 11:02:41 +0000
//
_QWORD *__fastcall cocos2d::CCSprite::setChildColor(_QWORD *result, __int64 a2)
{
__int64 v2; // x8
unsigned int *v3; // x9
__int64 v4; // x8
void **v6; // x22
unsigned __int64 v7; // x23
if ( *((_BYTE *)result + 378) == 1 )
{
v2 = result[26];
if ( v2 )
{
v3 = *(unsigned int **)(v2 + 56);
v4 = *v3;
if ( (_DWORD)v4 )
{
v6 = *((void ***)v3 + 2);
v7 = (unsigned __int64)&v6[v4 - 1];
do
{
result = *v6;
if ( !*v6 )
break;
result = __dynamic_cast(
result,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCSprite,
0);
if ( result )
result = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *, __int64))(*result + 960LL))(result, a2);
++v6;
}
while ( (unsigned __int64)v6 <= v7 );
}
}
}
return result;
}