	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_encoder_setup_dig_transmitter ## -- Begin function amdgpu_atombios_encoder_setup_dig_transmitter
	.p2align	4, 0x90
_amdgpu_atombios_encoder_setup_dig_transmitter: ## @amdgpu_atombios_encoder_setup_dig_transmitter
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	callq	_to_amdgpu_encoder
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rax
	movq	_AMDGPU_HPD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_ATOM_TRANSMITTER_ACTION_INIT@GOTPCREL(%rip), %rdx
	cmpl	%r13d, (%rdx)
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	movl	%ebx, -148(%rbp)                ## 4-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_amdgpu_get_connector_for_encoder_init
	movl	$0, -72(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
LBB0_2:
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_amdgpu_get_connector_for_encoder
LBB0_3:
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	movl	$0, %r15d
	movl	$0, %ebx
	movl	$0, %r14d
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	callq	_to_amdgpu_connector
	movq	8(%rax), %rcx
	movl	4(%rax), %edx
	movq	%rdx, -168(%rbp)                ## 8-byte Spill
	movslq	(%rcx), %rdx
	movl	4(%rcx), %ebx
	movq	_OBJECT_ID_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	andl	(%rax), %r14d
	movq	_OBJECT_ID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	imulq	$1717986919, %rdx, %r15         ## imm = 0x66666667
	movq	%r15, %rax
	shrq	$63, %rax
	sarq	$34, %r15
	addl	%eax, %r15d
LBB0_5:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_to_amdgpu_crtc
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
LBB0_7:
	cmpl	$-1, -72(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_19
## %bb.8:
	movq	%r12, %rdi
	callq	_amdgpu_atombios_encoder_get_encoder_mode
	movq	%rax, %rdi
	callq	_ENCODER_MODE_IS_DP
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	-144(%rbp), %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	xorl	%esi, %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_10
## %bb.9:
	cltq
	leaq	l_switch.table.amdgpu_atombios_encoder_setup_dig_transmitter(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_COMMAND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	%eax, %esi
LBB0_10:
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %edi
	leaq	-176(%rbp), %rdx
	leaq	-172(%rbp), %rcx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_amdgpu_atom_parse_cmd_header
	testl	%eax, %eax
	je	LBB0_19
## %bb.11:
	movl	-176(%rbp), %esi
	movl	-172(%rbp), %edx
	cmpl	$1, %esi
	jne	LBB0_16
## %bb.12:
	leal	-1(%rdx), %eax
	cmpl	$5, %eax
	ja	LBB0_20
## %bb.13:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_14:
	movl	%r13d, -144(%rbp)
	movq	_ATOM_TRANSMITTER_ACTION_INIT@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_39
## %bb.15:
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	%rax, -120(%rbp)
	jmp	LBB0_127
LBB0_16:
	leaq	L_.str(%rip), %rdi
LBB0_17:
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_DRM_ERROR
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_18:
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %edi
	leaq	-144(%rbp), %rdx
	callq	_amdgpu_atom_execute_table
LBB0_19:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	leaq	L_.str(%rip), %rdi
	movl	$1, %esi
	jmp	LBB0_17
LBB0_21:
	movl	%r13d, -144(%rbp)
	movq	_ATOM_TRANSMITTER_ACTION_INIT@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_41
## %bb.22:
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	%rax, -96(%rbp)
	jmp	LBB0_147
LBB0_23:
	movl	%r13d, -144(%rbp)
	movq	_ATOM_TRANSMITTER_ACTION_INIT@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_43
## %bb.24:
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	%rax, -96(%rbp)
	jmp	LBB0_45
LBB0_25:
	movl	%r13d, -144(%rbp)
	movq	_ATOM_TRANSMITTER_ACTION_INIT@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_46
## %bb.26:
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	%rax, -96(%rbp)
	jmp	LBB0_48
LBB0_27:
	movl	%r13d, -144(%rbp)
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	jne	LBB0_29
## %bb.28:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	4(%rax), %rax
	imulq	$1717986919, %rax, %r15         ## imm = 0x66666667
	movq	%r15, %rax
	shrq	$63, %rax
	sarq	$34, %r15
	addl	%eax, %r15d
LBB0_29:
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, -96(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_70
## %bb.30:
	movq	_ATOM_PHY_ID_UNIPHYG@GOTPCREL(%rip), %rax
	leaq	LJTI0_2(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_31:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 4(%rax)
	jne	LBB0_65
## %bb.32:
	movq	_ATOM_PHY_ID_UNIPHYE@GOTPCREL(%rip), %rax
	jmp	LBB0_69
LBB0_33:
	movl	%r13d, -144(%rbp)
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_35
## %bb.34:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	4(%rax), %rax
	imulq	$1717986919, %rax, %r15         ## imm = 0x66666667
	movq	%r15, %rax
	shrq	$63, %rax
	sarq	$34, %r15
	addl	%eax, %r15d
LBB0_35:
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movq	%rax, -104(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_81
## %bb.36:
	movq	_ATOM_PHY_ID_UNIPHYG@GOTPCREL(%rip), %rax
	leaq	LJTI0_1(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_37:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 4(%rax)
	jne	LBB0_66
## %bb.38:
	movq	_ATOM_PHY_ID_UNIPHYE@GOTPCREL(%rip), %rax
	jmp	LBB0_80
LBB0_39:
	movq	_ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_49
## %bb.40:
	movl	-148(%rbp), %eax                ## 4-byte Reload
	movl	%eax, -128(%rbp)
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -124(%rbp)
	jmp	LBB0_127
LBB0_41:
	movq	_ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_51
## %bb.42:
	movl	-148(%rbp), %eax                ## 4-byte Reload
	movl	%eax, -104(%rbp)
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -100(%rbp)
	jmp	LBB0_147
LBB0_43:
	movq	_ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_53
## %bb.44:
	movl	-148(%rbp), %eax                ## 4-byte Reload
	movl	%eax, -104(%rbp)
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -100(%rbp)
LBB0_45:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	testq	%r13, %r13
	jne	LBB0_96
	jmp	LBB0_95
LBB0_46:
	movq	_ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_55
## %bb.47:
	movl	-148(%rbp), %eax                ## 4-byte Reload
	movl	%eax, -104(%rbp)
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -100(%rbp)
LBB0_48:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	testq	%r13, %r13
	jne	LBB0_114
	jmp	LBB0_113
LBB0_49:
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_90
## %bb.50:
	movl	%r15d, %edi
	jmp	LBB0_126
LBB0_51:
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_92
## %bb.52:
	movl	%r15d, %edi
	jmp	LBB0_146
LBB0_53:
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_94
## %bb.54:
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, -112(%rbp)
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_96
LBB0_55:
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_112
## %bb.56:
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, -112(%rbp)
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_114
LBB0_57:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 4(%rax)
	jne	LBB0_67
## %bb.58:
	movq	_ATOM_PHY_ID_UNIPHYC@GOTPCREL(%rip), %rax
	jmp	LBB0_69
LBB0_59:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 4(%rax)
	jne	LBB0_68
## %bb.60:
	movq	_ATOM_PHY_ID_UNIPHYA@GOTPCREL(%rip), %rax
	jmp	LBB0_69
LBB0_61:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 4(%rax)
	jne	LBB0_78
## %bb.62:
	movq	_ATOM_PHY_ID_UNIPHYC@GOTPCREL(%rip), %rax
	jmp	LBB0_80
LBB0_63:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 4(%rax)
	jne	LBB0_79
## %bb.64:
	movq	_ATOM_PHY_ID_UNIPHYA@GOTPCREL(%rip), %rax
	jmp	LBB0_80
LBB0_65:
	movq	_ATOM_PHY_ID_UNIPHYF@GOTPCREL(%rip), %rax
	jmp	LBB0_69
LBB0_66:
	movq	_ATOM_PHY_ID_UNIPHYF@GOTPCREL(%rip), %rax
	jmp	LBB0_80
LBB0_67:
	movq	_ATOM_PHY_ID_UNIPHYD@GOTPCREL(%rip), %rax
	jmp	LBB0_69
LBB0_68:
	movq	_ATOM_PHY_ID_UNIPHYB@GOTPCREL(%rip), %rax
LBB0_69:
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)
LBB0_70:
	testq	%r13, %r13
	je	LBB0_76
## %bb.71:
	movl	%ebx, -140(%rbp)
	movl	%r14d, -136(%rbp)
	movq	%r12, %rdi
	callq	_amdgpu_atombios_encoder_get_encoder_mode
	movq	%rax, -112(%rbp)
	movq	-160(%rbp), %rax                ## 8-byte Reload
	cmpl	$0, 8(%rax)
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_73
## %bb.72:
	movq	_ENCODER_REFCLK_SRC_EXTCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_73:
	movl	%ebx, -124(%rbp)
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	movq	-168(%rbp), %rdi                ## 8-byte Reload
LBB0_74:
	movl	$1, -120(%rbp)
LBB0_75:
	leal	1(%rdi), %eax
	xorl	%edx, %edx
	movq	_AMDGPU_HPD_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edi
	cmovnel	%eax, %edx
	movl	$1, %eax
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%edx, -116(%rbp)
	movl	%eax, -132(%rbp)
	movl	%ebx, -128(%rbp)
	jmp	LBB0_18
LBB0_76:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %esi
	movq	%r12, %rdi
	callq	_amdgpu_dig_monitor_is_duallink
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	leal	4(,%rcx,4), %eax
	movl	%eax, -140(%rbp)
	movl	%r14d, -136(%rbp)
	movq	%r12, %rdi
	callq	_amdgpu_atombios_encoder_get_encoder_mode
	movq	%rax, -112(%rbp)
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -124(%rbp)
	movq	_ATOM_DEVICE_DFP_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	je	LBB0_75
## %bb.77:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 8(%rax)
	jne	LBB0_74
	jmp	LBB0_75
LBB0_78:
	movq	_ATOM_PHY_ID_UNIPHYD@GOTPCREL(%rip), %rax
	jmp	LBB0_80
LBB0_79:
	movq	_ATOM_PHY_ID_UNIPHYB@GOTPCREL(%rip), %rax
LBB0_80:
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)
LBB0_81:
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_83
## %bb.82:
	movl	%ebx, -140(%rbp)
	jmp	LBB0_86
LBB0_83:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movq	%r12, %rdi
	callq	_amdgpu_dig_monitor_is_duallink
	testl	%eax, %eax
	je	LBB0_85
## %bb.84:
	movl	$8, -140(%rbp)
	jmp	LBB0_86
LBB0_85:
	movl	$4, -140(%rbp)
LBB0_86:
	movl	%r14d, -136(%rbp)
	movq	_ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_88
## %bb.87:
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -132(%rbp)
	jmp	LBB0_89
LBB0_88:
	movq	%r12, %rdi
	callq	_amdgpu_atombios_encoder_get_encoder_mode
	movq	%rax, -120(%rbp)
LBB0_89:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	_AMDGPU_HPD_NONE@GOTPCREL(%rip), %rdx
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	leal	1(%rdi), %eax
	xorl	%ecx, %ecx
	cmpl	(%rdx), %edi
	cmovnel	%eax, %ecx
	movl	%ecx, -128(%rbp)
	movl	$1, %eax
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, -124(%rbp)
	jmp	LBB0_18
LBB0_90:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %esi
	movq	%r12, %rdi
	callq	_amdgpu_dig_monitor_is_duallink
	movl	4(%r14), %ecx
	testl	%eax, %eax
	je	LBB0_124
## %bb.91:
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$35, %rdi
	jmp	LBB0_125
LBB0_92:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %esi
	movq	%r12, %rdi
	callq	_amdgpu_dig_monitor_is_duallink
	movl	4(%r14), %ecx
	testl	%eax, %eax
	je	LBB0_144
## %bb.93:
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$35, %rdi
	jmp	LBB0_145
LBB0_94:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %esi
	movq	%r12, %rdi
	callq	_amdgpu_dig_monitor_is_duallink
	testl	%eax, %eax
	movl	4(%r14), %eax
	movl	$10, %ecx
	movl	$20, %esi
	cmovel	%ecx, %esi
	cltd
	idivl	%esi
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, -112(%rbp)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-68(%rbp), %r15d                ## 4-byte Reload
LBB0_95:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movq	%r12, %rdi
	callq	_amdgpu_dig_monitor_is_duallink
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	leal	4(,%rcx,4), %ebx
LBB0_96:
	movl	%ebx, -140(%rbp)
	cmpl	$0, 4(%r14)
	je	LBB0_98
## %bb.97:
	movl	$1, -136(%rbp)
LBB0_98:
	testb	$1, -72(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_100
## %bb.99:
	movl	$1, -132(%rbp)
LBB0_100:
	testq	%r13, %r13
	je	LBB0_102
## %bb.101:
	movl	$2, %eax
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	cmpl	$0, 8(%rcx)
	jne	LBB0_103
LBB0_102:
	movl	%r15d, %eax
LBB0_103:
	movl	%eax, -128(%rbp)
	jmp	LBB0_104
LBB0_112:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %esi
	movq	%r12, %rdi
	callq	_amdgpu_dig_monitor_is_duallink
	testl	%eax, %eax
	movl	4(%r14), %eax
	movl	$10, %ecx
	movl	$20, %esi
	cmovel	%ecx, %esi
	cltd
	idivl	%esi
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, -112(%rbp)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-68(%rbp), %r15d                ## 4-byte Reload
LBB0_113:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movq	%r12, %rdi
	callq	_amdgpu_dig_monitor_is_duallink
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	leal	4(,%rcx,4), %ebx
LBB0_114:
	movl	%ebx, -140(%rbp)
	cmpl	$0, 4(%r14)
	je	LBB0_116
## %bb.115:
	movl	$1, -136(%rbp)
LBB0_116:
	testb	$1, -72(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_118
## %bb.117:
	movl	$1, -132(%rbp)
LBB0_118:
	testq	%r13, %r13
	je	LBB0_123
## %bb.119:
	movq	-160(%rbp), %rax                ## 8-byte Reload
	cmpl	$0, 8(%rax)
	je	LBB0_121
## %bb.120:
	movq	_ENCODER_REFCLK_SRC_EXTCLK@GOTPCREL(%rip), %rax
	jmp	LBB0_122
LBB0_121:
	movq	_ENCODER_REFCLK_SRC_DCPLL@GOTPCREL(%rip), %rax
LBB0_122:
	movl	(%rax), %r15d
LBB0_123:
	movl	%r15d, -128(%rbp)
LBB0_104:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	ja	LBB0_106
## %bb.105:
	movl	$131, %ecx
	subl	%eax, %ecx
	movl	%ecx, -124(%rbp)
LBB0_106:
	testq	%r13, %r13
	je	LBB0_107
LBB0_157:
	movl	$1, -120(%rbp)
	jmp	LBB0_18
LBB0_107:
	movq	_ATOM_DEVICE_DFP_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, 8(%rcx)
	je	LBB0_18
## %bb.108:
	cmpl	$0, 8(%r14)
	je	LBB0_110
## %bb.109:
	movl	$1, -120(%rbp)
LBB0_110:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movq	%r12, %rdi
	callq	_amdgpu_dig_monitor_is_duallink
	testl	%eax, %eax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_18
## %bb.111:
	movl	$1, -116(%rbp)
	jmp	LBB0_18
LBB0_124:
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
LBB0_125:
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
LBB0_126:
	callq	_cpu_to_le16
	movq	%rax, -136(%rbp)
LBB0_127:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	_ATOM_TRANSMITTER_CONFIG_CLKSRC_PPLL@GOTPCREL(%rip), %rax
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_129
## %bb.128:
	movq	_ATOM_TRANSMITTER_CONFIG_DIG1_ENCODER@GOTPCREL(%rip), %rcx
	jmp	LBB0_130
LBB0_129:
	movq	_ATOM_TRANSMITTER_CONFIG_DIG2_ENCODER@GOTPCREL(%rip), %rcx
LBB0_130:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -140(%rbp)
	movq	_AMD_IS_APU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_134
## %bb.131:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$131, (%rax)
	jne	LBB0_134
## %bb.132:
	testq	%r15, %r15
	jne	LBB0_134
## %bb.133:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movq	%r12, %rdi
	callq	_amdgpu_dig_monitor_is_duallink
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_134:
	cmpl	$0, 4(%r14)
	jne	LBB0_136
## %bb.135:
	movq	_ATOM_TRANSMITTER_CONFIG_LINKA@GOTPCREL(%rip), %rcx
	jmp	LBB0_137
LBB0_136:
	movq	_ATOM_TRANSMITTER_CONFIG_LINKB@GOTPCREL(%rip), %rcx
LBB0_137:
	movl	-140(%rbp), %eax
	orl	(%rcx), %eax
	movl	%eax, -140(%rbp)
	testq	%r15, %r15
	je	LBB0_139
## %bb.138:
	movq	_ATOM_TRANSMITTER_CONFIG_COHERENT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -140(%rbp)
	jmp	LBB0_18
LBB0_139:
	movq	_ATOM_DEVICE_DFP_SUPPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testl	%ecx, 8(%rdx)
	je	LBB0_18
## %bb.140:
	cmpl	$0, 8(%r14)
	je	LBB0_142
## %bb.141:
	movq	_ATOM_TRANSMITTER_CONFIG_COHERENT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -140(%rbp)
LBB0_142:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movq	%r12, %rdi
	callq	_amdgpu_dig_monitor_is_duallink
	testl	%eax, %eax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_18
## %bb.143:
	movq	_ATOM_TRANSMITTER_CONFIG_8LANE_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -140(%rbp)
	jmp	LBB0_18
LBB0_144:
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
LBB0_145:
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
LBB0_146:
	callq	_cpu_to_le16
	movq	%rax, -112(%rbp)
LBB0_147:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -140(%rbp)
	cmpl	$0, 4(%rdx)
	je	LBB0_149
## %bb.148:
	movl	$1, -136(%rbp)
LBB0_149:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	ja	LBB0_151
## %bb.150:
	movl	$131, %ecx
	subl	%eax, %ecx
	movl	%ecx, -132(%rbp)
LBB0_151:
	testq	%rdi, %rdi
	je	LBB0_153
## %bb.152:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -128(%rbp)
	jmp	LBB0_18
LBB0_153:
	movq	_ATOM_DEVICE_DFP_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, 8(%rcx)
	je	LBB0_18
## %bb.154:
	cmpl	$0, 8(%rdx)
	je	LBB0_156
## %bb.155:
	movl	$1, -128(%rbp)
LBB0_156:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movq	%r12, %rdi
	callq	_amdgpu_dig_monitor_is_duallink
	testl	%eax, %eax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jne	LBB0_157
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_21
	.long	L0_0_set_23
	.long	L0_0_set_25
	.long	L0_0_set_27
	.long	L0_0_set_33
.set L0_1_set_80, LBB0_80-LJTI0_1
.set L0_1_set_37, LBB0_37-LJTI0_1
.set L0_1_set_61, LBB0_61-LJTI0_1
.set L0_1_set_63, LBB0_63-LJTI0_1
LJTI0_1:
	.long	L0_1_set_80
	.long	L0_1_set_37
	.long	L0_1_set_61
	.long	L0_1_set_63
.set L0_2_set_69, LBB0_69-LJTI0_2
.set L0_2_set_31, LBB0_31-LJTI0_2
.set L0_2_set_57, LBB0_57-LJTI0_2
.set L0_2_set_59, LBB0_59-LJTI0_2
LJTI0_2:
	.long	L0_2_set_69
	.long	L0_2_set_31
	.long	L0_2_set_57
	.long	L0_2_set_59
	.end_data_region
                                        ## -- End function
	.comm	_AMDGPU_HPD_NONE,4,2            ## @AMDGPU_HPD_NONE
	.comm	_ATOM_TRANSMITTER_ACTION_INIT,4,2 ## @ATOM_TRANSMITTER_ACTION_INIT
	.comm	_OBJECT_ID_MASK,4,2             ## @OBJECT_ID_MASK
	.comm	_OBJECT_ID_SHIFT,4,2            ## @OBJECT_ID_SHIFT
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_DVOOutputControl,4,2           ## @DVOOutputControl
	.comm	_UNIPHYTransmitterControl,4,2   ## @UNIPHYTransmitterControl
	.comm	_LVTMATransmitterControl,4,2    ## @LVTMATransmitterControl
	.comm	_ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH,4,2 ## @ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH
	.comm	_ATOM_TRANSMITTER_CONFIG_CLKSRC_PPLL,4,2 ## @ATOM_TRANSMITTER_CONFIG_CLKSRC_PPLL
	.comm	_ATOM_TRANSMITTER_CONFIG_DIG2_ENCODER,4,2 ## @ATOM_TRANSMITTER_CONFIG_DIG2_ENCODER
	.comm	_ATOM_TRANSMITTER_CONFIG_DIG1_ENCODER,4,2 ## @ATOM_TRANSMITTER_CONFIG_DIG1_ENCODER
	.comm	_AMD_IS_APU,4,2                 ## @AMD_IS_APU
	.comm	_ATOM_TRANSMITTER_CONFIG_LANE_0_3,4,2 ## @ATOM_TRANSMITTER_CONFIG_LANE_0_3
	.comm	_ATOM_TRANSMITTER_CONFIG_LANE_4_7,4,2 ## @ATOM_TRANSMITTER_CONFIG_LANE_4_7
	.comm	_ATOM_TRANSMITTER_CONFIG_LANE_8_11,4,2 ## @ATOM_TRANSMITTER_CONFIG_LANE_8_11
	.comm	_ATOM_TRANSMITTER_CONFIG_LANE_12_15,4,2 ## @ATOM_TRANSMITTER_CONFIG_LANE_12_15
	.comm	_ATOM_TRANSMITTER_CONFIG_LANE_0_7,4,2 ## @ATOM_TRANSMITTER_CONFIG_LANE_0_7
	.comm	_ATOM_TRANSMITTER_CONFIG_LANE_8_15,4,2 ## @ATOM_TRANSMITTER_CONFIG_LANE_8_15
	.comm	_ATOM_TRANSMITTER_CONFIG_LINKB,4,2 ## @ATOM_TRANSMITTER_CONFIG_LINKB
	.comm	_ATOM_TRANSMITTER_CONFIG_LINKA,4,2 ## @ATOM_TRANSMITTER_CONFIG_LINKA
	.comm	_ATOM_TRANSMITTER_CONFIG_COHERENT,4,2 ## @ATOM_TRANSMITTER_CONFIG_COHERENT
	.comm	_ATOM_DEVICE_DFP_SUPPORT,4,2    ## @ATOM_DEVICE_DFP_SUPPORT
	.comm	_ATOM_TRANSMITTER_CONFIG_8LANE_LINK,4,2 ## @ATOM_TRANSMITTER_CONFIG_8LANE_LINK
	.comm	_ENCODER_REFCLK_SRC_EXTCLK,8,3  ## @ENCODER_REFCLK_SRC_EXTCLK
	.comm	_ENCODER_REFCLK_SRC_DCPLL,4,2   ## @ENCODER_REFCLK_SRC_DCPLL
	.comm	_ATOM_PHY_ID_UNIPHYB,8,3        ## @ATOM_PHY_ID_UNIPHYB
	.comm	_ATOM_PHY_ID_UNIPHYA,8,3        ## @ATOM_PHY_ID_UNIPHYA
	.comm	_ATOM_PHY_ID_UNIPHYD,8,3        ## @ATOM_PHY_ID_UNIPHYD
	.comm	_ATOM_PHY_ID_UNIPHYC,8,3        ## @ATOM_PHY_ID_UNIPHYC
	.comm	_ATOM_PHY_ID_UNIPHYF,8,3        ## @ATOM_PHY_ID_UNIPHYF
	.comm	_ATOM_PHY_ID_UNIPHYE,8,3        ## @ATOM_PHY_ID_UNIPHYE
	.comm	_ATOM_PHY_ID_UNIPHYG,8,3        ## @ATOM_PHY_ID_UNIPHYG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown table version %d, %d\n"

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.amdgpu_atombios_encoder_setup_dig_transmitter
l_switch.table.amdgpu_atombios_encoder_setup_dig_transmitter:
	.quad	_UNIPHYTransmitterControl
	.quad	_UNIPHYTransmitterControl
	.quad	_UNIPHYTransmitterControl
	.quad	_UNIPHYTransmitterControl
	.quad	_LVTMATransmitterControl
	.quad	_DVOOutputControl

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_encoder_setup_dig_transmitter ; -- Begin function amdgpu_atombios_encoder_setup_dig_transmitter
	.p2align	2
_amdgpu_atombios_encoder_setup_dig_transmitter: ; @amdgpu_atombios_encoder_setup_dig_transmitter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x24, x3
	mov	x26, x2
	mov	x25, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	bl	_to_amdgpu_encoder
	mov	x21, x0
Lloh0:
	adrp	x8, _AMDGPU_HPD_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMDGPU_HPD_NONE@GOTPAGEOFF]
	ldr	x22, [x0, #16]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x23, _ATOM_TRANSMITTER_ACTION_INIT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ATOM_TRANSMITTER_ACTION_INIT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w25
	str	w24, [sp, #16]                  ; 4-byte Folded Spill
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_amdgpu_get_connector_for_encoder_init
	str	wzr, [sp, #44]                  ; 4-byte Folded Spill
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	cbz	x0, LBB0_5
LBB0_2:
	bl	_to_amdgpu_connector
	ldr	x8, [x0, #8]
	ldp	w9, w28, [x8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
Lloh5:
	adrp	x8, _OBJECT_ID_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OBJECT_ID_MASK@GOTPAGEOFF]
	ldp	w10, w19, [x0]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w10
Lloh8:
	adrp	x10, _OBJECT_ID_SHIFT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _OBJECT_ID_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	asr	w24, w8, w10
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	mul	x8, x9, x8
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w27, w8, w9
	ldr	x0, [x20]
	cbz	x0, LBB0_6
LBB0_3:
	bl	_to_amdgpu_crtc
	ldr	w8, [x0]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	b	LBB0_7
LBB0_4:
	ldr	w8, [x22]
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	mov	x0, x20
	bl	_amdgpu_get_connector_for_encoder
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	cbnz	x0, LBB0_2
LBB0_5:
	mov	w27, #0
	mov	w28, #0
	mov	w24, #0
	ldr	x0, [x20]
	cbnz	x0, LBB0_3
LBB0_6:
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
LBB0_7:
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmn	w8, #1
	b.eq	LBB0_19
; %bb.8:
	mov	x0, x20
	bl	_amdgpu_atombios_encoder_get_encoder_mode
	bl	_ENCODER_MODE_IS_DP
	mov	x22, x0
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	mov	w1, #0
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_10
; %bb.9:
Lloh11:
	adrp	x9, l_switch.table.amdgpu_atombios_encoder_setup_dig_transmitter@PAGE
Lloh12:
	add	x9, x9, l_switch.table.amdgpu_atombios_encoder_setup_dig_transmitter@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
Lloh13:
	adrp	x9, _COMMAND@GOTPAGE
Lloh14:
	ldr	x9, [x9, _COMMAND@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x1, x0
LBB0_10:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w0, [x8, #4]
	add	x2, sp, #52
	add	x3, sp, #48
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	bl	_amdgpu_atom_parse_cmd_header
	cbz	w0, LBB0_19
; %bb.11:
	ldp	w2, w1, [sp, #48]
	cmp	w1, #1
	b.ne	LBB0_16
; %bb.12:
	sub	w8, w2, #1
	cmp	w8, #5
	b.hi	LBB0_20
; %bb.13:
Lloh16:
	adrp	x9, lJTI0_0@PAGE
Lloh17:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_14
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_14:
	str	w25, [sp, #56]
	ldr	w8, [x23]
	cmp	w8, w25
	b.ne	LBB0_37
; %bb.15:
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [sp, #80]
	b	LBB0_116
LBB0_16:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
LBB0_17:
	bl	_DRM_ERROR
LBB0_18:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w0, [x8, #4]
	add	x2, sp, #56
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_amdgpu_atom_execute_table
LBB0_19:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_20:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #1
	b	LBB0_17
LBB0_21:
	str	w25, [sp, #56]
	ldr	w8, [x23]
	cmp	w8, w25
	b.ne	LBB0_39
; %bb.22:
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [sp, #104]
	b	LBB0_130
LBB0_23:
	str	w25, [sp, #56]
	ldr	w8, [x23]
	cmp	w8, w25
	b.ne	LBB0_41
; %bb.24:
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [sp, #104]
	b	LBB0_43
LBB0_25:
	str	w25, [sp, #56]
	ldr	w8, [x23]
	cmp	w8, w25
	b.ne	LBB0_44
; %bb.26:
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [sp, #104]
	b	LBB0_46
LBB0_27:
	str	w25, [sp, #56]
	cbnz	x22, LBB0_29
; %bb.28:
	ldrsw	x8, [x21, #4]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w27, w8, w9
LBB0_29:
	mov	x0, x27
	bl	_cpu_to_le16
	str	x0, [sp, #104]
	ldr	w8, [x21]
	sub	w9, w8, #128
	cmp	w9, #3
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	b.hi	LBB0_59
; %bb.30:
Lloh22:
	adrp	x8, _ATOM_PHY_ID_UNIPHYG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ATOM_PHY_ID_UNIPHYG@GOTPAGEOFF]
Lloh24:
	adrp	x10, lJTI0_2@PAGE
Lloh25:
	add	x10, x10, lJTI0_2@PAGEOFF
	adr	x11, LBB0_31
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_31:
	ldr	w8, [x23, #4]
Lloh26:
	adrp	x9, _ATOM_PHY_ID_UNIPHYF@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ATOM_PHY_ID_UNIPHYF@GOTPAGEOFF]
Lloh28:
	adrp	x10, _ATOM_PHY_ID_UNIPHYE@GOTPAGE
Lloh29:
	ldr	x10, [x10, _ATOM_PHY_ID_UNIPHYE@GOTPAGEOFF]
	b	LBB0_57
LBB0_32:
	str	w25, [sp, #56]
	cbnz	x22, LBB0_34
; %bb.33:
	ldrsw	x8, [x21, #4]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w27, w8, w9
LBB0_34:
	mov	x0, x27
	bl	_cpu_to_le32
	str	x0, [sp, #96]
	ldr	w8, [x21]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_69
; %bb.35:
Lloh30:
	adrp	x8, _ATOM_PHY_ID_UNIPHYG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ATOM_PHY_ID_UNIPHYG@GOTPAGEOFF]
Lloh32:
	adrp	x10, lJTI0_1@PAGE
Lloh33:
	add	x10, x10, lJTI0_1@PAGEOFF
	adr	x11, LBB0_36
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_36:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x8, #4]
Lloh34:
	adrp	x9, _ATOM_PHY_ID_UNIPHYF@GOTPAGE
Lloh35:
	ldr	x9, [x9, _ATOM_PHY_ID_UNIPHYF@GOTPAGEOFF]
Lloh36:
	adrp	x10, _ATOM_PHY_ID_UNIPHYE@GOTPAGE
Lloh37:
	ldr	x10, [x10, _ATOM_PHY_ID_UNIPHYE@GOTPAGEOFF]
	b	LBB0_67
LBB0_37:
Lloh38:
	adrp	x8, _ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	cmp	w8, w25
	b.ne	LBB0_47
; %bb.38:
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	stp	w26, w8, [sp, #72]
	b	LBB0_116
LBB0_39:
Lloh41:
	adrp	x8, _ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	cmp	w8, w25
	b.ne	LBB0_49
; %bb.40:
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	stp	w26, w8, [sp, #96]
	b	LBB0_130
LBB0_41:
Lloh44:
	adrp	x8, _ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	cmp	w8, w25
	b.ne	LBB0_51
; %bb.42:
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	stp	w26, w8, [sp, #96]
LBB0_43:
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	cbnz	x22, LBB0_85
	b	LBB0_84
LBB0_44:
Lloh47:
	adrp	x8, _ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	cmp	w8, w25
	b.ne	LBB0_53
; %bb.45:
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	stp	w26, w8, [sp, #96]
LBB0_46:
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	cbnz	x22, LBB0_95
	b	LBB0_94
LBB0_47:
	cbz	x22, LBB0_79
; %bb.48:
	mov	x0, x27
	b	LBB0_115
LBB0_49:
	mov	x8, x22
	cbz	x22, LBB0_81
; %bb.50:
	mov	x0, x27
	b	LBB0_129
LBB0_51:
	cbz	x22, LBB0_83
; %bb.52:
	mov	x0, x27
	bl	_cpu_to_le16
	str	x0, [sp, #88]
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_85
LBB0_53:
	cbz	x22, LBB0_93
; %bb.54:
	mov	x0, x27
	bl	_cpu_to_le16
	str	x0, [sp, #88]
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_95
LBB0_55:
	ldr	w8, [x23, #4]
Lloh50:
	adrp	x9, _ATOM_PHY_ID_UNIPHYD@GOTPAGE
Lloh51:
	ldr	x9, [x9, _ATOM_PHY_ID_UNIPHYD@GOTPAGEOFF]
Lloh52:
	adrp	x10, _ATOM_PHY_ID_UNIPHYC@GOTPAGE
Lloh53:
	ldr	x10, [x10, _ATOM_PHY_ID_UNIPHYC@GOTPAGEOFF]
	b	LBB0_57
LBB0_56:
	ldr	w8, [x23, #4]
Lloh54:
	adrp	x9, _ATOM_PHY_ID_UNIPHYB@GOTPAGE
Lloh55:
	ldr	x9, [x9, _ATOM_PHY_ID_UNIPHYB@GOTPAGEOFF]
Lloh56:
	adrp	x10, _ATOM_PHY_ID_UNIPHYA@GOTPAGE
Lloh57:
	ldr	x10, [x10, _ATOM_PHY_ID_UNIPHYA@GOTPAGEOFF]
LBB0_57:
	cmp	w8, #0
	csel	x8, x10, x9, eq
LBB0_58:
	ldr	x8, [x8]
	str	x8, [sp, #96]
LBB0_59:
	cbz	x22, LBB0_63
; %bb.60:
	stp	w28, w24, [sp, #60]
	mov	x0, x20
	bl	_amdgpu_atombios_encoder_get_encoder_mode
	str	x0, [sp, #88]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w8, [x8, #8]
Lloh58:
	adrp	x9, _ENCODER_REFCLK_SRC_EXTCLK@GOTPAGE
Lloh59:
	ldr	x9, [x9, _ENCODER_REFCLK_SRC_EXTCLK@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	cmp	w8, #0
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	csel	w8, w8, w9, eq
	str	w8, [sp, #76]
LBB0_61:
	mov	w8, #1
	str	w8, [sp, #80]
LBB0_62:
Lloh61:
	adrp	x8, _AMDGPU_HPD_NONE@GOTPAGE
Lloh62:
	ldr	x8, [x8, _AMDGPU_HPD_NONE@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	cmp	w19, w8
	csinc	w8, wzr, w19, eq
	str	w8, [sp, #84]
	mov	w8, #1
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	lsl	w10, w8, w9
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	stp	w10, w8, [sp, #68]
	b	LBB0_18
LBB0_63:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_amdgpu_dig_monitor_is_duallink
	mov	w8, #8
	mov	w9, #4
	cmp	w0, #0
	csel	w8, w9, w8, eq
	stp	w8, w24, [sp, #60]
	mov	x0, x20
	bl	_amdgpu_atombios_encoder_get_encoder_mode
	str	x0, [sp, #88]
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	str	w8, [sp, #76]
	ldr	w8, [x21, #8]
Lloh64:
	adrp	x9, _ATOM_DEVICE_DFP_SUPPORT@GOTPAGE
Lloh65:
	ldr	x9, [x9, _ATOM_DEVICE_DFP_SUPPORT@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_62
; %bb.64:
	ldr	w8, [x23, #8]
	cbnz	w8, LBB0_61
	b	LBB0_62
LBB0_65:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x8, #4]
Lloh67:
	adrp	x9, _ATOM_PHY_ID_UNIPHYD@GOTPAGE
Lloh68:
	ldr	x9, [x9, _ATOM_PHY_ID_UNIPHYD@GOTPAGEOFF]
Lloh69:
	adrp	x10, _ATOM_PHY_ID_UNIPHYC@GOTPAGE
Lloh70:
	ldr	x10, [x10, _ATOM_PHY_ID_UNIPHYC@GOTPAGEOFF]
	b	LBB0_67
LBB0_66:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x8, #4]
Lloh71:
	adrp	x9, _ATOM_PHY_ID_UNIPHYB@GOTPAGE
Lloh72:
	ldr	x9, [x9, _ATOM_PHY_ID_UNIPHYB@GOTPAGEOFF]
Lloh73:
	adrp	x10, _ATOM_PHY_ID_UNIPHYA@GOTPAGE
Lloh74:
	ldr	x10, [x10, _ATOM_PHY_ID_UNIPHYA@GOTPAGEOFF]
LBB0_67:
	cmp	w8, #0
	csel	x8, x10, x9, eq
LBB0_68:
	ldr	x8, [x8]
	str	x8, [sp, #88]
LBB0_69:
	cbz	x22, LBB0_71
; %bb.70:
	str	w28, [sp, #60]
	b	LBB0_75
LBB0_71:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_amdgpu_dig_monitor_is_duallink
	cbz	w0, LBB0_73
; %bb.72:
	mov	w8, #8
	b	LBB0_74
LBB0_73:
	mov	w8, #4
LBB0_74:
	str	w8, [sp, #60]
LBB0_75:
	str	w24, [sp, #64]
Lloh75:
	adrp	x8, _ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH@GOTPAGE
Lloh76:
	ldr	x8, [x8, _ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	cmp	w8, w25
	b.ne	LBB0_77
; %bb.76:
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	str	w8, [sp, #68]
	b	LBB0_78
LBB0_77:
	mov	x0, x20
	bl	_amdgpu_atombios_encoder_get_encoder_mode
	str	x0, [sp, #80]
LBB0_78:
Lloh78:
	adrp	x8, _AMDGPU_HPD_NONE@GOTPAGE
Lloh79:
	ldr	x8, [x8, _AMDGPU_HPD_NONE@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
	cmp	w19, w8
	csinc	w8, wzr, w19, eq
	mov	w9, #1
	ldr	w10, [sp, #44]                  ; 4-byte Folded Reload
	lsl	w9, w9, w10
	stp	w8, w9, [sp, #72]
	b	LBB0_18
LBB0_79:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_amdgpu_dig_monitor_is_duallink
	ldr	w8, [x21, #4]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	cbz	w0, LBB0_113
; %bb.80:
	asr	x8, x8, #35
	b	LBB0_114
LBB0_81:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_amdgpu_dig_monitor_is_duallink
	ldr	w8, [x21, #4]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	cbz	w0, LBB0_128
; %bb.82:
	add	w0, w8, w9, asr #3
	b	LBB0_129
LBB0_83:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_amdgpu_dig_monitor_is_duallink
	ldr	w8, [x21, #4]
	mov	w9, #20
	mov	w10, #10
	cmp	w0, #0
	csel	w9, w10, w9, eq
	sdiv	w0, w8, w9
	bl	_cpu_to_le16
	str	x0, [sp, #88]
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
LBB0_84:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_amdgpu_dig_monitor_is_duallink
	mov	w8, #8
	mov	w9, #4
	cmp	w0, #0
	csel	w28, w9, w8, eq
LBB0_85:
	str	w28, [sp, #60]
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_87
; %bb.86:
	mov	w8, #1
	str	w8, [sp, #64]
LBB0_87:
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	tbz	w8, #0, LBB0_89
; %bb.88:
	mov	w8, #1
	str	w8, [sp, #68]
LBB0_89:
	cbz	x22, LBB0_92
; %bb.90:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_92
; %bb.91:
	mov	w8, #2
	b	LBB0_104
LBB0_92:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	b	LBB0_104
LBB0_93:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_amdgpu_dig_monitor_is_duallink
	ldr	w8, [x21, #4]
	mov	w9, #20
	mov	w10, #10
	cmp	w0, #0
	csel	w9, w10, w9, eq
	sdiv	w0, w8, w9
	bl	_cpu_to_le16
	str	x0, [sp, #88]
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
LBB0_94:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_amdgpu_dig_monitor_is_duallink
	mov	w8, #8
	mov	w9, #4
	cmp	w0, #0
	csel	w28, w9, w8, eq
LBB0_95:
	str	w28, [sp, #60]
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_97
; %bb.96:
	mov	w8, #1
	str	w8, [sp, #64]
LBB0_97:
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	tbz	w8, #0, LBB0_99
; %bb.98:
	mov	w8, #1
	str	w8, [sp, #68]
LBB0_99:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cbz	x22, LBB0_104
; %bb.100:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_102
; %bb.101:
Lloh81:
	adrp	x8, _ENCODER_REFCLK_SRC_EXTCLK@GOTPAGE
Lloh82:
	ldr	x8, [x8, _ENCODER_REFCLK_SRC_EXTCLK@GOTPAGEOFF]
	b	LBB0_103
LBB0_102:
Lloh83:
	adrp	x8, _ENCODER_REFCLK_SRC_DCPLL@GOTPAGE
Lloh84:
	ldr	x8, [x8, _ENCODER_REFCLK_SRC_DCPLL@GOTPAGEOFF]
LBB0_103:
	ldr	w8, [x8]
LBB0_104:
	str	w8, [sp, #72]
	ldr	w8, [x21]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hi	LBB0_106
; %bb.105:
	mov	w9, #131
	sub	w8, w9, w8
	str	w8, [sp, #76]
LBB0_106:
	cbz	x22, LBB0_108
LBB0_107:
	mov	w8, #1
	str	w8, [sp, #80]
	b	LBB0_18
LBB0_108:
	ldr	w8, [x21, #8]
Lloh85:
	adrp	x9, _ATOM_DEVICE_DFP_SUPPORT@GOTPAGE
Lloh86:
	ldr	x9, [x9, _ATOM_DEVICE_DFP_SUPPORT@GOTPAGEOFF]
Lloh87:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.109:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_111
; %bb.110:
	mov	w8, #1
	str	w8, [sp, #80]
LBB0_111:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_amdgpu_dig_monitor_is_duallink
	cbz	w0, LBB0_18
; %bb.112:
	mov	w8, #1
	str	w8, [sp, #84]
	b	LBB0_18
LBB0_113:
	asr	x8, x8, #34
LBB0_114:
	add	w0, w8, w9
LBB0_115:
	bl	_cpu_to_le16
	str	x0, [sp, #64]
LBB0_116:
Lloh88:
	adrp	x8, _ATOM_TRANSMITTER_CONFIG_CLKSRC_PPLL@GOTPAGE
Lloh89:
	ldr	x8, [x8, _ATOM_TRANSMITTER_CONFIG_CLKSRC_PPLL@GOTPAGEOFF]
Lloh90:
	ldr	w8, [x8]
Lloh91:
	adrp	x9, _ATOM_TRANSMITTER_CONFIG_DIG1_ENCODER@GOTPAGE
Lloh92:
	ldr	x9, [x9, _ATOM_TRANSMITTER_CONFIG_DIG1_ENCODER@GOTPAGEOFF]
Lloh93:
	adrp	x10, _ATOM_TRANSMITTER_CONFIG_DIG2_ENCODER@GOTPAGE
Lloh94:
	ldr	x10, [x10, _ATOM_TRANSMITTER_CONFIG_DIG2_ENCODER@GOTPAGEOFF]
	ldr	w11, [sp, #44]                  ; 4-byte Folded Reload
	cmp	w11, #0
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #60]
	ldp	x19, x8, [sp, #24]              ; 16-byte Folded Reload
	ldr	w8, [x8]
Lloh95:
	adrp	x9, _AMD_IS_APU@GOTPAGE
Lloh96:
	ldr	x9, [x9, _AMD_IS_APU@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_120
; %bb.117:
	ldr	w8, [x21]
	cmp	w8, #131
	b.ne	LBB0_120
; %bb.118:
	cbnz	x22, LBB0_120
; %bb.119:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_amdgpu_dig_monitor_is_duallink
LBB0_120:
	ldr	w8, [x19, #4]
Lloh98:
	adrp	x9, _ATOM_TRANSMITTER_CONFIG_LINKA@GOTPAGE
Lloh99:
	ldr	x9, [x9, _ATOM_TRANSMITTER_CONFIG_LINKA@GOTPAGEOFF]
Lloh100:
	adrp	x10, _ATOM_TRANSMITTER_CONFIG_LINKB@GOTPAGE
Lloh101:
	ldr	x10, [x10, _ATOM_TRANSMITTER_CONFIG_LINKB@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	ldr	w9, [sp, #60]
	orr	w8, w9, w8
	str	w8, [sp, #60]
	cbz	x22, LBB0_123
; %bb.121:
Lloh102:
	adrp	x9, _ATOM_TRANSMITTER_CONFIG_COHERENT@GOTPAGE
Lloh103:
	ldr	x9, [x9, _ATOM_TRANSMITTER_CONFIG_COHERENT@GOTPAGEOFF]
Lloh104:
	ldr	w9, [x9]
LBB0_122:
	orr	w8, w9, w8
	str	w8, [sp, #60]
	b	LBB0_18
LBB0_123:
	ldr	w9, [x21, #8]
Lloh105:
	adrp	x10, _ATOM_DEVICE_DFP_SUPPORT@GOTPAGE
Lloh106:
	ldr	x10, [x10, _ATOM_DEVICE_DFP_SUPPORT@GOTPAGEOFF]
Lloh107:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_18
; %bb.124:
	ldr	w9, [x19, #8]
	cbz	w9, LBB0_126
; %bb.125:
Lloh108:
	adrp	x9, _ATOM_TRANSMITTER_CONFIG_COHERENT@GOTPAGE
Lloh109:
	ldr	x9, [x9, _ATOM_TRANSMITTER_CONFIG_COHERENT@GOTPAGEOFF]
Lloh110:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #60]
LBB0_126:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_amdgpu_dig_monitor_is_duallink
	cbz	w0, LBB0_18
; %bb.127:
Lloh111:
	adrp	x8, _ATOM_TRANSMITTER_CONFIG_8LANE_LINK@GOTPAGE
Lloh112:
	ldr	x8, [x8, _ATOM_TRANSMITTER_CONFIG_8LANE_LINK@GOTPAGEOFF]
Lloh113:
	ldr	w8, [x8]
	ldr	w9, [sp, #60]
	b	LBB0_122
LBB0_128:
	add	w0, w8, w9, asr #2
LBB0_129:
	bl	_cpu_to_le16
	str	x0, [sp, #88]
LBB0_130:
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	str	w8, [sp, #60]
	ldr	w8, [x10, #4]
	cbz	w8, LBB0_132
; %bb.131:
	mov	w8, #1
	str	w8, [sp, #64]
LBB0_132:
	ldr	w8, [x21]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hi	LBB0_134
; %bb.133:
	mov	w9, #131
	sub	w8, w9, w8
	str	w8, [sp, #68]
LBB0_134:
	cbz	x22, LBB0_136
; %bb.135:
	movi.2s	v0, #1
	str	d0, [sp, #72]
	b	LBB0_18
LBB0_136:
	ldr	w8, [x21, #8]
Lloh114:
	adrp	x9, _ATOM_DEVICE_DFP_SUPPORT@GOTPAGE
Lloh115:
	ldr	x9, [x9, _ATOM_DEVICE_DFP_SUPPORT@GOTPAGEOFF]
Lloh116:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.137:
	ldr	w8, [x10, #8]
	cbz	w8, LBB0_139
; %bb.138:
	mov	w8, #1
	str	w8, [sp, #72]
LBB0_139:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_amdgpu_dig_monitor_is_duallink
	cbnz	w0, LBB0_107
	b	LBB0_18
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpLdrGot	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_21-LBB0_14)>>2
	.byte	(LBB0_23-LBB0_14)>>2
	.byte	(LBB0_25-LBB0_14)>>2
	.byte	(LBB0_27-LBB0_14)>>2
	.byte	(LBB0_32-LBB0_14)>>2
lJTI0_1:
	.byte	(LBB0_68-LBB0_36)>>2
	.byte	(LBB0_36-LBB0_36)>>2
	.byte	(LBB0_65-LBB0_36)>>2
	.byte	(LBB0_66-LBB0_36)>>2
lJTI0_2:
	.byte	(LBB0_58-LBB0_31)>>2
	.byte	(LBB0_31-LBB0_31)>>2
	.byte	(LBB0_55-LBB0_31)>>2
	.byte	(LBB0_56-LBB0_31)>>2
                                        ; -- End function
	.comm	_AMDGPU_HPD_NONE,4,2            ; @AMDGPU_HPD_NONE
	.comm	_ATOM_TRANSMITTER_ACTION_INIT,4,2 ; @ATOM_TRANSMITTER_ACTION_INIT
	.comm	_OBJECT_ID_MASK,4,2             ; @OBJECT_ID_MASK
	.comm	_OBJECT_ID_SHIFT,4,2            ; @OBJECT_ID_SHIFT
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_DVOOutputControl,4,2           ; @DVOOutputControl
	.comm	_UNIPHYTransmitterControl,4,2   ; @UNIPHYTransmitterControl
	.comm	_LVTMATransmitterControl,4,2    ; @LVTMATransmitterControl
	.comm	_ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH,4,2 ; @ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH
	.comm	_ATOM_TRANSMITTER_CONFIG_CLKSRC_PPLL,4,2 ; @ATOM_TRANSMITTER_CONFIG_CLKSRC_PPLL
	.comm	_ATOM_TRANSMITTER_CONFIG_DIG2_ENCODER,4,2 ; @ATOM_TRANSMITTER_CONFIG_DIG2_ENCODER
	.comm	_ATOM_TRANSMITTER_CONFIG_DIG1_ENCODER,4,2 ; @ATOM_TRANSMITTER_CONFIG_DIG1_ENCODER
	.comm	_AMD_IS_APU,4,2                 ; @AMD_IS_APU
	.comm	_ATOM_TRANSMITTER_CONFIG_LANE_0_3,4,2 ; @ATOM_TRANSMITTER_CONFIG_LANE_0_3
	.comm	_ATOM_TRANSMITTER_CONFIG_LANE_4_7,4,2 ; @ATOM_TRANSMITTER_CONFIG_LANE_4_7
	.comm	_ATOM_TRANSMITTER_CONFIG_LANE_8_11,4,2 ; @ATOM_TRANSMITTER_CONFIG_LANE_8_11
	.comm	_ATOM_TRANSMITTER_CONFIG_LANE_12_15,4,2 ; @ATOM_TRANSMITTER_CONFIG_LANE_12_15
	.comm	_ATOM_TRANSMITTER_CONFIG_LANE_0_7,4,2 ; @ATOM_TRANSMITTER_CONFIG_LANE_0_7
	.comm	_ATOM_TRANSMITTER_CONFIG_LANE_8_15,4,2 ; @ATOM_TRANSMITTER_CONFIG_LANE_8_15
	.comm	_ATOM_TRANSMITTER_CONFIG_LINKB,4,2 ; @ATOM_TRANSMITTER_CONFIG_LINKB
	.comm	_ATOM_TRANSMITTER_CONFIG_LINKA,4,2 ; @ATOM_TRANSMITTER_CONFIG_LINKA
	.comm	_ATOM_TRANSMITTER_CONFIG_COHERENT,4,2 ; @ATOM_TRANSMITTER_CONFIG_COHERENT
	.comm	_ATOM_DEVICE_DFP_SUPPORT,4,2    ; @ATOM_DEVICE_DFP_SUPPORT
	.comm	_ATOM_TRANSMITTER_CONFIG_8LANE_LINK,4,2 ; @ATOM_TRANSMITTER_CONFIG_8LANE_LINK
	.comm	_ENCODER_REFCLK_SRC_EXTCLK,8,3  ; @ENCODER_REFCLK_SRC_EXTCLK
	.comm	_ENCODER_REFCLK_SRC_DCPLL,4,2   ; @ENCODER_REFCLK_SRC_DCPLL
	.comm	_ATOM_PHY_ID_UNIPHYB,8,3        ; @ATOM_PHY_ID_UNIPHYB
	.comm	_ATOM_PHY_ID_UNIPHYA,8,3        ; @ATOM_PHY_ID_UNIPHYA
	.comm	_ATOM_PHY_ID_UNIPHYD,8,3        ; @ATOM_PHY_ID_UNIPHYD
	.comm	_ATOM_PHY_ID_UNIPHYC,8,3        ; @ATOM_PHY_ID_UNIPHYC
	.comm	_ATOM_PHY_ID_UNIPHYF,8,3        ; @ATOM_PHY_ID_UNIPHYF
	.comm	_ATOM_PHY_ID_UNIPHYE,8,3        ; @ATOM_PHY_ID_UNIPHYE
	.comm	_ATOM_PHY_ID_UNIPHYG,8,3        ; @ATOM_PHY_ID_UNIPHYG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown table version %d, %d\n"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.amdgpu_atombios_encoder_setup_dig_transmitter
l_switch.table.amdgpu_atombios_encoder_setup_dig_transmitter:
	.quad	_UNIPHYTransmitterControl
	.quad	_UNIPHYTransmitterControl
	.quad	_UNIPHYTransmitterControl
	.quad	_UNIPHYTransmitterControl
	.quad	_LVTMATransmitterControl
	.quad	_DVOOutputControl

.subsections_via_symbols
