	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eedi2_dilate_edge_mask         ## -- Begin function eedi2_dilate_edge_mask
	.p2align	4, 0x90
_eedi2_dilate_edge_mask:                ## @eedi2_dilate_edge_mask
	.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	%r9d, %r14d
	movl	%r8d, %r12d
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r13
	movl	16(%rbp), %r8d
	movq	%rdx, %rdi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %esi
	movq	%r13, %rdx
	movl	%ebx, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_eedi2_bit_blit
	cmpl	$3, %r14d
	jl	LBB0_10
## %bb.1:
	movslq	%ebx, %r9
	movslq	-44(%rbp), %r8                  ## 4-byte Folded Reload
	leaq	(,%r9,4), %rdx
	addq	%r13, %rdx
	leaq	(%rdx,%r9,4), %rsi
	movl	16(%rbp), %eax
	leal	-1(%rax), %r11d
	addl	$-2, %r14d
	movl	$1, %r10d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r9, %r13
	leaq	(%rdx,%r9,4), %rdx
	addq	%r9, %rsi
	leal	1(%r10), %eax
	cmpl	%r14d, %r10d
	movl	%eax, %r10d
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	leaq	(%r15,%r8,4), %r15
	movl	16(%rbp), %eax
	cmpl	$3, %eax
	jl	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rax
	movq	%rax, %rcx
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%rcx, %rax
	cmpq	%r11, %rcx
	je	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, (%rdx,%rax,4)
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%ecx, %ecx
	cmpb	$-1, -1(%r13,%rax)
	sete	%cl
	cmpb	$-1, (%r13,%rax)
	leal	1(%rcx), %edi
	cmovnel	%ecx, %edi
	xorl	%ecx, %ecx
	cmpb	$-1, 1(%r13,%rax)
	sete	%cl
	addl	%edi, %ecx
	xorl	%edi, %edi
	cmpl	$255, -4(%rdx,%rax,4)
	sete	%dil
	addl	%ecx, %edi
	xorl	%ecx, %ecx
	cmpl	$255, 4(%rdx,%rax,4)
	sete	%cl
	addl	%edi, %ecx
	xorl	%edi, %edi
	cmpb	$-1, -1(%rsi,%rax)
	sete	%dil
	addl	%ecx, %edi
	xorl	%ebx, %ebx
	cmpb	$-1, (%rsi,%rax)
	sete	%bl
	addl	%edi, %ebx
	xorl	%edi, %edi
	cmpb	$-1, 1(%rsi,%rax)
	leaq	1(%rax), %rcx
	sete	%dil
	addl	%ebx, %edi
	cmpl	%r12d, %edi
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	$255, (%r15,%rax,4)
	jmp	LBB0_8
LBB0_10:
	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	_eedi2_dilate_edge_mask         ; -- Begin function eedi2_dilate_edge_mask
	.p2align	2
_eedi2_dilate_edge_mask:                ; @eedi2_dilate_edge_mask
	.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, x6
	mov	x23, x5
	mov	x20, x4
	mov	x24, x3
	mov	x21, x2
	mov	x25, x1
	mov	x22, x0
	mov	x0, x2
	mov	x1, x3
	mov	x2, x22
	mov	x3, x25
	mov	x4, x6
	bl	_eedi2_bit_blit
	cmp	w23, #3
	b.lt	LBB0_10
; %bb.1:
	sxtw	x8, w25
	sxtw	x9, w24
	lsl	x11, x8, #2
	add	x10, x22, x11
	add	x11, x10, x11
	sub	w12, w19, #1
	sub	w13, w23, #2
	mov	w14, #1
	mov	w15, #255
	mov	w16, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, x8
	add	x10, x10, x8, lsl #2
	add	x11, x11, x8
	add	w17, w16, #1
	cmp	w16, w13
	mov	x16, x17
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	add	x21, x21, x9, lsl #2
	cmp	w19, #3
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w17, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x0, x17, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x17, x0
	cmp	x0, x12
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x10, x17, lsl #2]
	cbnz	w0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	sub	x1, x17, #1
	ldrb	w0, [x22, x1]
	cmp	w0, #255
	ldrb	w2, [x22, x17]
	cset	w3, eq
	cinc	w4, w14, eq
	add	x0, x17, #1
	ldrb	w5, [x22, x0]
	cmp	w2, #255
	csel	w2, w4, w3, eq
	cmp	w5, #255
	cinc	w2, w2, eq
	ldr	w3, [x10, x1, lsl #2]
	cmp	w3, #255
	cinc	w2, w2, eq
	ldr	w3, [x10, x0, lsl #2]
	cmp	w3, #255
	ldrb	w1, [x11, x1]
	cinc	w2, w2, eq
	cmp	w1, #255
	cinc	w1, w2, eq
	ldrb	w2, [x11, x17]
	cmp	w2, #255
	cinc	w1, w1, eq
	ldrb	w2, [x11, x0]
	cmp	w2, #255
	cinc	w1, w1, eq
	cmp	w1, w20
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	str	w15, [x21, x17, lsl #2]
	b	LBB0_6
LBB0_10:
	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
