	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_enable_sdvo
_intel_enable_sdvo:                     ## @intel_enable_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, %rbx
	movq	8(%rdi), %r14
	callq	_to_intel_sdvo
	movq	%rax, %r13
	movq	(%rbx), %rdi
	callq	_to_intel_crtc
	movq	%rax, %r15
	movl	4(%r13), %edi
	callq	_I915_READ
	movl	%eax, %r12d
	movq	_SDVO_ENABLE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_10
## %bb.1:
	movq	%r14, %rdi
	callq	_HAS_PCH_IBX
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	callq	_to_intel_crtc
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_2:
	movl	%r12d, %esi
	jmp	LBB0_9
LBB0_4:
	movl	$-1, %eax
LBB0_6:
	movq	_PIPE_B@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.7:
	movq	_SDVO_PIPE_B_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_8:
	orl	%r12d, %esi
LBB0_9:
	movq	_SDVO_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r13, %rdi
	callq	_intel_sdvo_write_sdvox
LBB0_10:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_intel_wait_for_vblank
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_intel_wait_for_vblank
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_intel_sdvo_get_trained_inputs
	movq	_SDVO_CMD_STATUS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	cmpl	$0, -44(%rbp)
	jne	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	callq	_SDVO_NAME
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
LBB0_13:
	movl	(%r13), %esi
	movq	%r13, %rdi
	callq	_intel_sdvo_set_active_outputs
	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,4,2                     ## @PIPE_B
	.comm	_SDVO_PIPE_B_SELECT,4,2         ## @SDVO_PIPE_B_SELECT
	.comm	_SDVO_CMD_STATUS_SUCCESS,8,3    ## @SDVO_CMD_STATUS_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"First %s output reported failure to sync\n"

	.comm	_DRM_MODE_DPMS_ON,4,2           ## @DRM_MODE_DPMS_ON
	.no_dead_strip	_intel_enable_sdvo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_enable_sdvo
_intel_enable_sdvo:                     ; @intel_enable_sdvo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x0
	ldr	x20, [x0, #8]
	bl	_to_intel_sdvo
	mov	x19, x0
	ldr	x0, [x23]
	bl	_to_intel_crtc
	mov	x21, x0
	ldr	w0, [x19, #4]
	bl	_I915_READ
Lloh0:
	adrp	x24, _SDVO_ENABLE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SDVO_ENABLE@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.1:
	mov	x22, x0
	mov	x0, x20
	bl	_HAS_PCH_IBX
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x23]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_to_intel_crtc
	ldr	w8, [x0]
	b	LBB0_5
LBB0_4:
	mov	w8, #-1
LBB0_5:
Lloh2:
	adrp	x9, _PIPE_B@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PIPE_B@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _SDVO_PIPE_B_SELECT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _SDVO_PIPE_B_SELECT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w8, w10, wzr, eq
	orr	w22, w8, w22
LBB0_6:
	ldr	w8, [x24]
	orr	w1, w8, w22
	mov	x0, x19
	bl	_intel_sdvo_write_sdvox
LBB0_7:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_intel_wait_for_vblank
	ldr	w1, [x21]
	mov	x0, x20
	bl	_intel_wait_for_vblank
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_intel_sdvo_get_trained_inputs
Lloh8:
	adrp	x8, _SDVO_CMD_STATUS_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SDVO_CMD_STATUS_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w9, [sp, #12]
	cmp	x0, x8
	ccmp	w9, #0, #0, eq
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_SDVO_NAME
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_9:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_intel_sdvo_set_active_outputs
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SDVO_ENABLE,4,2                ; @SDVO_ENABLE
	.comm	_PIPE_B,4,2                     ; @PIPE_B
	.comm	_SDVO_PIPE_B_SELECT,4,2         ; @SDVO_PIPE_B_SELECT
	.comm	_SDVO_CMD_STATUS_SUCCESS,8,3    ; @SDVO_CMD_STATUS_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"First %s output reported failure to sync\n"

	.comm	_DRM_MODE_DPMS_ON,4,2           ; @DRM_MODE_DPMS_ON
	.no_dead_strip	_intel_enable_sdvo
.subsections_via_symbols
