//
// sub_30E4C8 from 0x30e4c8 to 0x30e520 (88 bytes)
//
// 5 xrefs:
// > PlayLayer::spawnFirework @ 0x30e99c
// > PlayLayer::spawnFirework @ 0x30e9cc
// > PlayLayer::showCompleteText @ 0x30f660
// > PlayLayer::showCompleteText @ 0x30f694
// > PlayLayer::setupHasCompleted @ 0x31bcf2
//
// 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 sub_30E4C8(float *a1, unsigned int a2)
{
int v2; // r6
unsigned int v3; // r5
unsigned int v4; // r4
v2 = (unsigned __int8)a2;
v3 = a2 >> 8;
v4 = HIWORD(a2);
memset(a1, 0, 0x10u);
a1[3] = 1.0;
*a1 = (float)v2 / 255.0;
a1[1] = (float)(unsigned __int8)v3 / 255.0;
a1[2] = (float)(unsigned __int8)v4 / 255.0;
return a1;
}