//
// lightColorForPath from 0x6d19bc to 0x6d1a54 (152 bytes)
//
// 4 xrefs:
// > GJPathPage::unlockAnimationStep2 @ 0x6d22be
// > GJPathPage::playUnlockAnimation @ 0x6d2894
// > GJPathPage::unlockAnimationStep3 @ 0x6d430e
// > GJPathPage::unlockAnimationStep3 @ 0x6d43b6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:57:03 +0000
//
float *__fastcall lightColorForPath(float *a1, int a2)
{
int v3; // r4
int v4; // r5
int v5; // r6
switch ( a2 )
{
case 1:
v3 = 0;
v4 = 150;
goto LABEL_15;
case 2:
v3 = 255;
goto LABEL_4;
case 3:
v3 = 0;
LABEL_4:
v4 = 255;
v5 = 50;
goto LABEL_16;
case 4:
v3 = 255;
goto LABEL_6;
case 5:
v3 = 0;
v4 = 100;
goto LABEL_15;
case 6:
v3 = 0;
v4 = 150;
v5 = 200;
goto LABEL_16;
case 7:
v3 = 0;
LABEL_6:
v4 = 0;
goto LABEL_15;
case 8:
v3 = 255;
goto LABEL_13;
case 9:
v3 = 50;
goto LABEL_13;
default:
v3 = 0;
LABEL_13:
v4 = 255;
LABEL_15:
v5 = 255;
LABEL_16:
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;
}
}