	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddPatchEdges                  ## -- Begin function AddPatchEdges
	.p2align	4, 0x90
_AddPatchEdges:                         ## @AddPatchEdges
	.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	%rdi, %r14
	movl	(%rdi), %eax
	cmpl	$3, %eax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jl	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	movq	_qfalse@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r14), %rax
	leaq	-2(%rax), %rcx
	movq	%r13, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %r15
	movq	8(%rax,%rbx,8), %rsi
	movq	16(%rax,%rbx,8), %r14
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_ColinearEdge
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_AddEdge
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	2(%rbx), %r13
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rax
	movslq	4(%r14), %rcx
	decq	%rcx
	movslq	(%r14), %rdx
	imulq	%rcx, %rdx
	addq	%rbx, %rdx
	movq	(%rax,%rdx,8), %r15
	leal	1(%rdx), %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rsi
	addl	$2, %edx
	movslq	%edx, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_ColinearEdge
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_AddEdge
	jmp	LBB0_6
LBB0_7:
	cmpl	$3, 4(%r14)
	jl	LBB0_15
## %bb.8:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movl	%eax, %edx
	imull	%r12d, %edx
	movslq	%edx, %rdx
	movq	(%rcx,%rdx,8), %r15
	leal	1(%r12), %r14d
	movl	%eax, %edx
	imull	%r14d, %edx
	movslq	%edx, %rdx
	movq	(%rcx,%rdx,8), %rsi
	leal	2(%r12), %r13d
	imull	%r13d, %eax
	cltq
	movq	(%rcx,%rax,8), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_ColinearEdge
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_AddEdge
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movl	(%rcx), %ecx
	imull	%ecx, %r12d
	leal	(%rcx,%r12), %edx
	decl	%edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %r15
	imull	%ecx, %r14d
	leal	(%rcx,%r14), %edx
	decl	%edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rsi
	movl	%ecx, %edx
	imull	%r13d, %edx
	addl	%edx, %ecx
	decl	%ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_ColinearEdge
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_AddEdge
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %eax
	addl	$-2, %eax
	cmpl	%eax, %r13d
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r14), %eax
	movl	%r13d, %r12d
	jmp	LBB0_9
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddPatchEdges                  ; -- Begin function AddPatchEdges
	.p2align	2
_AddPatchEdges:                         ; @AddPatchEdges
	.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, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x22, _qfalse@GOTPAGE
Lloh1:
	ldr	x22, [x22, _qfalse@GOTPAGEOFF]
	cmp	w8, #3
	b.lt	LBB0_7
; %bb.1:
	mov	x23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #2
	ldrsw	x8, [x19]
	sub	x9, x8, #2
	cmp	x23, x9
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x23, lsl #3
	ldp	x20, x1, [x8]
	ldr	x21, [x8, #16]
	mov	x0, x20
	mov	x2, x21
	bl	_ColinearEdge
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_AddEdge
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldpsw	x10, x9, [x19]
	sub	x9, x9, #1
	madd	x9, x9, x10, x23
	ldr	x20, [x8, x9, lsl #3]
	add	w10, w9, #1
	ldr	x1, [x8, w10, sxtw #3]
	add	w9, w9, #2
	ldr	x21, [x8, w9, sxtw #3]
	mov	x0, x20
	mov	x2, x21
	bl	_ColinearEdge
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_AddEdge
	b	LBB0_2
LBB0_7:
	ldr	w9, [x19, #4]
	cmp	w9, #3
	b.lt	LBB0_15
; %bb.8:
	mov	w23, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	mul	w10, w8, w23
	ldr	x20, [x9, w10, sxtw #3]
	add	w25, w23, #1
	mul	w10, w8, w25
	ldr	x1, [x9, w10, sxtw #3]
	add	w24, w23, #2
	mul	w8, w8, w24
	ldr	x21, [x9, w8, sxtw #3]
	mov	x0, x20
	mov	x2, x21
	bl	_ColinearEdge
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_AddEdge
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #8]
	ldr	w9, [x19]
	sub	w10, w9, #1
	madd	w11, w9, w23, w10
	ldr	x20, [x8, w11, sxtw #3]
	madd	w11, w9, w25, w10
	ldr	x1, [x8, w11, sxtw #3]
	madd	w9, w9, w24, w10
	ldr	x21, [x8, w9, sxtw #3]
	mov	x0, x20
	mov	x2, x21
	bl	_ColinearEdge
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_AddEdge
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19, #4]
	sub	w8, w8, #2
	cmp	w24, w8
	b.ge	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19]
	add	w23, w23, #2
	b	LBB0_9
LBB0_15:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
