//
// sub_1800084F0 from 0x1800084f0 to 0x18000856d (125 bytes)
//
// 3 xrefs:
// > ??> @ 0x1801a4238
// > ??> @ 0x1801a4250
// > ??> @ 0x1801f63d8
//
// 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
//
void __fastcall sub_1800084F0(__int64 a1, __int64 _RDX, int a3)
{
int v4; // r8d
v4 = a3 >> 3;
__asm { vxorps xmm6, xmm6, xmm6 }
if ( v4 )
{
_RCX = a1 - _RDX;
do
{
__asm
{
vmovups ymm1, ymmword ptr [rdx]
vmovups ymm3, ymmword ptr [rcx+rdx]
}
_RDX += 32;
__asm
{
vcmpgtps ymm0, ymm1, ymm6
vandnps ymm4, ymm0, ymm1
vcmpgtps ymm5, ymm3, ymm6
vandps ymm1, ymm0, ymm1
vandnps ymm0, ymm5, ymm1
vaddps ymm2, ymm0, ymm3
vandps ymm1, ymm1, ymm5
vsubps ymm2, ymm2, ymm1
vmovups ymmword ptr [rdx-20h], ymm2
vandps ymm0, ymm4, ymm5
vaddps ymm3, ymm0, ymm3
vandnps ymm1, ymm5, ymm4
vsubps ymm2, ymm3, ymm1
vmovups ymmword ptr [rcx+rdx-20h], ymm2
}
--v4;
}
while ( v4 );
}
__asm
{
vzeroupper
vmovaps xmm6, [rsp+18h+var_18]
}
}