	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clip_line
_clip_line:                             ## @clip_line
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r9
	movl	(%rdi), %r14d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r11
	movq	%r9, %r10
	movq	%rsi, %rcx
	movq	%rdi, %r9
	movl	%r14d, %eax
	movl	(%r10), %r14d
	movl	%r14d, %ebx
	movq	%r10, %rdi
	movq	%r11, %rsi
	subl	%eax, %ebx
	jl	LBB0_1
## %bb.2:
	testl	%eax, %eax
	jns	LBB0_6
## %bb.3:
	testl	%r14d, %r14d
	js	LBB0_4
## %bb.5:
	movl	(%r11), %esi
	movl	(%rcx), %eax
	subl	%esi, %eax
	imull	%r14d, %eax
	cltd
	idivl	%ebx
	addl	%esi, %eax
	movl	%eax, (%rcx)
	movl	$0, (%r9)
	movl	(%r10), %r14d
LBB0_6:
	xorl	%eax, %eax
	cmpl	%r8d, %r14d
	jle	LBB0_9
## %bb.7:
	movl	(%r9), %edx
	movl	$1, %eax
	cmpl	%r8d, %edx
	jg	LBB0_9
## %bb.8:
	movl	(%rcx), %ecx
	movl	(%r11), %esi
	subl	%ecx, %esi
	movl	%r8d, %eax
	subl	%edx, %eax
	imull	%esi, %eax
	subl	%edx, %r14d
	cltd
	idivl	%r14d
	addl	%ecx, %eax
	movl	%eax, (%r11)
	movl	%r8d, (%r10)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_4:
	movl	$1, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_clip_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clip_line
_clip_line:                             ; @clip_line
	.cfi_startproc
; %bb.0:
	ldr	w10, [x0]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x3
	mov	x8, x2
	mov	x3, x1
	mov	x2, x0
	mov	x12, x10
	ldr	w10, [x8]
	mov	x0, x8
	mov	x1, x9
	subs	w11, w10, w12
	b.lt	LBB0_1
; %bb.2:
	tbnz	w12, #31, LBB0_6
; %bb.3:
	cmp	w10, w4
	b.le	LBB0_8
LBB0_4:
	ldr	w11, [x2]
	cmp	w11, w4
	b.gt	LBB0_9
; %bb.5:
	mov	w0, #0
	ldr	w12, [x3]
	ldr	w13, [x9]
	sub	w13, w13, w12
	sub	w14, w4, w11
	mul	w13, w13, w14
	sub	w10, w10, w11
	sdiv	w10, w13, w10
	add	w10, w10, w12
	str	w10, [x9]
	str	w4, [x8]
	ret
LBB0_6:
	tbnz	w10, #31, LBB0_9
; %bb.7:
	ldr	w12, [x9]
	ldr	w13, [x3]
	sub	w13, w13, w12
	mul	w10, w13, w10
	sdiv	w10, w10, w11
	add	w10, w10, w12
	str	w10, [x3]
	str	wzr, [x2]
	ldr	w10, [x8]
	cmp	w10, w4
	b.gt	LBB0_4
LBB0_8:
	mov	w0, #0
	ret
LBB0_9:
	mov	w0, #1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_clip_line
.subsections_via_symbols
