	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vaapi_decode_issue          ## -- Begin function ff_vaapi_decode_issue
	.p2align	4, 0x90
_ff_vaapi_decode_issue:                 ## @ff_vaapi_decode_issue
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r13
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	28(%r12), %rcx
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	8(%r13), %rax
	movl	4(%rax), %edi
	movl	(%r13), %esi
	movl	28(%r12), %edx
	callq	_vaBeginPicture
	movq	_VA_STATUS_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_1
## %bb.6:
	movq	8(%r13), %rax
	movl	4(%rax), %edi
	movl	(%r13), %esi
	movl	(%r12), %ecx
	movl	24(%r12), %edx
	callq	_vaRenderPicture
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.8:
	movq	8(%r13), %rax
	movl	4(%rax), %edi
	movl	(%r13), %esi
	movl	4(%r12), %ecx
	movl	8(%r12), %edx
	addl	%ecx, %ecx
	callq	_vaRenderPicture
	cmpq	(%r15), %rax
	jne	LBB0_9
## %bb.10:
	movq	8(%r13), %rax
	movl	4(%rax), %edi
	movl	(%r13), %esi
	callq	_vaEndPicture
	cmpq	(%r15), %rax
	jne	LBB0_11
## %bb.14:
	movq	_CONFIG_VAAPI_1@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.15:
	movq	8(%r13), %rax
	movq	_AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_1:
	movq	%rax, %rbx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_vaErrorStr
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_2
LBB0_7:
	movq	%rax, %rbx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_vaErrorStr
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_2
LBB0_9:
	movq	%rax, %rbx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_vaErrorStr
	leaq	L_.str.3(%rip), %rdx
LBB0_2:
	movq	%r14, %rdi
	movl	%r15d, %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, %r15d
	movq	8(%r13), %rax
	movl	4(%rax), %edi
	movl	(%r13), %esi
	callq	_vaEndPicture
	movq	%rax, %rbx
	movq	_VA_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_4
## %bb.3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_vaErrorStr
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
LBB0_4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ff_vaapi_decode_destroy_buffers
LBB0_5:
	movq	$0, (%r12)
	movq	$0, 16(%r12)
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_av_freep
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rax, %rbx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_vaErrorStr
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %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, %r15d
	movq	_CONFIG_VAAPI_1@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.12:
	movq	8(%r13), %rax
	movq	_AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_13:
	testl	%ecx, (%rax)
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Decode to surface %#x.\n"

	.comm	_VA_STATUS_SUCCESS,8,3          ## @VA_STATUS_SUCCESS
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Failed to begin picture decode issue: %d (%s).\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"Failed to upload decode parameters: %d (%s).\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to upload slices: %d (%s).\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to end picture decode issue: %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 end picture decode after error: %d (%s).\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vaapi_decode_issue          ; -- Begin function ff_vaapi_decode_issue
	.p2align	2
_ff_vaapi_decode_issue:                 ; @ff_vaapi_decode_issue
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x23, [x8]
Lloh0:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldrsw	x3, [x19, #28]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	x8, [x23, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x23]
	ldr	w2, [x19, #28]
	bl	_vaBeginPicture
Lloh5:
	adrp	x24, _VA_STATUS_SUCCESS@GOTPAGE
Lloh6:
	ldr	x24, [x24, _VA_STATUS_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x23, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x23]
	ldr	w2, [x19, #24]
	ldr	w3, [x19]
	bl	_vaRenderPicture
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x23, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x23]
	ldp	w8, w2, [x19, #4]
	lsl	w3, w8, #1
	bl	_vaRenderPicture
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.3:
	ldr	x8, [x23, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x23]
	bl	_vaEndPicture
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.4:
Lloh7:
	adrp	x8, _CONFIG_VAAPI_1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CONFIG_VAAPI_1@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.5:
	mov	w21, #0
	b	LBB0_11
LBB0_6:
	mov	x21, x0
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	bl	_vaErrorStr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x21, x0
Lloh15:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	bl	_vaErrorStr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x21, x0
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w22, [x8]
	bl	_vaErrorStr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_9:
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	bl	_av_log
Lloh25:
	adrp	x8, _EIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
	ldr	x8, [x23, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x23]
	bl	_vaEndPicture
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.10:
	mov	x22, x0
Lloh28:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w23, [x8]
	bl	_vaErrorStr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh31:
	adrp	x2, l_.str.5@PAGE
Lloh32:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x1, x23
	mov	x3, x22
	bl	_av_log
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	bl	_ff_vaapi_decode_destroy_buffers
LBB0_12:
	str	xzr, [x19]
	add	x0, x19, #8
	str	xzr, [x19, #16]
	bl	_av_freep
	mov	x0, x21
	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_13:
	mov	x21, x0
Lloh33:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w22, [x8]
	bl	_vaErrorStr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh36:
	adrp	x2, l_.str.4@PAGE
Lloh37:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	bl	_av_log
Lloh38:
	adrp	x8, _EIO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
Lloh41:
	adrp	x8, _CONFIG_VAAPI_1@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CONFIG_VAAPI_1@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	cbnz	x8, LBB0_11
	b	LBB0_15
LBB0_14:
	mov	w21, #0
LBB0_15:
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS@GOTPAGE
Lloh45:
	ldr	x9, [x9, _AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
	b	LBB0_12
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Decode to surface %#x.\n"

	.comm	_VA_STATUS_SUCCESS,8,3          ; @VA_STATUS_SUCCESS
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Failed to begin picture decode issue: %d (%s).\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"Failed to upload decode parameters: %d (%s).\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to upload slices: %d (%s).\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to end picture decode issue: %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 end picture decode after error: %d (%s).\n"

.subsections_via_symbols
