	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tessMeshTessellateMonoRegion   ## -- Begin function tessMeshTessellateMonoRegion
	.p2align	4, 0x90
_tessMeshTessellateMonoRegion:          ## @tessMeshTessellateMonoRegion
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %rbx
	movq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	je	LBB0_2
## %bb.1:
	cmpq	%rbx, 8(%rax)
	setne	%dil
LBB0_2:
	callq	_assert
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	callq	_VertLeq
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rbx
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%rbx), %edi
	movl	28(%rbx), %esi
	callq	_VertLeq
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:
	movq	16(%rbx), %r15
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	cmpq	%r15, 8(%rbx)
	je	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	28(%rbx), %edi
	movl	24(%r15), %esi
	callq	_VertLeq
	leaq	8(%r15), %r12
	movq	8(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_16
	.p2align	4, 0x90
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rbx, %rdi
	je	LBB0_15
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_EdgeGoesLeft
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	24(%r15), %edi
	movl	28(%r15), %esi
	movq	(%r12), %rax
	movl	28(%rax), %edx
	callq	_EdgeSign
	testq	%rax, %rax
	jg	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	(%r12), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_tessMeshConnect
	testq	%rax, %rax
	je	LBB0_25
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	(%rax), %r15
	leaq	8(%r15), %r12
	movq	8(%r15), %rdi
	cmpq	%rbx, %rdi
	jne	LBB0_11
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r15), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rbx, %rdi
	je	LBB0_21
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rbx), %rdi
	callq	_EdgeGoesRight
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movl	28(%rbx), %edi
	movl	24(%rbx), %esi
	movq	16(%rbx), %rax
	movl	24(%rax), %edx
	callq	_EdgeSign
	testq	%rax, %rax
	js	LBB0_21
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	16(%rbx), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_tessMeshConnect
	testq	%rax, %rax
	je	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	(%rax), %rbx
	cmpq	%rbx, (%r12)
	jne	LBB0_17
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rbx), %rbx
	jmp	LBB0_8
LBB0_22:
	xorl	%edi, %edi
	cmpq	%rbx, 8(%r15)
	setne	%dil
	callq	_assert
	movq	8(%r15), %rsi
	movl	$1, %r12d
	cmpq	%rbx, 8(%rsi)
	je	LBB0_26
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_tessMeshConnect
	testq	%rax, %rax
	je	LBB0_25
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	(%rax), %r15
	movq	8(%r15), %rsi
	cmpq	%rbx, 8(%rsi)
	jne	LBB0_24
	jmp	LBB0_26
LBB0_25:
	xorl	%r12d, %r12d
LBB0_26:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	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	_tessMeshTessellateMonoRegion   ; -- Begin function tessMeshTessellateMonoRegion
	.p2align	2
_tessMeshTessellateMonoRegion:          ; @tessMeshTessellateMonoRegion
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x1]
	ldr	x8, [x20, #8]
	cmp	x8, x20
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x8, #8]
	cmp	x8, x20
	cset	w0, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_assert
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x20, #24]
	bl	_VertLeq
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x20, #16]
	b	LBB0_4
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x20, [x20, #8]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w0, w1, [x20, #24]
	bl	_VertLeq
	cbnz	x0, LBB0_6
; %bb.8:
	ldr	x21, [x20, #16]
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
	ldr	x8, [x20, #8]
	cmp	x8, x21
	b.eq	LBB0_23
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x20, #28]
	ldr	w1, [x21, #24]
	bl	_VertLeq
	mov	x8, x0
	mov	x22, x21
	ldr	x0, [x22, #8]!
	cbz	x8, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x0, x20
	b.eq	LBB0_16
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_EdgeGoesLeft
	cbnz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldp	w0, w1, [x21, #24]
	ldr	x8, [x22]
	ldr	w2, [x8, #28]
	bl	_EdgeSign
	cmp	x0, #0
	b.gt	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_tessMeshConnect
	cbz	x0, LBB0_28
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x21, [x0]
	mov	x22, x21
	ldr	x0, [x22, #8]!
	cmp	x0, x20
	b.ne	LBB0_12
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x21, [x21, #16]
	b	LBB0_9
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	x0, x20
	b.eq	LBB0_22
LBB0_18:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x20, #16]
	bl	_EdgeGoesRight
	cbnz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldp	w1, w0, [x20, #24]
	ldr	x8, [x20, #16]
	ldr	w2, [x8, #24]
	bl	_EdgeSign
	tbnz	x0, #63, LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	x2, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_tessMeshConnect
	cbz	x0, LBB0_28
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x20, [x0]
	ldr	x8, [x22]
	cmp	x8, x20
	b.ne	LBB0_18
LBB0_22:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x20, [x20, #8]
	b	LBB0_9
LBB0_23:
	ldr	x8, [x21, #8]
	cmp	x8, x20
	cset	w0, ne
	bl	_assert
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x21, #8]
	ldr	x8, [x1, #8]
	cmp	x8, x20
	b.eq	LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x19
	mov	x2, x21
	bl	_tessMeshConnect
	cbz	x0, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x21, [x0]
	b	LBB0_24
LBB0_27:
	mov	w0, #1
LBB0_28:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
