	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_disable_hdmi
_intel_disable_hdmi:                    ## @intel_disable_hdmi
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	callq	_to_i915
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_enc_to_intel_hdmi
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_hdmi_to_dig_port
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movq	%r15, %rbx
	callq	_to_intel_crtc
	movq	%rax, %r15
	movl	(%r14), %edi
	callq	_I915_READ
	movq	_SDVO_ENABLE@GOTPCREL(%rip), %rdx
	movq	_HDMI_AUDIO_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rdx), %r13d
	notl	%r13d
	andl	%eax, %r13d
	movl	(%r14), %edi
	movl	%r13d, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_POSTING_READ
	movq	%rbx, %rdi
	callq	_HAS_PCH_IBX
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%r15), %rax
	movq	_PIPE_B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_PIPE_A@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_intel_set_cpu_fifo_underrun_reporting
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_intel_set_pch_fifo_underrun_reporting
	movq	_SDVO_PIPE_SEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r13d
	movl	(%r15), %edi
	movq	_SDVO_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	callq	_SDVO_PIPE_SEL
	orl	%eax, %r13d
	movl	(%r14), %edi
	movl	%r13d, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_POSTING_READ
	movl	(%r14), %edi
	movl	%r13d, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_POSTING_READ
	movq	_SDVO_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%r13d, %esi
	movl	(%r14), %edi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_POSTING_READ
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_intel_wait_for_vblank_if_active
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_intel_set_cpu_fifo_underrun_reporting
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_intel_set_pch_fifo_underrun_reporting
LBB0_3:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	movq	%r14, %rdi
	xorl	%esi, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_dp_dual_mode_set_tmds_output ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDVO_ENABLE,4,2                ## @SDVO_ENABLE
	.comm	_HDMI_AUDIO_ENABLE,4,2          ## @HDMI_AUDIO_ENABLE
	.comm	_PIPE_B,8,3                     ## @PIPE_B
	.comm	_PIPE_A,4,2                     ## @PIPE_A
	.comm	_SDVO_PIPE_SEL_MASK,4,2         ## @SDVO_PIPE_SEL_MASK
	.no_dead_strip	_intel_disable_hdmi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_disable_hdmi
_intel_disable_hdmi:                    ; @intel_disable_hdmi
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x0]
	bl	_to_i915
	mov	x23, x0
	mov	x0, x21
	bl	_enc_to_intel_hdmi
	mov	x22, x0
	bl	_hdmi_to_dig_port
	mov	x24, x0
	ldr	w0, [x20]
	bl	_to_intel_crtc
	mov	x26, x0
	ldr	w0, [x22]
	bl	_I915_READ
Lloh0:
	adrp	x27, _SDVO_ENABLE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SDVO_ENABLE@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh2:
	adrp	x9, _HDMI_AUDIO_ENABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HDMI_AUDIO_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w25, w0, w8
	ldr	w0, [x22]
	mov	x1, x25
	bl	_I915_WRITE
	ldr	w0, [x22]
	bl	_POSTING_READ
	mov	x0, x23
	bl	_HAS_PCH_IBX
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x26]
Lloh5:
	adrp	x9, _PIPE_B@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PIPE_B@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh8:
	adrp	x26, _PIPE_A@GOTPAGE
Lloh9:
	ldr	x26, [x26, _PIPE_A@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x23
	mov	w2, #0
	bl	_intel_set_cpu_fifo_underrun_reporting
	ldr	w1, [x26]
	mov	x0, x23
	mov	w2, #0
	bl	_intel_set_pch_fifo_underrun_reporting
Lloh10:
	adrp	x8, _SDVO_PIPE_SEL_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDVO_PIPE_SEL_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	bic	w25, w25, w8
	ldr	w28, [x27]
	ldr	w0, [x26]
	bl	_SDVO_PIPE_SEL
	orr	w8, w25, w28
	orr	w25, w8, w0
	ldr	w0, [x22]
	mov	x1, x25
	bl	_I915_WRITE
	ldr	w0, [x22]
	bl	_POSTING_READ
	ldr	w0, [x22]
	mov	x1, x25
	bl	_I915_WRITE
	ldr	w0, [x22]
	bl	_POSTING_READ
	ldr	w8, [x27]
	bic	w1, w25, w8
	ldr	w0, [x22]
	bl	_I915_WRITE
	ldr	w0, [x22]
	bl	_POSTING_READ
	ldr	w1, [x26]
	mov	x0, x23
	bl	_intel_wait_for_vblank_if_active
	ldr	w1, [x26]
	mov	x0, x23
	mov	w2, #1
	bl	_intel_set_cpu_fifo_underrun_reporting
	ldr	w1, [x26]
	mov	x0, x23
	mov	w2, #1
	bl	_intel_set_pch_fifo_underrun_reporting
LBB0_3:
	ldr	x8, [x24]
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	mov	x3, x19
	blr	x8
	mov	x0, x22
	mov	w1, #0
	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	_intel_dp_dual_mode_set_tmds_output
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SDVO_ENABLE,4,2                ; @SDVO_ENABLE
	.comm	_HDMI_AUDIO_ENABLE,4,2          ; @HDMI_AUDIO_ENABLE
	.comm	_PIPE_B,8,3                     ; @PIPE_B
	.comm	_PIPE_A,4,2                     ; @PIPE_A
	.comm	_SDVO_PIPE_SEL_MASK,4,2         ; @SDVO_PIPE_SEL_MASK
	.no_dead_strip	_intel_disable_hdmi
.subsections_via_symbols
