	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ff_snow_horizontal_compose97i
LCPI0_0:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_1:
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_snow_horizontal_compose97i
	.p2align	4, 0x90
_ff_snow_horizontal_compose97i:         ## @ff_snow_horizontal_compose97i
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	leal	1(%rdx), %r10d
	sarl	%r10d
	movl	(%rdi), %r8d
	movslq	%r10d, %rax
	movl	(%rdi,%rax,4), %ecx
	leal	(%rcx,%rcx,2), %ecx
	addl	$2, %ecx
	sarl	$2, %ecx
	subl	%ecx, %r8d
	movl	%r8d, (%rsi)
	movl	$1, %r9d
	cmpl	$4, %edx
	jl	LBB0_3
## %bb.1:
	movl	%edx, %r9d
	shrl	%r9d
	leaq	(%rdi,%rax,4), %r14
	leaq	-1(%r9), %r11
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14,%rcx,4), %ebx
	addl	(%r14,%rcx,4), %ebx
	movl	4(%rdi,%rcx,4), %eax
	leal	(%rbx,%rbx,2), %ebx
	addl	$4, %ebx
	sarl	$3, %ebx
	subl	%ebx, %eax
	movl	%eax, 8(%rsi,%rcx,8)
	movl	(%r14,%rcx,4), %ebx
	addl	(%rsi,%rcx,8), %eax
	subl	%eax, %ebx
	movl	%ebx, 4(%rsi,%rcx,8)
	incq	%rcx
	cmpq	%rcx, %r11
	jne	LBB0_2
LBB0_3:
	testb	$1, %dl
	jne	LBB0_4
## %bb.5:
	addl	%r9d, %r10d
	movslq	%r10d, %rax
	movl	-4(%rdi,%rax,4), %r10d
	movl	%r9d, %ecx
	addl	%ecx, %ecx
	leal	(%r9,%r9), %eax
	addl	$-2, %eax
	movl	(%rsi,%rax,4), %eax
	addl	%eax, %eax
	subl	%eax, %r10d
	jmp	LBB0_6
LBB0_4:
	movl	%r9d, %eax
	movl	(%rdi,%rax,4), %ebx
	addl	%r9d, %r10d
	movslq	%r10d, %rax
	movl	-4(%rdi,%rax,4), %ecx
	leal	(%rcx,%rcx,2), %ecx
	addl	$2, %ecx
	sarl	$2, %ecx
	subl	%ecx, %ebx
	leal	(%r9,%r9), %ecx
	movl	%ebx, (%rsi,%rcx,4)
	movl	-4(%rdi,%rax,4), %r10d
	leal	(%r9,%r9), %eax
	addl	$-2, %eax
	addl	(%rsi,%rax,4), %ebx
	subl	%ebx, %r10d
LBB0_6:
	decl	%ecx
	movl	%r10d, (%rsi,%rcx,4)
	movl	4(%rsi), %eax
	leal	(%rax,%r8,2), %eax
	addl	$4, %eax
	sarl	$3, %eax
	addl	%r8d, %eax
	movl	%eax, (%rdi)
	movl	$2, %r15d
	cmpl	$4, %edx
	jl	LBB0_14
## %bb.7:
	leal	-1(%rdx), %r8d
	cmpq	$5, %r8
	movl	$4, %r9d
	cmovaeq	%r8, %r9
	movl	$4, %r10d
	addq	$-3, %r9
	movl	$2, %r15d
	cmpq	$8, %r9
	jb	LBB0_13
## %bb.8:
	leaq	4(%rdi), %r14
	cmpq	$5, %r8
	cmovaeq	%r8, %r10
	addq	$-3, %r10
	movabsq	$4611686018427387902, %r11      ## imm = 0x3FFFFFFFFFFFFFFE
	andq	%r10, %r11
	leaq	(%rsi,%r11,4), %rbx
	addq	$16, %rbx
	cmpq	%rbx, %r14
	jae	LBB0_10
## %bb.9:
	leaq	(%rdi,%r11,4), %r10
	addq	$12, %r10
	leaq	4(%rsi), %rbx
	cmpq	%r10, %rbx
	jb	LBB0_13
LBB0_10:
	shrq	%r9
	incq	%r9
	movl	%r9d, %ecx
	andl	$3, %ecx
	testq	%rcx, %rcx
	movl	$4, %ebx
	cmovneq	%rcx, %rbx
	subq	%rbx, %r9
	leaq	(%r9,%r9), %r15
	addq	$2, %r15
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	xorl	%eax, %eax
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [8,8,8,8]
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [3,3,3,3]
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm3
	movups	4(%rsi,%rax,8), %xmm4
	movups	12(%rsi,%rax,8), %xmm0
	movups	20(%rsi,%rax,8), %xmm5
	movups	28(%rsi,%rax,8), %xmm6
	shufps	$136, %xmm6, %xmm0              ## xmm0 = xmm0[0,2],xmm6[0,2]
	movaps	%xmm4, %xmm6
	shufps	$136, %xmm5, %xmm6              ## xmm6 = xmm6[0,2],xmm5[0,2]
	shufps	$221, %xmm5, %xmm4              ## xmm4 = xmm4[1,3],xmm5[1,3]
	movaps	%xmm4, %xmm5
	pslld	$2, %xmm5
	paddd	%xmm6, %xmm0
	paddd	%xmm5, %xmm0
	paddd	%xmm1, %xmm0
	psrad	$4, %xmm0
	paddd	%xmm4, %xmm0
	movdqa	%xmm0, %xmm4
	palignr	$12, %xmm3, %xmm4               ## xmm4 = xmm3[12,13,14,15],xmm4[0,1,2,3,4,5,6,7,8,9,10,11]
	paddd	%xmm0, %xmm4
	pmulld	%xmm2, %xmm4
	psrad	$1, %xmm4
	paddd	%xmm6, %xmm4
	movdqa	%xmm4, %xmm3
	punpckldq	%xmm0, %xmm3            ## xmm3 = xmm3[0],xmm0[0],xmm3[1],xmm0[1]
	punpckhdq	%xmm0, %xmm4            ## xmm4 = xmm4[2],xmm0[2],xmm4[3],xmm0[3]
	movdqu	%xmm4, 20(%rdi,%rax,8)
	movdqu	%xmm3, 4(%rdi,%rax,8)
	addq	$4, %rax
	cmpq	%rax, %r9
	jne	LBB0_11
## %bb.12:
	pextrd	$3, %xmm0, %eax
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%r15,4), %r9d
	leal	(,%r9,4), %ebx
	leaq	(,%r15,4), %rcx
	orq	$4, %rcx
	movl	(%rsi,%rcx), %ecx
	addl	-4(%rsi,%r15,4), %ebx
	addl	%ebx, %ecx
	addl	$8, %ecx
	sarl	$4, %ecx
	addl	%r9d, %ecx
	movl	%ecx, (%rdi,%r15,4)
	addl	%ecx, %eax
	leal	(%rax,%rax,2), %eax
	sarl	%eax
	addl	-4(%rsi,%r15,4), %eax
	movl	%eax, -4(%rdi,%r15,4)
	addq	$2, %r15
	movl	%ecx, %eax
	cmpq	%r8, %r15
	jb	LBB0_13
LBB0_14:
	testb	$1, %dl
	jne	LBB0_15
## %bb.16:
	movslq	%r15d, %rax
	leaq	-1(%rax), %r8
	movl	-8(%rdi,%rax,4), %ecx
	leal	(%rcx,%rcx,2), %ecx
	addl	-4(%rsi,%rax,4), %ecx
	jmp	LBB0_17
LBB0_15:
	movl	%r15d, %ecx
	movl	(%rsi,%rcx,4), %edx
	movslq	%r15d, %rbx
	leaq	-1(%rbx), %r8
	movl	-4(%rsi,%rbx,4), %eax
	leal	(%rax,%rdx,2), %eax
	addl	$4, %eax
	sarl	$3, %eax
	addl	%edx, %eax
	movl	%eax, (%rdi,%rcx,4)
	addl	-8(%rdi,%rbx,4), %eax
	leal	(%rax,%rax,2), %ecx
	sarl	%ecx
	addl	-4(%rsi,%rbx,4), %ecx
LBB0_17:
	movl	%ecx, (%rdi,%r8,4)
	popq	%rbx
	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	_ff_snow_horizontal_compose97i  ; -- Begin function ff_snow_horizontal_compose97i
	.p2align	2
_ff_snow_horizontal_compose97i:         ; @ff_snow_horizontal_compose97i
	.cfi_startproc
; %bb.0:
	add	w8, w2, #1
	asr	w9, w8, #1
	ldr	w11, [x0]
	ldr	w9, [x0, w9, sxtw #2]
	sbfx	x10, x8, #1, #31
	add	w8, w9, w9, lsl #1
	add	w8, w8, #2
	sub	w8, w11, w8, asr #2
	str	w8, [x1]
	cmp	w2, #4
	b.lt	LBB0_5
; %bb.1:
	lsr	w9, w2, #1
	sub	x11, x9, #1
	lsl	x12, x10, #2
	add	x13, x0, #4
	add	x14, x1, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x13]
	add	x16, x13, x12
	ldp	w17, w3, [x16, #-4]
	add	w17, w3, w17
	add	w17, w17, w17, lsl #1
	add	w17, w17, #4
	sub	w15, w15, w17, asr #3
	str	w15, [x14, #4]
	ldur	w16, [x16, #-4]
	ldur	w17, [x14, #-4]
	add	w15, w17, w15
	sub	w15, w16, w15
	str	w15, [x14], #8
	add	x13, x13, #4
	subs	x11, x11, #1
	b.ne	LBB0_2
; %bb.3:
	tbnz	w2, #0, LBB0_6
LBB0_4:
	add	w10, w9, w10
	sub	w10, w10, #1
	ldr	w10, [x0, w10, sxtw #2]
	lsl	w9, w9, #1
	sub	w11, w9, #2
	ldr	w11, [x1, w11, uxtw #2]
	sub	w10, w10, w11, lsl #1
	b	LBB0_7
LBB0_5:
	mov	w9, #1
	tbz	w2, #0, LBB0_4
LBB0_6:
	ldr	w11, [x0, w9, uxtw #2]
	add	w10, w9, w10
	sub	w10, w10, #1
	sbfiz	x10, x10, #2, #32
	ldr	w12, [x0, x10]
	add	w12, w12, w12, lsl #1
	add	w12, w12, #2
	sub	w11, w11, w12, asr #2
	lsl	w9, w9, #1
	str	w11, [x1, w9, uxtw #2]
	ldr	w10, [x0, x10]
	sub	w12, w9, #2
	ldr	w12, [x1, w12, uxtw #2]
	add	w11, w12, w11
	sub	w10, w10, w11
LBB0_7:
	sub	w9, w9, #1
	str	w10, [x1, w9, uxtw #2]
	ldr	w9, [x1, #4]
	add	w9, w9, w8, lsl #1
	add	w9, w9, #4
	add	w10, w8, w9, asr #3
	str	w10, [x0]
	cmp	w2, #4
	b.lt	LBB0_12
; %bb.8:
	sub	w8, w2, #1
	mov	w9, #4
	cmp	x8, #4
	csel	x9, x8, x9, hi
	sub	x9, x9, #3
	cmp	x9, #8
	b.lo	LBB0_11
; %bb.9:
	add	x11, x0, #4
	mov	w12, #4
	cmp	x8, #4
	csel	x12, x8, x12, hi
	sub	x12, x12, #3
	and	x12, x12, #0x3ffffffffffffffe
	lsl	x12, x12, #2
	add	x13, x12, x1
	add	x13, x13, #16
	cmp	x11, x13
	b.hs	LBB0_13
; %bb.10:
	add	x12, x12, x0
	add	x12, x12, #12
	add	x13, x1, #4
	cmp	x13, x12
	b.hs	LBB0_13
LBB0_11:
	mov	w9, #2
	b	LBB0_16
LBB0_12:
	mov	w9, #2
	b	LBB0_18
LBB0_13:
	lsr	x12, x9, #1
	add	x9, x12, #1
	ands	x13, x9, #0x3
	mov	w14, #4
	csel	x13, x14, x13, eq
	sub	x9, x9, x13
	lsl	x9, x9, #1
	dup.4s	v1, w10
	add	x9, x9, #2
	add	x10, x1, #12
	mvn	x12, x12
	add	x12, x12, x13
	movi.4s	v2, #8
	movi.4s	v3, #3
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov.16b	v4, v1
	sub	x13, x10, #8
	ld2.4s	{ v0, v1 }, [x13]
	ld2.4s	{ v5, v6 }, [x10], #32
	shl.4s	v7, v1, #2
	add.4s	v7, v0, v7
	add.4s	v5, v7, v5
	add.4s	v5, v5, v2
	ssra.4s	v1, v5, #4
	ext.16b	v4, v4, v1, #12
	add.4s	v4, v1, v4
	mul.4s	v4, v4, v3
	mov.16b	v5, v0
	ssra.4s	v5, v4, #1
	mov.16b	v6, v1
	st2.4s	{ v5, v6 }, [x11], #32
	adds	x12, x12, #4
	b.ne	LBB0_14
; %bb.15:
	mov.s	w10, v1[3]
LBB0_16:
	lsl	x12, x9, #2
	add	x11, x12, x1
	sub	x11, x11, #4
	add	x12, x0, x12
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldp	w14, w13, [x11]
	lsl	x15, x9, #2
	orr	x15, x15, #0x4
	ldr	w15, [x1, x15]
	add	w14, w14, w13, lsl #2
	add	w14, w14, w15
	add	w14, w14, #8
	add	w13, w13, w14, asr #4
	str	w13, [x12]
	ldr	w14, [x11], #8
	add	w10, w13, w10
	add	w10, w10, w10, lsl #1
	add	w10, w14, w10, asr #1
	add	x9, x9, #2
	stur	w10, [x12, #-4]
	add	x12, x12, #8
	mov	x10, x13
	cmp	x9, x8
	b.lo	LBB0_17
LBB0_18:
	tbnz	w2, #0, LBB0_20
; %bb.19:
	mov	x8, x9
	sxtw	x8, w8
	sub	x8, x8, #1
	ldr	w10, [x1, x8, lsl #2]
	add	x9, x0, w9, sxtw #2
	ldur	w9, [x9, #-8]
	add	w9, w9, w9, lsl #1
	add	w9, w9, w10
	str	w9, [x0, x8, lsl #2]
	ret
LBB0_20:
	mov	w8, w9
	lsl	x10, x8, #2
	ldr	w11, [x1, x10]
	mov	x8, x9
	sxtw	x8, w8
	sub	x8, x8, #1
	lsl	x12, x8, #2
	ldr	w13, [x1, x12]
	add	w13, w13, w11, lsl #1
	add	w13, w13, #4
	add	w11, w11, w13, asr #3
	str	w11, [x0, x10]
	ldr	w10, [x1, x12]
	add	x9, x0, w9, sxtw #2
	ldur	w9, [x9, #-8]
	add	w9, w11, w9
	add	w9, w9, w9, lsl #1
	add	w9, w10, w9, asr #1
	str	w9, [x0, x8, lsl #2]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
