	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_hdmi_disable              ## -- Begin function r600_hdmi_disable
	.p2align	4, 0x90
_r600_hdmi_disable:                     ## @r600_hdmi_disable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %r15
	callq	_to_radeon_encoder
	movq	%rax, %rbx
	movq	8(%rax), %r12
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE6
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	testq	%r12, %r12
	je	LBB0_15
## %bb.2:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	cmpl	$0, (%rax)
	je	LBB0_15
## %bb.4:
	movq	8(%rax), %r14
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_DRM_DEBUG
	movq	(%r12), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_radeon_irq_kms_disable_afmt
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE2
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE3
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movl	(%rbx), %edx
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	ja	LBB0_12
## %bb.7:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	_AVIVO_LVTMA_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AVIVO_LVTMA_CNTL_HDMI_EN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_12:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	jmp	LBB0_13
LBB0_8:
	movq	_AVIVO_TMDSA_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AVIVO_TMDSA_CNTL_HDMI_EN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_11:
	movq	_DDIA_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DDIA_HDMI_EN@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edx
	notl	%edx
	xorl	%esi, %esi
	callq	_WREG32_P
LBB0_13:
	movq	_HDMI0_CONTROL@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	_HDMI0_ERROR_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_WREG32
LBB0_14:
	movq	(%r12), %rax
	movl	$0, (%rax)
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disabling HDMI interface @ 0x%04X for encoder 0x%x\n"

	.comm	_AVIVO_TMDSA_CNTL,4,2           ## @AVIVO_TMDSA_CNTL
	.comm	_AVIVO_TMDSA_CNTL_HDMI_EN,4,2   ## @AVIVO_TMDSA_CNTL_HDMI_EN
	.comm	_AVIVO_LVTMA_CNTL,4,2           ## @AVIVO_LVTMA_CNTL
	.comm	_AVIVO_LVTMA_CNTL_HDMI_EN,4,2   ## @AVIVO_LVTMA_CNTL_HDMI_EN
	.comm	_DDIA_CNTL,4,2                  ## @DDIA_CNTL
	.comm	_DDIA_HDMI_EN,4,2               ## @DDIA_HDMI_EN
L_.str.1:                               ## @.str.1
	.asciz	"Invalid encoder for HDMI: 0x%X\n"

	.comm	_HDMI0_CONTROL,8,3              ## @HDMI0_CONTROL
	.comm	_HDMI0_ERROR_ACK,4,2            ## @HDMI0_ERROR_ACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_hdmi_disable              ; -- Begin function r600_hdmi_disable
	.p2align	2
_r600_hdmi_disable:                     ; @r600_hdmi_disable
	.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
	ldr	x8, [x0]
	ldr	x20, [x8]
	bl	_to_radeon_encoder
	mov	x21, x0
	ldr	x22, [x0, #8]
	mov	x0, x20
	bl	_ASIC_IS_DCE6
	cmp	x0, #0
	ccmp	x22, #0, #4, eq
	b.eq	LBB0_14
; %bb.1:
	ldr	x8, [x22]
	cbz	x8, LBB0_14
; %bb.2:
	ldr	w9, [x8]
	cbz	w9, LBB0_14
; %bb.3:
	ldr	x19, [x8, #8]
	ldr	w2, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG
	ldr	x8, [x22]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_radeon_irq_kms_disable_afmt
	mov	x0, x20
	bl	_ASIC_IS_DCE2
	cbz	x0, LBB0_13
; %bb.4:
	mov	x0, x20
	bl	_ASIC_IS_DCE3
	cbnz	w0, LBB0_13
; %bb.5:
	ldr	w2, [x21]
	sub	w8, w2, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.6:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
Lloh4:
	adrp	x8, _AVIVO_LVTMA_CNTL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVIVO_LVTMA_CNTL@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _AVIVO_LVTMA_CNTL_HDMI_EN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVIVO_LVTMA_CNTL_HDMI_EN@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_9:
Lloh11:
	adrp	x8, _AVIVO_TMDSA_CNTL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVIVO_TMDSA_CNTL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _AVIVO_TMDSA_CNTL_HDMI_EN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AVIVO_TMDSA_CNTL_HDMI_EN@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x8, _DDIA_CNTL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DDIA_CNTL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _DDIA_HDMI_EN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DDIA_HDMI_EN@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	w1, #0
	bl	_WREG32_P
LBB0_12:
Lloh21:
	adrp	x8, _HDMI0_CONTROL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HDMI0_CONTROL@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	add	x0, x8, x19
Lloh24:
	adrp	x8, _HDMI0_ERROR_ACK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HDMI0_ERROR_ACK@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_WREG32
LBB0_13:
	ldr	x8, [x22]
	str	wzr, [x8]
LBB0_14:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disabling HDMI interface @ 0x%04X for encoder 0x%x\n"

	.comm	_AVIVO_TMDSA_CNTL,4,2           ; @AVIVO_TMDSA_CNTL
	.comm	_AVIVO_TMDSA_CNTL_HDMI_EN,4,2   ; @AVIVO_TMDSA_CNTL_HDMI_EN
	.comm	_AVIVO_LVTMA_CNTL,4,2           ; @AVIVO_LVTMA_CNTL
	.comm	_AVIVO_LVTMA_CNTL_HDMI_EN,4,2   ; @AVIVO_LVTMA_CNTL_HDMI_EN
	.comm	_DDIA_CNTL,4,2                  ; @DDIA_CNTL
	.comm	_DDIA_HDMI_EN,4,2               ; @DDIA_HDMI_EN
l_.str.1:                               ; @.str.1
	.asciz	"Invalid encoder for HDMI: 0x%X\n"

	.comm	_HDMI0_CONTROL,8,3              ; @HDMI0_CONTROL
	.comm	_HDMI0_ERROR_ACK,4,2            ; @HDMI0_ERROR_ACK
.subsections_via_symbols
