//
// ColorAction::saveToState from 0x10000d68c to 0x10000d718 (140 bytes)
//
// 1 xrefs:
// > GJEffectManager::saveToState @ 0x100016a68
//
// 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 __fastcall ColorAction::saveToState(ColorAction *a1, CAState *a2)
{
__int16 v2; // w8
__int16 v3; // w8
__int16 v4; // w8
__int64 v5; // d1
v2 = *(_WORD *)&a1->m_fromColor.r;
a2->m_fromColor.b = a1->m_fromColor.b;
*(_WORD *)&a2->m_fromColor.r = v2;
v3 = *(_WORD *)&a1->m_toColor.r;
a2->m_toColor.b = a1->m_toColor.b;
*(_WORD *)&a2->m_toColor.r = v3;
v4 = *(_WORD *)&a1->m_color.r;
a2->m_color.b = a1->m_color.b;
*(_WORD *)&a2->m_color.r = v4;
a2->m_duration = a1->m_duration;
v5 = *(_QWORD *)&a1->m_fromOpacity;
*(_QWORD *)&a2->m_playerColor = *(_QWORD *)&a1->m_playerColor;
a2->m_paused = a1->m_paused;
a2->m_blending = a1->m_blending;
*(_QWORD *)&a2->m_fromOpacity = v5;
a2->m_copyOpacity = a1->m_copyOpacity;
a2->m_copyID = a1->m_copyID;
a2->m_copyHSV = a1->m_copyHSV;
a2->m_uniqueID = a1->m_uniqueID;
a2->m_legacyHSV = a1->m_legacyHSV;
*(int32x2_t *)&a2->m_deltaTime = vrev64_s32(*(int32x2_t *)&a1->m_currentOpacity);
}