	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atombios_dig_encoder_setup2    ## -- Begin function atombios_dig_encoder_setup2
	.p2align	4, 0x90
_atombios_dig_encoder_setup2:           ## @atombios_dig_encoder_setup2
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %r15
	callq	_to_radeon_encoder
	movq	%rax, %r13
	movq	8(%rax), %rbx
	movq	%r12, %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, -52(%rbp)                 ## 4-byte Spill
	movl	4(%rcx), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movq	_RADEON_HPD_NONE@GOTPCREL(%rip), %rax
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	cmpl	$-1, (%rbx)
	je	LBB0_70
## %bb.4:
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%r15, %rbx
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE4
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_DIGxEncoderControl@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	-112(%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_70
## %bb.10:
	movl	-124(%rbp), %esi
	movl	-120(%rbp), %edx
	cmpl	$1, %esi
	jne	LBB0_67
## %bb.11:
	leal	-2(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_30
## %bb.12:
	cmpl	$4, %edx
	je	LBB0_44
## %bb.13:
	cmpl	$1, %edx
	jne	LBB0_66
## %bb.14:
	movl	%r14d, -104(%rbp)
	movslq	(%r13), %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, -80(%rbp)
	movq	_ATOM_ENCODER_CMD_SETUP_PANEL_MODE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_16
## %bb.15:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -104(%rbp)
	movq	-88(%rbp), %rdi
	jmp	LBB0_17
LBB0_67:
	leaq	L_.str(%rip), %rdi
LBB0_68:
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_DRM_ERROR
	movl	%ebx, %r14d
	jmp	LBB0_69
LBB0_30:
	movl	%r14d, -100(%rbp)
	movslq	(%r13), %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_ENCODER_CMD_SETUP_PANEL_MODE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_32
## %bb.31:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -104(%rbp)
	movq	-72(%rbp), %rdi
	jmp	LBB0_33
LBB0_44:
	movl	%r14d, -104(%rbp)
	movslq	(%r13), %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_ENCODER_CMD_SETUP_PANEL_MODE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_46
## %bb.45:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -100(%rbp)
	movq	-72(%rbp), %rdi
	jmp	LBB0_47
LBB0_66:
	leaq	L_.str(%rip), %rdi
	movl	$1, %esi
	jmp	LBB0_68
LBB0_32:
	movq	%r12, %rdi
	callq	_atombios_get_encoder_mode
	movq	%rax, %rdi
	movq	%rax, -72(%rbp)
LBB0_33:
	movl	%ebx, %r14d
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	je	LBB0_35
## %bb.34:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -96(%rbp)
	jmp	LBB0_38
LBB0_35:
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_radeon_dig_monitor_is_duallink
	testl	%eax, %eax
	je	LBB0_37
## %bb.36:
	movl	$8, -96(%rbp)
	jmp	LBB0_38
LBB0_16:
	movq	%r12, %rdi
	callq	_atombios_get_encoder_mode
	movq	%rax, %rdi
	movq	%rax, -88(%rbp)
LBB0_17:
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	movl	%ebx, %r14d
	je	LBB0_19
## %bb.18:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -100(%rbp)
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	jmp	LBB0_22
LBB0_46:
	movq	%r12, %rdi
	callq	_atombios_get_encoder_mode
	movq	%rax, %rdi
	movq	%rax, -72(%rbp)
LBB0_47:
	movl	%ebx, %r14d
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	je	LBB0_49
## %bb.48:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -96(%rbp)
	jmp	LBB0_52
LBB0_19:
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_radeon_dig_monitor_is_duallink
	testl	%eax, %eax
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	je	LBB0_21
## %bb.20:
	movl	$8, -100(%rbp)
	jmp	LBB0_22
LBB0_49:
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_radeon_dig_monitor_is_duallink
	testl	%eax, %eax
	je	LBB0_51
## %bb.50:
	movl	$8, -96(%rbp)
	jmp	LBB0_52
LBB0_37:
	movl	$4, -96(%rbp)
LBB0_38:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-72(%rbp), %rdi
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	je	LBB0_41
## %bb.39:
	cmpl	$270000, -52(%rbp)              ## 4-byte Folded Reload
                                        ## imm = 0x41EB0
	jne	LBB0_41
## %bb.40:
	movq	_ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -96(%rbp)
LBB0_41:
	cmpl	$-1, %ebx
	jne	LBB0_43
## %bb.42:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %ebx
LBB0_43:
	movl	%ebx, -80(%rbp)
	movq	%r12, %rdi
	callq	_radeon_atom_get_bpc
	movq	%rax, -88(%rbp)
	jmp	LBB0_69
LBB0_21:
	movl	$4, -100(%rbp)
LBB0_22:
	movl	4(%r13), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_24
## %bb.23:
	cltq
	leaq	l_switch.table.atombios_dig_encoder_setup2(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
LBB0_24:
	cmpl	$0, 4(%rdx)
	jne	LBB0_25
## %bb.26:
	movq	_ATOM_ENCODER_CONFIG_LINKA@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_25:
	movq	_ATOM_ENCODER_CONFIG_LINKB@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %eax
	orl	%eax, -96(%rbp)
	movq	-88(%rbp), %rdi
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	je	LBB0_69
## %bb.28:
	cmpl	$270000, -52(%rbp)              ## 4-byte Folded Reload
                                        ## imm = 0x41EB0
	jne	LBB0_69
## %bb.29:
	movq	_ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -96(%rbp)
	jmp	LBB0_69
LBB0_51:
	movl	$4, -96(%rbp)
LBB0_52:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-72(%rbp), %rdi
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	je	LBB0_61
## %bb.53:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	$270000, %eax                   ## imm = 0x41EB0
	je	LBB0_58
## %bb.54:
	cmpl	$540000, %eax                   ## imm = 0x83D60
	je	LBB0_55
## %bb.56:
	cmpl	$324000, %eax                   ## imm = 0x4F1A0
	jne	LBB0_59
## %bb.57:
	movq	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_3_24GHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_60
LBB0_58:
	movq	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_60
LBB0_55:
	movq	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_60
LBB0_59:
	movq	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_1_62GHZ@GOTPCREL(%rip), %rax
LBB0_60:
	movl	(%rax), %eax
	orl	%eax, -96(%rbp)
LBB0_61:
	cmpl	$-1, %ebx
	jne	LBB0_63
## %bb.62:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %ebx
LBB0_63:
	movl	%ebx, -80(%rbp)
	movq	%r12, %rdi
	callq	_radeon_atom_get_bpc
	movq	%rax, -88(%rbp)
	movq	_RADEON_HPD_NONE@GOTPCREL(%rip), %rax
	movl	-116(%rbp), %ecx                ## 4-byte Reload
	cmpl	(%rax), %ecx
	jne	LBB0_65
## %bb.64:
	movl	$0, -92(%rbp)
	jmp	LBB0_69
LBB0_65:
	movl	%ecx, %eax
	incl	%eax
	movl	%eax, -92(%rbp)
LBB0_69:
	movl	(%r15), %edi
	leaq	-104(%rbp), %rdx
	movl	%r14d, %esi
	callq	_atom_execute_table
LBB0_70:
	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_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_DPLINKRATE_2_70GHZ,4,2 ## @ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ
	.comm	_ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ,4,2 ## @ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ
	.comm	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ,4,2 ## @ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ
	.comm	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_3_24GHZ,4,2 ## @ATOM_ENCODER_CONFIG_V4_DPLINKRATE_3_24GHZ
	.comm	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ,4,2 ## @ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ
	.comm	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_1_62GHZ,4,2 ## @ATOM_ENCODER_CONFIG_V4_DPLINKRATE_1_62GHZ
	.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_setup2
l_switch.table.atombios_dig_encoder_setup2:
	.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_setup2    ; -- Begin function atombios_dig_encoder_setup2
	.p2align	2
_atombios_dig_encoder_setup2:           ; @atombios_dig_encoder_setup2
	.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	x22, x3
	mov	x24, x2
	mov	x25, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x19, [x8]
	bl	_to_radeon_encoder
	mov	x23, x0
	ldr	x26, [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	x27, x8
	bl	_to_radeon_connector
	ldr	x8, [x0, #8]
	ldp	w9, w28, [x8]
	str	w9, [sp, #4]                    ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:
	mov	w28, #0
	str	wzr, [sp, #4]                   ; 4-byte Folded Spill
	mov	x27, x8
	mov	x0, x8
LBB0_3:
	ldr	w8, [x26]
	cmn	w8, #1
	b.eq	LBB0_67
; %bb.4:
	ldr	w8, [x0]
	str	w8, [sp]                        ; 4-byte Folded Spill
	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, [x26]
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_67
; %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	w25, [sp, #16]
	ldrsw	x8, [x23]
	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, w25
	b.ne	LBB0_25
; %bb.13:
	str	w24, [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_66
LBB0_16:
	str	w25, [sp, #20]
	ldrsw	x8, [x23]
	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, w25
	b.ne	LBB0_22
; %bb.17:
	str	w24, [sp, #16]
	ldr	x0, [sp, #48]
	bl	_ENCODER_MODE_IS_DP
	cbz	w0, LBB0_23
LBB0_18:
	str	w28, [sp, #24]
	b	LBB0_37
LBB0_19:
	str	w25, [sp, #16]
	ldrsw	x8, [x23]
	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, w25
	b.ne	LBB0_28
; %bb.20:
	str	w24, [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, [x23]
	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	w28, [sp, #20]
	b	LBB0_45
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	w28, [sp, #24]
	b	LBB0_52
LBB0_31:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_radeon_dig_monitor_is_duallink
	cbz	w0, LBB0_43
; %bb.32:
	mov	w8, #8
	b	LBB0_44
LBB0_33:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_radeon_dig_monitor_is_duallink
	cbz	w0, LBB0_50
; %bb.34:
	mov	w8, #8
	b	LBB0_51
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:
	cmn	w22, #1
	b.ne	LBB0_42
; %bb.41:
	ldr	w22, [x26]
LBB0_42:
	str	w22, [sp, #40]
	mov	x0, x21
	bl	_radeon_atom_get_bpc
	str	x0, [sp, #32]
	b	LBB0_66
LBB0_43:
	mov	w8, #4
LBB0_44:
	str	w8, [sp, #20]
LBB0_45:
	ldr	w8, [x23, #4]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_47
; %bb.46:
Lloh27:
	adrp	x9, l_switch.table.atombios_dig_encoder_setup2@PAGE
Lloh28:
	add	x9, x9, l_switch.table.atombios_dig_encoder_setup2@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	str	w8, [sp, #24]
LBB0_47:
	ldr	w8, [x26, #4]
Lloh29:
	adrp	x9, _ATOM_ENCODER_CONFIG_LINKA@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ATOM_ENCODER_CONFIG_LINKA@GOTPAGEOFF]
Lloh31:
	adrp	x10, _ATOM_ENCODER_CONFIG_LINKB@GOTPAGE
Lloh32:
	ldr	x10, [x10, _ATOM_ENCODER_CONFIG_LINKB@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	ldr	w9, [sp, #24]
	orr	w8, w9, w8
	str	w8, [sp, #24]
	ldr	x0, [sp, #32]
	bl	_ENCODER_MODE_IS_DP
	cbz	w0, LBB0_66
; %bb.48:
	mov	w8, #7856
	movk	w8, #4, lsl #16
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w9, w8
	b.ne	LBB0_66
; %bb.49:
Lloh33:
	adrp	x8, _ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]
	orr	w8, w9, w8
	str	w8, [sp, #24]
	b	LBB0_66
LBB0_50:
	mov	w8, #4
LBB0_51:
	str	w8, [sp, #24]
LBB0_52:
	ldr	x0, [sp, #48]
	bl	_ENCODER_MODE_IS_DP
	cbz	w0, LBB0_61
; %bb.53:
	mov	w8, #7856
	movk	w8, #4, lsl #16
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w9, w8
	b.eq	LBB0_57
; %bb.54:
	mov	w8, #15712
	movk	w8, #8, lsl #16
	cmp	w9, w8
	b.eq	LBB0_58
; %bb.55:
	mov	w8, #61856
	movk	w8, #4, lsl #16
	cmp	w9, w8
	b.ne	LBB0_59
; %bb.56:
Lloh36:
	adrp	x8, _ATOM_ENCODER_CONFIG_V4_DPLINKRATE_3_24GHZ@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ATOM_ENCODER_CONFIG_V4_DPLINKRATE_3_24GHZ@GOTPAGEOFF]
	b	LBB0_60
LBB0_57:
Lloh38:
	adrp	x8, _ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ@GOTPAGEOFF]
	b	LBB0_60
LBB0_58:
Lloh40:
	adrp	x8, _ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ@GOTPAGEOFF]
	b	LBB0_60
LBB0_59:
Lloh42:
	adrp	x8, _ATOM_ENCODER_CONFIG_V4_DPLINKRATE_1_62GHZ@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ATOM_ENCODER_CONFIG_V4_DPLINKRATE_1_62GHZ@GOTPAGEOFF]
LBB0_60:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]
	orr	w8, w9, w8
	str	w8, [sp, #24]
LBB0_61:
	cmn	w22, #1
	b.ne	LBB0_63
; %bb.62:
	ldr	w22, [x26]
LBB0_63:
	str	w22, [sp, #40]
	mov	x0, x21
	bl	_radeon_atom_get_bpc
	str	x0, [sp, #32]
	ldr	w8, [x27]
	ldr	w9, [sp]                        ; 4-byte Folded Reload
	cmp	w9, w8
	b.ne	LBB0_65
; %bb.64:
	str	wzr, [sp, #28]
	b	LBB0_66
LBB0_65:
	mov	x8, x9
	add	w8, w9, #1
	str	w8, [sp, #28]
LBB0_66:
	ldr	w0, [x19]
	add	x2, sp, #16
	mov	x1, x20
	bl	_atom_execute_table
LBB0_67:
	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 AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.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_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_DPLINKRATE_2_70GHZ,4,2 ; @ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ
	.comm	_ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ,4,2 ; @ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ
	.comm	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ,4,2 ; @ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ
	.comm	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_3_24GHZ,4,2 ; @ATOM_ENCODER_CONFIG_V4_DPLINKRATE_3_24GHZ
	.comm	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ,4,2 ; @ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ
	.comm	_ATOM_ENCODER_CONFIG_V4_DPLINKRATE_1_62GHZ,4,2 ; @ATOM_ENCODER_CONFIG_V4_DPLINKRATE_1_62GHZ
	.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_setup2
l_switch.table.atombios_dig_encoder_setup2:
	.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
