//
// sub_100470568 from 0x100470568 to 0x1004705bc (84 bytes)
//
// 0 xrefs:
//
// 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_100470568(__int64 a1, int a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)
{
int v6; // w8
*(_QWORD *)(a1 + 376) = a5;
*(_DWORD *)(a1 + 456) = a2;
if ( a6 == a1 || *(_DWORD *)(a6 + 40) != 9 )
{
if ( !*(_DWORD *)(a1 + 452) )
LABEL_7:
*(_DWORD *)(a1 + 452) = 1152;
}
else
{
v6 = *(_DWORD *)(a6 + 452);
*(_DWORD *)(a1 + 452) = v6;
*(_QWORD *)(a1 + 464) = *(_QWORD *)(a6 + 464);
*(_DWORD *)(a1 + 460) = *(_DWORD *)(a6 + 460);
if ( !v6 )
goto LABEL_7;
}
return sub_100470D3C(a1);
}