	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_frame
_filter_frame:                          ## @filter_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rsi, -56(%rbp)
	movq	8(%rdi), %rcx
	movq	(%rcx), %rax
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %r14
	movq	(%rax), %rbx
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_av_frame_copy_props
	cmpl	$0, (%r14)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jle	LBB0_5
## %bb.3:
	leaq	4(%r14), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	8(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	testq	%r12, %r12
	sete	%al
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	cmoveq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	cmoveq	-80(%rbp), %rdx                 ## 8-byte Folded Reload
	movl	(%rcx), %esi
	movl	(%rdx), %edx
	movl	12(%r14,%rax,4), %ecx
	movl	20(%r14,%rax,4), %r8d
	movq	(%r15), %rax
	movq	8(%r15), %rbx
	movl	(%rbx,%r12,4), %r9d
	movl	(%rax,%r12,4), %r10d
	movq	(%r13), %rax
	movq	8(%r13), %rbx
	movl	(%rbx,%r12,4), %ebx
	movl	(%rax,%r12,4), %eax
	subq	$8, %rsp
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	movq	%rdi, %rbx
	callq	_nlmeans_plane
	movq	%rbx, %rdi
	addq	$32, %rsp
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jl	LBB0_4
LBB0_5:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ff_filter_frame
	jmp	LBB0_6
LBB0_1:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_6:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_frame
_filter_frame:                          ; @filter_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x1
	mov	x21, x0
	str	x1, [sp, #24]
	ldr	x22, [x0, #8]
	ldp	x8, x24, [x22]
	ldr	x19, [x8]
	ldp	w1, w2, [x19]
	mov	x0, x19
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_5
; %bb.1:
	mov	x23, x0
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	mov	x1, x20
	bl	_av_frame_copy_props
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x25, #0
	add	x26, x24, #4
	add	x27, x24, #8
	add	x28, x21, #4
	mov	w19, #24
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x25, #0
	csel	x8, x21, x26, eq
	ldr	w1, [x8]
	csel	x8, x28, x27, eq
	ldr	w2, [x8]
	mov	w8, #12
	mov	w9, #16
	csel	x8, x9, x8, eq
	ldr	w3, [x24, x8]
	mov	w8, #20
	csel	x8, x19, x8, eq
	ldr	w4, [x24, x8]
	lsl	x8, x25, #2
	ldp	x10, x9, [x23]
	ldr	w5, [x9, x8]
	ldr	w6, [x10, x8]
	ldp	x10, x9, [x20]
	ldr	w7, [x9, x8]
	ldr	w8, [x10, x8]
	str	w8, [sp]
	mov	x0, x22
	bl	_nlmeans_plane
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.lt	LBB0_3
LBB0_4:
	add	x0, sp, #24
	bl	_av_frame_free
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x23
	bl	_ff_filter_frame
	b	LBB0_6
LBB0_5:
	add	x0, sp, #24
	bl	_av_frame_free
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
