	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vaapi_decode_make_param_buffer ## -- Begin function ff_vaapi_decode_make_param_buffer
	.p2align	4, 0x90
_ff_vaapi_decode_make_param_buffer:     ## @ff_vaapi_decode_make_param_buffer
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r13
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	(%rsi), %rax
	movq	_MAX_PARAM_BUFFERS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_av_assert0
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %edx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rcx
	movl	$1, %r8d
	movq	%r13, %r9
	callq	_vaCreateBuffer
	movq	%rax, %rbx
	movq	_VA_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_1
## %bb.2:
	movl	-48(%rbp), %eax
	movq	(%r15), %rcx
	movq	8(%r15), %rdx
	leaq	1(%rcx), %rsi
	movq	%rsi, (%r15)
	movl	%eax, (%rdx,%rcx,4)
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %r9d
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_av_log
	xorl	%eax, %eax
	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	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%rbx, %r8
	movl	%eax, %r9d
	callq	_av_log
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PARAM_BUFFERS,8,3          ## @MAX_PARAM_BUFFERS
	.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 create parameter buffer (type %d): %d (%s).\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Param buffer (type %d, %zu bytes) is %#x.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vaapi_decode_make_param_buffer ; -- Begin function ff_vaapi_decode_make_param_buffer
	.p2align	2
_ff_vaapi_decode_make_param_buffer:     ; @ff_vaapi_decode_make_param_buffer
	.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	x21, x4
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x24, [x8]
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _MAX_PARAM_BUFFERS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_PARAM_BUFFERS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lt
	bl	_av_assert0
	ldr	x8, [x24, #8]
	ldr	w0, [x8]
	ldr	w1, [x24]
	add	x6, sp, #12
	mov	x2, x19
	mov	x3, x21
	mov	w4, #1
	mov	x5, x23
	bl	_vaCreateBuffer
Lloh3:
	adrp	x8, _VA_STATUS_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VA_STATUS_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
	ldp	x10, x9, [x22]
	add	x11, x10, #1
	str	x11, [x22]
	str	w8, [x9, x10, lsl #2]
Lloh6:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w5, [sp, #12]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	mov	x4, x21
	bl	_av_log
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x23, x0
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	bl	_vaErrorStr
	mov	x5, x0
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	mov	x4, x23
	bl	_av_log
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PARAM_BUFFERS,8,3          ; @MAX_PARAM_BUFFERS
	.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 create parameter buffer (type %d): %d (%s).\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Param buffer (type %d, %zu bytes) is %#x.\n"

.subsections_via_symbols
