	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tessMeshMergeConvexFaces       ## -- Begin function tessMeshMergeConvexFaces
	.p2align	4, 0x90
_tessMeshMergeConvexFaces:              ## @tessMeshMergeConvexFaces
	.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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	16(%rdi), %r14
	movl	$1, %eax
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rdi, %r14
	jne	LBB0_1
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r14), %r14
	cmpq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_13
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	cmpq	$0, (%r14)
	je	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r14), %r13
	movq	(%r13), %r15
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	8(%r12), %rax
	cmpq	%r15, (%rax)
	je	LBB0_12
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %r12
	movq	8(%r13), %r13
	movq	32(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	callq	_CountFaceVerts
	movq	%r14, %r15
	movl	%eax, %r14d
	movq	24(%rbx), %rdi
	callq	_CountFaceVerts
                                        ## kill: def $eax killed $eax def $rax
	addl	%r14d, %eax
	addl	$-2, %eax
	movq	%r15, %r14
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	(%r12), %rsi
	movq	16(%r12), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rdx
	callq	_VertCCW
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	(%rbx), %rsi
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rdx
	callq	_VertCCW
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	8(%rbx), %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_tessMeshDelete
	testl	%eax, %eax
	jne	LBB0_3
## %bb.10:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_13:
	movl	$1, %eax
LBB0_14:
	addq	$24, %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	_tessMeshMergeConvexFaces       ; -- Begin function tessMeshMergeConvexFaces
	.p2align	2
_tessMeshMergeConvexFaces:              ; @tessMeshMergeConvexFaces
	.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
	ldr	x21, [x0, #16]
	cmp	x21, x0
	b.eq	LBB0_13
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x21, [x21, #16]
	cmp	x21, x20
	b.eq	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x25, [x21, #8]
	ldr	x24, [x25]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x25, #8]
	ldr	x8, [x8]
	mov	x25, x26
	cmp	x8, x24
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x26, [x25, #8]
	ldr	x22, [x25, #32]
	cbz	x22, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x21
	bl	_CountFaceVerts
	mov	x23, x0
	ldr	x0, [x22, #24]
	bl	_CountFaceVerts
	add	w8, w23, w0
	sub	w8, w8, #2
	cmp	w8, w19
	b.gt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x25, #16]
	ldr	w0, [x8]
	ldr	x1, [x25]
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #8]
	ldr	x2, [x8]
	bl	_VertCCW
	cbz	x0, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x22, #16]
	ldr	w0, [x8]
	ldr	x1, [x22]
	ldr	x8, [x25, #8]
	ldr	x8, [x8, #8]
	ldr	x2, [x8]
	bl	_VertCCW
	cbz	x0, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x25, [x22, #8]
	mov	x0, x20
	mov	x1, x22
	bl	_tessMeshDelete
	cbnz	w0, LBB0_6
	b	LBB0_14
LBB0_13:
	mov	w0, #1
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
