//
// ColorAction::getCopy from 0x1002dc130 to 0x1002dc254 (292 bytes)
//
// 0 xrefs:
//
// 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
//
ColorAction *__fastcall ColorAction::getCopy(ColorAction *a1)
{
int v1; // r13d
int b; // r12d
int v3; // r14d
int v4; // r15d
char *v5; // rbx
int v6; // r13d
int v7; // r14d
__m128 v9; // [rsp+0h] [rbp-50h]
float m_duration; // [rsp+1Ch] [rbp-34h]
unsigned int m_playerColor; // [rsp+20h] [rbp-30h]
bool m_blending; // [rsp+27h] [rbp-29h]
v1 = *(unsigned __int16 *)&a1->m_fromColor.r;
b = a1->m_fromColor.b;
v3 = *(unsigned __int16 *)&a1->m_toColor.r;
v4 = a1->m_toColor.b;
m_duration = a1->m_duration;
m_blending = a1->m_blending;
m_playerColor = a1->m_playerColor;
v9 = (__m128)*(unsigned __int64 *)&a1->m_fromOpacity;
v5 = (char *)operator new(0xA8u);
cocos2d::CCObject::CCObject(v5);
v6 = (b << 16) | v1;
v7 = (v4 << 16) | v3;
*(_QWORD *)v5 = off_10090A0B8;
*((_WORD *)v5 + 28) = 0;
_mm_storel_ps((double *)v5 + 8, (__m128)0x3F800000u);
*(_OWORD *)(v5 + 104) = xmmword_1009A04B0;
*((_DWORD *)v5 + 30) = 0;
*(_DWORD *)(v5 + 123) = 0;
*((_QWORD *)v5 + 16) = 0;
v5[136] = 0;
*((_OWORD *)v5 + 9) = 0;
*((_QWORD *)v5 + 20) = 0;
v5[74] = BYTE2(v6);
*((_WORD *)v5 + 36) = v6;
v5[77] = BYTE2(v7);
*(_WORD *)(v5 + 75) = v7;
*((float *)v5 + 20) = m_duration;
v5[84] = m_blending;
*((_QWORD *)v5 + 11) = m_playerColor;
_mm_storel_ps((double *)v5 + 12, v9);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
return (ColorAction *)v5;
}