	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_hdmi_enable               ## -- Begin function r600_hdmi_enable
	.p2align	4, 0x90
_r600_hdmi_enable:                      ## @r600_hdmi_enable
	.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), %rax
	movq	(%rax), %rbx
	callq	_to_radeon_encoder
	movq	%rax, %r14
	movq	8(%rax), %r13
	movq	%rbx, %rdi
	callq	_ASIC_IS_DCE6
	testq	%rax, %rax
	jne	LBB0_16
## %bb.1:
	movq	(%r13), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	8(%rax), %r15
	movq	%rbx, %rdi
	callq	_ASIC_IS_DCE2
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rbx, %rdi
	callq	_ASIC_IS_DCE3
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	_HDMI0_ERROR_ACK@GOTPCREL(%rip), %rax
	movq	_HDMI0_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movl	(%r14), %edx
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	ja	LBB0_11
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	_AVIVO_LVTMA_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AVIVO_LVTMA_CNTL_HDMI_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	notl	%edx
	callq	_WREG32_P
	movq	_HDMI0_STREAM_LVTMA@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	jmp	LBB0_12
LBB0_6:
	movq	_AVIVO_TMDSA_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AVIVO_TMDSA_CNTL_HDMI_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	notl	%edx
	callq	_WREG32_P
	movq	_HDMI0_STREAM_TMDSA@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_HDMI0_STREAM_DVOA@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_DDIA_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DDIA_HDMI_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	notl	%edx
	callq	_WREG32_P
	movq	_HDMI0_STREAM_DDIA@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %edi
	callq	_HDMI0_STREAM
	orl	%eax, %r12d
LBB0_12:
	movq	_HDMI0_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r15, %rdi
	movl	%r12d, %esi
	callq	_WREG32
LBB0_13:
	cmpq	$0, (%rbx)
	je	LBB0_15
## %bb.14:
	movq	(%r13), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_radeon_irq_kms_enable_afmt
LBB0_15:
	movq	(%r13), %rax
	movl	$1, (%rax)
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG                      ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_HDMI0_ERROR_ACK,4,2            ## @HDMI0_ERROR_ACK
	.comm	_HDMI0_ENABLE,4,2               ## @HDMI0_ENABLE
	.comm	_AVIVO_TMDSA_CNTL,4,2           ## @AVIVO_TMDSA_CNTL
	.comm	_AVIVO_TMDSA_CNTL_HDMI_EN,4,2   ## @AVIVO_TMDSA_CNTL_HDMI_EN
	.comm	_HDMI0_STREAM_TMDSA,4,2         ## @HDMI0_STREAM_TMDSA
	.comm	_AVIVO_LVTMA_CNTL,4,2           ## @AVIVO_LVTMA_CNTL
	.comm	_AVIVO_LVTMA_CNTL_HDMI_EN,4,2   ## @AVIVO_LVTMA_CNTL_HDMI_EN
	.comm	_HDMI0_STREAM_LVTMA,4,2         ## @HDMI0_STREAM_LVTMA
	.comm	_DDIA_CNTL,4,2                  ## @DDIA_CNTL
	.comm	_DDIA_HDMI_EN,4,2               ## @DDIA_HDMI_EN
	.comm	_HDMI0_STREAM_DDIA,4,2          ## @HDMI0_STREAM_DDIA
	.comm	_HDMI0_STREAM_DVOA,4,2          ## @HDMI0_STREAM_DVOA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid encoder for HDMI: 0x%X\n"

	.comm	_HDMI0_CONTROL,8,3              ## @HDMI0_CONTROL
L_.str.1:                               ## @.str.1
	.asciz	"Enabling HDMI interface @ 0x%04X for encoder 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_hdmi_enable               ; -- Begin function r600_hdmi_enable
	.p2align	2
_r600_hdmi_enable:                      ; @r600_hdmi_enable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	ldr	x20, [x8]
	bl	_to_radeon_encoder
	mov	x19, x0
	ldr	x23, [x0, #8]
	mov	x0, x20
	bl	_ASIC_IS_DCE6
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x23]
	ldr	w9, [x8]
	cbz	w9, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x21, [x8, #8]
	mov	x0, x20
	bl	_ASIC_IS_DCE2
	cbz	x0, LBB0_14
; %bb.4:
	mov	x0, x20
	bl	_ASIC_IS_DCE3
	cbnz	w0, LBB0_14
; %bb.5:
Lloh0:
	adrp	x8, _HDMI0_ERROR_ACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI0_ERROR_ACK@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HDMI0_ENABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HDMI0_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w22, w9, w8
	ldr	w2, [x19]
	sub	w8, w2, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.6:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
Lloh8:
	adrp	x8, _AVIVO_LVTMA_CNTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVIVO_LVTMA_CNTL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _AVIVO_LVTMA_CNTL_HDMI_EN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVIVO_LVTMA_CNTL_HDMI_EN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mvn	w2, w1
	bl	_WREG32_P
Lloh14:
	adrp	x8, _HDMI0_STREAM_LVTMA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDMI0_STREAM_LVTMA@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	ldr	w0, [x20, #8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_13
LBB0_9:
Lloh18:
	adrp	x8, _AVIVO_TMDSA_CNTL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVIVO_TMDSA_CNTL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _AVIVO_TMDSA_CNTL_HDMI_EN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AVIVO_TMDSA_CNTL_HDMI_EN@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mvn	w2, w1
	bl	_WREG32_P
Lloh24:
	adrp	x8, _HDMI0_STREAM_TMDSA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HDMI0_STREAM_TMDSA@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh26:
	adrp	x8, _HDMI0_STREAM_DVOA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HDMI0_STREAM_DVOA@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh28:
	adrp	x8, _DDIA_CNTL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DDIA_CNTL@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x8, _DDIA_HDMI_EN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DDIA_HDMI_EN@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mvn	w2, w1
	bl	_WREG32_P
Lloh34:
	adrp	x8, _HDMI0_STREAM_DDIA@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HDMI0_STREAM_DDIA@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	bl	_HDMI0_STREAM
	orr	w22, w0, w22
LBB0_13:
Lloh36:
	adrp	x8, _HDMI0_CONTROL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HDMI0_CONTROL@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	add	x0, x8, x21
	mov	x1, x22
	bl	_WREG32
LBB0_14:
	ldr	x8, [x20]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	x8, [x23]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_radeon_irq_kms_enable_afmt
LBB0_16:
	ldr	x8, [x23]
	mov	w9, #1
	str	w9, [x8]
	ldr	w2, [x19]
Lloh39:
	adrp	x0, l_.str.1@PAGE
Lloh40:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_DRM_DEBUG
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
                                        ; -- End function
	.comm	_HDMI0_ERROR_ACK,4,2            ; @HDMI0_ERROR_ACK
	.comm	_HDMI0_ENABLE,4,2               ; @HDMI0_ENABLE
	.comm	_AVIVO_TMDSA_CNTL,4,2           ; @AVIVO_TMDSA_CNTL
	.comm	_AVIVO_TMDSA_CNTL_HDMI_EN,4,2   ; @AVIVO_TMDSA_CNTL_HDMI_EN
	.comm	_HDMI0_STREAM_TMDSA,4,2         ; @HDMI0_STREAM_TMDSA
	.comm	_AVIVO_LVTMA_CNTL,4,2           ; @AVIVO_LVTMA_CNTL
	.comm	_AVIVO_LVTMA_CNTL_HDMI_EN,4,2   ; @AVIVO_LVTMA_CNTL_HDMI_EN
	.comm	_HDMI0_STREAM_LVTMA,4,2         ; @HDMI0_STREAM_LVTMA
	.comm	_DDIA_CNTL,4,2                  ; @DDIA_CNTL
	.comm	_DDIA_HDMI_EN,4,2               ; @DDIA_HDMI_EN
	.comm	_HDMI0_STREAM_DDIA,4,2          ; @HDMI0_STREAM_DDIA
	.comm	_HDMI0_STREAM_DVOA,4,2          ; @HDMI0_STREAM_DVOA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid encoder for HDMI: 0x%X\n"

	.comm	_HDMI0_CONTROL,8,3              ; @HDMI0_CONTROL
l_.str.1:                               ; @.str.1
	.asciz	"Enabling HDMI interface @ 0x%04X for encoder 0x%x\n"

.subsections_via_symbols
