	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PM_ClipVelocity                ## -- Begin function PM_ClipVelocity
	.p2align	4, 0x90
_PM_ClipVelocity:                       ## @PM_ClipVelocity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movss	%xmm0, -28(%rbp)                ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_DotProduct
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_2
## %bb.1:
	mulss	-28(%rbp), %xmm0                ## 4-byte Folded Reload
	jmp	LBB0_3
LBB0_2:
	divss	-28(%rbp), %xmm0                ## 4-byte Folded Reload
LBB0_3:
	movss	(%r15), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	movss	(%rbx), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm2
	movss	%xmm2, (%r14)
	movss	4(%r15), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	movss	4(%rbx), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm2
	movss	%xmm2, 4(%r14)
	mulss	8(%r15), %xmm0
	movss	8(%rbx), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	movss	%xmm1, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PM_ClipVelocity                ; -- Begin function PM_ClipVelocity
	.p2align	2
_PM_ClipVelocity:                       ; @PM_ClipVelocity
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	fmov	s8, s0
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_DotProduct
	fcmp	s0, #0.0
	fdiv	s1, s0, s8
	fmul	s0, s0, s8
	fcsel	s0, s1, s0, pl
	ldr	s1, [x20]
	fmul	s1, s0, s1
	ldr	s2, [x21]
	fsub	s1, s2, s1
	str	s1, [x19]
	ldr	s1, [x20, #4]
	fmul	s1, s0, s1
	ldr	s2, [x21, #4]
	fsub	s1, s2, s1
	str	s1, [x19, #4]
	ldr	s1, [x20, #8]
	fmul	s0, s0, s1
	ldr	s1, [x21, #8]
	fsub	s0, s1, s0
	str	s0, [x19, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
