//
// cocos2d::extension::CCScale9Sprite::setColor from 0x18000fca0 to 0x18000fd5a (186 bytes)
//
// 5 xrefs:
// > ??> @ 0x180029b20
// > ??> @ 0x1800309cc
// > ??> @ 0x180030a24
// > ??> @ 0x180032408
// > ??> @ 0x18004bf78
//
// 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:15:39 +0000
//
void __fastcall cocos2d::extension::CCScale9Sprite::setColor(
cocos2d::extension::CCScale9Sprite *this,
const struct cocos2d::_ccColor3B *a2)
{
__int64 v2; // r8
__int64 v4; // rax
unsigned int *v5; // rbx
__int64 v6; // rax
_QWORD *v7; // rbx
_QWORD *i; // rdi
void (__fastcall ***v9)(_QWORD, const struct cocos2d::_ccColor3B *); // rax
v2 = *((_QWORD *)this + 15);
if ( v2 )
{
*((_WORD *)this + 101) = *(_WORD *)a2;
*((_BYTE *)this + 204) = *((_BYTE *)a2 + 2);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 480LL))(v2);
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = *((_QWORD **)v5 + 2);
for ( i = &v7[v6 - 1]; v7 <= i; ++v7 )
{
if ( !*v7 )
break;
v9 = (void (__fastcall ***)(_QWORD, const struct cocos2d::_ccColor3B *))_RTDynamicCast(
*v7,
0,
&cocos2d::CCObject `RTTI Type Descriptor',
&cocos2d::CCRGBAProtocol `RTTI Type Descriptor',
0);
if ( v9 )
(**v9)(v9, a2);
}
}
}
}
}