	.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
	movl	%esi, %r14d
	movq	(%rdi), %rax
	movq	(%rax), %r15
	callq	_to_radeon_encoder
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_25
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_25
## %bb.2:
	movq	%rax, %r13
	movq	_HDMI0_ERROR_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE3
	testl	%eax, %eax
	jne	LBB0_20
## %bb.3:
	movl	%r14d, %ecx
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	movq	_HDMI0_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_5:
	orl	%r12d, %ecx
	movl	(%r13), %edx
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	ja	LBB0_18
## %bb.6:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_11:
	movq	_AVIVO_LVTMA_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AVIVO_LVTMA_CNTL_HDMI_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.12:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	callq	_WREG32_OR
	movq	_HDMI0_STREAM_LVTMA@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ecx, %r12d
	callq	_dev_err
	jmp	LBB0_19
LBB0_7:
	movq	_AVIVO_TMDSA_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AVIVO_TMDSA_CNTL_HDMI_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.8:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	callq	_WREG32_OR
	movq	_HDMI0_STREAM_TMDSA@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_16:
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.17:
	movq	_HDMI0_STREAM_DVOA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_10
LBB0_13:
	movq	_DDIA_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DDIA_HDMI_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.14:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	callq	_WREG32_OR
	movq	_HDMI0_STREAM_DDIA@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edi
LBB0_10:
	callq	_HDMI0_STREAM
	movl	%eax, %r12d
	orl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jmp	LBB0_19
LBB0_15:
	notl	%esi
	callq	_WREG32_AND
LBB0_19:
	movq	_HDMI0_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rbx), %rcx
	movq	8(%rcx), %rdi
	addq	(%rax), %rdi
	movl	%r12d, %esi
	callq	_WREG32
LBB0_20:
	cmpq	$0, (%r15)
	je	LBB0_24
## %bb.21:
	movq	(%rbx), %rax
	movl	16(%rax), %esi
	movq	%r15, %rdi
	testl	%r14d, %r14d
	je	LBB0_23
## %bb.22:
	callq	_radeon_irq_kms_enable_afmt
	jmp	LBB0_24
LBB0_23:
	callq	_radeon_irq_kms_disable_afmt
LBB0_24:
	testl	%r14d, %r14d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	(%rbx), %rax
	movl	%r14d, (%rax)
	movq	8(%rax), %rdx
	movl	(%r13), %ecx
	leaq	L_.str.1(%rip), %rdi
	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_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_16
	.long	L0_0_set_13
	.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	"%sabling HDMI interface @ 0x%04X for encoder 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"En"

L_.str.3:                               ## @.str.3
	.asciz	"Dis"

.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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x21, [x8]
	bl	_to_radeon_encoder
	ldr	x23, [x0, #8]
	cbz	x23, LBB0_7
; %bb.1:
	ldr	x8, [x23]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x8, _HDMI0_ERROR_ACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI0_ERROR_ACK@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_ASIC_IS_DCE3
	cbnz	w0, LBB0_18
; %bb.3:
Lloh3:
	adrp	x8, _HDMI0_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI0_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w19, #0
	csel	w8, wzr, w8, eq
	orr	w24, w8, w22
	ldr	w2, [x20]
	sub	w8, w2, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.4:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
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]
	cbz	w19, LBB0_16
; %bb.6:
	bl	_WREG32_OR
Lloh14:
	adrp	x8, _HDMI0_STREAM_LVTMA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDMI0_STREAM_LVTMA@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
	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_8:
	ldr	w0, [x21, #8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x22, x24
	b	LBB0_17
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]
	cbz	w19, LBB0_16
; %bb.10:
	bl	_WREG32_OR
Lloh24:
	adrp	x8, _HDMI0_STREAM_TMDSA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HDMI0_STREAM_TMDSA@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
	cbz	w19, LBB0_17
; %bb.12:
Lloh26:
	adrp	x8, _HDMI0_STREAM_DVOA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HDMI0_STREAM_DVOA@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
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]
	cbz	w19, LBB0_16
; %bb.14:
	bl	_WREG32_OR
Lloh34:
	adrp	x8, _HDMI0_STREAM_DDIA@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HDMI0_STREAM_DDIA@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	bl	_HDMI0_STREAM
	orr	w22, w0, w24
	b	LBB0_17
LBB0_16:
	mvn	w1, w1
	bl	_WREG32_AND
LBB0_17:
Lloh36:
	adrp	x8, _HDMI0_CONTROL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HDMI0_CONTROL@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	ldr	x9, [x23]
	ldr	x9, [x9, #8]
	add	x0, x9, x8
	mov	x1, x22
	bl	_WREG32
LBB0_18:
	ldr	x8, [x21]
	cbz	x8, LBB0_22
; %bb.19:
	ldr	x8, [x23]
	ldr	w1, [x8, #16]
	mov	x0, x21
	cbz	w19, LBB0_21
; %bb.20:
	bl	_radeon_irq_kms_enable_afmt
	b	LBB0_22
LBB0_21:
	bl	_radeon_irq_kms_disable_afmt
LBB0_22:
	ldr	x8, [x23]
	str	w19, [x8]
Lloh39:
	adrp	x9, l_.str.2@PAGE
Lloh40:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh41:
	adrp	x10, l_.str.3@PAGE
Lloh42:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w19, #0
	csel	x1, x10, x9, eq
	ldr	x2, [x8, #8]
	ldr	w3, [x20]
Lloh43:
	adrp	x0, l_.str.1@PAGE
Lloh44:
	add	x0, x0, l_.str.1@PAGEOFF
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>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	"%sabling HDMI interface @ 0x%04X for encoder 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"En"

l_.str.3:                               ; @.str.3
	.asciz	"Dis"

.subsections_via_symbols
