	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tessAddContour                 ## -- Begin function tessAddContour
	.p2align	4, 0x90
_tessAddContour:                        ## @tessAddContour
	.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
	movl	%r8d, %r14d
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	cmpq	$0, 8(%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	16(%r15), %rdi
	movl	%ecx, %r13d
	callq	_tessMeshNewMesh
	movl	%r13d, %ecx
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:
	testl	%r14d, %r14d
	jle	LBB0_13
## %bb.3:
	cmpl	$3, %ebx
	movl	$2, %r13d
	cmovgel	%ebx, %r13d
	movslq	%ecx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	$8, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, 8(%rcx)
	movl	$1, (%rbx)
	movq	8(%rbx), %rax
	movl	$-1, (%rax)
	addq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	decl	%r14d
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rsi
	callq	_tessMeshSplitEdge
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%rbx), %rbx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_tessMeshMakeEdge
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movq	8(%r15), %rdi
	movq	8(%rax), %rdx
	movq	%rax, %rsi
	callq	_tessMeshSplice
	testl	%eax, %eax
	je	LBB0_7
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	movl	-8(%r12), %edx
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	%edx, (%rcx)
	movl	-4(%r12), %edx
	movl	%edx, 4(%rcx)
	cmpl	$3, %r13d
	jb	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %eax
	jmp	LBB0_12
LBB0_7:
	movl	$1, (%r15)
LBB0_13:
	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	_tessAddContour                 ; -- Begin function tessAddContour
	.p2align	2
_tessAddContour:                        ; @tessAddContour
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x23, x3
	mov	x22, x2
	mov	x24, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	add	x0, x20, #16
	bl	_tessMeshNewMesh
	str	x0, [x20, #8]
	cbz	x0, LBB0_13
LBB0_2:
	cmp	w19, #1
	b.lt	LBB0_14
; %bb.3:
	mov	x21, #0
	mov	w8, #2
	cmp	w24, #2
	csel	w24, w24, w8, gt
	sxtw	x23, w23
	add	x22, x22, #8
	mov	w25, #1
	mov	w26, #-1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x22]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w9, [x8, #8]
	str	w25, [x21]
	ldr	x8, [x21, #8]
	str	w26, [x8]
	add	x22, x22, x23
	subs	w19, w19, #1
	b.eq	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #8]
	cbz	x21, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x21
	bl	_tessMeshSplitEdge
	cbz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x21, [x21, #24]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_tessMeshMakeEdge
	cbz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	ldr	x0, [x20, #8]
	ldr	x2, [x21, #8]
	mov	x1, x21
	bl	_tessMeshSplice
	cbz	w0, LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	w9, [x22, #-8]
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	str	w9, [x8]
	ldur	w9, [x22, #-4]
	str	w9, [x8, #4]
	cmp	w24, #3
	b.hs	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w9, #0
	b	LBB0_5
LBB0_13:
	mov	w8, #1
	str	w8, [x20]
LBB0_14:
	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	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
