//
// darkColorForPath from 0x58bee0 to 0x58bf82 (162 bytes)
//
// 4 xrefs:
// > GJPathPage::unlockAnimationStep2 @ 0x58c028
// > GJPathPage::playUnlockAnimation @ 0x58c6e8
// > GJPathPage::unlockAnimationStep3 @ 0x58cb92
// > GJPathPage::unlockAnimationStep3 @ 0x58cc2a
//
// 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
//
float *__fastcall darkColorForPath(float *a1, int a2)
{
int v3; // r4
int v4; // r5
int v5; // r6
switch ( a2 )
{
case 1:
v3 = 0;
v4 = 0;
goto LABEL_16;
case 2:
v3 = 255;
v4 = 150;
goto LABEL_3;
case 3:
v3 = 0;
v4 = 255;
LABEL_3:
v5 = 0;
break;
case 4:
v3 = 255;
v4 = 0;
goto LABEL_6;
case 5:
v3 = 0;
v5 = 200;
v4 = 0;
break;
case 6:
v3 = 0;
v4 = 50;
goto LABEL_13;
case 7:
v3 = 0;
goto LABEL_12;
case 8:
v3 = 100;
v4 = 100;
LABEL_6:
v5 = 100;
break;
case 10:
v3 = 255;
LABEL_12:
v4 = 0;
LABEL_13:
v5 = 150;
break;
default:
v3 = 0;
v4 = 255;
LABEL_16:
v5 = 255;
break;
}
memset(a1, 0, 0x10u);
a1[3] = 1.0;
*a1 = (float)v5 / 255.0;
a1[1] = (float)v4 / 255.0;
a1[2] = (float)v3 / 255.0;
return a1;
}