//
// sub_100014540 from 0x100014540 to 0x100014578 (56 bytes)
//
// 2 xrefs:
// > sub_100402E54 @ 0x100402f00
// > sub_1004030CC @ 0x10040317c
//
// This function is hookable on this platform (idp: arm, 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 10:57:18 +0000
//
float __fastcall sub_100014540(__int64 a1, __int64 a2)
{
__int64 v2; // x8
__int16 v3; // w9
float result; // s0
if ( !*(_DWORD *)(a2 + 120) )
{
v2 = *(_QWORD *)(a2 + 144);
v3 = *(_WORD *)(a2 + 58);
*(_BYTE *)(v2 + 322) = *(_BYTE *)(a2 + 60);
*(_WORD *)(v2 + 320) = v3;
result = *(float *)(a2 + 64) * 255.0;
*(float *)(v2 + 316) = result;
}
return result;
}