	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function amplify_frame
LCPI0_0:
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_amplify_frame:                         ## @amplify_frame
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	(%rdi), %r14
	movq	(%rsi), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	8(%rsi), %r9
	movslq	(%r14), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movl	4(%r14), %r10d
	movss	8(%r14), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -108(%rbp)               ## 4-byte Spill
	movss	12(%r14), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -104(%rbp)               ## 4-byte Spill
	movss	16(%r14), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -100(%rbp)               ## 4-byte Spill
	movl	20(%r14), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movl	24(%r14), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	28(%r14), %ecx
	movl	32(%r14), %eax
	cmpl	$9, %ecx
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r10, -152(%rbp)                ## 8-byte Spill
	jge	LBB0_1
## %bb.10:
	testl	%eax, %eax
	jle	LBB0_48
## %bb.11:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	incl	%eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r10d, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	%r10d, %r11d
	andl	$-2, %r11d
	xorl	%r12d, %r12d
	movq	%r11, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	(%r9,%rax,8), %rax
	movq	(%rax), %r8
	movq	8(%rax), %rax
	movl	(%rax,%r12,4), %ecx
	movl	%ecx, %eax
	imull	%r14d, %eax
	movslq	%eax, %rdx
	shlq	$2, %rdx
	addq	(%r8,%r12,8), %rdx
	movq	56(%r15), %rax
	movl	(%rax,%r12,4), %r8d
	subl	%r14d, %ebx
	movl	%ebx, %r9d
	callq	_av_image_copy_plane
	movq	-72(%rbp), %r11                 ## 8-byte Reload
	movq	-152(%rbp), %r10                ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
LBB0_33:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r12
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movslq	32(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_48
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##       Child Loop BB0_17 Depth 3
                                        ##         Child Loop BB0_20 Depth 4
	movq	40(%r14), %rax
	movl	(%rax,%r12,4), %ecx
	movl	%ecx, %eax
	imull	-120(%rbp), %eax                ## 4-byte Folded Reload
	cltd
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	idivl	%esi
	movq	%r14, %r15
	movl	%eax, %r14d
	imull	-60(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %ebx
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	(%rcx,%r12,4), %esi
	movl	%esi, %edx
	imull	%r14d, %edx
	movslq	%edx, %rdi
	shlq	$2, %rdi
	movl	48(%r15), %edx
	addq	(%rax,%r12,8), %rdi
	btl	%r12d, %edx
	jae	LBB0_49
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	%r14d, %ebx
	jle	LBB0_33
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	56(%rax), %r8
	movl	%ebx, -136(%rbp)                ## 4-byte Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rcx
	movl	-136(%rbp), %ebx                ## 4-byte Reload
LBB0_32:                                ##   in Loop: Header=BB0_15 Depth=2
	movslq	(%rcx,%r12,4), %rax
	leaq	(%rdi,%rax,4), %rdi
	incl	%r14d
	cmpl	%ebx, %r14d
	je	LBB0_33
LBB0_15:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_17 Depth 3
                                        ##         Child Loop BB0_20 Depth 4
	cmpl	$0, (%r8,%r12,4)
	jle	LBB0_32
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	xorl	%r15d, %r15d
	movq	%rdi, %r13
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_17 Depth=3
	movq	%r13, %rdi
	movl	%ebx, (%r13,%r15,4)
LBB0_30:                                ##   in Loop: Header=BB0_17 Depth=3
	incq	%r15
	movslq	(%r8,%r12,4), %rax
	cmpq	%rax, %r15
	jge	LBB0_31
LBB0_17:                                ##   Parent Loop BB0_12 Depth=1
                                        ##     Parent Loop BB0_15 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_20 Depth 4
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	(%r9,%rax,8), %rcx
	movq	8(%rcx), %rdx
	movl	(%rdx,%r12,4), %edx
	imull	%r14d, %edx
	addl	%r15d, %edx
	testl	%r10d, %r10d
	jle	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=3
	xorl	%edi, %edi
	xorl	%esi, %esi
	cmpl	$1, %r10d
	je	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_12 Depth=1
                                        ##     Parent Loop BB0_15 Depth=2
                                        ##       Parent Loop BB0_17 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	(%r9,%rdi,8), %rbx
	movq	(%rbx), %rax
	movq	8(%rbx), %rbx
	movq	(%rax,%r12,8), %rax
	movl	(%rbx,%r12,4), %ebx
	imull	%r14d, %ebx
	addl	%r15d, %ebx
	movslq	%ebx, %rbx
	addl	(%rax,%rbx,4), %esi
	movq	8(%r9,%rdi,8), %rax
	movq	(%rax), %rbx
	movq	8(%rax), %rax
	movq	(%rbx,%r12,8), %rbx
	movl	(%rax,%r12,4), %eax
	imull	%r14d, %eax
	addl	%r15d, %eax
	cltq
	addl	(%rbx,%rax,4), %esi
	addq	$2, %rdi
	cmpq	%rdi, %r11
	jne	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=3
	testb	$1, %r10b
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=3
	movq	(%r9,%rdi,8), %rax
	movq	(%rax), %rdi
	movq	8(%rax), %rax
	movq	(%rdi,%r12,8), %rdi
	movl	(%rax,%r12,4), %eax
	imull	%r14d, %eax
	addl	%r15d, %eax
	cltq
	addl	(%rdi,%rax,4), %esi
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_17 Depth=3
	xorl	%esi, %esi
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=3
	movq	(%rcx), %rax
	movq	(%rax,%r12,8), %rax
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %ebx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%esi, %xmm0
	divss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	xorps	%xmm2, %xmm2
	cvtsi2ss	%ebx, %xmm2
	subss	%xmm0, %xmm2
	movaps	%xmm2, %xmm0
	andps	LCPI0_0(%rip), %xmm0
	movss	-108(%rbp), %xmm1               ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_29
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=3
	ucomiss	-104(%rbp), %xmm0               ## 4-byte Folded Reload
	jbe	LBB0_29
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=3
	movss	-100(%rbp), %xmm0               ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm0
	movaps	%xmm2, -176(%rbp)               ## 16-byte Spill
	callq	_FFABS
	xorps	%xmm0, %xmm0
	ucomiss	-176(%rbp), %xmm0               ## 16-byte Folded Reload
	jbe	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_17 Depth=3
	movl	%eax, %edi
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	callq	_FFMIN
	movl	%eax, %edi
	negl	%edi
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_17 Depth=3
	movl	%eax, %edi
	movl	-92(%rbp), %esi                 ## 4-byte Reload
	callq	_FFMIN
	movl	%eax, %edi
LBB0_28:                                ##   in Loop: Header=BB0_17 Depth=3
	addl	%ebx, %edi
	callq	_av_clip_uint8
	movq	%r13, %rdi
	movl	%eax, (%r13,%r15,4)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	56(%rax), %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	-152(%rbp), %r10                ## 8-byte Reload
	movq	-72(%rbp), %r11                 ## 8-byte Reload
	jmp	LBB0_30
LBB0_1:
	movl	%ecx, -88(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_48
## %bb.2:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r10d, %xmm0
	movss	%xmm0, -60(%rbp)                ## 4-byte Spill
	movq	-120(%rbp), %rax                ## 8-byte Reload
	incl	%eax
	movl	%eax, -156(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	(%r9,%rax,8), %rax
	movq	(%rax), %rdi
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %ecx
	movl	%ecx, %eax
	imull	%r15d, %eax
	movslq	%eax, %rdx
	shlq	$2, %rdx
	addq	(%rdi,%rbx,8), %rdx
	movq	56(%r14), %rax
	movl	(%rax,%rbx,4), %r8d
	subl	%r15d, %r10d
	movq	%r12, %rdi
	movl	%r10d, %r9d
	callq	_av_image_copy_plane
	movq	-56(%rbp), %r9                  ## 8-byte Reload
LBB0_47:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	32(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_48
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##         Child Loop BB0_36 Depth 4
	movq	40(%r14), %rax
	movl	(%rax,%rbx,4), %ecx
	movl	%ecx, %eax
	imull	-120(%rbp), %eax                ## 4-byte Folded Reload
	cltd
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	idivl	%esi
	movl	%eax, %r15d
	imull	-156(%rbp), %ecx                ## 4-byte Folded Reload
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %r10d
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movl	%esi, %edx
	imull	%r15d, %edx
	movslq	%edx, %r12
	shlq	$2, %r12
	movl	48(%r14), %edx
	addq	(%rcx,%rbx,8), %r12
	btl	%ebx, %edx
	jae	LBB0_34
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, %r10d
	jle	LBB0_47
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	56(%r14), %rcx
	movl	%r10d, -160(%rbp)               ## 4-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movl	-160(%rbp), %r10d               ## 4-byte Reload
LBB0_46:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	(%rax,%rbx,4), %edx
	movl	%edx, %esi
	shrl	$31, %esi
	addl	%edx, %esi
	sarl	%esi
	movslq	%esi, %rdx
	leaq	(%r12,%rdx,4), %r12
	incl	%r15d
	cmpl	%r10d, %r15d
	je	LBB0_47
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##         Child Loop BB0_36 Depth 4
	cmpl	$2, (%rcx,%rbx,4)
	jl	LBB0_46
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	xorl	%r13d, %r13d
	movl	%r15d, -72(%rbp)                ## 4-byte Spill
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_8 Depth=3
	movl	%eax, %edi
	movl	-92(%rbp), %esi                 ## 4-byte Reload
	callq	_FFMIN
	movl	%eax, %edi
LBB0_43:                                ##   in Loop: Header=BB0_8 Depth=3
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, %edi
	callq	_av_clip_uintp2_c
	movq	-56(%rbp), %r9                  ## 8-byte Reload
LBB0_44:                                ##   in Loop: Header=BB0_8 Depth=3
	movl	%eax, (%r12,%r13,4)
	incq	%r13
	movq	56(%r14), %rcx
	movl	(%rcx,%rbx,4), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movslq	%edx, %rax
	cmpq	%rax, %r13
	jge	LBB0_45
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_36 Depth 4
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	(%r9,%rax,8), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movslq	(%rax,%rbx,4), %rax
	movslq	%r15d, %r14
	imulq	%r14, %rax
	shlq	$2, %rax
	addq	(%rcx,%rbx,8), %rax
	leaq	(%rax,%r13,8), %rdi
	callq	_AV_RN16
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, -152(%rbp)                  ## 4-byte Folded Reload
	movq	%r13, -176(%rbp)                ## 8-byte Spill
	jle	LBB0_9
## %bb.35:                              ##   in Loop: Header=BB0_8 Depth=3
	movq	%r13, %r15
	addq	%r13, %r15
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	.p2align	4, 0x90
LBB0_36:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ##       Parent Loop BB0_8 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	(%r9,%r13,8), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movslq	(%rax,%rbx,4), %rax
	imulq	%r14, %rax
	leaq	(,%r15,4), %rdx
	addq	(%rcx,%rbx,8), %rdx
	leaq	(%rdx,%rax,4), %rdi
	callq	_AV_RN16
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	addl	%eax, %r12d
	incq	%r13
	cmpq	%r13, -152(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_36
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=3
	xorl	%r12d, %r12d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
LBB0_37:                                ##   in Loop: Header=BB0_8 Depth=3
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r12d, %xmm0
	divss	-60(%rbp), %xmm0                ## 4-byte Folded Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	xorps	%xmm2, %xmm2
	cvtsi2ss	%eax, %xmm2
	subss	%xmm0, %xmm2
	movaps	%xmm2, %xmm0
	andps	LCPI0_0(%rip), %xmm0
	movss	-108(%rbp), %xmm1               ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jbe	LBB0_38
## %bb.39:                              ##   in Loop: Header=BB0_8 Depth=3
	ucomiss	-104(%rbp), %xmm0               ## 4-byte Folded Reload
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movq	-176(%rbp), %r13                ## 8-byte Reload
	jbe	LBB0_44
## %bb.40:                              ##   in Loop: Header=BB0_8 Depth=3
	movss	-100(%rbp), %xmm0               ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm0
	movaps	%xmm2, -192(%rbp)               ## 16-byte Spill
	callq	_FFABS
	xorps	%xmm0, %xmm0
	ucomiss	-192(%rbp), %xmm0               ## 16-byte Folded Reload
	jbe	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_8 Depth=3
	movl	%eax, %edi
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	callq	_FFMIN
	movl	%eax, %edi
	negl	%edi
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_8 Depth=3
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movq	-176(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_44
LBB0_48:
	xorl	%eax, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_amplify_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amplify_frame
_amplify_frame:                         ; @amplify_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	d13, d12, [sp, #64]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #80]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #96]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	stp	w3, w2, [sp, #4]                ; 8-byte Folded Spill
	ldr	x19, [x0]
	ldp	x8, x27, [x1]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldp	w8, w20, [x19]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	ldp	s8, s9, [x19, #8]
	ldr	s10, [x19, #16]
	ldr	w9, [x19, #20]
	ldr	w8, [x19, #24]
	stp	w8, w9, [sp, #32]               ; 8-byte Folded Spill
	ldp	w9, w8, [x19, #28]
	cmp	w9, #9
	b.ge	LBB0_28
; %bb.1:
	cmp	w8, #1
	b.lt	LBB0_49
; %bb.2:
	mov	x24, #0
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	scvtf	s11, w20
	and	x25, x20, #0xfffffffe
	add	x8, x27, #8
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x27, x8, lsl #3]
	ldp	x9, x8, [x8]
	ldr	x9, [x9, x24, lsl #3]
	ldr	w3, [x8, x21]
	mul	w8, w3, w22
	add	x2, x9, w8, sxtw #2
	ldr	x8, [x19, #56]
	ldr	w4, [x8, x21]
	sub	w5, w11, w22
	mov	x0, x23
	bl	_av_image_copy_plane
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19, #32]
	cmp	x24, x8
	b.ge	LBB0_49
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
                                        ;         Child Loop BB0_19 Depth 4
                                        ;         Child Loop BB0_22 Depth 4
	ldr	x8, [x19, #40]
	lsl	x21, x24, #2
	ldr	w8, [x8, x21]
	ldp	w10, w9, [sp, #4]               ; 8-byte Folded Reload
	mul	w9, w8, w9
	sdiv	w22, w9, w10
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	mul	w8, w8, w9
	sdiv	w11, w8, w10
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldp	x8, x9, [x9]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w1, [x9, x21]
	mul	w10, w1, w22
	add	x23, x8, w10, sxtw #2
	ldr	w8, [x19, #48]
	lsr	w8, w8, w24
	tbz	w8, #0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w11, w22
	b.le	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #56]
	str	w11, [sp, #40]                  ; 4-byte Folded Spill
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x9, [x9, #8]
	ldr	w11, [sp, #40]                  ; 4-byte Folded Reload
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldrsw	x10, [x9, x24, lsl #2]
	add	x23, x23, x10, lsl #2
	add	w22, w22, #1
	cmp	w22, w11
	b.eq	LBB0_4
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
                                        ;         Child Loop BB0_19 Depth 4
                                        ;         Child Loop BB0_22 Depth 4
	ldr	w10, [x8, x24, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x28, #0
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=3
	str	w26, [x23, x28, lsl #2]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=3
	add	x28, x28, #1
	ldrsw	x9, [x8, x24, lsl #2]
	cmp	x28, x9
	b.ge	LBB0_8
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_19 Depth 4
                                        ;         Child Loop BB0_22 Depth 4
	cmp	w20, #1
	b.lt	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=3
	cmp	w20, #1
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x11, #0
	mov	w9, #0
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=3
	mov	w9, #0
	b	LBB0_23
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=3
	mov	w9, #0
	mov	w10, #0
	mov	x11, x25
	ldr	x12, [sp, #48]                  ; 8-byte Folded Reload
LBB0_19:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ;       Parent Loop BB0_14 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldp	x13, x14, [x12, #-8]
	lsl	x15, x24, #3
	ldp	x16, x13, [x13]
	ldr	x16, [x16, x15]
	ldp	x17, x14, [x14]
	ldr	x15, [x17, x15]
	ldr	w13, [x13, x21]
	ldr	w14, [x14, x21]
	madd	w13, w13, w22, w28
	madd	w14, w14, w22, w28
	ldr	w13, [x16, w13, sxtw #2]
	ldr	w14, [x15, w14, sxtw #2]
	add	w9, w13, w9
	add	w10, w14, w10
	add	x12, x12, #16
	subs	x11, x11, #2
	b.ne	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=3
	add	w9, w10, w9
	mov	x11, x25
	cmp	x25, x20
	b.eq	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=3
	add	x10, x27, x11, lsl #3
	sub	x11, x20, x11
LBB0_22:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ;       Parent Loop BB0_14 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x12, [x10], #8
	ldp	x13, x12, [x12]
	ldr	x13, [x13, x24, lsl #3]
	ldr	w12, [x12, x24, lsl #2]
	madd	w12, w12, w22, w28
	ldr	w12, [x13, w12, sxtw #2]
	add	w9, w12, w9
	subs	x11, x11, #1
	b.ne	LBB0_22
LBB0_23:                                ;   in Loop: Header=BB0_14 Depth=3
	ldr	x10, [sp, #56]                  ; 8-byte Folded Reload
	ldr	x10, [x27, x10, lsl #3]
	ldp	x11, x10, [x10]
	ldr	x11, [x11, x24, lsl #3]
	ldr	w10, [x10, x24, lsl #2]
	madd	w10, w10, w22, w28
	ldr	w26, [x11, w10, sxtw #2]
	scvtf	s0, w9
	fdiv	s0, s0, s11
	scvtf	s1, w26
	fabd	s2, s1, s0
	fcmp	s2, s8
	fccmp	s2, s9, #4, mi
	b.le	LBB0_12
; %bb.24:                               ;   in Loop: Header=BB0_14 Depth=3
	fsub	s12, s1, s0
	fmul	s0, s10, s12
	bl	_FFABS
	fcmp	s12, #0.0
	b.pl	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_14 Depth=3
	ldr	w1, [sp, #36]                   ; 4-byte Folded Reload
	bl	_FFMIN
	neg	w0, w0
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_14 Depth=3
	ldr	w1, [sp, #32]                   ; 4-byte Folded Reload
	bl	_FFMIN
LBB0_27:                                ;   in Loop: Header=BB0_14 Depth=3
	add	w0, w0, w26
	bl	_av_clip_uint8
	str	w0, [x23, x28, lsl #2]
	ldr	x8, [x19, #56]
	b	LBB0_13
LBB0_28:
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	cmp	w8, #1
	b.lt	LBB0_49
; %bb.29:
	mov	x21, #0
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp]                        ; 4-byte Folded Spill
	scvtf	s11, w20
	stp	x27, x19, [sp, #40]             ; 16-byte Folded Spill
	b	LBB0_32
LBB0_30:                                ;   in Loop: Header=BB0_32 Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x27, x8, lsl #3]
	ldp	x10, x8, [x8]
	ldr	x10, [x10, x21, lsl #3]
	ldr	w3, [x8, x9]
	mul	w8, w3, w28
	add	x2, x10, w8, sxtw #2
	ldr	x8, [x19, #56]
	ldr	w4, [x8, x9]
	sub	w5, w12, w28
	mov	x0, x24
	bl	_av_image_copy_plane
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #32]
	cmp	x21, x8
	b.ge	LBB0_49
LBB0_32:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_37 Depth 2
                                        ;       Child Loop BB0_42 Depth 3
                                        ;         Child Loop BB0_44 Depth 4
	ldr	x8, [x19, #40]
	lsl	x9, x21, #2
	ldr	w8, [x8, x9]
	ldp	w11, w10, [sp, #4]              ; 8-byte Folded Reload
	mul	w10, w8, w10
	sdiv	w28, w10, w11
	ldr	w10, [sp]                       ; 4-byte Folded Reload
	mul	w8, w8, w10
	sdiv	w12, w8, w11
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldp	x10, x8, [x8]
	ldr	x10, [x10, x21, lsl #3]
	ldr	w1, [x8, x9]
	mul	w11, w1, w28
	add	x24, x10, w11, sxtw #2
	ldr	w10, [x19, #48]
	lsr	w10, w10, w21
	tbz	w10, #0, LBB0_30
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	cmp	w12, w28
	b.le	LBB0_31
; %bb.34:                               ;   in Loop: Header=BB0_32 Depth=1
	ldr	x9, [x19, #56]
	str	w12, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_37
LBB0_35:                                ;   in Loop: Header=BB0_37 Depth=2
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	w12, [sp, #12]                  ; 4-byte Folded Reload
LBB0_36:                                ;   in Loop: Header=BB0_37 Depth=2
	ldr	w10, [x8, x21, lsl #2]
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	add	x24, x24, w10, sxtw #2
	add	w28, w28, #1
	cmp	w28, w12
	b.eq	LBB0_31
LBB0_37:                                ;   Parent Loop BB0_32 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_42 Depth 3
                                        ;         Child Loop BB0_44 Depth 4
	ldr	w10, [x9, x21, lsl #2]
	cmp	w10, #2
	b.lt	LBB0_36
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=2
	mov	x22, #0
	b	LBB0_42
LBB0_39:                                ;   in Loop: Header=BB0_42 Depth=3
	ldr	w1, [sp, #32]                   ; 4-byte Folded Reload
	bl	_FFMIN
LBB0_40:                                ;   in Loop: Header=BB0_42 Depth=3
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	add	w0, w0, w25
	bl	_av_clip_uintp2_c
	mov	x25, x0
LBB0_41:                                ;   in Loop: Header=BB0_42 Depth=3
	str	w25, [x24, x22, lsl #2]
	add	x22, x22, #1
	ldr	x9, [x19, #56]
	ldr	w8, [x9, x21, lsl #2]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_35
LBB0_42:                                ;   Parent Loop BB0_32 Depth=1
                                        ;     Parent Loop BB0_37 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_44 Depth 4
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x27, x8, lsl #3]
	ldp	x9, x8, [x8]
	ldr	x9, [x9, x21, lsl #3]
	ldr	w8, [x8, x21, lsl #2]
	mul	w8, w8, w28
	add	x8, x9, w8, sxtw #2
	add	x0, x8, x22, lsl #3
	bl	_AV_RN16
	mov	x25, x0
	cmp	w20, #1
	b.lt	LBB0_45
; %bb.43:                               ;   in Loop: Header=BB0_42 Depth=3
	mov	w26, #0
	lsl	x23, x22, #1
	mov	x19, x20
LBB0_44:                                ;   Parent Loop BB0_32 Depth=1
                                        ;     Parent Loop BB0_37 Depth=2
                                        ;       Parent Loop BB0_42 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x8, [x27], #8
	ldp	x9, x8, [x8]
	ldr	x9, [x9, x21, lsl #3]
	ldr	w8, [x8, x21, lsl #2]
	mul	w8, w8, w28
	add	x9, x9, x23, lsl #2
	add	x0, x9, w8, sxtw #2
	bl	_AV_RN16
	add	w26, w0, w26
	subs	x19, x19, #1
	b.ne	LBB0_44
	b	LBB0_46
LBB0_45:                                ;   in Loop: Header=BB0_42 Depth=3
	mov	w26, #0
LBB0_46:                                ;   in Loop: Header=BB0_42 Depth=3
	scvtf	s0, w26
	fdiv	s0, s0, s11
	scvtf	s1, w25
	fabd	s2, s1, s0
	fcmp	s2, s8
	fccmp	s2, s9, #4, mi
	ldp	x27, x19, [sp, #40]             ; 16-byte Folded Reload
	b.le	LBB0_41
; %bb.47:                               ;   in Loop: Header=BB0_42 Depth=3
	fsub	s12, s1, s0
	fmul	s0, s10, s12
	bl	_FFABS
	fcmp	s12, #0.0
	b.pl	LBB0_39
; %bb.48:                               ;   in Loop: Header=BB0_42 Depth=3
	ldr	w1, [sp, #36]                   ; 4-byte Folded Reload
	bl	_FFMIN
	neg	w0, w0
	b	LBB0_40
LBB0_49:
	mov	w0, #0
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #96]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #80]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_amplify_frame
.subsections_via_symbols
