//
// sub_1005C0870 from 0x1005c0870 to 0x1005c0919 (169 bytes)
//
// 3 xrefs:
// > sub_1005C06D0 @ 0x1005c077c
// > sub_1005E29A0 @ 0x1005e4201
// > sub_1005E29A0 @ 0x1005e4214
//
// This function is hookable on this platform (idp: pc, 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 12:32:46 +0000
//
void __fastcall sub_1005C0870(__int64 a1, __int64 a2)
{
int v2; // eax
int v3[5]; // [rsp+Ch] [rbp-14h] BYREF
if ( *(_QWORD *)a2 )
v2 = *(_DWORD *)(*(_QWORD *)a2 + 916LL);
else
v2 = 0;
v3[0] = v2;
sub_1005BE520(a1, v3);
sub_1005BE140(a1, (float *)(a2 + 8));
sub_1005BE140(a1, (float *)(a2 + 12));
sub_1005BE140(a1, (float *)(a2 + 16));
sub_1005BE140(a1, (float *)(a2 + 20));
sub_1005BE140(a1, (float *)(a2 + 24));
sub_1005BE140(a1, (float *)(a2 + 28));
sub_1005BE520(a1, (int *)(a2 + 32));
sub_1005BE520(a1, (int *)(a2 + 36));
sub_1005BE520(a1, (int *)(a2 + 40));
}