	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vaapi_decode_uninit         ## -- Begin function ff_vaapi_decode_uninit
	.p2align	4, 0x90
_ff_vaapi_decode_uninit:                ## @ff_vaapi_decode_uninit
	.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	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rsi
	movq	_VA_INVALID_ID@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rsi
	je	LBB0_3
## %bb.1:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_vaDestroyContext
	movq	%rax, %r13
	movq	_VA_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_3
## %bb.2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_vaErrorStr
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movl	%eax, %r9d
	callq	_av_log
LBB0_3:
	movq	8(%rbx), %rsi
	cmpq	(%r12), %rsi
	je	LBB0_6
## %bb.4:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_vaDestroyConfig
	movq	%rax, %r13
	movq	_VA_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_6
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	8(%rbx), %r12
	movq	%r13, %rdi
	callq	_vaErrorStr
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %rcx
	movq	%r13, %r8
	movl	%eax, %r9d
	callq	_av_log
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VA_INVALID_ID,8,3              ## @VA_INVALID_ID
	.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 destroy decode context %#x: %d (%s).\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to destroy decode configuration %#x: %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_uninit         ; -- Begin function ff_vaapi_decode_uninit
	.p2align	2
_ff_vaapi_decode_uninit:                ; @ff_vaapi_decode_uninit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x23, [x8]
	ldr	x1, [x23]
Lloh0:
	adrp	x25, _VA_INVALID_ID@GOTPAGE
Lloh1:
	ldr	x25, [x25, _VA_INVALID_ID@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh2:
	adrp	x24, _VA_STATUS_SUCCESS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _VA_STATUS_SUCCESS@GOTPAGEOFF]
	cmp	x1, x8
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x23, #16]
	ldr	w0, [x8]
	bl	_vaDestroyContext
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x20, x0
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	ldr	x22, [x23]
	bl	_vaErrorStr
	mov	x5, x0
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	mov	x4, x20
	bl	_av_log
LBB0_3:
	ldr	x1, [x23, #8]
	ldr	x8, [x25]
	cmp	x1, x8
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x23, #16]
	ldr	w0, [x8]
	bl	_vaDestroyConfig
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
	mov	x20, x0
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	ldr	x22, [x23, #8]
	bl	_vaErrorStr
	mov	x5, x0
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	mov	x4, x20
	bl	_av_log
LBB0_6:
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VA_INVALID_ID,8,3              ; @VA_INVALID_ID
	.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 destroy decode context %#x: %d (%s).\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to destroy decode configuration %#x: %d (%s).\n"

.subsections_via_symbols
