//
// sub_1002E8A50 from 0x1002e8a50 to 0x1002e8aef (159 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:22 +0000
//
__m128 __fastcall sub_1002E8A50(int a1, __m128 a2, __m128 a3)
{
__int16 v3; // ax
switch ( a1 )
{
case 1:
v3 = 255;
break;
case 2:
v3 = -27136;
break;
case 3:
v3 = -256;
break;
case 4:
v3 = 100;
break;
case 5:
v3 = 200;
break;
case 6:
v3 = 12950;
break;
case 7:
v3 = 150;
break;
case 8:
v3 = 25700;
break;
case 10:
v3 = 150;
break;
default:
v3 = -1;
break;
}
a2.f32[0] = (float)(unsigned __int8)v3 / 255.0;
a3.f32[0] = (float)HIBYTE(v3) / 255.0;
return _mm_insert_ps(a2, a3, 16);
}