	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v6_0_pick_dig_encoder
_dce_v6_0_pick_dig_encoder:             ## @dce_v6_0_pick_dig_encoder
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_to_amdgpu_encoder
	movl	(%rax), %esi
	leal	-128(%rsi), %edx
	cmpl	$3, %edx
	ja	LBB0_3
## %bb.1:
	movq	8(%rax), %rcx
	movl	$6, %eax
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_2:
	cmpl	$1, (%rcx)
	movl	$5, %eax
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DRM_ERROR
	xorl	%eax, %eax
LBB0_4:
	popq	%rbp
	retq
LBB0_5:
	cmpl	$1, (%rcx)
	movl	$3, %eax
LBB0_6:
	sbbl	$0, %eax
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	cmpl	$0, (%rcx)
	setne	%al
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid encoder_id: 0x%x\n"

	.no_dead_strip	_dce_v6_0_pick_dig_encoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_v6_0_pick_dig_encoder
_dce_v6_0_pick_dig_encoder:             ; @dce_v6_0_pick_dig_encoder
	.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
	bl	_to_amdgpu_encoder
	ldr	w1, [x0]
	sub	w9, w1, #128
	cmp	w9, #3
	b.hi	LBB0_3
; %bb.1:
	ldr	x8, [x0, #8]
	mov	w0, #6
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldr	w8, [x8]
	cmp	w8, #0
	mov	w8, #4
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w8, [x8]
	cmp	w8, #0
	mov	w8, #2
LBB0_6:
	cinc	w0, w8, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid encoder_id: 0x%x\n"

	.no_dead_strip	_dce_v6_0_pick_dig_encoder
.subsections_via_symbols
