	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function procamp_vaapi_build_filter_params
_procamp_vaapi_build_filter_params:     ## @procamp_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	$152, %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	%rsp, -192(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	movq	_VAProcColorBalanceCount@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%rbx, %rax
	shlq	$5, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	-176(%rbp), %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_memset
	shll	$5, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movl	(%r12), %eax
	movl	%eax, -180(%rbp)
	movq	24(%r13), %rax
	movl	(%rax), %edi
	movl	16(%r13), %esi
	movq	_VAProcFilterColorBalance@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	leaq	-180(%rbp), %r8
	movq	%r15, %rcx
	callq	_vaQueryVideoProcFilterCaps
	movq	%rax, %rbx
	movq	_VA_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_1
## %bb.2:
	movq	(%r12), %rax
	movq	%rax, -152(%rbp)
	movq	_VAProcColorBalanceBrightness@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	%eax, -176(%rbp)
	movl	12(%r13), %edi
	movq	_BRIGHTNESS_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_BRIGHTNESS_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	shlq	$5, %rax
	movl	-28(%rax,%r15), %r8d
	movl	-24(%rax,%r15), %ecx
	callq	_map
	movq	%rax, -160(%rbp)
	movq	(%r12), %rax
	movq	%rax, -120(%rbp)
	movq	_VAProcColorBalanceContrast@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	%eax, -144(%rbp)
	movl	8(%r13), %edi
	movq	_CONTRAST_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CONTRAST_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	shlq	$5, %rax
	movl	-28(%rax,%r15), %r8d
	movl	-24(%rax,%r15), %ecx
	callq	_map
	movq	%rax, -128(%rbp)
	movq	(%r12), %rax
	movq	%rax, -88(%rbp)
	movq	_VAProcColorBalanceHue@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	%eax, -112(%rbp)
	movl	4(%r13), %edi
	movq	_HUE_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_HUE_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	shlq	$5, %rax
	movl	-28(%rax,%r15), %r8d
	movl	-24(%rax,%r15), %ecx
	callq	_map
	movq	%rax, -96(%rbp)
	movq	(%r12), %rax
	movq	%rax, -56(%rbp)
	movq	_VAProcColorBalanceSaturation@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	%eax, -80(%rbp)
	movl	(%r13), %edi
	movq	_SATURATION_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_SATURATION_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	shlq	$5, %rax
	movl	-28(%rax,%r15), %r8d
	movl	-24(%rax,%r15), %ecx
	callq	_map
	movq	%rax, -64(%rbp)
	movq	_VAProcFilterParameterBufferType@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-176(%rbp), %rdx
	movq	%r14, %rdi
	movl	$32, %ecx
	movl	$4, %r8d
	callq	_ff_vaapi_vpp_make_param_buffers
	jmp	LBB0_3
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
	movl	%eax, %r8d
	callq	_av_log
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_3:
	movq	-192(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VAProcColorBalanceCount,4,2    ## @VAProcColorBalanceCount
	.comm	_VAProcFilterColorBalance,8,3   ## @VAProcFilterColorBalance
	.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 procamp filter caps: %d (%s).\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_VAProcColorBalanceBrightness,4,2 ## @VAProcColorBalanceBrightness
	.comm	_BRIGHTNESS_MIN,4,2             ## @BRIGHTNESS_MIN
	.comm	_BRIGHTNESS_MAX,4,2             ## @BRIGHTNESS_MAX
	.comm	_VAProcColorBalanceContrast,4,2 ## @VAProcColorBalanceContrast
	.comm	_CONTRAST_MIN,4,2               ## @CONTRAST_MIN
	.comm	_CONTRAST_MAX,4,2               ## @CONTRAST_MAX
	.comm	_VAProcColorBalanceHue,4,2      ## @VAProcColorBalanceHue
	.comm	_HUE_MIN,4,2                    ## @HUE_MIN
	.comm	_HUE_MAX,4,2                    ## @HUE_MAX
	.comm	_VAProcColorBalanceSaturation,4,2 ## @VAProcColorBalanceSaturation
	.comm	_SATURATION_MIN,4,2             ## @SATURATION_MIN
	.comm	_SATURATION_MAX,4,2             ## @SATURATION_MAX
	.comm	_VAProcFilterParameterBufferType,4,2 ## @VAProcFilterParameterBufferType
	.no_dead_strip	_procamp_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 procamp_vaapi_build_filter_params
_procamp_vaapi_build_filter_params:     ; @procamp_vaapi_build_filter_params
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #144
	mov	x19, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x23, [x0]
Lloh3:
	adrp	x21, _VAProcColorBalanceCount@GOTPAGE
Lloh4:
	ldr	x21, [x21, _VAProcColorBalanceCount@GOTPAGEOFF]
	ldr	w24, [x21]
	lsl	x8, x24, #5
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x8
	mov	sp, x20
	sub	x0, x29, #184
	mov	w1, #0
	mov	w2, #128
	bl	_memset
	lsl	w2, w24, #5
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldr	w8, [x21]
	stur	w8, [x29, #-188]
	ldr	x8, [x23, #24]
	ldr	w0, [x8]
	ldr	w1, [x23, #16]
Lloh7:
	adrp	x24, _VAProcFilterColorBalance@GOTPAGE
Lloh8:
	ldr	x24, [x24, _VAProcFilterColorBalance@GOTPAGEOFF]
	ldr	x2, [x24]
	sub	x4, x29, #188
	mov	x3, x20
	bl	_vaQueryVideoProcFilterCaps
Lloh9:
	adrp	x8, _VA_STATUS_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VA_STATUS_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x24]
	stur	x8, [x29, #-160]
Lloh12:
	adrp	x8, _VAProcColorBalanceBrightness@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VAProcColorBalanceBrightness@GOTPAGEOFF]
Lloh14:
	ldrsw	x8, [x8]
	stur	w8, [x29, #-184]
	ldr	w0, [x23, #12]
Lloh15:
	adrp	x9, _BRIGHTNESS_MIN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BRIGHTNESS_MIN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
Lloh18:
	adrp	x9, _BRIGHTNESS_MAX@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BRIGHTNESS_MAX@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x9]
	add	x8, x20, x8, lsl #5
	ldp	w4, w3, [x8, #-28]
	bl	_map
	stur	x0, [x29, #-168]
	ldr	x8, [x24]
	stur	x8, [x29, #-128]
Lloh21:
	adrp	x8, _VAProcColorBalanceContrast@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VAProcColorBalanceContrast@GOTPAGEOFF]
Lloh23:
	ldrsw	x8, [x8]
	stur	w8, [x29, #-152]
	ldr	w0, [x23, #8]
Lloh24:
	adrp	x9, _CONTRAST_MIN@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CONTRAST_MIN@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x9]
Lloh27:
	adrp	x9, _CONTRAST_MAX@GOTPAGE
Lloh28:
	ldr	x9, [x9, _CONTRAST_MAX@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x9]
	add	x8, x20, x8, lsl #5
	ldp	w4, w3, [x8, #-28]
	bl	_map
	stur	x0, [x29, #-136]
	ldr	x8, [x24]
	stur	x8, [x29, #-96]
Lloh30:
	adrp	x8, _VAProcColorBalanceHue@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VAProcColorBalanceHue@GOTPAGEOFF]
Lloh32:
	ldrsw	x8, [x8]
	stur	w8, [x29, #-120]
	ldr	w0, [x23, #4]
Lloh33:
	adrp	x9, _HUE_MIN@GOTPAGE
Lloh34:
	ldr	x9, [x9, _HUE_MIN@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x9]
Lloh36:
	adrp	x9, _HUE_MAX@GOTPAGE
Lloh37:
	ldr	x9, [x9, _HUE_MAX@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x9]
	add	x8, x20, x8, lsl #5
	ldp	w4, w3, [x8, #-28]
	bl	_map
	stur	x0, [x29, #-104]
	ldr	x8, [x24]
	stur	x8, [x29, #-64]
Lloh39:
	adrp	x8, _VAProcColorBalanceSaturation@GOTPAGE
Lloh40:
	ldr	x8, [x8, _VAProcColorBalanceSaturation@GOTPAGEOFF]
Lloh41:
	ldrsw	x8, [x8]
	stur	w8, [x29, #-88]
	ldr	w0, [x23]
Lloh42:
	adrp	x9, _SATURATION_MIN@GOTPAGE
Lloh43:
	ldr	x9, [x9, _SATURATION_MIN@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x9]
Lloh45:
	adrp	x9, _SATURATION_MAX@GOTPAGE
Lloh46:
	ldr	x9, [x9, _SATURATION_MAX@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x9]
	add	x8, x20, x8, lsl #5
	ldp	w4, w3, [x8, #-28]
	bl	_map
	stur	x0, [x29, #-72]
Lloh48:
	adrp	x8, _VAProcFilterParameterBufferType@GOTPAGE
Lloh49:
	ldr	x8, [x8, _VAProcFilterParameterBufferType@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	sub	x2, x29, #184
	mov	x0, x19
	mov	w3, #32
	mov	w4, #4
	bl	_ff_vaapi_vpp_make_param_buffers
	b	LBB0_3
LBB0_2:
	mov	x21, x0
Lloh51:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh53:
	ldr	w20, [x8]
	bl	_vaErrorStr
	mov	x4, x0
Lloh54:
	adrp	x2, l_.str@PAGE
Lloh55:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_av_log
Lloh56:
	adrp	x8, _EIO@GOTPAGE
Lloh57:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_3:
	mov	sp, x22
	ldur	x8, [x29, #-56]
Lloh59:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh60:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_VAProcColorBalanceCount,4,2    ; @VAProcColorBalanceCount
	.comm	_VAProcFilterColorBalance,8,3   ; @VAProcFilterColorBalance
	.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 procamp filter caps: %d (%s).\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_VAProcColorBalanceBrightness,4,2 ; @VAProcColorBalanceBrightness
	.comm	_BRIGHTNESS_MIN,4,2             ; @BRIGHTNESS_MIN
	.comm	_BRIGHTNESS_MAX,4,2             ; @BRIGHTNESS_MAX
	.comm	_VAProcColorBalanceContrast,4,2 ; @VAProcColorBalanceContrast
	.comm	_CONTRAST_MIN,4,2               ; @CONTRAST_MIN
	.comm	_CONTRAST_MAX,4,2               ; @CONTRAST_MAX
	.comm	_VAProcColorBalanceHue,4,2      ; @VAProcColorBalanceHue
	.comm	_HUE_MIN,4,2                    ; @HUE_MIN
	.comm	_HUE_MAX,4,2                    ; @HUE_MAX
	.comm	_VAProcColorBalanceSaturation,4,2 ; @VAProcColorBalanceSaturation
	.comm	_SATURATION_MIN,4,2             ; @SATURATION_MIN
	.comm	_SATURATION_MAX,4,2             ; @SATURATION_MAX
	.comm	_VAProcFilterParameterBufferType,4,2 ; @VAProcFilterParameterBufferType
	.no_dead_strip	_procamp_vaapi_build_filter_params
.subsections_via_symbols
