	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tessProjectPolygon             ## -- Begin function tessProjectPolygon
	.p2align	4, 0x90
_tessProjectPolygon:                    ## @tessProjectPolygon
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	40(%rdi), %r12
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rdi), %rax
	movl	(%rax), %edx
	movl	%edx, -60(%rbp)
	movl	4(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	8(%rax), %eax
	movl	%eax, -52(%rbp)
	testl	%edx, %edx
	jne	LBB0_4
## %bb.1:
	testl	%ecx, %ecx
	jne	LBB0_4
## %bb.2:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	-60(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ComputeNormal
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_4:
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movq	8(%r14), %r15
	movq	16(%r14), %rbx
	leaq	-60(%rbp), %rdi
	callq	_LongAxis
	cltq
	movl	$0, (%r15,%rax,4)
	movq	_S_UNIT_X@GOTPCREL(%rip), %r8
	movl	(%r8), %esi
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	imulq	$1431655766, %rdx, %rdx         ## imm = 0x55555556
	movq	%rdx, %rdi
	shrq	$63, %rdi
	shrq	$32, %rdx
	addl	%edi, %edx
	leal	(%rdx,%rdx,2), %edx
	negl	%edx
	addl	%eax, %edx
	incl	%edx
	movslq	%edx, %rdx
	movl	%esi, (%r15,%rdx,4)
	movq	_S_UNIT_Y@GOTPCREL(%rip), %r9
	movl	(%r9), %edi
	leal	2(%rax), %ecx
	movslq	%ecx, %rcx
	imulq	$1431655766, %rcx, %rcx         ## imm = 0x55555556
	movq	%rcx, %rsi
	shrq	$63, %rsi
	shrq	$32, %rcx
	addl	%esi, %ecx
	leal	(%rcx,%rcx,2), %ecx
	negl	%ecx
	addl	%eax, %ecx
	addl	$2, %ecx
	movslq	%ecx, %rcx
	movl	%edi, (%r15,%rcx,4)
	movl	$0, (%rbx,%rax,4)
	movl	(%r9), %esi
	movl	%esi, %edi
	negl	%edi
	cmpl	$0, -60(%rbp,%rax,4)
	cmovlel	%esi, %edi
	movl	%edi, (%rbx,%rdx,4)
	movl	(%r8), %edx
	movl	%edx, %esi
	negl	%esi
	cmpl	$0, -60(%rbp,%rax,4)
	cmovgl	%edx, %esi
	movl	%esi, (%rbx,%rcx,4)
	movq	24(%r12), %r13
	cmpq	%r12, %r13
	je	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	movq	%r15, %rsi
	callq	_Dot
	movq	%rax, (%r13)
	movq	8(%r13), %rdi
	movq	%rbx, %rsi
	callq	_Dot
	movq	%rax, 16(%r13)
	movq	24(%r13), %r13
	cmpq	%r12, %r13
	jne	LBB0_5
LBB0_7:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_CheckOrientation
LBB0_9:
	movq	24(%r12), %rdx
	cmpq	%r12, %rdx
	je	LBB0_20
## %bb.10:
	movq	(%rdx), %rsi
	movq	32(%r14), %rax
	movq	%rsi, (%rax)
	movq	24(%r14), %rcx
	movq	%rsi, (%rcx)
	movq	16(%rdx), %rsi
	movq	%rsi, 8(%rax)
	movq	%rsi, 8(%rcx)
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rdx), %rdx
	cmpq	%r12, %rdx
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rdx), %rsi
	cmpq	(%rcx), %rsi
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rsi, (%rcx)
	movq	(%rdx), %rsi
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	(%rax), %rsi
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rsi, (%rax)
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%rdx), %rsi
	cmpq	8(%rcx), %rsi
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rsi, 8(%rcx)
	movq	16(%rdx), %rsi
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	8(%rax), %rsi
	jle	LBB0_11
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rsi, 8(%rax)
	jmp	LBB0_11
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_S_UNIT_X,4,2                   ## @S_UNIT_X
	.comm	_S_UNIT_Y,4,2                   ## @S_UNIT_Y
	.comm	_w,4,2                          ## @w
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tessProjectPolygon             ; -- Begin function tessProjectPolygon
	.p2align	2
_tessProjectPolygon:                    ; @tessProjectPolygon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	ldr	x22, [x0, #40]
Lloh5:
	ldr	w23, [x8]
	ldr	x8, [x0]
	ldp	w9, w10, [x8]
	stp	w9, w10, [sp, #12]
	ldr	w8, [x8, #8]
	str	w8, [sp, #20]
	cmp	w9, #0
	ccmp	w10, #0, #0, eq
	ccmp	w8, #0, #0, eq
	b.ne	LBB0_2
; %bb.1:
	add	x1, sp, #12
	mov	x0, x19
	bl	_ComputeNormal
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
LBB0_2:
	ldp	x20, x21, [x19, #8]
	add	x24, sp, #12
	add	x0, sp, #12
	bl	_LongAxis
                                        ; kill: def $w0 killed $w0 def $x0
	sbfiz	x8, x0, #2, #32
	str	wzr, [x20, x8]
Lloh9:
	adrp	x9, _S_UNIT_X@GOTPAGE
Lloh10:
	ldr	x9, [x9, _S_UNIT_X@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w11, w0, #1
	mov	w12, #21846
	movk	w12, #21845, lsl #16
	smull	x13, w11, w12
	lsr	x14, x13, #63
	lsr	x13, x13, #32
	add	w13, w13, w14
	add	w13, w13, w13, lsl #1
	sub	w11, w11, w13
	sbfiz	x11, x11, #2, #32
	str	w10, [x20, x11]
Lloh11:
	adrp	x10, _S_UNIT_Y@GOTPAGE
Lloh12:
	ldr	x10, [x10, _S_UNIT_Y@GOTPAGEOFF]
	ldr	w13, [x10]
	add	w14, w0, #2
	smull	x12, w14, w12
	lsr	x15, x12, #63
	lsr	x12, x12, #32
	add	w12, w12, w15
	add	w12, w12, w12, lsl #1
	sub	w12, w14, w12
	sbfiz	x12, x12, #2, #32
	str	w13, [x20, x12]
	str	wzr, [x21, x8]
	ldr	w13, [x24, x8]
	ldr	w10, [x10]
	cmp	w13, #0
	cneg	w10, w10, gt
	str	w10, [x21, x11]
	ldr	w8, [x24, x8]
	ldr	w9, [x9]
	cmp	w8, #0
	cneg	w8, w9, le
	str	w8, [x21, x12]
	ldr	x24, [x22, #24]
	cmp	x24, x22
	b.eq	LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24, #8]
	mov	x1, x20
	bl	_Dot
	str	x0, [x24]
	ldr	x0, [x24, #8]
	mov	x1, x21
	bl	_Dot
	str	x0, [x24, #16]
	ldr	x24, [x24, #24]
	cmp	x24, x22
	b.ne	LBB0_3
LBB0_4:
	cbz	w23, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_CheckOrientation
LBB0_6:
	ldr	x10, [x22, #24]
	cmp	x10, x22
	b.eq	LBB0_17
; %bb.7:
	ldr	x11, [x10]
	ldr	x8, [x19, #32]
	str	x11, [x8]
	ldr	x9, [x19, #24]
	str	x11, [x9]
	ldr	x11, [x10, #16]
	str	x11, [x8, #8]
	str	x11, [x9, #8]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x10, #24]
	cmp	x10, x22
	b.eq	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x11, [x10]
	ldr	x12, [x9]
	cmp	x11, x12
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	str	x11, [x9]
	ldr	x11, [x10]
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x12, [x8]
	cmp	x11, x12
	b.le	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	str	x11, [x8]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x11, [x10, #16]
	ldr	x12, [x9, #8]
	cmp	x11, x12
	b.ge	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	str	x11, [x9, #8]
	ldr	x11, [x10, #16]
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x12, [x8, #8]
	cmp	x11, x12
	b.le	LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	str	x11, [x8, #8]
	b	LBB0_8
LBB0_17:
	ldr	x8, [sp, #24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_S_UNIT_X,4,2                   ; @S_UNIT_X
	.comm	_S_UNIT_Y,4,2                   ; @S_UNIT_Y
	.comm	_w,4,2                          ; @w
.subsections_via_symbols
