	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atombios_digital_setup         ## -- Begin function atombios_digital_setup
	.p2align	4, 0x90
_atombios_digital_setup:                ## @atombios_digital_setup
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	callq	_to_radeon_encoder
	movq	16(%rax), %r12
	testq	%r12, %r12
	je	LBB0_47
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_atombios_get_encoder_mode
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_ATOM_ENCODER_MODE_HDMI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	-72(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	(%r15), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_8
## %bb.2:
	movq	_LVDSEncoderControl@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	_TMDS1EncoderControl@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_ATOM_DEVICE_LCD_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	jne	LBB0_5
## %bb.6:
	movq	_TMDS2EncoderControl@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_LVDSEncoderControl@GOTPCREL(%rip), %rax
LBB0_7:
	movq	_COMMAND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	%eax, %r14d
LBB0_8:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	leaq	-96(%rbp), %rdx
	leaq	-92(%rbp), %rcx
	movl	%r14d, %esi
	callq	_atom_parse_cmd_header
	testl	%eax, %eax
	je	LBB0_47
## %bb.9:
	movl	-96(%rbp), %esi
	leal	-1(%rsi), %eax
	movl	-92(%rbp), %edx
	cmpl	$1, %eax
	ja	LBB0_45
## %bb.10:
	leal	-2(%rdx), %eax
	cmpl	$2, %eax
	jae	LBB0_11
## %bb.24:
	movl	$0, -72(%rbp)
	movl	%r13d, -68(%rbp)
	xorl	%eax, %eax
	cmpl	$3, %edx
	jne	LBB0_25
## %bb.26:
	cmpl	$0, 8(%r12)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_28
## %bb.27:
	movq	_PANEL_ENCODER_MISC_COHERENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	jmp	LBB0_28
LBB0_11:
	cmpl	$1, %edx
	jne	LBB0_45
## %bb.12:
	movl	$0, -72(%rbp)
	movl	%r13d, -68(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -88(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_14
## %bb.13:
	movq	_PANEL_ENCODER_MISC_HDMI_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
LBB0_14:
	movslq	8(%r15), %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movq	_ATOM_DEVICE_LCD_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_19
## %bb.15:
	movl	(%r12), %eax
	movq	_ATOM_PANEL_MISC_DUAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	_PANEL_ENCODER_MISC_DUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -72(%rbp)
	movl	(%r12), %eax
LBB0_17:
	movq	_ATOM_PANEL_MISC_888RGB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_46
## %bb.18:
	orl	%ecx, -72(%rbp)
	jmp	LBB0_46
LBB0_45:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_DRM_ERROR
LBB0_46:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	leaq	-72(%rbp), %rdx
	movl	%r14d, %esi
	callq	_atom_execute_table
LBB0_47:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
LBB0_28:
	cmpq	%rdx, %rcx
	jne	LBB0_30
## %bb.29:
	movq	_PANEL_ENCODER_MISC_HDMI_TYPE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -72(%rbp)
LBB0_30:
	movslq	8(%r15), %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le16
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -64(%rbp)
	movq	_ATOM_DEVICE_LCD_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_41
## %bb.31:
	movl	(%r12), %eax
	movq	_ATOM_PANEL_MISC_DUAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_33
## %bb.32:
	movq	_PANEL_ENCODER_MISC_DUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -72(%rbp)
	movl	(%r12), %eax
LBB0_33:
	movq	_ATOM_PANEL_MISC_SPATIAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_36
## %bb.34:
	movq	_PANEL_ENCODER_SPATIAL_DITHER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, -60(%rbp)
	movl	(%r12), %eax
	movq	_ATOM_PANEL_MISC_888RGB@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_36
## %bb.35:
	movq	_PANEL_ENCODER_SPATIAL_DITHER_DEPTH@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -60(%rbp)
	movl	(%r12), %eax
LBB0_36:
	movq	_ATOM_PANEL_MISC_TEMPORAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_46
## %bb.37:
	movq	_PANEL_ENCODER_TEMPORAL_DITHER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	(%r12), %edx
	movq	_ATOM_PANEL_MISC_888RGB@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_39
## %bb.38:
	movq	_PANEL_ENCODER_TEMPORAL_DITHER_DEPTH@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -64(%rbp)
	movl	(%r12), %edx
LBB0_39:
	movq	_ATOM_PANEL_MISC_GREY_LEVEL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	andl	$3, %edx
	cmpl	$2, %edx
	jne	LBB0_46
## %bb.40:
	movq	_PANEL_ENCODER_TEMPORAL_LEVEL_4@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -64(%rbp)
	jmp	LBB0_46
LBB0_41:
	cmpl	$0, 4(%r12)
	je	LBB0_43
## %bb.42:
	movq	_PANEL_ENCODER_MISC_TMDS_LINKB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -72(%rbp)
LBB0_43:
	movl	8(%r15), %esi
	movq	%rbx, %rdi
	callq	_radeon_dig_monitor_is_duallink
	testl	%eax, %eax
	je	LBB0_46
## %bb.44:
	movq	_PANEL_ENCODER_MISC_DUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -72(%rbp)
	jmp	LBB0_46
LBB0_19:
	cmpl	$0, 4(%r12)
	je	LBB0_21
## %bb.20:
	movq	_PANEL_ENCODER_MISC_TMDS_LINKB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -72(%rbp)
LBB0_21:
	movl	8(%r15), %esi
	movq	%rbx, %rdi
	callq	_radeon_dig_monitor_is_duallink
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movq	_PANEL_ENCODER_MISC_DUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_23:
	orl	-72(%rbp), %eax
	movq	_ATOM_PANEL_MISC_888RGB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -72(%rbp)
	jmp	LBB0_46
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_ATOM_ENCODER_MODE_HDMI,8,3     ## @ATOM_ENCODER_MODE_HDMI
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_LVDSEncoderControl,4,2         ## @LVDSEncoderControl
	.comm	_TMDS1EncoderControl,4,2        ## @TMDS1EncoderControl
	.comm	_ATOM_DEVICE_LCD_SUPPORT,4,2    ## @ATOM_DEVICE_LCD_SUPPORT
	.comm	_TMDS2EncoderControl,4,2        ## @TMDS2EncoderControl
	.comm	_PANEL_ENCODER_MISC_HDMI_TYPE,4,2 ## @PANEL_ENCODER_MISC_HDMI_TYPE
	.comm	_ATOM_PANEL_MISC_DUAL,4,2       ## @ATOM_PANEL_MISC_DUAL
	.comm	_PANEL_ENCODER_MISC_DUAL,4,2    ## @PANEL_ENCODER_MISC_DUAL
	.comm	_ATOM_PANEL_MISC_888RGB,4,2     ## @ATOM_PANEL_MISC_888RGB
	.comm	_PANEL_ENCODER_MISC_TMDS_LINKB,4,2 ## @PANEL_ENCODER_MISC_TMDS_LINKB
	.comm	_PANEL_ENCODER_MISC_COHERENT,4,2 ## @PANEL_ENCODER_MISC_COHERENT
	.comm	_ATOM_PANEL_MISC_SPATIAL,4,2    ## @ATOM_PANEL_MISC_SPATIAL
	.comm	_PANEL_ENCODER_SPATIAL_DITHER_EN,4,2 ## @PANEL_ENCODER_SPATIAL_DITHER_EN
	.comm	_PANEL_ENCODER_SPATIAL_DITHER_DEPTH,4,2 ## @PANEL_ENCODER_SPATIAL_DITHER_DEPTH
	.comm	_ATOM_PANEL_MISC_TEMPORAL,4,2   ## @ATOM_PANEL_MISC_TEMPORAL
	.comm	_PANEL_ENCODER_TEMPORAL_DITHER_EN,4,2 ## @PANEL_ENCODER_TEMPORAL_DITHER_EN
	.comm	_PANEL_ENCODER_TEMPORAL_DITHER_DEPTH,4,2 ## @PANEL_ENCODER_TEMPORAL_DITHER_DEPTH
	.comm	_ATOM_PANEL_MISC_GREY_LEVEL_SHIFT,4,2 ## @ATOM_PANEL_MISC_GREY_LEVEL_SHIFT
	.comm	_PANEL_ENCODER_TEMPORAL_LEVEL_4,4,2 ## @PANEL_ENCODER_TEMPORAL_LEVEL_4
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown table version %d, %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atombios_digital_setup         ; -- Begin function atombios_digital_setup
	.p2align	2
_atombios_digital_setup:                ; @atombios_digital_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x24, [x8]
	bl	_to_radeon_encoder
	ldr	x25, [x0, #16]
	cbz	x25, LBB0_36
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	bl	_atombios_get_encoder_mode
	mov	x22, x0
Lloh0:
	adrp	x8, _ATOM_ENCODER_MODE_HDMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATOM_ENCODER_MODE_HDMI@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w8, [x21]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _LVDSEncoderControl@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LVDSEncoderControl@GOTPAGEOFF]
Lloh5:
	adrp	x10, lJTI0_0@PAGE
Lloh6:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
Lloh7:
	adrp	x8, _TMDS1EncoderControl@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TMDS1EncoderControl@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	w19, #0
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGEOFF]
	ldr	w10, [x21, #4]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x11, _TMDS2EncoderControl@GOTPAGE
Lloh13:
	ldr	x11, [x11, _TMDS2EncoderControl@GOTPAGEOFF]
	tst	w9, w10
	csel	x8, x11, x8, eq
LBB0_6:
Lloh14:
	adrp	x9, _COMMAND@GOTPAGE
Lloh15:
	ldr	x9, [x9, _COMMAND@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x19, x0
LBB0_7:
	ldr	w0, [x24]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x1, x19
	bl	_atom_parse_cmd_header
	cbz	w0, LBB0_36
; %bb.8:
	ldp	w2, w1, [sp, #8]
	sub	w8, w1, #1
	cmp	w8, #1
	b.hi	LBB0_34
; %bb.9:
	sub	w8, w2, #2
	cmp	w8, #2
	b.hs	LBB0_26
; %bb.10:
	mov	w8, #0
	stp	wzr, w23, [sp, #16]
	cmp	w2, #3
	b.ne	LBB0_13
; %bb.11:
	ldr	w8, [x25, #8]
	cbz	w8, LBB0_13
; %bb.12:
Lloh17:
	adrp	x8, _PANEL_ENCODER_MISC_COHERENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PANEL_ENCODER_MISC_COHERENT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [sp, #16]
LBB0_13:
	cmp	x22, x26
	b.ne	LBB0_15
; %bb.14:
Lloh20:
	adrp	x9, _PANEL_ENCODER_MISC_HDMI_TYPE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PANEL_ENCODER_MISC_HDMI_TYPE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #16]
LBB0_15:
	ldrsw	x8, [x21, #8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w0, w8, w9
	bl	_cpu_to_le16
	stp	xzr, x0, [sp, #32]
	str	xzr, [sp, #24]
	ldr	w8, [x21, #4]
Lloh23:
	adrp	x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_37
; %bb.16:
	ldr	w8, [x25]
Lloh26:
	adrp	x9, _ATOM_PANEL_MISC_DUAL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ATOM_PANEL_MISC_DUAL@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
Lloh29:
	adrp	x8, _PANEL_ENCODER_MISC_DUAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PANEL_ENCODER_MISC_DUAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [sp, #16]
	orr	w8, w9, w8
	str	w8, [sp, #16]
	ldr	w8, [x25]
LBB0_18:
Lloh32:
	adrp	x9, _ATOM_PANEL_MISC_SPATIAL@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ATOM_PANEL_MISC_SPATIAL@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.19:
Lloh35:
	adrp	x8, _PANEL_ENCODER_SPATIAL_DITHER_EN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PANEL_ENCODER_SPATIAL_DITHER_EN@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x8]
	str	w9, [sp, #28]
	ldr	w8, [x25]
Lloh38:
	adrp	x10, _ATOM_PANEL_MISC_888RGB@GOTPAGE
Lloh39:
	ldr	x10, [x10, _ATOM_PANEL_MISC_888RGB@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_21
; %bb.20:
Lloh41:
	adrp	x8, _PANEL_ENCODER_SPATIAL_DITHER_DEPTH@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PANEL_ENCODER_SPATIAL_DITHER_DEPTH@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [sp, #28]
	ldr	w8, [x25]
LBB0_21:
Lloh44:
	adrp	x9, _ATOM_PANEL_MISC_TEMPORAL@GOTPAGE
Lloh45:
	ldr	x9, [x9, _ATOM_PANEL_MISC_TEMPORAL@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_35
; %bb.22:
Lloh47:
	adrp	x8, _PANEL_ENCODER_TEMPORAL_DITHER_EN@GOTPAGE
Lloh48:
	ldr	x8, [x8, _PANEL_ENCODER_TEMPORAL_DITHER_EN@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	w9, [x25]
Lloh50:
	adrp	x10, _ATOM_PANEL_MISC_888RGB@GOTPAGE
Lloh51:
	ldr	x10, [x10, _ATOM_PANEL_MISC_888RGB@GOTPAGEOFF]
Lloh52:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_24
; %bb.23:
Lloh53:
	adrp	x9, _PANEL_ENCODER_TEMPORAL_DITHER_DEPTH@GOTPAGE
Lloh54:
	ldr	x9, [x9, _PANEL_ENCODER_TEMPORAL_DITHER_DEPTH@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #24]
	ldr	w9, [x25]
LBB0_24:
Lloh56:
	adrp	x10, _ATOM_PANEL_MISC_GREY_LEVEL_SHIFT@GOTPAGE
Lloh57:
	ldr	x10, [x10, _ATOM_PANEL_MISC_GREY_LEVEL_SHIFT@GOTPAGEOFF]
Lloh58:
	ldr	w10, [x10]
	asr	w9, w9, w10
	and	w9, w9, #0x3
	cmp	w9, #2
	b.ne	LBB0_35
; %bb.25:
Lloh59:
	adrp	x9, _PANEL_ENCODER_TEMPORAL_LEVEL_4@GOTPAGE
Lloh60:
	ldr	x9, [x9, _PANEL_ENCODER_TEMPORAL_LEVEL_4@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #24]
	b	LBB0_35
LBB0_26:
	cmp	w2, #1
	b.ne	LBB0_34
; %bb.27:
	stp	wzr, w23, [sp, #16]
	cmp	x22, x26
	b.ne	LBB0_29
; %bb.28:
Lloh62:
	adrp	x8, _PANEL_ENCODER_MISC_HDMI_TYPE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _PANEL_ENCODER_MISC_HDMI_TYPE@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	str	w8, [sp, #16]
LBB0_29:
	ldrsw	x8, [x21, #8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w0, w8, w9
	bl	_cpu_to_le16
	str	x0, [sp, #24]
	ldr	w8, [x21, #4]
Lloh65:
	adrp	x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGE
Lloh66:
	ldr	x9, [x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_41
; %bb.30:
	ldr	w8, [x25]
Lloh68:
	adrp	x9, _ATOM_PANEL_MISC_DUAL@GOTPAGE
Lloh69:
	ldr	x9, [x9, _ATOM_PANEL_MISC_DUAL@GOTPAGEOFF]
Lloh70:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.31:
Lloh71:
	adrp	x8, _PANEL_ENCODER_MISC_DUAL@GOTPAGE
Lloh72:
	ldr	x8, [x8, _PANEL_ENCODER_MISC_DUAL@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
	ldr	w9, [sp, #16]
	orr	w8, w9, w8
	str	w8, [sp, #16]
	ldr	w8, [x25]
LBB0_32:
Lloh74:
	adrp	x9, _ATOM_PANEL_MISC_888RGB@GOTPAGE
Lloh75:
	ldr	x9, [x9, _ATOM_PANEL_MISC_888RGB@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_35
; %bb.33:
	ldr	w8, [sp, #16]
	b	LBB0_44
LBB0_34:
Lloh77:
	adrp	x0, l_.str@PAGE
Lloh78:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_35:
	ldr	w0, [x24]
	add	x2, sp, #16
	mov	x1, x19
	bl	_atom_execute_table
LBB0_36:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_37:
	ldr	w8, [x25, #4]
	cbz	w8, LBB0_39
; %bb.38:
Lloh79:
	adrp	x8, _PANEL_ENCODER_MISC_TMDS_LINKB@GOTPAGE
Lloh80:
	ldr	x8, [x8, _PANEL_ENCODER_MISC_TMDS_LINKB@GOTPAGEOFF]
Lloh81:
	ldr	w8, [x8]
	ldr	w9, [sp, #16]
	orr	w8, w9, w8
	str	w8, [sp, #16]
LBB0_39:
	ldr	w1, [x21, #8]
	mov	x0, x20
	bl	_radeon_dig_monitor_is_duallink
	cbz	w0, LBB0_35
; %bb.40:
Lloh82:
	adrp	x8, _PANEL_ENCODER_MISC_DUAL@GOTPAGE
Lloh83:
	ldr	x8, [x8, _PANEL_ENCODER_MISC_DUAL@GOTPAGEOFF]
Lloh84:
	ldr	w8, [x8]
	ldr	w9, [sp, #16]
	orr	w8, w9, w8
	str	w8, [sp, #16]
	b	LBB0_35
LBB0_41:
	ldr	w8, [x25, #4]
	cbz	w8, LBB0_43
; %bb.42:
Lloh85:
	adrp	x8, _PANEL_ENCODER_MISC_TMDS_LINKB@GOTPAGE
Lloh86:
	ldr	x8, [x8, _PANEL_ENCODER_MISC_TMDS_LINKB@GOTPAGEOFF]
Lloh87:
	ldr	w8, [x8]
	ldr	w9, [sp, #16]
	orr	w8, w9, w8
	str	w8, [sp, #16]
LBB0_43:
	ldr	w1, [x21, #8]
	mov	x0, x20
	bl	_radeon_dig_monitor_is_duallink
	ldr	w8, [sp, #16]
Lloh88:
	adrp	x9, _PANEL_ENCODER_MISC_DUAL@GOTPAGE
Lloh89:
	ldr	x9, [x9, _PANEL_ENCODER_MISC_DUAL@GOTPAGEOFF]
Lloh90:
	ldr	w9, [x9]
	cmp	w0, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh91:
	adrp	x9, _ATOM_PANEL_MISC_888RGB@GOTPAGE
Lloh92:
	ldr	x9, [x9, _ATOM_PANEL_MISC_888RGB@GOTPAGEOFF]
Lloh93:
	ldr	w9, [x9]
LBB0_44:
	orr	w8, w8, w9
	str	w8, [sp, #16]
	b	LBB0_35
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
                                        ; -- End function
	.comm	_ATOM_ENCODER_MODE_HDMI,8,3     ; @ATOM_ENCODER_MODE_HDMI
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_LVDSEncoderControl,4,2         ; @LVDSEncoderControl
	.comm	_TMDS1EncoderControl,4,2        ; @TMDS1EncoderControl
	.comm	_ATOM_DEVICE_LCD_SUPPORT,4,2    ; @ATOM_DEVICE_LCD_SUPPORT
	.comm	_TMDS2EncoderControl,4,2        ; @TMDS2EncoderControl
	.comm	_PANEL_ENCODER_MISC_HDMI_TYPE,4,2 ; @PANEL_ENCODER_MISC_HDMI_TYPE
	.comm	_ATOM_PANEL_MISC_DUAL,4,2       ; @ATOM_PANEL_MISC_DUAL
	.comm	_PANEL_ENCODER_MISC_DUAL,4,2    ; @PANEL_ENCODER_MISC_DUAL
	.comm	_ATOM_PANEL_MISC_888RGB,4,2     ; @ATOM_PANEL_MISC_888RGB
	.comm	_PANEL_ENCODER_MISC_TMDS_LINKB,4,2 ; @PANEL_ENCODER_MISC_TMDS_LINKB
	.comm	_PANEL_ENCODER_MISC_COHERENT,4,2 ; @PANEL_ENCODER_MISC_COHERENT
	.comm	_ATOM_PANEL_MISC_SPATIAL,4,2    ; @ATOM_PANEL_MISC_SPATIAL
	.comm	_PANEL_ENCODER_SPATIAL_DITHER_EN,4,2 ; @PANEL_ENCODER_SPATIAL_DITHER_EN
	.comm	_PANEL_ENCODER_SPATIAL_DITHER_DEPTH,4,2 ; @PANEL_ENCODER_SPATIAL_DITHER_DEPTH
	.comm	_ATOM_PANEL_MISC_TEMPORAL,4,2   ; @ATOM_PANEL_MISC_TEMPORAL
	.comm	_PANEL_ENCODER_TEMPORAL_DITHER_EN,4,2 ; @PANEL_ENCODER_TEMPORAL_DITHER_EN
	.comm	_PANEL_ENCODER_TEMPORAL_DITHER_DEPTH,4,2 ; @PANEL_ENCODER_TEMPORAL_DITHER_DEPTH
	.comm	_ATOM_PANEL_MISC_GREY_LEVEL_SHIFT,4,2 ; @ATOM_PANEL_MISC_GREY_LEVEL_SHIFT
	.comm	_PANEL_ENCODER_TEMPORAL_LEVEL_4,4,2 ; @PANEL_ENCODER_TEMPORAL_LEVEL_4
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown table version %d, %d\n"

.subsections_via_symbols
