	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tessTesselate                  ## -- Begin function tessTesselate
	.p2align	4, 0x90
_tessTesselate:                         ## @tessTesselate
	.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	%r9, %r13
	movl	%r8d, %r12d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	64(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	24(%rbx), %edi
	callq	*32(%rbx)
	movq	$0, 64(%rbx)
LBB0_2:
	movq	56(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movl	24(%rbx), %edi
	callq	*32(%rbx)
	movq	$0, 56(%rbx)
LBB0_4:
	testq	%r13, %r13
	je	LBB0_6
## %bb.5:
	movl	(%r13), %eax
	movq	48(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	4(%r13), %eax
	movl	%eax, 4(%rcx)
	movl	8(%r13), %eax
	movl	%eax, 8(%rcx)
LBB0_6:
	movl	%r14d, (%rbx)
	cmpl	$3, %r12d
	movl	$2, %eax
	cmovgel	%r12d, %eax
	cmpl	$3, %eax
	movl	$3, %r12d
	cmovbl	%eax, %r12d
	movl	40(%rbx), %edi
	callq	_setjmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	%ecx, %eax
	jmp	LBB0_20
LBB0_8:
	cmpq	$0, 16(%rbx)
	movl	%ecx, %eax
	je	LBB0_20
## %bb.9:
	movq	%rbx, %rdi
	callq	_tessProjectPolygon
	movq	%rbx, %rdi
	callq	_tessComputeInterior
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	40(%rbx), %edi
	movl	$1, %esi
	callq	_longjmp
LBB0_11:
	movq	16(%rbx), %r13
	movq	_TESS_BOUNDARY_CONTOURS@GOTPCREL(%rip), %r14
	cmpl	%r15d, (%r14)
	jne	LBB0_13
## %bb.12:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %esi
	movq	%r13, %rdi
	callq	_tessMeshSetWindingNumber
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_15
LBB0_13:
	movq	%r13, %rdi
	callq	_tessMeshTessellateInterior
	testl	%eax, %eax
	jne	LBB0_16
LBB0_15:
	movl	40(%rbx), %edi
	movl	$1, %esi
	callq	_longjmp
LBB0_16:
	movq	%r13, %rdi
	callq	_tessMeshCheckMesh
	cmpl	%r15d, (%r14)
	jne	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_OutputContours
	jmp	LBB0_19
LBB0_18:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r8d
	callq	_OutputPolymesh
LBB0_19:
	leaq	24(%rbx), %rdi
	movq	%r13, %rsi
	callq	_tessMeshDeleteMesh
	movq	$0, 16(%rbx)
	xorl	%eax, %eax
	cmpq	$0, 8(%rbx)
	sete	%cl
	movb	%cl, %al
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TESS_BOUNDARY_CONTOURS,4,2     ## @TESS_BOUNDARY_CONTOURS
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tessTesselate                  ; -- Begin function tessTesselate
	.p2align	2
_tessTesselate:                         ; @tessTesselate
	.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	x23, x5
	mov	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x1, [x0, #64]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	w0, [x19, #24]
	blr	x8
	mov	x8, #0
	str	xzr, [x19, #64]
LBB0_2:
	ldr	x1, [x19, #56]
	cbz	x1, LBB0_4
; %bb.3:
	ldr	x8, [x19, #32]
	ldr	w0, [x19, #24]
	blr	x8
	mov	x8, #0
	str	xzr, [x19, #56]
LBB0_4:
	cbz	x23, LBB0_6
; %bb.5:
	ldr	w8, [x23]
	ldr	x9, [x19, #48]
	str	w8, [x9]
	ldr	w8, [x23, #4]
	str	w8, [x9, #4]
	ldr	w8, [x23, #8]
	str	w8, [x9, #8]
LBB0_6:
	str	w24, [x19]
	mov	w8, #2
	cmp	w22, #2
	csel	w8, w22, w8, gt
	mov	w9, #3
	cmp	w8, #3
	csel	w23, w8, w9, lo
	ldr	w0, [x19, #40]
	bl	_setjmp
	cbz	x0, LBB0_8
LBB0_7:
	mov	w0, #0
	b	LBB0_19
LBB0_8:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.9:
	mov	x0, x19
	bl	_tessProjectPolygon
	mov	x0, x19
	bl	_tessComputeInterior
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	w0, [x19, #40]
	mov	w1, #1
	bl	_longjmp
LBB0_11:
	ldr	x22, [x19, #16]
Lloh0:
	adrp	x24, _TESS_BOUNDARY_CONTOURS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TESS_BOUNDARY_CONTOURS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w21
	b.ne	LBB0_13
; %bb.12:
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #1
	mov	x0, x22
	bl	_tessMeshSetWindingNumber
	mov	x8, x0
	cbnz	w0, LBB0_15
	b	LBB0_14
LBB0_13:
	mov	x0, x22
	bl	_tessMeshTessellateInterior
	mov	x8, x0
	cbnz	w0, LBB0_15
LBB0_14:
	ldr	w0, [x19, #40]
	mov	w1, #1
	bl	_longjmp
LBB0_15:
	mov	x0, x22
	bl	_tessMeshCheckMesh
	ldr	w8, [x24]
	mov	x0, x19
	mov	x1, x22
	cmp	w8, w21
	b.ne	LBB0_17
; %bb.16:
	mov	x2, x23
	bl	_OutputContours
	b	LBB0_18
LBB0_17:
	mov	x2, x21
	mov	x3, x20
	mov	x4, x23
	bl	_OutputPolymesh
LBB0_18:
	add	x0, x19, #24
	mov	x1, x22
	bl	_tessMeshDeleteMesh
	mov	x8, #0
	str	xzr, [x19, #16]
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
LBB0_19:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TESS_BOUNDARY_CONTOURS,4,2     ; @TESS_BOUNDARY_CONTOURS
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
