	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function horizX1Filter
_horizX1Filter:                         ## @horizX1Filter
	.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	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_BLOCK_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %r13
	movslq	%esi, %rax
	addq	$24, %r13
	shlq	$2, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	addq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	movq	_BLOCK_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	-20(%r13), %r12d
	movl	-12(%r13), %r15d
	subl	-16(%r13), %r12d
	subl	-8(%r13), %r15d
	movl	-4(%r13), %ebx
	subl	(%r13), %ebx
	movl	%r15d, %edi
	callq	_FFABS
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_FFABS
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_FFABS
	addl	%r12d, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	subl	%ecx, %r14d
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_FFMAX
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r12d
	negl	%r15d
	movl	%r15d, %edi
	callq	_FFSIGN
                                        ## kill: def $eax killed $eax def $rax
	imull	%r12d, %eax
	leal	7(%rax), %ecx
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	cmovnsl	%eax, %edx
	sarl	$3, %ecx
	sarl	$2, %edx
	leal	(%rax,%rax,2), %esi
	leal	(%rax,%rax,2), %eax
	addl	$7, %eax
	testl	%esi, %esi
	cmovnsl	%esi, %eax
	sarl	$3, %eax
	movd	%ecx, %xmm0
	pinsrd	$1, %edx, %xmm0
	movdqu	-20(%r13), %xmm1
	pinsrd	$2, %eax, %xmm0
	movdqa	%xmm1, %xmm2
	paddd	%xmm0, %xmm2
	pinsrd	$3, %eax, %xmm0
	psubd	%xmm0, %xmm1
	pblendw	$63, %xmm2, %xmm1               ## xmm1 = xmm2[0,1,2,3,4,5],xmm1[6,7]
	movdqu	%xmm1, -20(%r13)
	subl	%edx, -4(%r13)
	subl	%ecx, (%r13)
	jmp	LBB0_4
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLOCK_SIZE,4,2                 ## @BLOCK_SIZE
	.no_dead_strip	_horizX1Filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function horizX1Filter
_horizX1Filter:                         ; @horizX1Filter
	.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
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x24, _BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BLOCK_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x2
	mov	w25, #0
	add	x26, x0, #12
	sbfiz	x27, x1, #2, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w25, #1
	ldr	w8, [x24]
	add	x26, x26, x27
	cmp	w25, w8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x26, #-8]
	sub	w21, w8, w9
	ldp	w8, w9, [x26]
	sub	w20, w8, w9
	ldp	w8, w9, [x26, #8]
	sub	w22, w8, w9
	mov	x0, x20
	bl	_FFABS
	mov	x23, x0
	mov	x0, x21
	bl	_FFABS
	mov	x21, x0
	mov	x0, x22
	bl	_FFABS
	add	w8, w0, w21
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w0, w23, w8, asr #1
	mov	w1, #0
	bl	_FFMAX
	cmp	w0, w19
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
	neg	w0, w20
	bl	_FFSIGN
	mul	w8, w0, w21
	add	w9, w8, #7
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w9, w9, #3
	ldp	w10, w11, [x26, #-8]
	add	w10, w9, w10
	add	w12, w8, #3
	csel	w12, w12, w8, lt
	asr	w12, w12, #2
	add	w11, w11, w12
	stp	w10, w11, [x26, #-8]
	add	w8, w8, w8, lsl #1
	add	w10, w8, #7
	cmp	w8, #0
	csel	w8, w10, w8, lt
	asr	w8, w8, #3
	ldp	w10, w11, [x26]
	add	w10, w10, w8
	sub	w8, w11, w8
	stp	w10, w8, [x26]
	ldp	w8, w10, [x26, #8]
	sub	w8, w8, w12
	sub	w9, w10, w9
	stp	w8, w9, [x26, #8]
	b	LBB0_2
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BLOCK_SIZE,4,2                 ; @BLOCK_SIZE
	.no_dead_strip	_horizX1Filter
.subsections_via_symbols
