	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vaapi_common_frame_params   ## -- Begin function ff_vaapi_common_frame_params
	.p2align	4, 0x90
_ff_vaapi_common_frame_params:          ## @ff_vaapi_common_frame_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rcx
	movq	(%rsi), %rax
	movq	8(%rax), %rdx
	movq	_VA_INVALID_ID@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%rsi, -32(%rbp)
	movq	(%rdx), %rsi
	movq	_AV_HWDEVICE_TYPE_VAAPI@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rsi
	jne	LBB0_5
## %bb.1:
	movq	8(%rdx), %r15
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_vaapi_decode_make_config
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	-32(%rbp), %rsi
	xorl	%ebx, %ebx
	cmpq	(%r14), %rsi
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	callq	_vaDestroyConfig
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VA_INVALID_ID,8,3              ## @VA_INVALID_ID
	.comm	_AV_HWDEVICE_TYPE_VAAPI,8,3     ## @AV_HWDEVICE_TYPE_VAAPI
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vaapi_common_frame_params   ; -- Begin function ff_vaapi_common_frame_params
	.p2align	2
_ff_vaapi_common_frame_params:          ; @ff_vaapi_common_frame_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x1]
	ldr	x9, [x8, #8]
Lloh0:
	adrp	x19, _VA_INVALID_ID@GOTPAGE
Lloh1:
	ldr	x19, [x19, _VA_INVALID_ID@GOTPAGEOFF]
	ldr	x10, [x19]
	str	x10, [sp, #8]
	ldr	x10, [x9]
Lloh2:
	adrp	x11, _AV_HWDEVICE_TYPE_VAAPI@GOTPAGE
Lloh3:
	ldr	x11, [x11, _AV_HWDEVICE_TYPE_VAAPI@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_6
; %bb.1:
	mov	x3, x1
	ldr	x20, [x9, #8]
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_vaapi_decode_make_config
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x1, [sp, #8]
	ldr	x8, [x19]
	cmp	x1, x8
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x20]
	bl	_vaDestroyConfig
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VA_INVALID_ID,8,3              ; @VA_INVALID_ID
	.comm	_AV_HWDEVICE_TYPE_VAAPI,8,3     ; @AV_HWDEVICE_TYPE_VAAPI
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
