	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_vdpau_get_surface_parameters ## -- Begin function av_vdpau_get_surface_parameters
	.p2align	4, 0x90
_av_vdpau_get_surface_parameters:       ## @av_vdpau_get_surface_parameters
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	8(%rdi), %r10d
	addl	$-128, %r10d
	cmpl	$5, %r10d
	ja	LBB0_5
## %bb.1:
	movl	(%rdi), %r11d
	movl	$-2, %r8d
	movl	$1, %r9d
	movl	$9, %eax
	btl	%r10d, %eax
	jb	LBB0_2
## %bb.3:
	movl	$18, %eax
	incl	%r11d
	andl	$-2, %r11d
	btl	%r10d, %eax
	jae	LBB0_4
## %bb.6:
	movq	_VDP_CHROMA_TYPE_422@GOTPCREL(%rip), %r10
	jmp	LBB0_7
LBB0_2:
	movq	_VDP_CHROMA_TYPE_444@GOTPCREL(%rip), %r10
	jmp	LBB0_7
LBB0_4:
	movq	_VDP_CHROMA_TYPE_420@GOTPCREL(%rip), %r10
	movl	$-4, %r8d
	movl	$3, %r9d
LBB0_7:
	movl	4(%rdi), %edi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movl	(%r10), %eax
	movl	%eax, (%rsi)
LBB0_9:
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.10:
	movl	%r11d, (%rdx)
LBB0_11:
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	addl	%r9d, %edi
	andl	%r8d, %edi
	movl	%edi, (%rcx)
LBB0_13:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VDP_CHROMA_TYPE_420,4,2        ## @VDP_CHROMA_TYPE_420
	.comm	_VDP_CHROMA_TYPE_422,4,2        ## @VDP_CHROMA_TYPE_422
	.comm	_VDP_CHROMA_TYPE_444,4,2        ## @VDP_CHROMA_TYPE_444
	.comm	_ENOSYS,4,2                     ## @ENOSYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_vdpau_get_surface_parameters ; -- Begin function av_vdpau_get_surface_parameters
	.p2align	2
_av_vdpau_get_surface_parameters:       ; @av_vdpau_get_surface_parameters
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #8]
	sub	w9, w8, #128
	cmp	w9, #5
	b.hi	LBB0_8
; %bb.1:
	ldp	w11, w8, [x0]
Lloh0:
	adrp	x12, _VDP_CHROMA_TYPE_444@GOTPAGE
Lloh1:
	ldr	x12, [x12, _VDP_CHROMA_TYPE_444@GOTPAGEOFF]
	mov	w10, #-2
	mov	w13, #1
	lsl	w9, w13, w9
	mov	w14, #9
	mov	w15, #18
	tst	w9, w15
	add	w15, w11, #1
	and	w15, w15, #0xfffffffe
Lloh2:
	adrp	x16, _VDP_CHROMA_TYPE_422@GOTPAGE
Lloh3:
	ldr	x16, [x16, _VDP_CHROMA_TYPE_422@GOTPAGEOFF]
	mov	w17, #-2
Lloh4:
	adrp	x0, _VDP_CHROMA_TYPE_420@GOTPAGE
Lloh5:
	ldr	x0, [x0, _VDP_CHROMA_TYPE_420@GOTPAGEOFF]
	mov	w4, #1
	mov	w5, #-4
	mov	w6, #3
	csel	w4, w4, w6, ne
	csel	w17, w17, w5, ne
	csel	x16, x16, x0, ne
	csel	w15, w15, w15, ne
	tst	w9, w14
	csel	w9, w13, w4, ne
	csel	w10, w10, w17, ne
	csel	x12, x12, x16, ne
	csel	w11, w11, w15, ne
	cbz	x1, LBB0_3
; %bb.2:
	ldr	w12, [x12]
	str	w12, [x1]
LBB0_3:
	cbz	x2, LBB0_5
; %bb.4:
	str	w11, [x2]
LBB0_5:
	cbz	x3, LBB0_7
; %bb.6:
	add	w8, w8, w9
	and	w8, w8, w10
	str	w8, [x3]
LBB0_7:
	mov	w0, #0
	ret
LBB0_8:
Lloh6:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	_AVERROR
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VDP_CHROMA_TYPE_420,4,2        ; @VDP_CHROMA_TYPE_420
	.comm	_VDP_CHROMA_TYPE_422,4,2        ; @VDP_CHROMA_TYPE_422
	.comm	_VDP_CHROMA_TYPE_444,4,2        ; @VDP_CHROMA_TYPE_444
	.comm	_ENOSYS,4,2                     ; @ENOSYS
.subsections_via_symbols
