	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function erosion16
LCPI0_0:
	.long	128                             ## 0x80
	.long	64                              ## 0x40
	.long	32                              ## 0x20
	.long	16                              ## 0x10
LCPI0_1:
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_erosion16:                             ## @erosion16
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_19
## %bb.1:
	movq	%r8, %r13
	movq	%rdi, %rbx
	movl	%edx, %eax
	movd	%r9d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [128,64,32,16]
	pand	%xmm0, %xmm1
	pand	LCPI0_1(%rip), %xmm0
	pxor	%xmm2, %xmm2
	pcmpeqd	%xmm2, %xmm0
	pcmpeqd	%xmm2, %xmm1
	packssdw	%xmm0, %xmm1
	packsswb	%xmm1, %xmm1
	pmovmskb	%xmm1, %ecx
	movl	%ecx, %edx
	shrb	$7, %dl
	movb	%dl, -47(%rbp)                  ## 1-byte Spill
	movl	%ecx, %edx
	andb	$64, %dl
	shrb	$6, %dl
	movb	%dl, -46(%rbp)                  ## 1-byte Spill
	movl	%ecx, %edx
	andb	$32, %dl
	shrb	$5, %dl
	movb	%dl, -45(%rbp)                  ## 1-byte Spill
	movl	%ecx, %edx
	andb	$16, %dl
	shrb	$4, %dl
	movb	%dl, -44(%rbp)                  ## 1-byte Spill
	movl	%ecx, %edx
	andb	$8, %dl
	shrb	$3, %dl
	movb	%dl, -43(%rbp)                  ## 1-byte Spill
	movl	%ecx, %edx
	andb	$4, %dl
	shrb	$2, %dl
	movb	%dl, -42(%rbp)                  ## 1-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	andb	$2, %cl
	shrb	%cl
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	shlq	$3, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_FFMAX
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx)
	addq	$8, %r12
	addq	$4, %rbx
	cmpq	%r12, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_19
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %rdi
	callq	_AV_RN16A
	movl	%eax, %r14d
	movl	%eax, %edi
	subl	-56(%rbp), %edi                 ## 4-byte Folded Reload
	xorl	%esi, %esi
	callq	_FFMAX
	movl	%eax, %r15d
	cmpb	$0, -47(%rbp)                   ## 1-byte Folded Reload
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	addq	%r12, %rdi
	callq	_AV_RN16A
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_FFMIN
	movl	%eax, %r14d
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_FFMAX
	movl	%eax, %ebx
	cmpb	$0, -46(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rdi
	addq	%r12, %rdi
	callq	_AV_RN16A
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FFMIN
	movl	%eax, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_FFMAX
	movl	%eax, %ebx
	cmpb	$0, -45(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rdi
	addq	%r12, %rdi
	callq	_AV_RN16A
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FFMIN
	movl	%eax, %ebx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_FFMAX
	movl	%eax, %ebx
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r13), %rdi
	addq	%r12, %rdi
	callq	_AV_RN16A
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FFMIN
	movl	%eax, %ebx
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_FFMAX
	movl	%eax, %ebx
	cmpb	$0, -43(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r13), %rdi
	addq	%r12, %rdi
	callq	_AV_RN16A
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FFMIN
	movl	%eax, %ebx
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_FFMAX
	movl	%eax, %ebx
	cmpb	$0, -42(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%r13), %rdi
	addq	%r12, %rdi
	callq	_AV_RN16A
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FFMIN
	movl	%eax, %ebx
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_FFMAX
	movl	%eax, %ebx
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r13), %rdi
	addq	%r12, %rdi
	callq	_AV_RN16A
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FFMIN
	movl	%eax, %ebx
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_FFMAX
	movl	%eax, %ebx
	testb	$1, -52(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%r13), %rdi
	addq	%r12, %rdi
	callq	_AV_RN16A
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FFMIN
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_erosion16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function erosion16
_erosion16:                             ; @erosion16
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w2, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x1
	mov	x23, x0
	mov	x26, #0
	mov	w8, w2
	lsl	x27, x8, #3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_FFMAX
	str	w0, [x23], #4
	add	x26, x26, #8
	cmp	x27, x26
	b.eq	LBB0_19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x22, x26
	bl	_AV_RN16A
	mov	x25, x0
	sub	w0, w0, w21
	mov	w1, #0
	bl	_FFMAX
	mov	x24, x0
	tbz	w19, #0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	add	x0, x8, x26
	bl	_AV_RN16A
	mov	x1, x0
	mov	x0, x25
	bl	_FFMIN
	mov	x25, x0
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_FFMAX
	mov	x25, x0
	tbz	w19, #1, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, x26
	bl	_AV_RN16A
	mov	x1, x0
	mov	x0, x25
	bl	_FFMIN
	mov	x25, x0
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_FFMAX
	mov	x25, x0
	tbz	w19, #2, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	add	x0, x8, x26
	bl	_AV_RN16A
	mov	x1, x0
	mov	x0, x25
	bl	_FFMIN
	mov	x25, x0
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_FFMAX
	mov	x25, x0
	tbz	w19, #3, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #24]
	add	x0, x8, x26
	bl	_AV_RN16A
	mov	x1, x0
	mov	x0, x25
	bl	_FFMIN
	mov	x25, x0
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_FFMAX
	mov	x25, x0
	tbz	w19, #4, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #32]
	add	x0, x8, x26
	bl	_AV_RN16A
	mov	x1, x0
	mov	x0, x25
	bl	_FFMIN
	mov	x25, x0
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_FFMAX
	mov	x25, x0
	tbz	w19, #5, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #40]
	add	x0, x8, x26
	bl	_AV_RN16A
	mov	x1, x0
	mov	x0, x25
	bl	_FFMIN
	mov	x25, x0
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_FFMAX
	mov	x25, x0
	tbz	w19, #6, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #48]
	add	x0, x8, x26
	bl	_AV_RN16A
	mov	x1, x0
	mov	x0, x25
	bl	_FFMIN
	mov	x25, x0
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_FFMAX
	mov	x25, x0
	tbz	w19, #7, LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #56]
	add	x0, x8, x26
	bl	_AV_RN16A
	mov	x1, x0
	mov	x0, x25
	bl	_FFMIN
	mov	x25, x0
	b	LBB0_2
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_erosion16
.subsections_via_symbols
