	.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, %r14
	movq	%rdi, %rbx
	movq	%rsi, -64(%rbp)
	movq	24(%rdi), %rax
	movq	(%rax), %r13
	movq	8(%rax), %rax
	movq	(%rax), %r12
	movl	(%rsi), %r15d
	movl	(%rdi), %esi
	movl	4(%rdi), %edx
	movq	%r12, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_av_frame_copy_props
	movl	16(%rbx), %edi
	callq	_av_pix_fmt_desc_get
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %ecx
	movq	(%r13), %rax
	movq	_VAR_N@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	cmpl	$-1, %r15d
	jne	LBB0_4
## %bb.3:
	movq	_NAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_4:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	_VAR_POS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r15d, (%rax,%rcx,4)
	movl	24(%r14), %edi
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %esi
	callq	_TS2T
	movq	(%r13), %rcx
	movq	_VAR_T@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	8(%r13), %rax
	movq	_EVAL_MODE_FRAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_set_gamma
	movq	%r13, %rdi
	callq	_set_contrast
	movq	%r13, %rdi
	callq	_set_brightness
	movq	%r13, %rdi
	callq	_set_saturation
LBB0_6:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jle	LBB0_14
## %bb.7:
	movq	-64(%rbp), %r12
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%esi, %edi
	movl	%edx, %esi
	movl	%ecx, %edx
	movl	%r8d, %ecx
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	callq	_av_image_copy_plane
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	addq	$8, %r13
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r14d
	movl	4(%rax), %r15d
	leal	-1(%rbx), %eax
	cmpl	$1, %eax
	ja	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	8(%r12), %esi
	movl	%r14d, %edi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, %r14d
	movl	4(%r12), %esi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	%r15d, %edi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdi
	movq	(%rdi,%r13), %r10
	movq	8(%rdx), %rcx
	movq	16(%rdx), %rdx
	movl	(%rdx,%rbx,4), %esi
	movl	(%rcx,%rbx,4), %edx
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movl	(%rax,%rbx,4), %r8d
	testq	%r10, %r10
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	%r13, %rdi
	movl	%r15d, (%rsp)
	movl	%r14d, %r9d
	callq	*%r10
	jmp	LBB0_13
LBB0_14:
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ff_filter_frame
	jmp	LBB0_15
LBB0_1:
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_15:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VAR_N,8,3                      ## @VAR_N
	.comm	_NAN,4,2                        ## @NAN
	.comm	_VAR_POS,8,3                    ## @VAR_POS
	.comm	_VAR_T,8,3                      ## @VAR_T
	.comm	_EVAL_MODE_FRAME,8,3            ## @EVAL_MODE_FRAME
	.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, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x1
	mov	x20, x0
	str	x1, [sp, #8]
	ldr	x8, [x0, #24]
	ldp	x21, x9, [x8]
	ldr	x19, [x9]
	ldr	w25, [x1]
	ldp	w1, w2, [x0]
	mov	x0, x19
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_12
; %bb.1:
	mov	x22, x0
	mov	x1, x24
	bl	_av_frame_copy_props
	ldr	w0, [x20, #16]
	bl	_av_pix_fmt_desc_get
	mov	x23, x0
	ldr	w8, [x20, #8]
	ldr	x9, [x21]
Lloh0:
	adrp	x10, _VAR_N@GOTPAGE
Lloh1:
	ldr	x10, [x10, _VAR_N@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
Lloh3:
	adrp	x8, _NAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NAN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w25, #1
Lloh6:
	adrp	x10, _VAR_POS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VAR_POS@GOTPAGEOFF]
	csel	w8, w8, w25, eq
Lloh8:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ldr	w0, [x24, #24]
	ldr	w1, [x20, #12]
	bl	_TS2T
Lloh9:
	adrp	x8, _VAR_T@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VAR_T@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldp	x9, x10, [x21]
	str	w0, [x9, x8, lsl #2]
Lloh12:
	adrp	x8, _EVAL_MODE_FRAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EVAL_MODE_FRAME@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x10, x8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_set_gamma
	mov	x0, x21
	bl	_set_contrast
	mov	x0, x21
	bl	_set_brightness
	mov	x0, x21
	bl	_set_saturation
LBB0_3:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.4:
	mov	x26, #0
	mov	x27, #0
	ldr	x28, [sp, #8]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	mov	x4, x24
	mov	x5, x25
	bl	_av_image_copy_plane
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x23]
	add	x26, x26, #8
	cmp	x27, x8
	b.ge	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w24, w25, [x20]
	sub	w8, w27, #1
	cmp	w8, #1
	b.hi	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x23, #8]
	mov	x0, x24
	bl	_AV_CEIL_RSHIFT
	mov	x24, x0
	ldr	w1, [x23, #4]
	mov	x0, x25
	bl	_AV_CEIL_RSHIFT
	mov	x25, x0
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #16]
	add	x0, x8, x26
	ldr	x8, [x0]
	lsl	x9, x27, #2
	ldp	x11, x10, [x22, #8]
	ldr	w1, [x10, x9]
	ldr	w2, [x11, x9]
	ldp	x11, x10, [x28, #8]
	ldr	w3, [x10, x9]
	ldr	w4, [x11, x9]
	cbz	x8, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x5, x24
	mov	x6, x25
	blr	x8
	b	LBB0_6
LBB0_11:
	add	x0, sp, #8
	bl	_av_frame_free
	mov	x0, x19
	mov	x1, x22
	bl	_ff_filter_frame
	b	LBB0_13
LBB0_12:
	add	x0, sp, #8
	bl	_av_frame_free
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VAR_N,8,3                      ; @VAR_N
	.comm	_NAN,4,2                        ; @NAN
	.comm	_VAR_POS,8,3                    ; @VAR_POS
	.comm	_VAR_T,8,3                      ; @VAR_T
	.comm	_EVAL_MODE_FRAME,8,3            ; @EVAL_MODE_FRAME
	.no_dead_strip	_filter_frame
.subsections_via_symbols
