	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atombios_dig_encoder_setup     ## -- Begin function atombios_dig_encoder_setup
	.p2align	4, 0x90
_atombios_dig_encoder_setup:            ## @atombios_dig_encoder_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %r13
	callq	_to_radeon_encoder
	movq	%rax, %r12
	movq	8(%rax), %rbx
	movq	%r15, %rdi
	callq	_radeon_get_connector_for_encoder
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_to_radeon_connector
	movq	8(%rax), %rcx
	movl	(%rcx), %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rcx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movq	_RADEON_HPD_NONE@GOTPCREL(%rip), %rax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	cmpl	$-1, (%rbx)
	je	LBB0_64
## %bb.4:
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%r13, %rbx
	movq	%r13, %rdi
	callq	_ASIC_IS_DCE4
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_DIGxEncoderControl@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.8:
	movq	_DIG1EncoderControl@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_DIG2EncoderControl@GOTPCREL(%rip), %rax
LBB0_9:
	movq	_COMMAND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	(%rbx), %edi
	leaq	-124(%rbp), %rdx
	leaq	-120(%rbp), %rcx
	movl	%eax, %ebx
	movl	%eax, %esi
	callq	_atom_parse_cmd_header
	testl	%eax, %eax
	je	LBB0_64
## %bb.10:
	movl	-124(%rbp), %esi
	movl	-120(%rbp), %edx
	cmpl	$1, %esi
	jne	LBB0_61
## %bb.11:
	leal	-2(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_31
## %bb.12:
	cmpl	$4, %edx
	je	LBB0_43
## %bb.13:
	cmpl	$1, %edx
	jne	LBB0_60
## %bb.14:
	movl	%r14d, -112(%rbp)
	movslq	(%r12), %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, -88(%rbp)
	movq	_ATOM_ENCODER_CMD_SETUP_PANEL_MODE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_16
## %bb.15:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -112(%rbp)
	movq	-96(%rbp), %rdi
	jmp	LBB0_17
LBB0_61:
	leaq	L_.str(%rip), %rdi
LBB0_62:
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_DRM_ERROR
	movl	%ebx, %r14d
	jmp	LBB0_63
LBB0_31:
	movl	%r14d, -108(%rbp)
	movslq	(%r12), %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, -72(%rbp)
	movq	_ATOM_ENCODER_CMD_SETUP_PANEL_MODE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_33
## %bb.32:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -112(%rbp)
	movq	-80(%rbp), %rdi
	jmp	LBB0_34
LBB0_43:
	movl	%r14d, -112(%rbp)
	movslq	(%r12), %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, -72(%rbp)
	movq	_ATOM_ENCODER_CMD_SETUP_PANEL_MODE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_45
## %bb.44:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -108(%rbp)
	movq	-80(%rbp), %rdi
	jmp	LBB0_46
LBB0_60:
	leaq	L_.str(%rip), %rdi
	movl	$1, %esi
	jmp	LBB0_62
LBB0_33:
	movq	%r15, %rdi
	callq	_atombios_get_encoder_mode
	movq	%rax, %rdi
	movq	%rax, -80(%rbp)
LBB0_34:
	movl	%ebx, %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	je	LBB0_36
## %bb.35:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -104(%rbp)
	jmp	LBB0_39
LBB0_36:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_radeon_dig_monitor_is_duallink
	testl	%eax, %eax
	je	LBB0_38
## %bb.37:
	movl	$8, -104(%rbp)
	jmp	LBB0_39
LBB0_16:
	movq	%r15, %rdi
	callq	_atombios_get_encoder_mode
	movq	%rax, %rdi
	movq	%rax, -96(%rbp)
LBB0_17:
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	movl	%ebx, %r14d
	je	LBB0_19
## %bb.18:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -108(%rbp)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_45:
	movq	%r15, %rdi
	callq	_atombios_get_encoder_mode
	movq	%rax, %rdi
	movq	%rax, -80(%rbp)
LBB0_46:
	movl	%ebx, %r14d
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_48
## %bb.47:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -104(%rbp)
	jmp	LBB0_51
LBB0_19:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_radeon_dig_monitor_is_duallink
	testl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_21
## %bb.20:
	movl	$8, -108(%rbp)
	jmp	LBB0_22
LBB0_48:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_radeon_dig_monitor_is_duallink
	testl	%eax, %eax
	je	LBB0_50
## %bb.49:
	movl	$8, -104(%rbp)
	jmp	LBB0_51
LBB0_38:
	movl	$4, -104(%rbp)
LBB0_39:
	movq	-80(%rbp), %rdi
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	je	LBB0_42
## %bb.40:
	cmpl	$270000, -48(%rbp)              ## 4-byte Folded Reload
                                        ## imm = 0x41EB0
	jne	LBB0_42
## %bb.41:
	movq	_ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -104(%rbp)
LBB0_42:
	movl	(%rbx), %eax
	movl	%eax, -88(%rbp)
	movq	%r15, %rdi
	callq	_radeon_atom_get_bpc
	movq	%rax, -96(%rbp)
	jmp	LBB0_63
LBB0_21:
	movl	$4, -108(%rbp)
LBB0_22:
	movq	-96(%rbp), %rdi
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	je	LBB0_25
## %bb.23:
	cmpl	$270000, -48(%rbp)              ## 4-byte Folded Reload
                                        ## imm = 0x41EB0
	jne	LBB0_25
## %bb.24:
	movq	_ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -104(%rbp)
LBB0_25:
	movl	4(%r12), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_27
## %bb.26:
	cltq
	leaq	l_switch.table.atombios_dig_encoder_setup(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
LBB0_27:
	cmpl	$0, 4(%rbx)
	je	LBB0_30
## %bb.28:
	movq	_ATOM_ENCODER_CONFIG_LINKB@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_30:
	movq	_ATOM_ENCODER_CONFIG_LINKA@GOTPCREL(%rip), %rax
LBB0_29:
	movl	(%rax), %eax
	orl	%eax, -104(%rbp)
	jmp	LBB0_63
LBB0_50:
	movl	$4, -104(%rbp)
LBB0_51:
	movq	-80(%rbp), %rdi
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	je	LBB0_57
## %bb.52:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	$270000, %eax                   ## imm = 0x41EB0
	je	LBB0_53
## %bb.54:
	cmpl	$540000, %eax                   ## imm = 0x83D60
	jne	LBB0_57
## %bb.55:
	movq	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_56
LBB0_53:
	movq	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ@GOTPCREL(%rip), %rax
LBB0_56:
	movl	(%rax), %eax
	orl	%eax, -104(%rbp)
LBB0_57:
	movl	(%rbx), %eax
	movl	%eax, -88(%rbp)
	movq	%r15, %rdi
	callq	_radeon_atom_get_bpc
	movq	%rax, -96(%rbp)
	movq	_RADEON_HPD_NONE@GOTPCREL(%rip), %rax
	movl	-116(%rbp), %ecx                ## 4-byte Reload
	cmpl	(%rax), %ecx
	jne	LBB0_59
## %bb.58:
	movl	$0, -100(%rbp)
	jmp	LBB0_63
LBB0_59:
	movl	%ecx, %eax
	incl	%eax
	movl	%eax, -100(%rbp)
LBB0_63:
	movl	(%r13), %edi
	leaq	-112(%rbp), %rdx
	movl	%r14d, %esi
	callq	_atom_execute_table
LBB0_64:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_HPD_NONE,4,2            ## @RADEON_HPD_NONE
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_DIGxEncoderControl,4,2         ## @DIGxEncoderControl
	.comm	_DIG2EncoderControl,4,2         ## @DIG2EncoderControl
	.comm	_DIG1EncoderControl,4,2         ## @DIG1EncoderControl
	.comm	_ATOM_ENCODER_CMD_SETUP_PANEL_MODE,4,2 ## @ATOM_ENCODER_CMD_SETUP_PANEL_MODE
	.comm	_ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ,4,2 ## @ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ
	.comm	_ATOM_ENCODER_CONFIG_V2_TRANSMITTER1,4,2 ## @ATOM_ENCODER_CONFIG_V2_TRANSMITTER1
	.comm	_ATOM_ENCODER_CONFIG_V2_TRANSMITTER2,4,2 ## @ATOM_ENCODER_CONFIG_V2_TRANSMITTER2
	.comm	_ATOM_ENCODER_CONFIG_V2_TRANSMITTER3,4,2 ## @ATOM_ENCODER_CONFIG_V2_TRANSMITTER3
	.comm	_ATOM_ENCODER_CONFIG_LINKB,4,2  ## @ATOM_ENCODER_CONFIG_LINKB
	.comm	_ATOM_ENCODER_CONFIG_LINKA,4,2  ## @ATOM_ENCODER_CONFIG_LINKA
	.comm	_ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ,4,2 ## @ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ
	.comm	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ,4,2 ## @ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ
	.comm	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ,4,2 ## @ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown table version %d, %d\n"

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.atombios_dig_encoder_setup
l_switch.table.atombios_dig_encoder_setup:
	.quad	_ATOM_ENCODER_CONFIG_V2_TRANSMITTER3
	.quad	_ATOM_ENCODER_CONFIG_V2_TRANSMITTER2
	.quad	_ATOM_ENCODER_CONFIG_V2_TRANSMITTER1
	.quad	_ATOM_ENCODER_CONFIG_V2_TRANSMITTER2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atombios_dig_encoder_setup     ; -- Begin function atombios_dig_encoder_setup
	.p2align	2
_atombios_dig_encoder_setup:            ; @atombios_dig_encoder_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x19, [x8]
	bl	_to_radeon_encoder
	mov	x22, x0
	ldr	x25, [x0, #8]
	mov	x0, x21
	bl	_radeon_get_connector_for_encoder
Lloh0:
	adrp	x8, _RADEON_HPD_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_HPD_NONE@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x26, x8
	bl	_to_radeon_connector
	ldr	x8, [x0, #8]
	ldp	w9, w27, [x8]
	str	w9, [sp, #4]                    ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:
	mov	w27, #0
	str	wzr, [sp, #4]                   ; 4-byte Folded Spill
	mov	x26, x8
	mov	x0, x8
LBB0_3:
	ldr	w8, [x25]
	cmn	w8, #1
	b.eq	LBB0_64
; %bb.4:
	ldr	w28, [x0]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	x0, x19
	bl	_ASIC_IS_DCE4
	cbz	x0, LBB0_6
; %bb.5:
Lloh2:
	adrp	x8, _DIGxEncoderControl@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DIGxEncoderControl@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	w8, [x25]
Lloh4:
	adrp	x9, _DIG2EncoderControl@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DIG2EncoderControl@GOTPAGEOFF]
Lloh6:
	adrp	x10, _DIG1EncoderControl@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DIG1EncoderControl@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
LBB0_7:
Lloh8:
	adrp	x9, _COMMAND@GOTPAGE
Lloh9:
	ldr	x9, [x9, _COMMAND@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x20, x0
	ldr	w0, [x19]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x1, x20
	bl	_atom_parse_cmd_header
	cbz	w0, LBB0_64
; %bb.8:
	ldp	w2, w1, [sp, #8]
	cmp	w1, #1
	b.ne	LBB0_14
; %bb.9:
	sub	w8, w2, #2
	cmp	w8, #2
	b.lo	LBB0_16
; %bb.10:
	cmp	w2, #4
	b.eq	LBB0_19
; %bb.11:
	cmp	w2, #1
	b.ne	LBB0_21
; %bb.12:
	str	w24, [sp, #16]
	ldrsw	x8, [x22]
	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, #40]
Lloh11:
	adrp	x8, _ATOM_ENCODER_CMD_SETUP_PANEL_MODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATOM_ENCODER_CMD_SETUP_PANEL_MODE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_25
; %bb.13:
	str	w23, [sp, #16]
	ldr	x0, [sp, #32]
	b	LBB0_26
LBB0_14:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
LBB0_15:
	bl	_DRM_ERROR
	b	LBB0_63
LBB0_16:
	str	w24, [sp, #20]
	ldrsw	x8, [x22]
	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, #56]
Lloh16:
	adrp	x8, _ATOM_ENCODER_CMD_SETUP_PANEL_MODE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ATOM_ENCODER_CMD_SETUP_PANEL_MODE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_22
; %bb.17:
	str	w23, [sp, #16]
	ldr	x0, [sp, #48]
	bl	_ENCODER_MODE_IS_DP
	cbz	w0, LBB0_23
LBB0_18:
	str	w27, [sp, #24]
	b	LBB0_37
LBB0_19:
	str	w24, [sp, #16]
	ldrsw	x8, [x22]
	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, #56]
Lloh19:
	adrp	x8, _ATOM_ENCODER_CMD_SETUP_PANEL_MODE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ATOM_ENCODER_CMD_SETUP_PANEL_MODE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_28
; %bb.20:
	str	w23, [sp, #20]
	ldr	x0, [sp, #48]
	b	LBB0_29
LBB0_21:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #1
	b	LBB0_15
LBB0_22:
	mov	x0, x21
	bl	_atombios_get_encoder_mode
	str	x0, [sp, #48]
	bl	_ENCODER_MODE_IS_DP
	cbnz	w0, LBB0_18
LBB0_23:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_radeon_dig_monitor_is_duallink
	cbz	w0, LBB0_35
; %bb.24:
	mov	w8, #8
	b	LBB0_36
LBB0_25:
	mov	x0, x21
	bl	_atombios_get_encoder_mode
	str	x0, [sp, #32]
LBB0_26:
	bl	_ENCODER_MODE_IS_DP
	cbz	w0, LBB0_31
; %bb.27:
	str	w27, [sp, #20]
	b	LBB0_43
LBB0_28:
	mov	x0, x21
	bl	_atombios_get_encoder_mode
	str	x0, [sp, #48]
LBB0_29:
	bl	_ENCODER_MODE_IS_DP
	cbz	w0, LBB0_33
; %bb.30:
	str	w27, [sp, #24]
	b	LBB0_54
LBB0_31:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_radeon_dig_monitor_is_duallink
	cbz	w0, LBB0_41
; %bb.32:
	mov	w8, #8
	b	LBB0_42
LBB0_33:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_radeon_dig_monitor_is_duallink
	cbz	w0, LBB0_52
; %bb.34:
	mov	w8, #8
	b	LBB0_53
LBB0_35:
	mov	w8, #4
LBB0_36:
	str	w8, [sp, #24]
LBB0_37:
	ldr	x0, [sp, #48]
	bl	_ENCODER_MODE_IS_DP
	cbz	w0, LBB0_40
; %bb.38:
	mov	w8, #7856
	movk	w8, #4, lsl #16
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w9, w8
	b.ne	LBB0_40
; %bb.39:
Lloh24:
	adrp	x8, _ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]
	orr	w8, w9, w8
	str	w8, [sp, #24]
LBB0_40:
	ldr	w8, [x25]
	str	w8, [sp, #40]
	mov	x0, x21
	bl	_radeon_atom_get_bpc
	str	x0, [sp, #32]
	b	LBB0_63
LBB0_41:
	mov	w8, #4
LBB0_42:
	str	w8, [sp, #20]
LBB0_43:
	ldr	x0, [sp, #32]
	bl	_ENCODER_MODE_IS_DP
	cbz	w0, LBB0_46
; %bb.44:
	mov	w8, #7856
	movk	w8, #4, lsl #16
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w9, w8
	b.ne	LBB0_46
; %bb.45:
Lloh27:
	adrp	x8, _ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]
	orr	w8, w9, w8
	str	w8, [sp, #24]
LBB0_46:
	ldr	w8, [x22, #4]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_48
; %bb.47:
Lloh30:
	adrp	x9, l_switch.table.atombios_dig_encoder_setup@PAGE
Lloh31:
	add	x9, x9, l_switch.table.atombios_dig_encoder_setup@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	str	w8, [sp, #24]
LBB0_48:
	ldr	w8, [x25, #4]
	cbz	w8, LBB0_50
; %bb.49:
Lloh32:
	adrp	x8, _ATOM_ENCODER_CONFIG_LINKB@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ATOM_ENCODER_CONFIG_LINKB@GOTPAGEOFF]
	b	LBB0_51
LBB0_50:
Lloh34:
	adrp	x8, _ATOM_ENCODER_CONFIG_LINKA@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ATOM_ENCODER_CONFIG_LINKA@GOTPAGEOFF]
LBB0_51:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]
	orr	w8, w9, w8
	str	w8, [sp, #24]
	b	LBB0_63
LBB0_52:
	mov	w8, #4
LBB0_53:
	str	w8, [sp, #24]
LBB0_54:
	ldr	x0, [sp, #48]
	bl	_ENCODER_MODE_IS_DP
	cbz	w0, LBB0_60
; %bb.55:
	mov	w8, #7856
	movk	w8, #4, lsl #16
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w9, w8
	b.eq	LBB0_58
; %bb.56:
	mov	w8, #15712
	movk	w8, #8, lsl #16
	cmp	w9, w8
	b.ne	LBB0_60
; %bb.57:
Lloh36:
	adrp	x8, _ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ@GOTPAGEOFF]
	b	LBB0_59
LBB0_58:
Lloh38:
	adrp	x8, _ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ@GOTPAGEOFF]
LBB0_59:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]
	orr	w8, w9, w8
	str	w8, [sp, #24]
LBB0_60:
	ldr	w8, [x25]
	str	w8, [sp, #40]
	mov	x0, x21
	bl	_radeon_atom_get_bpc
	str	x0, [sp, #32]
	ldr	w8, [x26]
	cmp	w28, w8
	b.ne	LBB0_62
; %bb.61:
	str	wzr, [sp, #28]
	b	LBB0_63
LBB0_62:
	add	w8, w28, #1
	str	w8, [sp, #28]
LBB0_63:
	ldr	w0, [x19]
	add	x2, sp, #16
	mov	x1, x20
	bl	_atom_execute_table
LBB0_64:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_HPD_NONE,4,2            ; @RADEON_HPD_NONE
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_DIGxEncoderControl,4,2         ; @DIGxEncoderControl
	.comm	_DIG2EncoderControl,4,2         ; @DIG2EncoderControl
	.comm	_DIG1EncoderControl,4,2         ; @DIG1EncoderControl
	.comm	_ATOM_ENCODER_CMD_SETUP_PANEL_MODE,4,2 ; @ATOM_ENCODER_CMD_SETUP_PANEL_MODE
	.comm	_ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ,4,2 ; @ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ
	.comm	_ATOM_ENCODER_CONFIG_V2_TRANSMITTER1,4,2 ; @ATOM_ENCODER_CONFIG_V2_TRANSMITTER1
	.comm	_ATOM_ENCODER_CONFIG_V2_TRANSMITTER2,4,2 ; @ATOM_ENCODER_CONFIG_V2_TRANSMITTER2
	.comm	_ATOM_ENCODER_CONFIG_V2_TRANSMITTER3,4,2 ; @ATOM_ENCODER_CONFIG_V2_TRANSMITTER3
	.comm	_ATOM_ENCODER_CONFIG_LINKB,4,2  ; @ATOM_ENCODER_CONFIG_LINKB
	.comm	_ATOM_ENCODER_CONFIG_LINKA,4,2  ; @ATOM_ENCODER_CONFIG_LINKA
	.comm	_ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ,4,2 ; @ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ
	.comm	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ,4,2 ; @ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ
	.comm	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ,4,2 ; @ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown table version %d, %d\n"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.atombios_dig_encoder_setup
l_switch.table.atombios_dig_encoder_setup:
	.quad	_ATOM_ENCODER_CONFIG_V2_TRANSMITTER3
	.quad	_ATOM_ENCODER_CONFIG_V2_TRANSMITTER2
	.quad	_ATOM_ENCODER_CONFIG_V2_TRANSMITTER1
	.quad	_ATOM_ENCODER_CONFIG_V2_TRANSMITTER2

.subsections_via_symbols
