	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_atom_encoder_dpms_dig
_radeon_atom_encoder_dpms_dig:          ## @radeon_atom_encoder_dpms_dig
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r15
	callq	_to_radeon_encoder
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_radeon_get_external_encoder
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_radeon_get_connector_for_encoder
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_to_radeon_connector
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_radeon_connector_encoder_get_dp_bridge_encoder_id
	movq	_ENCODER_OBJECT_ID_TRAVIS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	_ATOM_DEVICE_LCD_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE5
	testq	%rax, %rax
	sete	%cl
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_6:
	xorl	%ecx, %ecx
LBB0_7:
	leal	-128(%r12), %eax
	cmpl	$2, %eax
	jb	LBB0_14
## %bb.8:
	cmpl	$131, %r12d
	je	LBB0_14
## %bb.9:
	cmpl	$130, %r12d
	jne	LBB0_15
## %bb.10:
	movq	%r15, %r12
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE41
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_ASIC_IS_DCE5
	testq	%rax, %rax
	je	LBB0_39
LBB0_12:
	testq	%r14, %r14
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_34
## %bb.13:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_radeon_dp_get_panel_mode
	jmp	LBB0_35
LBB0_14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_16
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %r12
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE4
	testl	%eax, %eax
	je	LBB0_20
## %bb.17:
	movq	%rbx, %rdi
	callq	_atombios_get_encoder_mode
	movl	%eax, %edi
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:
	testq	%r14, %r14
	je	LBB0_20
## %bb.19:
	movq	_ATOM_ENCODER_CMD_DP_VIDEO_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_atombios_dig_encoder_setup
LBB0_20:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.21:
	movq	_ATOM_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_atombios_external_encoder_setup
LBB0_22:
	movq	_ATOM_DEVICE_LCD_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_24
## %bb.23:
	movq	_ATOM_TRANSMITTER_ACTION_LCD_BLOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_atombios_dig_transmitter_setup
LBB0_24:
	testq	%r14, %r14
	sete	%r15b
	movq	%rbx, %rdi
	callq	_atombios_get_encoder_mode
	movl	%eax, %edi
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	sete	%al
	orb	%r15b, %al
	orb	-56(%rbp), %al                  ## 1-byte Folded Reload
	jne	LBB0_26
## %bb.25:
	movq	_DP_SET_POWER_D3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_radeon_dp_set_rx_power_state
LBB0_26:
	movq	%r12, %rdi
	callq	_ASIC_IS_DCE4
	movl	%eax, %r15d
	movq	_ATOM_TRANSMITTER_ACTION_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_atombios_dig_transmitter_setup
	testl	%r15d, %r15d
	jne	LBB0_28
## %bb.27:
	movq	_ATOM_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_atombios_dig_encoder_setup
LBB0_28:
	movq	%rbx, %rdi
	callq	_atombios_get_encoder_mode
	movl	%eax, %edi
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_15
## %bb.29:
	testq	%r14, %r14
	je	LBB0_15
## %bb.30:
	testb	%al, %al
	je	LBB0_32
## %bb.31:
	movq	_DP_SET_POWER_D3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_radeon_dp_set_rx_power_state
LBB0_32:
	movl	(%r14), %eax
	movq	_DRM_MODE_CONNECTOR_eDP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.33:
	movq	_ATOM_TRANSMITTER_ACTION_POWER_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_atombios_set_edp_panel_power
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_15
LBB0_34:
	movq	_DP_PANEL_MODE_EXTERNAL_DP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_35:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, 8(%r15)
	movq	_ATOM_ENCODER_CMD_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_atombios_dig_encoder_setup
	movq	_ATOM_ENCODER_CMD_SETUP_PANEL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	movq	%rbx, %rdi
	callq	_atombios_dig_encoder_setup
	testq	%r12, %r12
	movq	%r12, %r15
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_43
## %bb.36:
	movq	%r12, %rdi
	callq	_ASIC_IS_DCE41
	testl	%eax, %eax
	jne	LBB0_38
## %bb.37:
	movq	%r12, %rdi
	callq	_ASIC_IS_DCE61
	testl	%eax, %eax
	je	LBB0_43
LBB0_38:
	movq	_EXTERNAL_ENCODER_ACTION_V3_ENCODER_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_atombios_external_encoder_setup
	jmp	LBB0_43
LBB0_39:
	movq	%r12, %rdi
	callq	_ASIC_IS_DCE4
	testl	%eax, %eax
	je	LBB0_41
## %bb.40:
	movq	_ATOM_ENCODER_CMD_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_atombios_dig_encoder_setup
	jmp	LBB0_42
LBB0_41:
	movq	_ATOM_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_atombios_dig_encoder_setup
	movq	_ATOM_TRANSMITTER_ACTION_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_atombios_dig_transmitter_setup
LBB0_42:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_43:
	movq	%rbx, %rdi
	callq	_atombios_get_encoder_mode
	movl	%eax, %edi
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	je	LBB0_47
## %bb.44:
	testq	%r14, %r14
	je	LBB0_47
## %bb.45:
	movl	(%r14), %eax
	movq	_DRM_MODE_CONNECTOR_eDP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_47
## %bb.46:
	movq	_ATOM_TRANSMITTER_ACTION_POWER_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_atombios_set_edp_panel_power
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_47:
	movq	_ATOM_TRANSMITTER_ACTION_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_atombios_dig_transmitter_setup
	movq	%rbx, %rdi
	callq	_atombios_get_encoder_mode
	movl	%eax, %edi
	callq	_ENCODER_MODE_IS_DP
	testl	%eax, %eax
	je	LBB0_51
## %bb.48:
	testq	%r14, %r14
	je	LBB0_51
## %bb.49:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_radeon_dp_link_train
	movq	%r12, %rdi
	callq	_ASIC_IS_DCE4
	testl	%eax, %eax
	je	LBB0_51
## %bb.50:
	movq	_ATOM_ENCODER_CMD_DP_VIDEO_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_atombios_dig_encoder_setup
LBB0_51:
	movq	_ATOM_DEVICE_LCD_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_54
## %bb.52:
	cmpl	$0, (%r12)
	je	LBB0_56
## %bb.53:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movq	%r13, %rdi
	callq	_atombios_set_backlight_level
LBB0_54:
	testq	%r15, %r15
	je	LBB0_15
LBB0_55:
	movq	_ATOM_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atombios_external_encoder_setup ## TAILCALL
LBB0_56:
	movq	_ATOM_TRANSMITTER_ACTION_LCD_BLON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_atombios_dig_transmitter_setup
	testq	%r15, %r15
	jne	LBB0_55
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ENCODER_OBJECT_ID_TRAVIS,8,3   ## @ENCODER_OBJECT_ID_TRAVIS
	.comm	_ATOM_DEVICE_LCD_SUPPORT,4,2    ## @ATOM_DEVICE_LCD_SUPPORT
	.comm	_DP_PANEL_MODE_EXTERNAL_DP_MODE,4,2 ## @DP_PANEL_MODE_EXTERNAL_DP_MODE
	.comm	_ATOM_ENCODER_CMD_SETUP,4,2     ## @ATOM_ENCODER_CMD_SETUP
	.comm	_ATOM_ENCODER_CMD_SETUP_PANEL_MODE,4,2 ## @ATOM_ENCODER_CMD_SETUP_PANEL_MODE
	.comm	_EXTERNAL_ENCODER_ACTION_V3_ENCODER_SETUP,4,2 ## @EXTERNAL_ENCODER_ACTION_V3_ENCODER_SETUP
	.comm	_ATOM_ENABLE,4,2                ## @ATOM_ENABLE
	.comm	_ATOM_TRANSMITTER_ACTION_SETUP,4,2 ## @ATOM_TRANSMITTER_ACTION_SETUP
	.comm	_DRM_MODE_CONNECTOR_eDP,4,2     ## @DRM_MODE_CONNECTOR_eDP
	.comm	_ATOM_TRANSMITTER_ACTION_POWER_ON,4,2 ## @ATOM_TRANSMITTER_ACTION_POWER_ON
	.comm	_ATOM_TRANSMITTER_ACTION_ENABLE,4,2 ## @ATOM_TRANSMITTER_ACTION_ENABLE
	.comm	_ATOM_ENCODER_CMD_DP_VIDEO_ON,4,2 ## @ATOM_ENCODER_CMD_DP_VIDEO_ON
	.comm	_ATOM_TRANSMITTER_ACTION_LCD_BLON,4,2 ## @ATOM_TRANSMITTER_ACTION_LCD_BLON
	.comm	_ATOM_ENCODER_CMD_DP_VIDEO_OFF,4,2 ## @ATOM_ENCODER_CMD_DP_VIDEO_OFF
	.comm	_ATOM_DISABLE,4,2               ## @ATOM_DISABLE
	.comm	_ATOM_TRANSMITTER_ACTION_LCD_BLOFF,4,2 ## @ATOM_TRANSMITTER_ACTION_LCD_BLOFF
	.comm	_DP_SET_POWER_D3,4,2            ## @DP_SET_POWER_D3
	.comm	_ATOM_TRANSMITTER_ACTION_DISABLE,4,2 ## @ATOM_TRANSMITTER_ACTION_DISABLE
	.comm	_ATOM_TRANSMITTER_ACTION_POWER_OFF,4,2 ## @ATOM_TRANSMITTER_ACTION_POWER_OFF
	.no_dead_strip	_radeon_atom_encoder_dpms_dig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_atom_encoder_dpms_dig
_radeon_atom_encoder_dpms_dig:          ; @radeon_atom_encoder_dpms_dig
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x21, [x8]
	bl	_to_radeon_encoder
	mov	x23, x0
	mov	x0, x19
	bl	_radeon_get_external_encoder
	mov	x22, x0
	ldr	x26, [x23, #8]
	mov	x0, x19
	bl	_radeon_get_connector_for_encoder
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_to_radeon_connector
	ldr	x25, [x0]
	mov	x0, x20
	bl	_radeon_connector_encoder_get_dp_bridge_encoder_id
Lloh0:
	adrp	x8, _ENCODER_OBJECT_ID_TRAVIS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENCODER_OBJECT_ID_TRAVIS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x23]
Lloh3:
	adrp	x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_ASIC_IS_DCE5
	cmp	x0, #0
	cset	w27, eq
	b	LBB0_6
LBB0_4:
	mov	x25, #0
LBB0_5:
	mov	w27, #0
LBB0_6:
	sub	w8, w24, #128
	cmp	w8, #2
	b.lo	LBB0_13
; %bb.7:
	cmp	w24, #131
	b.eq	LBB0_13
; %bb.8:
	cmp	w24, #130
	b.ne	LBB0_14
; %bb.9:
	mov	x0, x21
	bl	_ASIC_IS_DCE41
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_ASIC_IS_DCE5
	cbz	x0, LBB0_52
LBB0_11:
	cbz	x20, LBB0_33
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	bl	_radeon_dp_get_panel_mode
	b	LBB0_34
LBB0_13:
	ldr	w8, [x26]
	cbz	w8, LBB0_15
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x0, x21
	bl	_ASIC_IS_DCE4
	cbz	w0, LBB0_19
; %bb.16:
	mov	x0, x19
	bl	_atombios_get_encoder_mode
	bl	_ENCODER_MODE_IS_DP
	cbz	w0, LBB0_19
; %bb.17:
	cbz	x20, LBB0_19
; %bb.18:
Lloh6:
	adrp	x8, _ATOM_ENCODER_CMD_DP_VIDEO_OFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATOM_ENCODER_CMD_DP_VIDEO_OFF@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_atombios_dig_encoder_setup
LBB0_19:
	cbz	x22, LBB0_21
; %bb.20:
Lloh9:
	adrp	x8, _ATOM_DISABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATOM_DISABLE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_atombios_external_encoder_setup
LBB0_21:
	ldr	w8, [x23]
Lloh12:
	adrp	x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.22:
Lloh15:
	adrp	x8, _ATOM_TRANSMITTER_ACTION_LCD_BLOFF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ATOM_TRANSMITTER_ACTION_LCD_BLOFF@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_atombios_dig_transmitter_setup
LBB0_23:
	mov	x0, x19
	bl	_atombios_get_encoder_mode
	bl	_ENCODER_MODE_IS_DP
	cmp	w0, #0
	ccmp	x20, #0, #4, ne
	cset	w8, eq
	orr	w8, w27, w8
	tbnz	w8, #0, LBB0_25
; %bb.24:
Lloh18:
	adrp	x8, _DP_SET_POWER_D3@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DP_SET_POWER_D3@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_radeon_dp_set_rx_power_state
LBB0_25:
	mov	x0, x21
	bl	_ASIC_IS_DCE4
	mov	x21, x0
Lloh21:
	adrp	x8, _ATOM_TRANSMITTER_ACTION_DISABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ATOM_TRANSMITTER_ACTION_DISABLE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_atombios_dig_transmitter_setup
	cbnz	w21, LBB0_27
; %bb.26:
Lloh24:
	adrp	x8, _ATOM_DISABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ATOM_DISABLE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_atombios_dig_encoder_setup
LBB0_27:
	mov	x0, x19
	bl	_atombios_get_encoder_mode
	bl	_ENCODER_MODE_IS_DP
	cbz	w0, LBB0_14
; %bb.28:
	cbz	x20, LBB0_14
; %bb.29:
	cbz	w27, LBB0_31
; %bb.30:
Lloh27:
	adrp	x8, _DP_SET_POWER_D3@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DP_SET_POWER_D3@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_radeon_dp_set_rx_power_state
LBB0_31:
	ldr	w8, [x20]
Lloh30:
	adrp	x9, _DRM_MODE_CONNECTOR_eDP@GOTPAGE
Lloh31:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_eDP@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.32:
Lloh33:
	adrp	x8, _ATOM_TRANSMITTER_ACTION_POWER_OFF@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ATOM_TRANSMITTER_ACTION_POWER_OFF@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_atombios_set_edp_panel_power
	str	wzr, [x25]
	b	LBB0_14
LBB0_33:
Lloh36:
	adrp	x8, _DP_PANEL_MODE_EXTERNAL_DP_MODE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _DP_PANEL_MODE_EXTERNAL_DP_MODE@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
LBB0_34:
	str	w0, [x26, #8]
Lloh39:
	adrp	x8, _ATOM_ENCODER_CMD_SETUP@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ATOM_ENCODER_CMD_SETUP@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_atombios_dig_encoder_setup
Lloh42:
	adrp	x8, _ATOM_ENCODER_CMD_SETUP_PANEL_MODE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ATOM_ENCODER_CMD_SETUP_PANEL_MODE@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	ldr	w2, [x26, #8]
	mov	x0, x19
	bl	_atombios_dig_encoder_setup
	cbz	x22, LBB0_38
; %bb.35:
	mov	x0, x21
	bl	_ASIC_IS_DCE41
	cbnz	w0, LBB0_37
; %bb.36:
	mov	x0, x21
	bl	_ASIC_IS_DCE61
	cbz	w0, LBB0_38
LBB0_37:
Lloh45:
	adrp	x8, _EXTERNAL_ENCODER_ACTION_V3_ENCODER_SETUP@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EXTERNAL_ENCODER_ACTION_V3_ENCODER_SETUP@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_atombios_external_encoder_setup
LBB0_38:
	mov	x0, x19
	bl	_atombios_get_encoder_mode
	bl	_ENCODER_MODE_IS_DP
	cbz	w0, LBB0_42
; %bb.39:
	cbz	x20, LBB0_42
; %bb.40:
	ldr	w8, [x20]
Lloh48:
	adrp	x9, _DRM_MODE_CONNECTOR_eDP@GOTPAGE
Lloh49:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_eDP@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_42
; %bb.41:
Lloh51:
	adrp	x8, _ATOM_TRANSMITTER_ACTION_POWER_ON@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ATOM_TRANSMITTER_ACTION_POWER_ON@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_atombios_set_edp_panel_power
	mov	w8, #1
	str	w8, [x25]
LBB0_42:
Lloh54:
	adrp	x8, _ATOM_TRANSMITTER_ACTION_ENABLE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ATOM_TRANSMITTER_ACTION_ENABLE@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_atombios_dig_transmitter_setup
	mov	x0, x19
	bl	_atombios_get_encoder_mode
	bl	_ENCODER_MODE_IS_DP
	cbz	w0, LBB0_46
; %bb.43:
	cbz	x20, LBB0_46
; %bb.44:
	mov	x0, x19
	mov	x1, x20
	bl	_radeon_dp_link_train
	mov	x0, x21
	bl	_ASIC_IS_DCE4
	cbz	w0, LBB0_46
; %bb.45:
Lloh57:
	adrp	x8, _ATOM_ENCODER_CMD_DP_VIDEO_ON@GOTPAGE
Lloh58:
	ldr	x8, [x8, _ATOM_ENCODER_CMD_DP_VIDEO_ON@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_atombios_dig_encoder_setup
LBB0_46:
	ldr	w8, [x23]
Lloh60:
	adrp	x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGE
Lloh61:
	ldr	x9, [x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_49
; %bb.47:
	ldr	w8, [x21]
	cbz	w8, LBB0_51
; %bb.48:
	ldr	w1, [x26, #4]
	mov	x0, x23
	bl	_atombios_set_backlight_level
LBB0_49:
	cbz	x22, LBB0_14
LBB0_50:
Lloh63:
	adrp	x8, _ATOM_ENABLE@GOTPAGE
Lloh64:
	ldr	x8, [x8, _ATOM_ENABLE@GOTPAGEOFF]
Lloh65:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_atombios_external_encoder_setup
LBB0_51:
Lloh66:
	adrp	x8, _ATOM_TRANSMITTER_ACTION_LCD_BLON@GOTPAGE
Lloh67:
	ldr	x8, [x8, _ATOM_TRANSMITTER_ACTION_LCD_BLON@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_atombios_dig_transmitter_setup
	cbnz	x22, LBB0_50
	b	LBB0_14
LBB0_52:
	mov	x0, x21
	bl	_ASIC_IS_DCE4
	cbz	w0, LBB0_54
; %bb.53:
Lloh69:
	adrp	x8, _ATOM_ENCODER_CMD_SETUP@GOTPAGE
Lloh70:
	ldr	x8, [x8, _ATOM_ENCODER_CMD_SETUP@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_atombios_dig_encoder_setup
	b	LBB0_38
LBB0_54:
Lloh72:
	adrp	x8, _ATOM_ENABLE@GOTPAGE
Lloh73:
	ldr	x8, [x8, _ATOM_ENABLE@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_atombios_dig_encoder_setup
Lloh75:
	adrp	x8, _ATOM_TRANSMITTER_ACTION_SETUP@GOTPAGE
Lloh76:
	ldr	x8, [x8, _ATOM_TRANSMITTER_ACTION_SETUP@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_atombios_dig_transmitter_setup
	b	LBB0_38
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.comm	_ENCODER_OBJECT_ID_TRAVIS,8,3   ; @ENCODER_OBJECT_ID_TRAVIS
	.comm	_ATOM_DEVICE_LCD_SUPPORT,4,2    ; @ATOM_DEVICE_LCD_SUPPORT
	.comm	_DP_PANEL_MODE_EXTERNAL_DP_MODE,4,2 ; @DP_PANEL_MODE_EXTERNAL_DP_MODE
	.comm	_ATOM_ENCODER_CMD_SETUP,4,2     ; @ATOM_ENCODER_CMD_SETUP
	.comm	_ATOM_ENCODER_CMD_SETUP_PANEL_MODE,4,2 ; @ATOM_ENCODER_CMD_SETUP_PANEL_MODE
	.comm	_EXTERNAL_ENCODER_ACTION_V3_ENCODER_SETUP,4,2 ; @EXTERNAL_ENCODER_ACTION_V3_ENCODER_SETUP
	.comm	_ATOM_ENABLE,4,2                ; @ATOM_ENABLE
	.comm	_ATOM_TRANSMITTER_ACTION_SETUP,4,2 ; @ATOM_TRANSMITTER_ACTION_SETUP
	.comm	_DRM_MODE_CONNECTOR_eDP,4,2     ; @DRM_MODE_CONNECTOR_eDP
	.comm	_ATOM_TRANSMITTER_ACTION_POWER_ON,4,2 ; @ATOM_TRANSMITTER_ACTION_POWER_ON
	.comm	_ATOM_TRANSMITTER_ACTION_ENABLE,4,2 ; @ATOM_TRANSMITTER_ACTION_ENABLE
	.comm	_ATOM_ENCODER_CMD_DP_VIDEO_ON,4,2 ; @ATOM_ENCODER_CMD_DP_VIDEO_ON
	.comm	_ATOM_TRANSMITTER_ACTION_LCD_BLON,4,2 ; @ATOM_TRANSMITTER_ACTION_LCD_BLON
	.comm	_ATOM_ENCODER_CMD_DP_VIDEO_OFF,4,2 ; @ATOM_ENCODER_CMD_DP_VIDEO_OFF
	.comm	_ATOM_DISABLE,4,2               ; @ATOM_DISABLE
	.comm	_ATOM_TRANSMITTER_ACTION_LCD_BLOFF,4,2 ; @ATOM_TRANSMITTER_ACTION_LCD_BLOFF
	.comm	_DP_SET_POWER_D3,4,2            ; @DP_SET_POWER_D3
	.comm	_ATOM_TRANSMITTER_ACTION_DISABLE,4,2 ; @ATOM_TRANSMITTER_ACTION_DISABLE
	.comm	_ATOM_TRANSMITTER_ACTION_POWER_OFF,4,2 ; @ATOM_TRANSMITTER_ACTION_POWER_OFF
	.no_dead_strip	_radeon_atom_encoder_dpms_dig
.subsections_via_symbols
