	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lseg_closept_lseg
_lseg_closept_lseg:                     ## @lseg_closept_lseg
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_lseg_interpt_lseg
	xorps	%xmm0, %xmm0
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movq	(%rbx), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_lseg_closept_point
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movq	(%rbx), %rdx
	addq	$4, %rdx
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	callq	_lseg_closept_point
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movsd	-32(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_float8_lt
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
	jmp	LBB0_5
LBB0_2:
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
LBB0_5:
	movq	(%r15), %rdx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_lseg_closept_point
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_float8_lt
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_8:
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
LBB0_9:
	movq	(%r15), %rdx
	addq	$4, %rdx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_lseg_closept_point
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_float8_lt
	testq	%rax, %rax
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	je	LBB0_13
## %bb.10:
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:
	movq	(%r15), %rax
	movl	4(%rax), %eax
	movl	%eax, (%r14)
LBB0_12:
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lseg_closept_lseg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lseg_closept_lseg
_lseg_closept_lseg:                     ; @lseg_closept_lseg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_lseg_interpt_lseg
	movi	d8, #0000000000000000
	cbnz	x0, LBB0_13
; %bb.1:
	ldr	x2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_lseg_closept_point
	fmov	d9, d0
	ldr	x8, [x21]
	add	x2, x8, #4
	add	x0, sp, #12
	mov	x1, x20
	bl	_lseg_closept_point
	fmov	d8, d0
	fmov	d1, d9
	bl	_float8_lt
	cbz	x0, LBB0_4
; %bb.2:
	cbz	x19, LBB0_5
; %bb.3:
	ldr	w8, [sp, #12]
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
	fmov	d8, d9
LBB0_5:
	ldr	x2, [x20]
	mov	x0, #0
	mov	x1, x21
	bl	_lseg_closept_point
	fmov	d9, d0
	fmov	d1, d8
	bl	_float8_lt
	cbz	x0, LBB0_9
; %bb.6:
	cbz	x19, LBB0_8
; %bb.7:
	ldr	x8, [x20]
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_8:
	fmov	d8, d9
LBB0_9:
	ldr	x8, [x20]
	add	x2, x8, #4
	mov	x0, #0
	mov	x1, x21
	bl	_lseg_closept_point
	fmov	d9, d0
	fmov	d1, d8
	bl	_float8_lt
	cbz	x0, LBB0_13
; %bb.10:
	cbz	x19, LBB0_12
; %bb.11:
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	str	w8, [x19]
LBB0_12:
	fmov	d8, d9
LBB0_13:
	fmov	d0, d8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lseg_closept_lseg
.subsections_via_symbols
