	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_disable_sdvo
_intel_disable_sdvo:                    ## @intel_disable_sdvo
	.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	%rsi, %r13
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_sdvo
	movq	%rax, %r15
	movl	8(%r13), %edi
	callq	_to_intel_crtc
	movq	%rax, %r12
	cmpq	$0, (%r13)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_intel_sdvo_disable_audio
LBB0_2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_intel_sdvo_set_active_outputs
	movl	(%r15), %edi
	callq	_I915_READ
	movq	_SDVO_ENABLE@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_intel_sdvo_write_sdvox
	movq	%r14, %rdi
	callq	_HAS_PCH_IBX
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r12), %rax
	movq	_PIPE_B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_PIPE_A@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_intel_set_cpu_fifo_underrun_reporting
	movl	(%r12), %esi
	movq	%r14, %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, %ebx
	movl	(%r12), %edi
	orl	(%r13), %ebx
	callq	_SDVO_PIPE_SEL
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_intel_sdvo_write_sdvox
	movl	(%r13), %esi
	notl	%esi
	andl	%ebx, %esi
	movq	%r15, %rdi
	callq	_intel_sdvo_write_sdvox
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_intel_wait_for_vblank_if_active
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_intel_set_cpu_fifo_underrun_reporting
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_set_pch_fifo_underrun_reporting ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDVO_ENABLE,4,2                ## @SDVO_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
	.comm	_DRM_MODE_DPMS_OFF,4,2          ## @DRM_MODE_DPMS_OFF
	.no_dead_strip	_intel_disable_sdvo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_disable_sdvo
_intel_disable_sdvo:                    ; @intel_disable_sdvo
	.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	x21, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_to_i915
	mov	x19, x0
	mov	x0, x20
	bl	_to_sdvo
	mov	x20, x0
	ldr	w0, [x21, #8]
	bl	_to_intel_crtc
	mov	x22, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_intel_sdvo_disable_audio
LBB0_2:
	mov	x0, x20
	mov	w1, #0
	bl	_intel_sdvo_set_active_outputs
	ldr	w0, [x20]
	bl	_I915_READ
Lloh0:
	adrp	x23, _SDVO_ENABLE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SDVO_ENABLE@GOTPAGEOFF]
	ldr	w8, [x23]
	bic	w21, w0, w8
	mov	x0, x20
	mov	x1, x21
	bl	_intel_sdvo_write_sdvox
	mov	x0, x19
	bl	_HAS_PCH_IBX
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _PIPE_B@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PIPE_B@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x22, _PIPE_A@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PIPE_A@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_intel_set_cpu_fifo_underrun_reporting
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_intel_set_pch_fifo_underrun_reporting
Lloh7:
	adrp	x8, _SDVO_PIPE_SEL_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SDVO_PIPE_SEL_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w21, w21, w8
	ldr	w24, [x23]
	ldr	w0, [x22]
	bl	_SDVO_PIPE_SEL
	orr	w8, w21, w24
	orr	w21, w8, w0
	mov	x0, x20
	mov	x1, x21
	bl	_intel_sdvo_write_sdvox
	ldr	w8, [x23]
	bic	w1, w21, w8
	mov	x0, x20
	bl	_intel_sdvo_write_sdvox
	ldr	w1, [x22]
	mov	x0, x19
	bl	_intel_wait_for_vblank_if_active
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_intel_set_cpu_fifo_underrun_reporting
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	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	_intel_set_pch_fifo_underrun_reporting
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SDVO_ENABLE,4,2                ; @SDVO_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
	.comm	_DRM_MODE_DPMS_OFF,4,2          ; @DRM_MODE_DPMS_OFF
	.no_dead_strip	_intel_disable_sdvo
.subsections_via_symbols
