//
// cocos2d::extension::CCScale9Sprite::setColor from 0xaa2284 to 0xaa2350 (204 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCScale9Sprite::setColor @ 0xaa2354
// > ??> @ 0x59940
// > ??> @ 0x11f81b0
//
// 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
//
void cocos2d::extension::CCScale9Sprite::setColor(cocos2d::extension::CCScale9Sprite *a1, const cocos2d::ccColor3B *a2)
{
cocos2d::CCSpriteBatchNode *scale9Image; // x2
cocos2d::CCSpriteBatchNode *v5; // x0
__int64 v6; // x0
unsigned int *v7; // x1
const void **v8; // x19
__int64 v9; // x0
char *v10; // x20
const void *i; // x0
void (__fastcall ***v12)(void *, const cocos2d::ccColor3B *); // x0
scale9Image = a1->_scale9Image;
if ( scale9Image )
{
v5 = a1->_scale9Image;
a1->_color = *a2;
v6 = (__int64)scale9Image->getChildren(v5);
if ( v6 )
{
v7 = *(unsigned int **)(v6 + 56);
if ( *v7 )
{
v8 = *((const void ***)v7 + 2);
v9 = 8LL * *v7 - 8;
v10 = (char *)v8 + v9;
if ( v8 <= (const void **)((char *)v8 + v9) )
{
for ( i = *v8; *v8; i = *v8 )
{
v12 = (void (__fastcall ***)(void *, const cocos2d::ccColor3B *))_dynamic_cast(
i,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v12 )
(**v12)(v12, a2);
if ( v10 < (char *)++v8 )
break;
}
}
}
}
}
}