//
// ColorAction::saveToState from 0x1002c4560 to 0x1002c45f1 (145 bytes)
//
// 0 xrefs:
//
// 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:28:06 +0000
//
__int64 __fastcall ColorAction::saveToState(__int64 a1, __int64 a2)
{
__int64 result; // rax
*(_BYTE *)(a2 + 2) = *(_BYTE *)(a1 + 74);
*(_WORD *)a2 = *(_WORD *)(a1 + 72);
*(_BYTE *)(a2 + 5) = *(_BYTE *)(a1 + 77);
*(_WORD *)(a2 + 3) = *(_WORD *)(a1 + 75);
*(_WORD *)(a2 + 6) = *(_WORD *)(a1 + 58);
*(_BYTE *)(a2 + 8) = *(_BYTE *)(a1 + 60);
*(_BYTE *)(a2 + 9) = *(_BYTE *)(a1 + 57);
*(_DWORD *)(a2 + 32) = *(_DWORD *)(a1 + 80);
*(_QWORD *)(a2 + 16) = *(_QWORD *)(a1 + 88);
*(_BYTE *)(a2 + 10) = *(_BYTE *)(a1 + 84);
*(_QWORD *)(a2 + 36) = *(_QWORD *)(a1 + 96);
*(_BYTE *)(a2 + 11) = *(_BYTE *)(a1 + 125);
*(_DWORD *)(a2 + 24) = *(_DWORD *)(a1 + 120);
*(_OWORD *)(a2 + 52) = *(_OWORD *)(a1 + 104);
*(_DWORD *)(a2 + 28) = *(_DWORD *)(a1 + 128);
result = *(unsigned __int8 *)(a1 + 136);
*(_BYTE *)(a2 + 12) = result;
_mm_storel_ps(
(double *)(a2 + 44),
_mm_shuffle_ps((__m128)*(unsigned __int64 *)(a1 + 64), (__m128)*(unsigned __int64 *)(a1 + 64), 225));
return result;
}