	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function noise
_noise:                                 ## @noise
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rsi, %rax
	movq	24(%rbp), %r8
	movl	16(%rbp), %r10d
	movslq	32(%rbp), %r14
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	16(%r8), %r8
	shlq	$5, %r14
	movq	24(%r8,%r14), %r11
	movq	%r11, -80(%rbp)                 ## 8-byte Spill
	testq	%r11, %r11
	je	LBB0_7
## %bb.1:
	cmpl	%r9d, %r10d
	jle	LBB0_12
## %bb.2:
	movl	(%r8,%r14), %esi
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	leaq	(%r8,%r14), %r15
	addq	$8, %r15
	movslq	%edx, %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movslq	%ecx, %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	%r10d, -68(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(%rdi,%rax,4), %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	incl	%r9d
	movl	-68(%rbp), %r10d                ## 4-byte Reload
	cmpl	%r10d, %r9d
	je	LBB0_12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MAX_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	-1(%rsi), %eax
	andl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movslq	%eax, %r12
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movslq	%r13d, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	movl	%r14d, %r8d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	_MAX_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%esi, %r13d
	cmpl	%ebx, %r13d
	jge	LBB0_11
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	subl	%r13d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FFMIN
	movq	(%r15), %rcx
	movslq	(%rcx,%r12,4), %r14
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movq	_NOISE_AVERAGED@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movslq	%r13d, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rsi
	movq	8(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	movl	%eax, %edx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14,4), %rax
	movq	8(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	andl	$3, %r14d
	movq	%rax, (%rcx,%r14,8)
	jmp	LBB0_10
LBB0_7:
	cmpq	%rax, %rdi
	je	LBB0_12
## %bb.8:
	subl	%r9d, %r10d
	movl	%edx, %esi
	movq	%rax, %rdx
	movl	%ebx, %r8d
	movl	%r10d, %r9d
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_image_copy_plane            ## TAILCALL
LBB0_12:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RES,4,2                    ## @MAX_RES
	.comm	_NOISE_AVERAGED,4,2             ## @NOISE_AVERAGED
	.no_dead_strip	_noise
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function noise
_noise:                                 ; @noise
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x4
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x22, x1
	mov	x24, x0
	ldrsw	x8, [x29, #16]
	ldr	x9, [x7, #16]
	add	x10, x9, x8, lsl #5
	ldr	x11, [x10, #24]
	stp	x11, x7, [sp, #32]              ; 16-byte Folded Spill
	cbz	x11, LBB0_10
; %bb.1:
	cmp	w6, w5
	b.le	LBB0_12
; %bb.2:
	ldr	w27, [x10]
	add	x8, x9, x8, lsl #5
	add	x28, x8, #8
	add	x20, x8, #16
	sxtw	x9, w2
	sxtw	x8, w3
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	str	w6, [sp, #24]                   ; 4-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x24, x24, x8, lsl #2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x22, x22, x8, lsl #2
	ldp	w6, w5, [sp, #24]               ; 8-byte Folded Reload
	add	w5, w5, #1
	cmp	w5, w6
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	str	w5, [sp, #28]                   ; 4-byte Folded Spill
	cmp	w19, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #0
Lloh0:
	adrp	x8, _MAX_RES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_RES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	w8, w1, #1
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	and	w8, w8, w9
	sxtw	x23, w8
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldp	x2, x8, [sp, #32]               ; 16-byte Folded Reload
	ldr	x8, [x8]
	mov	x9, x21
	sbfiz	x9, x9, #2, #32
	add	x0, x24, x9
	add	x1, x22, x9
	mov	x3, x4
	mov	x4, x26
	blr	x8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
Lloh3:
	adrp	x8, _MAX_RES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_RES@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	w21, w1, w21
	cmp	w21, w19
	b.ge	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w0, w19, w21
	bl	_FFMIN
	mov	x4, x0
	ldr	x8, [x28]
	ldrsw	x26, [x8, x23, lsl #2]
Lloh6:
	adrp	x8, _NOISE_AVERAGED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NOISE_AVERAGED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w27
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	sbfiz	x9, x21, #2, #32
	add	x0, x24, x9
	add	x1, x22, x9
	ldr	x9, [x20]
	lsl	x25, x23, #3
	ldr	x3, [x9, x25]
	mov	x2, x4
	blr	x8
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x8, x8, x26, lsl #2
	ldr	x9, [x20]
	ldr	x9, [x9, x25]
	and	w10, w26, #0x3
	str	x8, [x9, w10, uxtw #3]
	b	LBB0_7
LBB0_10:
	cmp	x24, x22
	b.eq	LBB0_12
; %bb.11:
	sub	w5, w6, w5
	mov	x0, x24
	mov	x1, x2
	mov	x2, x22
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_av_image_copy_plane
LBB0_12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RES,4,2                    ; @MAX_RES
	.comm	_NOISE_AVERAGED,4,2             ; @NOISE_AVERAGED
	.no_dead_strip	_noise
.subsections_via_symbols
