//
// sub_18005A480 from 0x18005a480 to 0x18005a4e9 (105 bytes)
//
// 7 xrefs:
// > sub_18005A080 @ 0x18005a214
// > sub_18005A240 @ 0x18005a2cc
// > sub_18005A4F0 @ 0x18005a5c7
// > sub_18005A600 @ 0x18005a63e
// > sub_180068BC0 @ 0x180068c24
// > sub_180068D20 @ 0x180068e51
// > sub_180099C50 @ 0x18009b47a
//
// 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_18005A480(__int64 a1)
{
int v1; // r9d
__int64 v2; // rdx
if ( *(_QWORD *)(a1 + 64) )
{
v1 = 0;
if ( *(__int16 *)(a1 + 56) * *(__int16 *)(a1 + 58) > 0 )
{
v2 = 0;
do
{
v2 += 4;
++v1;
*(float *)(v2 + *(_QWORD *)(a1 + 80) - 4) = *(float *)(v2 + *(_QWORD *)(a1 + 64) - 4) * *(float *)(a1 + 104);
}
while ( v1 < *(__int16 *)(a1 + 56) * *(__int16 *)(a1 + 58) );
}
}
*(_DWORD *)(a1 + 128) = *(_DWORD *)(a1 + 104);
*(_DWORD *)(a1 + 108) = 0;
return 0;
}