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