	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_uvd_validate_codec
_radeon_uvd_validate_codec:             ## @radeon_uvd_validate_codec
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%eax, %eax
	cmpl	$2, %esi
	jb	LBB0_4
## %bb.1:
	leal	-3(%rsi), %ecx
	cmpl	$1, %ecx
	ja	LBB0_3
## %bb.2:
	movq	(%rdi), %rcx
	movl	(%rcx), %ecx
	movq	_CHIP_PALM@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jge	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_PALM,4,2                  ## @CHIP_PALM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UVD codec not supported by hardware %d!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_radeon_uvd_validate_codec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_uvd_validate_codec
_radeon_uvd_validate_codec:             ; @radeon_uvd_validate_codec
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w1, #2
	b.lo	LBB0_4
; %bb.1:
	sub	w8, w1, #3
	cmp	w8, #1
	b.hi	LBB0_3
; %bb.2:
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _CHIP_PALM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_PALM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_4
LBB0_3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_PALM,4,2                  ; @CHIP_PALM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UVD codec not supported by hardware %d!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_radeon_uvd_validate_codec
.subsections_via_symbols
