	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function filter_frame
LCPI0_0:
	.long	0xbf800000                      ## float -1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_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	$568, %rsp                      ## imm = 0x238
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -600(%rbp)
	movq	8(%rdi), %r13
	movq	(%r13), %r14
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	%rax, -576(%rbp)                ## 8-byte Spill
	leaq	52(%r14), %rbx
	movl	52(%r14), %eax
	cmpl	(%r14), %eax
	jge	LBB0_3
## %bb.1:
	cmpl	$0, 80(%r14)
	je	LBB0_2
LBB0_3:
	movq	%rbx, -592(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ff_bufqueue_peek
	movq	%rax, %r15
	movq	-576(%rbp), %rdi                ## 8-byte Reload
	movl	(%rdi), %edx
	movl	4(%rdi), %esi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%r12, -584(%rbp)                ## 8-byte Spill
	leaq	-564(%rbp), %rsi
	movq	%r13, %rdi
	callq	*72(%r14)
	movl	32(%r14), %eax
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %r8d
	movq	-576(%rbp), %rdi                ## 8-byte Reload
	movl	(%rdi), %eax
	movl	4(%rdi), %r9d
	movss	-564(%rbp), %xmm0               ## xmm0 = mem[0],zero,zero,zero
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	callq	*64(%r14)
	movl	32(%r14), %eax
LBB0_7:
	movl	$1, %ecx
	subl	%eax, %ecx
	cmpl	36(%r14), %ecx
	jge	LBB0_10
## %bb.8:
	movslq	%ecx, %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx,%r12,4), %edi
	movl	(%rax,%r12,4), %esi
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movl	(%rcx,%r12,4), %edx
	movl	(%rax,%r12,4), %ecx
	movq	40(%r14), %rax
	xorl	%r8d, %r8d
	cmpl	$9, 48(%r14)
	setge	%r8b
	incl	%r8d
	imull	(%rax,%r12,4), %r8d
	movq	56(%r14), %rax
	movl	(%rax,%r12,4), %r9d
	callq	_av_image_copy_plane
	incq	%r12
	movslq	36(%r14), %rax
	cmpq	%rax, %r12
	jl	LBB0_9
LBB0_10:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_av_frame_copy_props
	movq	8(%r14), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	leaq	L_.str(%rip), %r12
	leaq	-560(%rbp), %r15
	movq	%r15, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movq	%r12, %rdx
	callq	_snprintf
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_av_dict_set
	movq	8(%r14), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	-564(%rbp), %xmm0
	movq	%r15, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movq	%r12, %rdx
	callq	_snprintf
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_av_dict_set
	movss	-564(%rbp), %xmm0               ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_0(%rip), %xmm0
	movq	%r15, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movq	%r12, %rdx
	callq	_snprintf
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_av_dict_set
	movq	-592(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_ff_bufqueue_get
	movq	%rax, -560(%rbp)
	leaq	-560(%rbp), %rdi
	callq	_av_frame_free
	movq	8(%r14), %rdi
	leaq	4(%rdi), %rsi
	movl	(%r14), %eax
	leal	-4(,%rax,4), %edx
	callq	_memmove
	movq	%r13, %rdi
	movq	-584(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rsi
	callq	*24(%r14)
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movss	%xmm0, -4(%rax,%rcx,4)
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_ff_bufqueue_add
	movq	-576(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ff_filter_frame
	jmp	LBB0_11
LBB0_4:
	leaq	-600(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_11
LBB0_2:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	*24(%r14)
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movss	%xmm0, (%rax,%rcx,4)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_ff_bufqueue_add
	incq	16(%r14)
	xorl	%eax, %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$568, %rsp                      ## imm = 0x238
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%f"

L_.str.1:                               ## @.str.1
	.asciz	"lavfi.deflicker.luminance"

L_.str.2:                               ## @.str.2
	.asciz	"lavfi.deflicker.new_luminance"

L_.str.3:                               ## @.str.3
	.asciz	"lavfi.deflicker.relative_change"

	.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:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #544
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	str	x1, [sp, #16]
	ldr	x20, [x0, #8]
	ldp	x25, x8, [x20]
	ldr	x22, [x8]
	mov	x21, x25
	ldr	w8, [x21, #52]!
	ldr	w9, [x25]
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
	ldr	w8, [x25, #80]
	cbz	w8, LBB0_10
LBB0_2:
	mov	x0, x21
	mov	w1, #0
	bl	_ff_bufqueue_peek
	mov	x24, x0
	ldp	w2, w1, [x22]
	mov	x0, x22
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_9
; %bb.3:
	mov	x23, x0
	ldr	x8, [x25, #72]
	add	x1, sp, #12
	mov	x0, x20
	blr	x8
	ldr	w8, [x25, #32]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	x8, [x25, #64]
	ldp	x10, x9, [x24, #8]
	ldr	w1, [x9]
	ldr	w2, [x10]
	ldp	x10, x9, [x23, #8]
	ldr	w3, [x9]
	ldr	w4, [x10]
	ldp	w6, w5, [x22]
	ldr	s0, [sp, #12]
	mov	x0, x20
	blr	x8
	ldr	w8, [x25, #32]
LBB0_5:
	mov	w26, #1
	ldr	w9, [x25, #36]
	sub	w8, w26, w8
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.6:
	sxtw	x27, w8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x27, #2
	ldp	x10, x9, [x23, #8]
	ldr	w0, [x9, x8]
	ldr	w1, [x10, x8]
	ldp	x10, x9, [x24, #8]
	ldr	w2, [x9, x8]
	ldr	w3, [x10, x8]
	ldr	x9, [x25, #40]
	ldr	w9, [x9, x8]
	ldr	w10, [x25, #48]
	cmp	w10, #8
	cinc	w10, w26, gt
	mul	w4, w10, w9
	ldr	x9, [x25, #56]
	ldr	w5, [x9, x8]
	bl	_av_image_copy_plane
	add	x27, x27, #1
	ldrsw	x8, [x25, #36]
	cmp	x27, x8
	b.lt	LBB0_7
LBB0_8:
	mov	x0, x23
	mov	x1, x24
	bl	_av_frame_copy_props
	ldr	x8, [x25, #8]
	ldr	s0, [x8]
Lloh3:
	adrp	x24, l_.str@PAGE
Lloh4:
	add	x24, x24, l_.str@PAGEOFF
	add	x0, sp, #24
	mov	w1, #512
	mov	x2, x24
	bl	_snprintf
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #24
	mov	x0, x23
	mov	w3, #0
	bl	_av_dict_set
	ldr	x8, [x25, #8]
	ldr	s0, [x8]
	ldr	s1, [sp, #12]
	fmul	s0, s0, s1
	add	x0, sp, #24
	mov	w1, #512
	mov	x2, x24
	bl	_snprintf
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #24
	mov	x0, x23
	mov	w3, #0
	bl	_av_dict_set
	ldr	s0, [sp, #12]
	fmov	s1, #-1.00000000
	fadd	s0, s0, s1
	add	x0, sp, #24
	mov	w1, #512
	mov	x2, x24
	bl	_snprintf
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #24
	mov	x0, x23
	mov	w3, #0
	bl	_av_dict_set
	mov	x0, x21
	bl	_ff_bufqueue_get
	str	x0, [sp, #24]
	add	x0, sp, #24
	bl	_av_frame_free
	ldr	x0, [x25, #8]
	add	x1, x0, #4
	ldr	w8, [x25]
	lsl	w8, w8, #2
	sub	w2, w8, #4
	bl	_memmove
	ldr	x8, [x25, #24]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	ldp	x8, x9, [x25, #8]
	add	x8, x8, x9, lsl #2
	stur	s0, [x8, #-4]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_ff_bufqueue_add
	mov	x0, x22
	mov	x1, x23
	bl	_ff_filter_frame
	b	LBB0_11
LBB0_9:
	add	x0, sp, #16
	bl	_av_frame_free
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_11
LBB0_10:
	ldr	x8, [x25, #24]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	ldp	x8, x9, [x25, #8]
	str	s0, [x8, x9, lsl #2]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_ff_bufqueue_add
	mov	w0, #0
	ldr	x8, [x25, #16]
	add	x8, x8, #1
	str	x8, [x25, #16]
LBB0_11:
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	add	sp, sp, #544
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%f"

l_.str.1:                               ; @.str.1
	.asciz	"lavfi.deflicker.luminance"

l_.str.2:                               ; @.str.2
	.asciz	"lavfi.deflicker.new_luminance"

l_.str.3:                               ; @.str.3
	.asciz	"lavfi.deflicker.relative_change"

	.no_dead_strip	_filter_frame
.subsections_via_symbols
