//
// sub_1005BB878 from 0x1005bb878 to 0x1005bb978 (256 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009da230
//
// 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 11:09:16 +0000
//
__int64 __fastcall sub_1005BB878(__int64 a1, void *__src, void *__dst, int a4, int a5, _DWORD *a6)
{
__int64 v6; // x24
__int64 v7; // x25
__int64 v8; // x22
__int64 v9; // x23
__int64 v10; // x0
if ( __src )
{
v6 = *(_QWORD *)a1 + 49688LL;
if ( *(_DWORD *)(*(_QWORD *)a1 + 49716LL) >= a5 && *(_QWORD *)(*(_QWORD *)a1 + 49704LL) )
{
if ( a5 >= 1 )
{
v7 = 0;
v8 = 0;
v9 = (unsigned int)a5;
do
{
v10 = *(_QWORD *)(v6 + 16) + v7;
*(_DWORD *)(v10 + 81968) = *(_DWORD *)(v6 + 4);
*(_DWORD *)(v10 + 81972) = *(_DWORD *)(v6 + 32);
sub_1005BE4BC(*(float *)v6, (float)*(int *)(v6 + 24));
++v8;
v7 += 81992;
}
while ( v9 != v8 );
}
}
else
{
memcpy(__dst, __src, 4LL * (unsigned int)(*a6 * a4));
}
}
return 0;
}