	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function denoise_vaapi_build_filter_params
_denoise_vaapi_build_filter_params:     ## @denoise_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movl	$1, -36(%rbp)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	movq	_VAProcFilterNoiseReduction@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-56(%rbp), %rcx
	leaq	-36(%rbp), %r8
	callq	_vaQueryVideoProcFilterCaps
	movq	%rax, %r12
	movq	_VA_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_1
## %bb.2:
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)
	movl	(%rbx), %edi
	movq	_DENOISE_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DENOISE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-56(%rbp), %r8d
	movl	-52(%rbp), %ecx
	callq	_map
	movl	%eax, -48(%rbp)
	movq	_VAProcFilterParameterBufferType@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$8, %ecx
	movl	$1, %r8d
	callq	_ff_vaapi_vpp_make_param_buffers
	jmp	LBB0_3
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_vaErrorStr
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_av_log
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_3:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VAProcFilterNoiseReduction,4,2 ## @VAProcFilterNoiseReduction
	.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 denoise caps context: %d (%s).\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_DENOISE_MIN,4,2                ## @DENOISE_MIN
	.comm	_DENOISE_MAX,4,2                ## @DENOISE_MAX
	.comm	_VAProcFilterParameterBufferType,4,2 ## @VAProcFilterParameterBufferType
	.no_dead_strip	_denoise_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 denoise_vaapi_build_filter_params
_denoise_vaapi_build_filter_params:     ; @denoise_vaapi_build_filter_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0]
	mov	w8, #1
	str	w8, [sp, #20]
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	ldr	w1, [x21, #4]
Lloh0:
	adrp	x22, _VAProcFilterNoiseReduction@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VAProcFilterNoiseReduction@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x3, sp, #24
	add	x4, sp, #20
	bl	_vaQueryVideoProcFilterCaps
Lloh2:
	adrp	x8, _VA_STATUS_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VA_STATUS_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x22]
	str	w8, [sp, #12]
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _DENOISE_MIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DENOISE_MIN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _DENOISE_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DENOISE_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldp	w4, w3, [sp, #24]
	bl	_map
	str	w0, [sp, #8]
Lloh11:
	adrp	x8, _VAProcFilterParameterBufferType@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VAProcFilterParameterBufferType@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #8
	mov	w4, #1
	bl	_ff_vaapi_vpp_make_param_buffers
	b	LBB0_3
LBB0_2:
	mov	x20, x0
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	bl	_vaErrorStr
	mov	x4, x0
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_av_log
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_VAProcFilterNoiseReduction,4,2 ; @VAProcFilterNoiseReduction
	.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 denoise caps context: %d (%s).\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_DENOISE_MIN,4,2                ; @DENOISE_MIN
	.comm	_DENOISE_MAX,4,2                ; @DENOISE_MAX
	.comm	_VAProcFilterParameterBufferType,4,2 ; @VAProcFilterParameterBufferType
	.no_dead_strip	_denoise_vaapi_build_filter_params
.subsections_via_symbols
