	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function deint_vaapi_build_filter_params
_deint_vaapi_build_filter_params:       ## @deint_vaapi_build_filter_params
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_VAProcDeinterlacingCount@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	64(%r15), %rax
	movl	(%rax), %edi
	movl	56(%r15), %esi
	movq	_VAProcFilterDeinterlacing@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	72(%r15), %r12
	movq	%r12, %rcx
	movq	%r15, %r8
	callq	_vaQueryVideoProcFilterCaps
	movq	%rax, %rbx
	movq	_VA_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_1
## %bb.3:
	movq	8(%r15), %rbx
	movq	_VAProcDeinterlacingNone@GOTPCREL(%rip), %rax
	movl	(%r15), %ecx
	cmpq	(%rax), %rbx
	jne	LBB0_4
## %bb.6:
	testl	%ecx, %ecx
	jle	LBB0_24
## %bb.7:
	movq	(%r12), %rdx
	leaq	-1(%rcx), %rsi
	movl	%ecx, %eax
	andl	$3, %eax
	cmpq	$3, %rsi
	jae	LBB0_9
## %bb.8:
	xorl	%esi, %esi
LBB0_19:
	testq	%rax, %rax
	je	LBB0_24
## %bb.20:
	leaq	(%rdx,%rsi,8), %rcx
	xorl	%edx, %edx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_24
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	cmpq	%rbx, %rsi
	jle	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	%rsi, 8(%r15)
	movq	%rsi, %rbx
	jmp	LBB0_23
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_vaErrorStr
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rcx
	movq	%rax, %r8
	callq	_av_log
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	testl	%ecx, %ecx
	jle	LBB0_34
## %bb.5:
	movq	(%r12), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rax,%rdx,8)
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_26 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_26
LBB0_34:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_deint_vaapi_mode_name
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rcx
	movq	%rax, %r8
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_24:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_deint_vaapi_mode_name
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rcx
	movq	%rax, %r8
	callq	_av_log
	movq	8(%r15), %rbx
LBB0_27:
	movl	(%r13), %eax
	movl	%eax, -48(%rbp)
	movq	%rbx, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	_VAProcFilterParameterBufferType@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movl	$24, %ecx
	movl	$1, %r8d
	callq	_ff_vaapi_vpp_make_param_buffers
	testq	%rax, %rax
	jne	LBB0_33
## %bb.28:
	movq	64(%r15), %rax
	movl	(%rax), %edi
	movl	56(%r15), %esi
	movq	48(%r15), %rdx
	leaq	32(%r15), %r8
	movl	$1, %ecx
	callq	_vaQueryVideoProcPipelineCaps
	movq	%rax, %rbx
	movq	_VA_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_29
## %bb.30:
	cmpl	$2, 20(%r15)
	sete	%al
	movq	32(%r15), %r8
	testq	%r8, %r8
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edx
	movl	%edx, 16(%r15)
	movq	40(%r15), %rcx
	addq	%r8, %rdx
	leaq	(%rcx,%rdx), %rax
	incq	%rax
	addq	%rcx, %rdx
	movq	%rax, 24(%r15)
	movq	_MAX_REFERENCES@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	jl	LBB0_33
## %bb.31:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_9:
	andl	$-4, %ecx
	xorl	%esi, %esi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$4, %rsi
	cmpq	%rsi, %rcx
	je	LBB0_19
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rdi
	cmpq	%rbx, %rdi
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rdi, 8(%r15)
	movq	%rdi, %rbx
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rdx,%rsi,8), %rdi
	cmpq	%rbx, %rdi
	jle	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rdi, 8(%r15)
	movq	%rdi, %rbx
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%rdx,%rsi,8), %rdi
	cmpq	%rbx, %rdi
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rdi, 8(%r15)
	movq	%rdi, %rbx
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	24(%rdx,%rsi,8), %rdi
	cmpq	%rbx, %rdi
	jle	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rdi, 8(%r15)
	movq	%rdi, %rbx
	jmp	LBB0_18
LBB0_29:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_vaErrorStr
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rcx
	movq	%rax, %r8
	callq	_av_log
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_32:
	movl	(%rax), %edi
	callq	_AVERROR
                                        ## kill: def $eax killed $eax def $rax
LBB0_33:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VAProcDeinterlacingCount,4,2   ## @VAProcDeinterlacingCount
	.comm	_VAProcFilterDeinterlacing,4,2  ## @VAProcFilterDeinterlacing
	.comm	_VA_STATUS_SUCCESS,8,3          ## @VA_STATUS_SUCCESS
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to query deinterlacing caps: %d (%s).\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_VAProcDeinterlacingNone,8,3    ## @VAProcDeinterlacingNone
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.1:                               ## @.str.1
	.asciz	"Picking %d (%s) as default deinterlacing mode.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Deinterlacing mode %d (%s) is not supported.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VAProcFilterParameterBufferType,4,2 ## @VAProcFilterParameterBufferType
L_.str.3:                               ## @.str.3
	.asciz	"Failed to query pipeline caps: %d (%s).\n"

	.comm	_MAX_REFERENCES,8,3             ## @MAX_REFERENCES
L_.str.4:                               ## @.str.4
	.asciz	"Pipeline requires too many references (%u forward, %u back).\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.no_dead_strip	_deint_vaapi_build_filter_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function deint_vaapi_build_filter_params
_deint_vaapi_build_filter_params:       ; @deint_vaapi_build_filter_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _VAProcDeinterlacingCount@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VAProcDeinterlacingCount@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	x8, [x20, #64]
	ldr	w0, [x8]
	ldr	w1, [x20, #56]
Lloh3:
	adrp	x24, _VAProcFilterDeinterlacing@GOTPAGE
Lloh4:
	ldr	x24, [x24, _VAProcFilterDeinterlacing@GOTPAGEOFF]
	ldr	w2, [x24]
	add	x22, x20, #72
	mov	x3, x22
	mov	x4, x20
	bl	_vaQueryVideoProcFilterCaps
Lloh5:
	adrp	x23, _VA_STATUS_SUCCESS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _VA_STATUS_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
	ldr	x21, [x20, #8]
Lloh7:
	adrp	x8, _VAProcDeinterlacingNone@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VAProcDeinterlacingNone@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x8]
	ldr	w8, [x20]
	cmp	x21, x9
	b.ne	LBB0_8
; %bb.2:
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.3:
	ldr	x9, [x22]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cmp	x10, x21
	b.le	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x10, [x20, #8]
	mov	x21, x10
	b	LBB0_4
LBB0_7:
	mov	x21, x0
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	bl	_vaErrorStr
	mov	x4, x0
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_av_log
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	ldr	x9, [x22]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cmp	x10, x21
	b.eq	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_12:
Lloh17:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	mov	x0, x21
	bl	_deint_vaapi_mode_name
	mov	x4, x0
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_av_log
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	b	_AVERROR
LBB0_14:
Lloh24:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh26:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_deint_vaapi_mode_name
	mov	x4, x0
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	bl	_av_log
	ldr	x21, [x20, #8]
LBB0_15:
	ldr	w8, [x24]
	str	w8, [sp, #24]
	stp	x21, xzr, [sp, #8]
Lloh29:
	adrp	x8, _VAProcFilterParameterBufferType@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VAProcFilterParameterBufferType@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #24
	mov	w4, #1
	bl	_ff_vaapi_vpp_make_param_buffers
	cbnz	x0, LBB0_22
; %bb.16:
	ldr	x8, [x20, #64]
	ldr	w0, [x8]
	ldr	w1, [x20, #56]
	ldr	x2, [x20, #48]
	add	x4, x20, #32
	mov	w3, #1
	bl	_vaQueryVideoProcPipelineCaps
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.17:
	ldr	w8, [x20, #20]
	cmp	w8, #2
	ldp	x4, x3, [x20, #32]
	ccmp	x4, #0, #0, eq
	cset	w8, eq
	str	w8, [x20, #16]
Lloh32:
	adrp	x8, _MAX_REFERENCES@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MAX_REFERENCES@GOTPAGEOFF]
	cinc	x9, x4, eq
Lloh34:
	ldr	x8, [x8]
	add	x9, x9, x3
	cmp	x9, x8
	add	x8, x9, #1
	str	x8, [x20, #24]
	b.ge	LBB0_20
; %bb.18:
	mov	w0, #0
	b	LBB0_22
LBB0_19:
	mov	x21, x0
Lloh35:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w20, [x8]
	bl	_vaErrorStr
	mov	x4, x0
Lloh38:
	adrp	x2, l_.str.3@PAGE
Lloh39:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_av_log
Lloh40:
	adrp	x8, _EIO@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh42:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x2, l_.str.4@PAGE
Lloh46:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh47:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
LBB0_21:
	ldr	w0, [x8]
	bl	_AVERROR
                                        ; kill: def $w0 killed $w0 def $x0
LBB0_22:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_VAProcDeinterlacingCount,4,2   ; @VAProcDeinterlacingCount
	.comm	_VAProcFilterDeinterlacing,4,2  ; @VAProcFilterDeinterlacing
	.comm	_VA_STATUS_SUCCESS,8,3          ; @VA_STATUS_SUCCESS
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to query deinterlacing caps: %d (%s).\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_VAProcDeinterlacingNone,8,3    ; @VAProcDeinterlacingNone
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.1:                               ; @.str.1
	.asciz	"Picking %d (%s) as default deinterlacing mode.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Deinterlacing mode %d (%s) is not supported.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VAProcFilterParameterBufferType,4,2 ; @VAProcFilterParameterBufferType
l_.str.3:                               ; @.str.3
	.asciz	"Failed to query pipeline caps: %d (%s).\n"

	.comm	_MAX_REFERENCES,8,3             ; @MAX_REFERENCES
l_.str.4:                               ; @.str.4
	.asciz	"Pipeline requires too many references (%u forward, %u back).\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.no_dead_strip	_deint_vaapi_build_filter_params
.subsections_via_symbols
