	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_to_i915
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_to_sdvo
	movq	%rax, %rbx
	movl	8(%r15), %edi
	callq	_to_intel_crtc
	movq	%rax, %r13
	movl	4(%rbx), %edi
	callq	_I915_READ
	movq	_SDVO_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_intel_sdvo_write_sdvox
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_intel_wait_for_vblank
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_intel_wait_for_vblank
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_intel_sdvo_get_trained_inputs
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$0, -44(%rbp)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_SDVO_NAME
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
LBB0_3:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_intel_sdvo_set_active_outputs
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_intel_sdvo_enable_audio
LBB0_5:
	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
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x0]
	bl	_to_i915
	mov	x22, x0
	mov	x0, x21
	bl	_to_sdvo
	mov	x21, x0
	ldr	w0, [x20, #8]
	bl	_to_intel_crtc
	mov	x23, x0
	ldr	w0, [x21, #4]
	bl	_I915_READ
Lloh0:
	adrp	x8, _SDVO_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDVO_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x21
	bl	_intel_sdvo_write_sdvox
	ldr	w1, [x23]
	mov	x0, x22
	bl	_intel_wait_for_vblank
	ldr	w1, [x23]
	mov	x0, x22
	bl	_intel_wait_for_vblank
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x21
	bl	_intel_sdvo_get_trained_inputs
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_SDVO_NAME
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_3:
	ldr	w1, [x21]
	mov	x0, x21
	bl	_intel_sdvo_set_active_outputs
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_intel_sdvo_enable_audio
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SDVO_ENABLE,4,2                ; @SDVO_ENABLE
	.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
