//
// ColorAction::setupFromMap from 0x8b380c to 0x8b3ec0 (1716 bytes)
//
// 2 xrefs:
// > ColorAction::setupFromString @ 0x8b3f24
// > ??> @ 0x37f08
//
// 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 ColorAction::setupFromMap(ColorAction *a1, std::map *a2)
{
const char **v4; // x0
GLubyte v5; // w26
const char **v6; // x0
GLubyte v7; // w25
const char **v8; // x0
GLubyte v9; // w27
const char **v10; // x0
GLubyte v11; // w26
const char **v12; // x0
GLubyte v13; // w25
const char **v14; // x0
GLubyte v15; // w27
const char **v16; // x0
const char **v17; // x0
float v18; // s0
char *v19; // x0
const char **v20; // x0
const char **v21; // x0
double v22; // d0
char *v23; // x0
const char **v24; // x0
const char **v25; // x0
int v26; // w25
const char **v27; // x0
float v28; // s0
char *v29; // x0
const char **v30; // x0
float v31; // s0
char *v32; // x0
const char **v33; // x0
_QWORD *v34; // x0
__int64 v35; // x1
const char **v36; // x0
float v37; // s0
char *v38; // x0
const char **v39; // x0
char *v40; // [xsp+70h] [xbp+70h] BYREF
sub_D153B8((int)&v40, "1");
v4 = (const char **)std::map::operator[](a2, (const void **)&v40);
v5 = atoi(*v4);
if ( v40 - 24 != (char *)&qword_124B6B0 )
sub_8A26E8(v40 - 24);
sub_D153B8((int)&v40, &byte_F78BA8);
v6 = (const char **)std::map::operator[](a2, (const void **)&v40);
v7 = atoi(*v6);
if ( v40 - 24 != (char *)&qword_124B6B0 )
sub_8A26E8(v40 - 24);
sub_D153B8((int)&v40, "3");
v8 = (const char **)std::map::operator[](a2, (const void **)&v40);
v9 = atoi(*v8);
if ( v40 - 24 != (char *)&qword_124B6B0 )
sub_8A26E8(v40 - 24);
a1->m_fromColor.r = v5;
a1->m_fromColor.g = v7;
a1->m_fromColor.b = v9;
sub_D153B8((int)&v40, "11");
v10 = (const char **)std::map::operator[](a2, (const void **)&v40);
v11 = atoi(*v10);
if ( v40 - 24 != (char *)&qword_124B6B0 )
sub_8A26E8(v40 - 24);
sub_D153B8((int)&v40, "12");
v12 = (const char **)std::map::operator[](a2, (const void **)&v40);
v13 = atoi(*v12);
if ( v40 - 24 != (char *)&qword_124B6B0 )
sub_8A26E8(v40 - 24);
sub_D153B8((int)&v40, "13");
v14 = (const char **)std::map::operator[](a2, (const void **)&v40);
v15 = atoi(*v14);
if ( v40 - 24 != (char *)&qword_124B6B0 )
sub_8A26E8(v40 - 24);
a1->m_toColor.r = v11;
a1->m_toColor.g = v13;
a1->m_toColor.b = v15;
sub_D153B8((int)&v40, &byte_F2CA20);
v16 = (const char **)std::map::operator[](a2, (const void **)&v40);
a1->m_playerColor = atoi(*v16);
if ( v40 - 24 != (char *)&qword_124B6B0 )
sub_8A26E8(v40 - 24);
sub_D153B8((int)&v40, "16");
v17 = (const char **)std::map::operator[](a2, (const void **)&v40);
v18 = atof(*v17);
v19 = v40 - 24;
a1->m_duration = v18;
if ( v19 != (char *)&qword_124B6B0 )
sub_8A26E8(v19);
if ( !a1->m_colorID )
{
sub_D153B8((int)&v40, "6");
v20 = (const char **)std::map::operator[](a2, (const void **)&v40);
a1->m_colorID = atoi(*v20);
if ( v40 - 24 != (char *)&qword_124B6B0 )
sub_8A26E8(v40 - 24);
}
sub_D153B8((int)&v40, "5");
v21 = (const char **)std::map::operator[](a2, (const void **)&v40);
v22 = atof(*v21);
v23 = v40 - 24;
a1->m_blending = v22 != 0.0;
if ( v23 != (char *)&qword_124B6B0 )
sub_8A26E8(v23);
sub_D153B8((int)&v40, "17");
v24 = (const char **)std::map::operator[](a2, (const void **)&v40);
a1->m_copyOpacity = atoi(*v24) != 0;
if ( v40 - 24 != (char *)&qword_124B6B0 )
sub_8A26E8(v40 - 24);
a1->m_fromOpacity = 1.0;
sub_D153B8((int)&v40, "8");
v25 = (const char **)std::map::operator[](a2, (const void **)&v40);
v26 = atoi(*v25);
if ( v40 - 24 != (char *)&qword_124B6B0 )
sub_8A26E8(v40 - 24);
if ( v26 > 0 )
{
sub_D153B8((int)&v40, "7");
v27 = (const char **)std::map::operator[](a2, (const void **)&v40);
v28 = atof(*v27);
v29 = v40 - 24;
a1->m_fromOpacity = v28;
if ( v29 != (char *)&qword_124B6B0 )
sub_8A26E8(v29);
}
sub_D153B8((int)&v40, "15");
v30 = (const char **)std::map::operator[](a2, (const void **)&v40);
v31 = atof(*v30);
v32 = v40 - 24;
a1->m_toOpacity = v31;
if ( v32 != (char *)&qword_124B6B0 )
sub_8A26E8(v32);
sub_D153B8((int)&v40, "9");
v33 = (const char **)std::map::operator[](a2, (const void **)&v40);
a1->m_copyID = atoi(*v33);
if ( v40 - 24 != (char *)&qword_124B6B0 )
sub_8A26E8(v40 - 24);
sub_D153B8((int)&v40, "10");
v34 = (_QWORD *)std::map::operator[](a2, (const void **)&v40);
*(_QWORD *)&a1->m_copyHSV.h = GameToolbox::hsvFromString(v34, &byte_F7A380);
*(_QWORD *)&a1->m_copyHSV.v = v35;
if ( v40 - 24 != (char *)&qword_124B6B0 )
sub_8A26E8(v40 - 24);
sub_D153B8((int)&v40, "14");
v36 = (const char **)std::map::operator[](a2, (const void **)&v40);
v37 = atof(*v36);
v38 = v40 - 24;
a1->m_deltaTime = v37;
if ( v38 != (char *)&qword_124B6B0 )
sub_8A26E8(v38);
sub_D153B8((int)&v40, "19");
v39 = (const char **)std::map::operator[](a2, (const void **)&v40);
a1->m_paused = atoi(*v39) != 0;
if ( v40 - 24 != (char *)&qword_124B6B0 )
sub_8A26E8(v40 - 24);
}