//
// sub_180078190 from 0x180078190 to 0x1800782e2 (338 bytes)
//
// 6 xrefs:
// > ??> @ 0x180183fe0
// > ??> @ 0x180184048
// > ??> @ 0x180184060
// > ??> @ 0x180184070
// > ??> @ 0x1801ad7c8
// > ??> @ 0x1801f9c78
//
// 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_180078190(__int64 *a1, const void *a2, void *a3, int a4, int a5, _DWORD *a6)
{
__int64 v9; // rbx
int v10; // edi
int v11; // r12d
__int64 v12; // r14
if ( !a2 )
return 0;
v9 = *a1;
if ( a5 <= *(_DWORD *)(*a1 + 49724) && *(_QWORD *)(v9 + 49712) )
{
v10 = 0;
if ( a5 <= 0 )
{
return 0;
}
else
{
v11 = 0;
v12 = 0;
do
{
*(_DWORD *)(*(_QWORD *)(v9 + 49712) + v12 + 81968) = *(_DWORD *)(v9 + 49700);
*(_DWORD *)(*(_QWORD *)(v9 + 49712) + v12 + 81972) = *(_DWORD *)(v9 + 49728);
((void (__fastcall *)(_DWORD, _DWORD, _DWORD, _DWORD, _DWORD, __int64, __int64, _DWORD, _DWORD))sub_18007AC90)(
v11 + *(_QWORD *)(v9 + 49712),
(_DWORD)a2,
a4,
*(_DWORD *)(v9 + 49704),
(float)*(int *)(v9 + 49720),
(__int64)a2,
(__int64)a3,
v10++,
a5);
v12 += 81992;
v11 += 81992;
}
while ( v10 < a5 );
return 0;
}
}
else
{
memmove(a3, a2, 4LL * (unsigned int)(*a6 * a4));
return 0;
}
}