//
// cocos2d::CCLayerRGBA::setColor from 0x1001c7e40 to 0x1001c7f0c (204 bytes)
//
// 12 xrefs:
// > sub_1001C7F0C @ 0x1001c7f10
// > cocos2d::CCLayerColor::setColor @ 0x1001c8678
// > sub_1001C8694 @ 0x1001c86a8
// > ??> @ 0x1008e4518
// > ??> @ 0x1008ecb38
// > ??> @ 0x100905658
// > ??> @ 0x100906aa0
// > ??> @ 0x100907968
// > ??> @ 0x10090dc60
// > ??> @ 0x100917bc0
// > ??> @ 0x10093e928
// > ??> @ 0x10093f960
//
// 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:00:18 +0000
//
__int64 __fastcall cocos2d::CCLayerRGBA::setColor(__int64 result, __int16 *a2)
{
__int64 v2; // x29
__int64 v3; // x30
__int16 v4; // w9
__int16 v5; // w8
__int64 v6; // x19
const void *v7; // x0
void *v8; // x0
void *v9; // x20
__int64 v10; // x0
char v11; // w8
__int16 v12; // [xsp+Ch] [xbp-24h] BYREF
char v13; // [xsp+Eh] [xbp-22h]
__int64 v14; // [xsp+20h] [xbp-10h]
__int64 v15; // [xsp+28h] [xbp-8h]
v4 = *a2;
*(_BYTE *)(result + 423) = *((_BYTE *)a2 + 2);
*(_WORD *)(result + 421) = v4;
v5 = *a2;
*(_BYTE *)(result + 420) = *((_BYTE *)a2 + 2);
*(_WORD *)(result + 418) = v5;
if ( *(_BYTE *)(result + 425) == 1 )
{
v14 = v2;
v15 = v3;
v6 = result;
v13 = -1;
v12 = -1;
v7 = *(const void **)(result + 216);
if ( v7 )
{
v8 = __dynamic_cast(
v7,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&off_1008BD768,
-2);
if ( v8 )
{
v9 = v8;
if ( (*(unsigned int (__fastcall **)(void *))(*(_QWORD *)v8 + 64LL))(v8) )
{
v10 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v9 + 16LL))(v9);
v11 = *(_BYTE *)(v10 + 2);
v12 = *(_WORD *)v10;
v13 = v11;
}
}
}
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v6 + 1224LL))(v6, &v12);
}
return result;
}