	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vaapi_vpp_render_picture    ## -- Begin function ff_vaapi_vpp_render_picture
	.p2align	4, 0x90
_ff_vaapi_vpp_render_picture:           ## @ff_vaapi_vpp_render_picture
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	(%rdx), %rax
	movq	24(%rax), %rdx
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	movl	(%r12), %esi
	callq	_vaBeginPicture
	movq	_VA_STATUS_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_15
## %bb.1:
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	movl	(%r12), %esi
	movq	_VAProcPipelineParameterBufferType@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rax
	movq	%rax, (%rsp)
	movl	$4, %ecx
	movl	$1, %r8d
	movq	%r14, %r9
	callq	_vaCreateBuffer
	cmpq	(%r13), %rax
	jne	LBB0_2
## %bb.4:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	-44(%rbp), %rcx
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movl	$1, %ecx
	callq	_vaRenderPicture
	cmpq	(%r13), %rax
	jne	LBB0_5
## %bb.6:
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	movl	(%r12), %esi
	callq	_vaEndPicture
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.9:
	movq	_CONFIG_VAAPI_1@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	8(%r12), %rax
	jne	LBB0_12
## %bb.10:
	movq	_AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_11
LBB0_12:
	movl	4(%rax), %edi
	movl	-44(%rbp), %esi
	callq	_vaDestroyBuffer
	xorl	%r14d, %r14d
	cmpq	(%r13), %rax
	je	LBB0_14
## %bb.13:
	movq	%rax, %rbx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_vaErrorStr
	leaq	L_.str.5(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_14
LBB0_15:
	movq	%rax, %rbx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_vaErrorStr
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	movq	%rax, %rbx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_vaErrorStr
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_3
LBB0_5:
	movq	%rax, %rbx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_vaErrorStr
	leaq	L_.str.3(%rip), %rdx
LBB0_3:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movl	$1, %ecx
	callq	_vaRenderPicture
LBB0_8:
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	movl	(%r12), %esi
	callq	_vaEndPicture
LBB0_14:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rax, %rbx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_vaErrorStr
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.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 attach new picture: %d (%s).\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_VAProcPipelineParameterBufferType,4,2 ## @VAProcPipelineParameterBufferType
L_.str.1:                               ## @.str.1
	.asciz	"Failed to create parameter buffer: %d (%s).\n"

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"Pipeline parameter buffer is %#x.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to render parameter buffer: %d (%s).\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to start picture processing: %d (%s).\n"

	.comm	_CONFIG_VAAPI_1,8,3             ## @CONFIG_VAAPI_1
	.comm	_AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS,4,2 ## @AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS
L_.str.5:                               ## @.str.5
	.asciz	"Failed to free parameter buffer: %d (%s).\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vaapi_vpp_render_picture    ; -- Begin function ff_vaapi_vpp_render_picture
	.p2align	2
_ff_vaapi_vpp_render_picture:           ; @ff_vaapi_vpp_render_picture
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0]
	ldr	x8, [x2]
	ldr	x2, [x8, #24]
	ldr	x8, [x22, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x22]
	bl	_vaBeginPicture
Lloh0:
	adrp	x23, _VA_STATUS_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VA_STATUS_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.1:
	ldr	x8, [x22, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _VAProcPipelineParameterBufferType@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VAProcPipelineParameterBufferType@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x6, sp, #12
	mov	w3, #4
	mov	w4, #1
	mov	x5, x20
	bl	_vaCreateBuffer
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.2:
Lloh5:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldrsw	x3, [sp, #12]
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	x8, [x22, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	w3, #1
	bl	_vaRenderPicture
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.3:
	ldr	x8, [x22, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x22]
	bl	_vaEndPicture
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.4:
Lloh10:
	adrp	x8, _CONFIG_VAAPI_1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CONFIG_VAAPI_1@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x8]
	ldr	x8, [x22, #8]
	cbnz	x9, LBB0_6
; %bb.5:
	ldr	w9, [x8]
Lloh13:
	adrp	x10, _AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS@GOTPAGE
Lloh14:
	ldr	x10, [x10, _AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
LBB0_6:
	ldr	w0, [x8, #4]
	ldr	w1, [sp, #12]
	bl	_vaDestroyBuffer
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.7:
	mov	x20, x0
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	bl	_vaErrorStr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh19:
	adrp	x2, l_.str.5@PAGE
Lloh20:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_av_log
LBB0_8:
	mov	w19, #0
	b	LBB0_14
LBB0_9:
	mov	x21, x0
Lloh21:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
	bl	_vaErrorStr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_av_log
Lloh26:
	adrp	x8, _EIO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_AVERROR
LBB0_10:
	mov	x20, x0
Lloh29:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w21, [x8]
	bl	_vaErrorStr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh32:
	adrp	x2, l_.str.1@PAGE
Lloh33:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
	mov	x20, x0
Lloh34:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w21, [x8]
	bl	_vaErrorStr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh37:
	adrp	x2, l_.str.3@PAGE
Lloh38:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_av_log
Lloh39:
	adrp	x8, _EIO@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
	ldr	x8, [x22, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	w3, #1
	bl	_vaRenderPicture
LBB0_13:
	ldr	x8, [x22, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x22]
	bl	_vaEndPicture
LBB0_14:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
	mov	x20, x0
Lloh42:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh44:
	ldr	w21, [x8]
	bl	_vaErrorStr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh45:
	adrp	x2, l_.str.4@PAGE
Lloh46:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_av_log
Lloh47:
	adrp	x8, _EIO@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.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 attach new picture: %d (%s).\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_VAProcPipelineParameterBufferType,4,2 ; @VAProcPipelineParameterBufferType
l_.str.1:                               ; @.str.1
	.asciz	"Failed to create parameter buffer: %d (%s).\n"

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"Pipeline parameter buffer is %#x.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to render parameter buffer: %d (%s).\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to start picture processing: %d (%s).\n"

	.comm	_CONFIG_VAAPI_1,8,3             ; @CONFIG_VAAPI_1
	.comm	_AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS,4,2 ; @AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS
l_.str.5:                               ; @.str.5
	.asciz	"Failed to free parameter buffer: %d (%s).\n"

.subsections_via_symbols
