//
// sub_140284670 from 0x140284670 to 0x14028474e (222 bytes)
//
// 4 xrefs:
// > GJPathPage::playUnlockAnimation @ 0x14028824c
// > GJPathPage::unlockAnimationStep2 @ 0x14028856e
// > GJPathPage::unlockAnimationStep3 @ 0x1402889b7
// > GJPathPage::unlockAnimationStep3 @ 0x140288c38
//
// 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
//
__int64 __fastcall sub_140284670(__int64 a1, int a2)
{
int v3; // edx
int v4; // ecx
unsigned int v5; // eax
__m128i v6; // xmm1
switch ( a2 )
{
case 1:
v3 = 255;
v4 = 150;
goto LABEL_12;
case 2:
v4 = 255;
v3 = 50;
v5 = 255;
goto LABEL_13;
case 3:
v3 = 50;
v4 = 255;
goto LABEL_12;
case 4:
v3 = 255;
v4 = 0;
v5 = 255;
goto LABEL_13;
case 5:
v3 = 255;
v4 = 100;
goto LABEL_12;
case 6:
v3 = 200;
v4 = 150;
goto LABEL_12;
case 7:
v5 = 0;
v3 = 255;
v4 = 0;
goto LABEL_13;
case 8:
v3 = 255;
v4 = 255;
v5 = 255;
goto LABEL_13;
case 9:
v3 = 255;
v5 = 50;
v4 = 255;
goto LABEL_13;
default:
v3 = 255;
v4 = 255;
LABEL_12:
v5 = 0;
LABEL_13:
*(_DWORD *)(a1 + 12) = 1065353216;
v6 = _mm_cvtsi32_si128(v5);
*(float *)a1 = (float)v3 / 255.0;
*(float *)(a1 + 8) = _mm_cvtepi32_ps(v6).m128_f32[0] / 255.0;
*(float *)(a1 + 4) = (float)v4 / 255.0;
return a1;
}
}