	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atombios_get_encoder_mode      ## -- Begin function atombios_get_encoder_mode
	.p2align	4, 0x90
_atombios_get_encoder_mode:             ## @atombios_get_encoder_mode
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r15
	callq	_to_radeon_encoder
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_radeon_encoder_get_dp_bridge_encoder_id
	movq	_ENCODER_OBJECT_ID_NONE@GOTPCREL(%rip), %rcx
	movq	_ATOM_ENCODER_MODE_DP@GOTPCREL(%rip), %r13
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	(%r14), %rcx
	movq	_ENCODER_OBJECT_ID_INTERNAL_DVO1@GOTPCREL(%rip), %rdx
	movq	_ATOM_ENCODER_MODE_DVO@GOTPCREL(%rip), %rax
	cmpq	(%rdx), %rcx
	je	LBB0_9
## %bb.2:
	movq	_ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_9
## %bb.3:
	movq	%rbx, %rdi
	callq	_radeon_get_connector_for_encoder
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_radeon_get_connector_for_encoder_init
	movq	%rax, %r12
LBB0_5:
	movq	%r12, %rdi
	callq	_to_radeon_connector
	movq	%rax, %r14
	movl	(%r12), %ecx
	addl	$-128, %ecx
	cmpl	$11, %ecx
	ja	LBB0_15
## %bb.6:
	movq	_ATOM_ENCODER_MODE_LVDS@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_7:
	movq	_ATOM_ENCODER_MODE_TV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_10:
	movl	(%r14), %edi
	callq	_drm_detect_hdmi_monitor
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movq	_radeon_audio@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE6
	testl	%eax, %eax
	je	LBB0_18
LBB0_13:
	cmpl	$0, 16(%r14)
	jne	LBB0_22
LBB0_14:
	movq	_ATOM_ENCODER_MODE_CRT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_19:
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	movq	_CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_8
## %bb.20:
	movq	_CONNECTOR_OBJECT_ID_eDP@GOTPCREL(%rip), %rdx
	movq	%r13, %rax
	cmpl	(%rdx), %ecx
	je	LBB0_9
LBB0_15:
	movl	(%r14), %edi
	callq	_drm_detect_hdmi_monitor
	testl	%eax, %eax
	je	LBB0_22
## %bb.16:
	movq	_radeon_audio@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_22
## %bb.17:
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE6
	testl	%eax, %eax
	je	LBB0_18
LBB0_22:
	movq	_ATOM_ENCODER_MODE_DVI@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	%r13, %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_ATOM_ENCODER_MODE_HDMI@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_14
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_15
	.long	L0_0_set_19
	.long	L0_0_set_10
	.long	L0_0_set_15
	.long	L0_0_set_14
	.long	L0_0_set_7
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_ENCODER_OBJECT_ID_NONE,8,3     ## @ENCODER_OBJECT_ID_NONE
	.comm	_ATOM_ENCODER_MODE_DP,4,2       ## @ATOM_ENCODER_MODE_DP
	.comm	_ENCODER_OBJECT_ID_INTERNAL_DVO1,8,3 ## @ENCODER_OBJECT_ID_INTERNAL_DVO1
	.comm	_ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1,8,3 ## @ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1
	.comm	_ATOM_ENCODER_MODE_DVO,4,2      ## @ATOM_ENCODER_MODE_DVO
	.comm	_radeon_audio,4,2               ## @radeon_audio
	.comm	_ATOM_ENCODER_MODE_HDMI,4,2     ## @ATOM_ENCODER_MODE_HDMI
	.comm	_ATOM_ENCODER_MODE_DVI,4,2      ## @ATOM_ENCODER_MODE_DVI
	.comm	_ATOM_ENCODER_MODE_CRT,4,2      ## @ATOM_ENCODER_MODE_CRT
	.comm	_ATOM_ENCODER_MODE_LVDS,4,2     ## @ATOM_ENCODER_MODE_LVDS
	.comm	_CONNECTOR_OBJECT_ID_DISPLAYPORT,4,2 ## @CONNECTOR_OBJECT_ID_DISPLAYPORT
	.comm	_CONNECTOR_OBJECT_ID_eDP,4,2    ## @CONNECTOR_OBJECT_ID_eDP
	.comm	_ATOM_ENCODER_MODE_TV,4,2       ## @ATOM_ENCODER_MODE_TV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atombios_get_encoder_mode      ; -- Begin function atombios_get_encoder_mode
	.p2align	2
_atombios_get_encoder_mode:             ; @atombios_get_encoder_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x19, [x8]
	bl	_to_radeon_encoder
	mov	x21, x0
	mov	x0, x20
	bl	_radeon_encoder_get_dp_bridge_encoder_id
Lloh0:
	adrp	x8, _ENCODER_OBJECT_ID_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENCODER_OBJECT_ID_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.1:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _ENCODER_OBJECT_ID_INTERNAL_DVO1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENCODER_OBJECT_ID_INTERNAL_DVO1@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _ATOM_ENCODER_MODE_DVO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATOM_ENCODER_MODE_DVO@GOTPAGEOFF]
	b	LBB0_15
LBB0_3:
	mov	x0, x20
	bl	_radeon_get_connector_for_encoder
	mov	x21, x0
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_radeon_get_connector_for_encoder_init
	mov	x21, x0
LBB0_5:
	mov	x0, x21
	bl	_to_radeon_connector
	mov	x20, x0
	ldr	w8, [x21]
	sub	w9, w8, #128
	cmp	w9, #11
	b.hi	LBB0_16
; %bb.6:
Lloh11:
	adrp	x8, _ATOM_ENCODER_MODE_LVDS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATOM_ENCODER_MODE_LVDS@GOTPAGEOFF]
Lloh13:
	adrp	x10, lJTI0_0@PAGE
Lloh14:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_7
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_7:
Lloh15:
	adrp	x8, _ATOM_ENCODER_MODE_TV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ATOM_ENCODER_MODE_TV@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
Lloh17:
	adrp	x8, _ATOM_ENCODER_MODE_CRT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ATOM_ENCODER_MODE_CRT@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
	ldr	w0, [x20]
	bl	_drm_detect_hdmi_monitor
	cbz	w0, LBB0_12
; %bb.10:
Lloh19:
	adrp	x8, _radeon_audio@GOTPAGE
Lloh20:
	ldr	x8, [x8, _radeon_audio@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cbz	w8, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_ASIC_IS_DCE6
	cbz	w0, LBB0_20
LBB0_12:
	ldr	w8, [x20, #16]
Lloh22:
	adrp	x9, _ATOM_ENCODER_MODE_DVI@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ATOM_ENCODER_MODE_DVI@GOTPAGEOFF]
Lloh24:
	adrp	x10, _ATOM_ENCODER_MODE_CRT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ATOM_ENCODER_MODE_CRT@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	b	LBB0_15
LBB0_13:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _CONNECTOR_OBJECT_ID_eDP@GOTPAGE
Lloh30:
	ldr	x10, [x10, _CONNECTOR_OBJECT_ID_eDP@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_16
LBB0_14:
Lloh32:
	adrp	x8, _ATOM_ENCODER_MODE_DP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ATOM_ENCODER_MODE_DP@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	w0, [x20]
	bl	_drm_detect_hdmi_monitor
	cbz	w0, LBB0_19
; %bb.17:
Lloh34:
	adrp	x8, _radeon_audio@GOTPAGE
Lloh35:
	ldr	x8, [x8, _radeon_audio@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cbz	w8, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_ASIC_IS_DCE6
	cbz	w0, LBB0_20
LBB0_19:
Lloh37:
	adrp	x8, _ATOM_ENCODER_MODE_DVI@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ATOM_ENCODER_MODE_DVI@GOTPAGEOFF]
	b	LBB0_15
LBB0_20:
Lloh39:
	adrp	x8, _ATOM_ENCODER_MODE_HDMI@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ATOM_ENCODER_MODE_HDMI@GOTPAGEOFF]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
                                        ; -- End function
	.comm	_ENCODER_OBJECT_ID_NONE,8,3     ; @ENCODER_OBJECT_ID_NONE
	.comm	_ATOM_ENCODER_MODE_DP,4,2       ; @ATOM_ENCODER_MODE_DP
	.comm	_ENCODER_OBJECT_ID_INTERNAL_DVO1,8,3 ; @ENCODER_OBJECT_ID_INTERNAL_DVO1
	.comm	_ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1,8,3 ; @ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1
	.comm	_ATOM_ENCODER_MODE_DVO,4,2      ; @ATOM_ENCODER_MODE_DVO
	.comm	_radeon_audio,4,2               ; @radeon_audio
	.comm	_ATOM_ENCODER_MODE_HDMI,4,2     ; @ATOM_ENCODER_MODE_HDMI
	.comm	_ATOM_ENCODER_MODE_DVI,4,2      ; @ATOM_ENCODER_MODE_DVI
	.comm	_ATOM_ENCODER_MODE_CRT,4,2      ; @ATOM_ENCODER_MODE_CRT
	.comm	_ATOM_ENCODER_MODE_LVDS,4,2     ; @ATOM_ENCODER_MODE_LVDS
	.comm	_CONNECTOR_OBJECT_ID_DISPLAYPORT,4,2 ; @CONNECTOR_OBJECT_ID_DISPLAYPORT
	.comm	_CONNECTOR_OBJECT_ID_eDP,4,2    ; @CONNECTOR_OBJECT_ID_eDP
	.comm	_ATOM_ENCODER_MODE_TV,4,2       ; @ATOM_ENCODER_MODE_TV
.subsections_via_symbols
