	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, -64(%rbp)
	movq	8(%rdi), %r12
	movq	8(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rax
	movq	(%rax), %r14
	movq	%rsi, %rdi
	callq	_av_frame_is_writable
	movq	%rbx, %r15
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	%r14, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_av_frame_copy_props
LBB0_4:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	_MAX_RES@GOTPCREL(%rip), %r12
	movq	_MAX_SHIFT@GOTPCREL(%rip), %r13
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	cmpq	$4, %r15
	je	LBB0_13
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	8(%rsi), %rax
	movq	%r15, %rcx
	shlq	$5, %rcx
	cmpl	$0, (%rax,%rcx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_NOISE_TEMPORAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%rax,%rcx)
	je	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 24(%rax,%rcx)
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rax,%rcx), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r12)
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rax,%rcx), %rbx
	addq	$16, %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_av_lfg_get
	movl	(%r13), %ecx
	decl	%ecx
	andl	%eax, %ecx
	movq	-8(%rbx), %rax
	movl	%ecx, (%rax,%r14,4)
	incq	%r14
	movslq	(%r12), %rax
	cmpq	%rax, %r14
	jl	LBB0_10
	jmp	LBB0_11
LBB0_13:
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, -104(%rbp)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, -112(%rbp)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_filter_slice@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%rsi), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_ff_filter_get_nb_threads
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_FFMIN
	leaq	-112(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
	xorl	%eax, %eax
	callq	_emms_c
	cmpq	%r13, %rbx
	je	LBB0_15
## %bb.14:
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
LBB0_15:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ff_filter_frame
LBB0_16:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NOISE_TEMPORAL,4,2             ## @NOISE_TEMPORAL
	.comm	_MAX_RES,4,2                    ## @MAX_RES
	.comm	_MAX_SHIFT,4,2                  ## @MAX_SHIFT
	.comm	_filter_slice,4,2               ## @filter_slice
	.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
	str	x1, [sp, #24]
	ldr	x22, [x0, #8]
	ldp	x24, x8, [x22, #8]
	ldr	x19, [x8]
	mov	x0, x1
	bl	_av_frame_is_writable
	mov	x21, x20
	cbnz	x0, LBB0_3
; %bb.1:
	ldp	w2, w1, [x19]
	mov	x0, x19
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_38
; %bb.2:
	mov	x21, x0
	mov	x1, x20
	bl	_av_frame_copy_props
LBB0_3:
	ldr	x25, [x24, #8]
	ldr	w8, [x25]
Lloh0:
	adrp	x10, _NOISE_TEMPORAL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NOISE_TEMPORAL@GOTPAGEOFF]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	w8, [x25, #4]
	ldr	w9, [x10]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_5:
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_11
; %bb.6:
Lloh2:
	adrp	x27, _MAX_RES@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MAX_RES@GOTPAGEOFF]
	ldr	w9, [x27]
	mov	x8, x25
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x28, #0
	add	x23, x25, #16
Lloh4:
	adrp	x26, _MAX_SHIFT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _MAX_SHIFT@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_av_lfg_get
	ldr	w8, [x26]
	sub	w8, w8, #1
	and	w8, w8, w0
	ldr	x9, [x25, #8]
	str	w8, [x9, x28, lsl #2]
	add	x28, x28, #1
	ldrsw	x8, [x27]
	cmp	x28, x8
	b.lt	LBB0_8
; %bb.9:
	ldr	x8, [x24, #8]
Lloh6:
	adrp	x10, _NOISE_TEMPORAL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NOISE_TEMPORAL@GOTPAGEOFF]
LBB0_10:
	mov	w9, #1
	str	w9, [x25]
	mov	x25, x8
LBB0_11:
	ldr	w8, [x25, #32]
	cbz	w8, LBB0_13
; %bb.12:
	ldr	w8, [x25, #36]
	ldr	w9, [x10]
	tst	w9, w8
	b.eq	LBB0_19
LBB0_13:
	ldr	x8, [x25, #56]
	cbz	x8, LBB0_19
; %bb.14:
Lloh8:
	adrp	x27, _MAX_RES@GOTPAGE
Lloh9:
	ldr	x27, [x27, _MAX_RES@GOTPAGEOFF]
	ldr	w9, [x27]
	mov	x8, x25
	cmp	w9, #1
	b.lt	LBB0_18
; %bb.15:
	str	x19, [sp]                       ; 8-byte Folded Spill
	mov	x19, x10
	mov	x28, #0
	add	x23, x25, #48
Lloh10:
	adrp	x26, _MAX_SHIFT@GOTPAGE
Lloh11:
	ldr	x26, [x26, _MAX_SHIFT@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_av_lfg_get
	ldr	w8, [x26]
	sub	w8, w8, #1
	and	w8, w8, w0
	ldr	x9, [x25, #40]
	str	w8, [x9, x28, lsl #2]
	add	x28, x28, #1
	ldrsw	x8, [x27]
	cmp	x28, x8
	b.lt	LBB0_16
; %bb.17:
	ldr	x8, [x24, #8]
	mov	x10, x19
	ldr	x19, [sp]                       ; 8-byte Folded Reload
LBB0_18:
	mov	w9, #1
	str	w9, [x25, #32]
	mov	x25, x8
LBB0_19:
	ldr	w8, [x25, #64]
	cbz	w8, LBB0_21
; %bb.20:
	ldr	w8, [x25, #68]
	ldr	w9, [x10]
	tst	w9, w8
	b.eq	LBB0_27
LBB0_21:
	ldr	x8, [x25, #88]
	cbz	x8, LBB0_27
; %bb.22:
Lloh12:
	adrp	x27, _MAX_RES@GOTPAGE
Lloh13:
	ldr	x27, [x27, _MAX_RES@GOTPAGEOFF]
	ldr	w9, [x27]
	mov	x8, x25
	cmp	w9, #1
	b.lt	LBB0_26
; %bb.23:
	str	x19, [sp]                       ; 8-byte Folded Spill
	mov	x19, x10
	mov	x28, #0
	add	x23, x25, #80
Lloh14:
	adrp	x26, _MAX_SHIFT@GOTPAGE
Lloh15:
	ldr	x26, [x26, _MAX_SHIFT@GOTPAGEOFF]
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_av_lfg_get
	ldr	w8, [x26]
	sub	w8, w8, #1
	and	w8, w8, w0
	ldr	x9, [x25, #72]
	str	w8, [x9, x28, lsl #2]
	add	x28, x28, #1
	ldrsw	x8, [x27]
	cmp	x28, x8
	b.lt	LBB0_24
; %bb.25:
	ldr	x8, [x24, #8]
	mov	x10, x19
	ldr	x19, [sp]                       ; 8-byte Folded Reload
LBB0_26:
	mov	w9, #1
	str	w9, [x25, #64]
	mov	x25, x8
LBB0_27:
	ldr	w8, [x25, #96]
	cbz	w8, LBB0_29
; %bb.28:
	ldr	w8, [x25, #100]
	ldr	w9, [x10]
	tst	w9, w8
	b.eq	LBB0_34
LBB0_29:
	ldr	x8, [x25, #120]
	cbz	x8, LBB0_34
; %bb.30:
Lloh16:
	adrp	x26, _MAX_RES@GOTPAGE
Lloh17:
	ldr	x26, [x26, _MAX_RES@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_33
; %bb.31:
	mov	x27, #0
	add	x23, x25, #112
Lloh18:
	adrp	x28, _MAX_SHIFT@GOTPAGE
Lloh19:
	ldr	x28, [x28, _MAX_SHIFT@GOTPAGEOFF]
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_av_lfg_get
	ldr	w8, [x28]
	sub	w8, w8, #1
	and	w8, w8, w0
	ldr	x9, [x25, #104]
	str	w8, [x9, x27, lsl #2]
	add	x27, x27, #1
	ldrsw	x8, [x26]
	cmp	x27, x8
	b.lt	LBB0_32
LBB0_33:
	mov	w8, #1
	str	w8, [x25, #96]
LBB0_34:
	stp	x21, x20, [sp, #8]
	ldr	x8, [x22]
	ldr	x25, [x8]
Lloh20:
	adrp	x8, _filter_slice@GOTPAGE
Lloh21:
	ldr	x8, [x8, _filter_slice@GOTPAGEOFF]
Lloh22:
	ldr	w23, [x8]
	ldr	x8, [x24]
	ldr	w24, [x8]
	mov	x0, x22
	bl	_ff_filter_get_nb_threads
	mov	x1, x0
	mov	x0, x24
	bl	_FFMIN
	mov	x4, x0
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x23
	mov	x3, #0
	blr	x25
	bl	_emms_c
	cmp	x21, x20
	b.eq	LBB0_36
; %bb.35:
	add	x0, sp, #24
	bl	_av_frame_free
LBB0_36:
	mov	x0, x19
	mov	x1, x21
	bl	_ff_filter_frame
LBB0_37:
	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
LBB0_38:
	add	x0, sp, #24
	bl	_av_frame_free
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_37
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NOISE_TEMPORAL,4,2             ; @NOISE_TEMPORAL
	.comm	_MAX_RES,4,2                    ; @MAX_RES
	.comm	_MAX_SHIFT,4,2                  ; @MAX_SHIFT
	.comm	_filter_slice,4,2               ; @filter_slice
	.no_dead_strip	_filter_frame
.subsections_via_symbols
