	.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	%rdi, %r15
	callq	_to_intel_sdvo
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_intel_sdvo_set_active_outputs
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_SDVO_ENABLE@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_10
## %bb.1:
	movl	%eax, %r14d
	movq	(%r15), %rdi
	callq	_HAS_PCH_IBX
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	8(%r15), %r12
	testq	%r12, %r12
	je	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	callq	_to_intel_crtc
	movl	(%rax), %ecx
	jmp	LBB0_5
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$-1, %ecx
LBB0_5:
	movq	_SDVO_PIPE_B_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r14d, %eax
	je	LBB0_9
## %bb.6:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	notl	%eax
	andl	%eax, %r14d
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
	movl	(%rbx), %edi
	callq	_POSTING_READ
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
	movl	(%rbx), %edi
	callq	_POSTING_READ
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movq	(%r15), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_intel_wait_for_vblank
	jmp	LBB0_9
LBB0_8:
	movl	$50, %edi
	callq	_msleep
LBB0_9:
	movl	(%r13), %esi
	notl	%esi
	andl	%r14d, %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_sdvo_write_sdvox         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDVO_ENABLE,4,2                ## @SDVO_ENABLE
	.comm	_SDVO_PIPE_B_SELECT,4,2         ## @SDVO_PIPE_B_SELECT
	.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, x0
	bl	_to_intel_sdvo
	mov	x19, x0
	mov	w1, #0
	bl	_intel_sdvo_set_active_outputs
	ldr	w0, [x19]
	bl	_I915_READ
Lloh0:
	adrp	x24, _SDVO_ENABLE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SDVO_ENABLE@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x0, [x21]
	bl	_HAS_PCH_IBX
	cbz	x0, LBB0_10
; %bb.2:
	ldr	x22, [x21, #8]
	cbz	x22, LBB0_5
; %bb.3:
	mov	x0, x22
	bl	_to_intel_crtc
	ldr	w23, [x0]
	b	LBB0_6
LBB0_4:
	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_5:
	mov	w23, #-1
LBB0_6:
Lloh2:
	adrp	x8, _SDVO_PIPE_B_SELECT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDVO_PIPE_B_SELECT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.7:
	bic	w20, w20, w8
	ldr	w0, [x19]
	mov	x1, x20
	bl	_I915_WRITE
	ldr	w0, [x19]
	bl	_POSTING_READ
	ldr	w0, [x19]
	mov	x1, x20
	bl	_I915_WRITE
	ldr	w0, [x19]
	bl	_POSTING_READ
	cbz	x22, LBB0_9
; %bb.8:
	ldr	x0, [x21]
	mov	x1, x23
	bl	_intel_wait_for_vblank
	b	LBB0_10
LBB0_9:
	mov	w0, #50
	bl	_msleep
LBB0_10:
	ldr	w8, [x24]
	bic	w1, w20, w8
	mov	x0, x19
	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_sdvo_write_sdvox
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SDVO_ENABLE,4,2                ; @SDVO_ENABLE
	.comm	_SDVO_PIPE_B_SELECT,4,2         ; @SDVO_PIPE_B_SELECT
	.comm	_DRM_MODE_DPMS_OFF,4,2          ; @DRM_MODE_DPMS_OFF
	.no_dead_strip	_intel_disable_sdvo
.subsections_via_symbols
