	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clip_1d
_clip_1d:                               ## @clip_1d
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r9d
	testl	%r9d, %r9d
	js	LBB0_1
## %bb.5:
	movl	(%rdx), %r10d
	cmpl	%r8d, %r9d
	jle	LBB0_9
## %bb.6:
	xorl	%eax, %eax
	cmpl	%r8d, %r10d
	jg	LBB0_15
## %bb.7:
	movl	(%rcx), %eax
	movl	(%rsi), %r11d
	subl	%r11d, %eax
	cvtsi2sd	%eax, %xmm0
	subl	%r9d, %r10d
	cvtsi2sd	%r10d, %xmm1
	divsd	%xmm1, %xmm0
	movl	%r8d, %eax
	subl	%r9d, %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	mulsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %eax
	addl	%r11d, %eax
	movl	%eax, (%rsi)
	movl	%r8d, (%rdi)
	movl	(%rdx), %esi
	movl	$1, %eax
	testl	%esi, %esi
	js	LBB0_8
LBB0_15:
	popq	%rbp
	retq
LBB0_1:
	movl	(%rdx), %eax
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	(%rcx), %r10d
	movl	(%rsi), %r11d
	subl	%r11d, %r10d
	cvtsi2sd	%r10d, %xmm0
	subl	%r9d, %eax
	cvtsi2sd	%eax, %xmm1
	divsd	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r9d, %xmm1
	mulsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %eax
	subl	%eax, %r11d
	movl	%r11d, (%rsi)
	movl	$0, (%rdi)
	movl	(%rdx), %esi
	movl	$1, %eax
	cmpl	%r8d, %esi
	jle	LBB0_15
## %bb.4:
	movl	%r8d, %eax
	subl	%esi, %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %eax
	addl	(%rcx), %eax
	jmp	LBB0_14
LBB0_9:
	cmpl	%r8d, %r10d
	jle	LBB0_11
## %bb.10:
	movl	(%rcx), %edi
	movl	%edi, %eax
	subl	(%rsi), %eax
	cvtsi2sd	%eax, %xmm0
	movl	%r8d, %eax
	subl	%r10d, %eax
	subl	%r9d, %r10d
	cvtsi2sd	%r10d, %xmm1
	divsd	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	mulsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %eax
	addl	%edi, %eax
	jmp	LBB0_14
LBB0_11:
	movl	$1, %eax
	testl	%r10d, %r10d
	jns	LBB0_15
## %bb.12:
	movl	(%rcx), %eax
	movl	%eax, %edi
	subl	(%rsi), %edi
	cvtsi2sd	%edi, %xmm0
	cvtsi2sd	%r10d, %xmm1
	subl	%r9d, %r10d
	cvtsi2sd	%r10d, %xmm2
	divsd	%xmm2, %xmm0
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %esi
	jmp	LBB0_13
LBB0_2:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_8:
	xorps	%xmm1, %xmm1
	cvtsi2sd	%esi, %xmm1
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %esi
	movl	(%rcx), %eax
LBB0_13:
	subl	%esi, %eax
	xorl	%r8d, %r8d
LBB0_14:
	movl	%eax, (%rcx)
	movl	%r8d, (%rdx)
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_clip_1d
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clip_1d
_clip_1d:                               ; @clip_1d
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_5
; %bb.1:
	ldr	w9, [x2]
	cmp	w8, w4
	b.le	LBB0_8
; %bb.2:
	cmp	w9, w4
	b.gt	LBB0_10
; %bb.3:
	ldr	w10, [x3]
	ldr	w11, [x1]
	sub	w10, w10, w11
	scvtf	d0, w10
	sub	w9, w9, w8
	scvtf	d1, w9
	fdiv	d0, d0, d1
	sub	w8, w4, w8
	scvtf	d1, w8
	fmul	d1, d0, d1
	fcvtzs	w8, d1
	add	w8, w11, w8
	str	w8, [x1]
	str	w4, [x0]
	ldr	w8, [x2]
	tbz	w8, #31, LBB0_12
; %bb.4:
	mov	w4, #0
	scvtf	d1, w8
	fmul	d0, d0, d1
	fcvtzs	w8, d0
	ldr	w9, [x3]
	sub	w8, w9, w8
	b	LBB0_14
LBB0_5:
	ldr	w9, [x2]
	tbnz	w9, #31, LBB0_10
; %bb.6:
	ldr	w10, [x3]
	ldr	w11, [x1]
	sub	w10, w10, w11
	scvtf	d0, w10
	sub	w9, w9, w8
	scvtf	d1, w9
	fdiv	d0, d0, d1
	scvtf	d1, w8
	fmul	d1, d0, d1
	fcvtzs	w8, d1
	sub	w8, w11, w8
	str	w8, [x1]
	str	wzr, [x0]
	ldr	w8, [x2]
	cmp	w8, w4
	b.le	LBB0_12
; %bb.7:
	sub	w8, w4, w8
	scvtf	d1, w8
	fmul	d0, d0, d1
	fcvtzs	w8, d0
	ldr	w9, [x3]
	add	w8, w9, w8
	b	LBB0_14
LBB0_8:
	cmp	w9, w4
	b.le	LBB0_11
; %bb.9:
	ldr	w10, [x3]
	ldr	w11, [x1]
	sub	w11, w10, w11
	scvtf	d0, w11
	sub	w8, w9, w8
	scvtf	d1, w8
	fdiv	d0, d0, d1
	sub	w8, w4, w9
	scvtf	d1, w8
	fmul	d0, d0, d1
	fcvtzs	w8, d0
	add	w8, w10, w8
	b	LBB0_14
LBB0_10:
	mov	w0, #0
	ret
LBB0_11:
	tbnz	w9, #31, LBB0_13
LBB0_12:
	mov	w0, #1
	ret
LBB0_13:
	mov	w4, #0
	ldr	w10, [x3]
	ldr	w11, [x1]
	sub	w11, w10, w11
	scvtf	d0, w11
	sub	w8, w9, w8
	scvtf	d1, w8
	fdiv	d0, d0, d1
	scvtf	d1, w9
	fmul	d0, d0, d1
	fcvtzs	w8, d0
	sub	w8, w10, w8
LBB0_14:
	str	w8, [x3]
	str	w4, [x2]
	mov	w0, #1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_clip_1d
.subsections_via_symbols
