	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tesedgeIntersect               ## -- Begin function tesedgeIntersect
	.p2align	4, 0x90
_tesedgeIntersect:                      ## @tesedgeIntersect
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_VertLeq
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_Swap
LBB0_2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_VertLeq
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_Swap
LBB0_4:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_VertLeq
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_Swap
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_Swap
LBB0_6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_VertLeq
	testq	%rax, %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_VertLeq
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	callq	_EdgeEval
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_EdgeEval
	movl	%r14d, %edi
	negl	%edi
	movl	%eax, %edx
	negl	%edx
	movl	%eax, %ecx
	addl	%r14d, %ecx
	cmovnsl	%r14d, %edi
	cmovnsl	%eax, %edx
	movl	(%rbx), %esi
	movl	(%r15), %ecx
	jmp	LBB0_11
LBB0_7:
	movl	(%r15), %ecx
	addl	(%rbx), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	jmp	LBB0_12
LBB0_10:
	callq	_EdgeSign
	movl	%eax, %r14d
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_EdgeSign
	movl	%eax, %edx
	negl	%edx
	movl	%r14d, %edi
	negl	%edi
	cmpl	%eax, %r14d
	cmovnsl	%r14d, %edi
	cmovsl	%eax, %edx
	movl	(%rbx), %esi
	movl	(%r12), %ecx
LBB0_11:
	callq	_Interpolate
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_12:
	movl	%eax, (%r14)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_TransLeq
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_Swap
LBB0_14:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_TransLeq
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_Swap
LBB0_16:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_TransLeq
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_Swap
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_Swap
LBB0_18:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_TransLeq
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_TransLeq
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_TransEval
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_TransEval
	movl	%r14d, %edi
	negl	%edi
	movl	%eax, %edx
	negl	%edx
	movl	%eax, %ecx
	addl	%r14d, %ecx
	cmovnsl	%r14d, %edi
	cmovnsl	%eax, %edx
	movl	4(%rbx), %esi
	movl	4(%r15), %ecx
	jmp	LBB0_23
LBB0_19:
	movl	4(%r15), %ecx
	addl	4(%rbx), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	jmp	LBB0_24
LBB0_22:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_TransSign
	movl	%eax, %r14d
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_TransSign
	movl	%eax, %edx
	negl	%edx
	movl	%r14d, %edi
	negl	%edi
	cmpl	%eax, %r14d
	cmovnsl	%r14d, %edi
	cmovsl	%eax, %edx
	movl	4(%rbx), %esi
	movl	4(%r12), %ecx
LBB0_23:
	callq	_Interpolate
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_24:
	movl	%eax, 4(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_tesedgeIntersect               ; -- Begin function tesedgeIntersect
	.p2align	2
_tesedgeIntersect:                      ; @tesedgeIntersect
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	bl	_VertLeq
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x21
	bl	_Swap
LBB0_2:
	mov	x0, x20
	mov	x1, x22
	bl	_VertLeq
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x22
	bl	_Swap
LBB0_4:
	mov	x0, x23
	mov	x1, x20
	bl	_VertLeq
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x23
	mov	x1, x20
	bl	_Swap
	mov	x0, x21
	mov	x1, x22
	bl	_Swap
LBB0_6:
	mov	x0, x20
	mov	x1, x21
	bl	_VertLeq
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x21
	mov	x1, x22
	bl	_VertLeq
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x21
	bl	_EdgeEval
	mov	x24, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_EdgeEval
	add	w8, w0, w24
	cmp	w8, #0
	cneg	w8, w24, lt
	cneg	w2, w0, lt
	ldr	w1, [x20]
	ldr	w3, [x21]
	mov	x0, x8
	bl	_Interpolate
	b	LBB0_11
LBB0_9:
	ldr	w8, [x20]
	ldr	w9, [x21]
	add	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	b	LBB0_11
LBB0_10:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x21
	bl	_EdgeSign
	mov	x24, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_EdgeSign
	sub	w8, w24, w0
	cmp	w8, #0
	cneg	w8, w24, lt
	cneg	w2, w0, ge
	ldr	w1, [x20]
	ldr	w3, [x22]
	mov	x0, x8
	bl	_Interpolate
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_11:
	str	w0, [x19]
	mov	x0, x23
	mov	x1, x21
	bl	_TransLeq
	cbnz	x0, LBB0_13
; %bb.12:
	mov	x0, x23
	mov	x1, x21
	bl	_Swap
LBB0_13:
	mov	x0, x20
	mov	x1, x22
	bl	_TransLeq
	cbnz	x0, LBB0_15
; %bb.14:
	mov	x0, x20
	mov	x1, x22
	bl	_Swap
LBB0_15:
	mov	x0, x23
	mov	x1, x20
	bl	_TransLeq
	cbnz	x0, LBB0_17
; %bb.16:
	mov	x0, x23
	mov	x1, x20
	bl	_Swap
	mov	x0, x21
	mov	x1, x22
	bl	_Swap
LBB0_17:
	mov	x0, x20
	mov	x1, x21
	bl	_TransLeq
	cbz	x0, LBB0_20
; %bb.18:
	mov	x0, x21
	mov	x1, x22
	bl	_TransLeq
	cbz	x0, LBB0_21
; %bb.19:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x21
	bl	_TransEval
	mov	x23, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_TransEval
	add	w8, w0, w23
	cmp	w8, #0
	cneg	w8, w23, lt
	cneg	w2, w0, lt
	ldr	w1, [x20, #4]
	ldr	w3, [x21, #4]
	mov	x0, x8
	bl	_Interpolate
	b	LBB0_22
LBB0_20:
	ldr	w8, [x20, #4]
	ldr	w9, [x21, #4]
	add	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	b	LBB0_22
LBB0_21:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x21
	bl	_TransSign
	mov	x24, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_TransSign
	sub	w8, w24, w0
	cmp	w8, #0
	cneg	w8, w24, lt
	cneg	w2, w0, ge
	ldr	w1, [x20, #4]
	ldr	w3, [x22, #4]
	mov	x0, x8
	bl	_Interpolate
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_22:
	str	w0, [x19, #4]
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
