	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dvo_pre_enable
_intel_dvo_pre_enable:                  ## @intel_dvo_pre_enable
	.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, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_i915
	movl	12(%r12), %edi
	callq	_to_intel_crtc
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_enc_to_dvo
	movl	(%r14), %r13d
	movl	(%rax), %r15d
	movl	4(%rax), %r14d
	movl	%r14d, %edi
	callq	_I915_READ
	movq	_DVO_PRESERVE_MASK@GOTPCREL(%rip), %rcx
	movq	_DVO_DATA_ORDER_GBRG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	andl	%eax, %edx
	movq	_DVO_DATA_ORDER_FP@GOTPCREL(%rip), %rax
	movq	_DVO_BORDER_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	orl	%edx, %ebx
	movq	_DVO_BLANK_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_DVO_PIPE_SEL
	movq	_DRM_MODE_FLAG_PHSYNC@GOTPCREL(%rip), %rdx
	movl	(%r12), %ecx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	je	LBB0_2
## %bb.1:
	movq	_DVO_HSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_2:
	movq	_DVO_PIPE_STALL@GOTPCREL(%rip), %r8
	movl	4(%r12), %edi
	movq	_DRM_MODE_FLAG_PVSYNC@GOTPCREL(%rip), %rsi
	andl	(%rsi), %ecx
	je	LBB0_4
## %bb.3:
	movq	_DVO_VSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	orl	%ecx, %edx
	orl	%eax, %ebx
	orl	(%r8), %ebx
	movq	_DVO_SRCDIM_HORIZONTAL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	orl	%edx, %ebx
	movl	8(%r12), %esi
	movq	_DVO_SRCDIM_VERTICAL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	%edi, %esi
	movl	%r15d, %edi
	callq	_I915_WRITE
	movl	%r14d, %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DVO_PRESERVE_MASK,4,2          ## @DVO_PRESERVE_MASK
	.comm	_DVO_DATA_ORDER_GBRG,4,2        ## @DVO_DATA_ORDER_GBRG
	.comm	_DVO_DATA_ORDER_FP,4,2          ## @DVO_DATA_ORDER_FP
	.comm	_DVO_BORDER_ENABLE,4,2          ## @DVO_BORDER_ENABLE
	.comm	_DVO_BLANK_ACTIVE_HIGH,4,2      ## @DVO_BLANK_ACTIVE_HIGH
	.comm	_DVO_PIPE_STALL,4,2             ## @DVO_PIPE_STALL
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ## @DRM_MODE_FLAG_PHSYNC
	.comm	_DVO_HSYNC_ACTIVE_HIGH,4,2      ## @DVO_HSYNC_ACTIVE_HIGH
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ## @DRM_MODE_FLAG_PVSYNC
	.comm	_DVO_VSYNC_ACTIVE_HIGH,4,2      ## @DVO_VSYNC_ACTIVE_HIGH
	.comm	_DVO_SRCDIM_HORIZONTAL_SHIFT,4,2 ## @DVO_SRCDIM_HORIZONTAL_SHIFT
	.comm	_DVO_SRCDIM_VERTICAL_SHIFT,4,2  ## @DVO_SRCDIM_VERTICAL_SHIFT
	.no_dead_strip	_intel_dvo_pre_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dvo_pre_enable
_intel_dvo_pre_enable:                  ; @intel_dvo_pre_enable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_to_i915
	ldr	w0, [x19, #12]
	bl	_to_intel_crtc
	mov	x21, x0
	mov	x0, x20
	bl	_enc_to_dvo
	ldr	w22, [x21]
	ldp	w21, w20, [x0]
	mov	x0, x20
	bl	_I915_READ
Lloh0:
	adrp	x8, _DVO_PRESERVE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DVO_PRESERVE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DVO_DATA_ORDER_GBRG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DVO_DATA_ORDER_GBRG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w23, w8, w0
Lloh6:
	adrp	x8, _DVO_DATA_ORDER_FP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DVO_DATA_ORDER_FP@GOTPAGEOFF]
Lloh8:
	adrp	x9, _DVO_BORDER_ENABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DVO_BORDER_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w24, w9, w8
Lloh12:
	adrp	x8, _DVO_BLANK_ACTIVE_HIGH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DVO_BLANK_ACTIVE_HIGH@GOTPAGEOFF]
Lloh14:
	ldr	w25, [x8]
	mov	x0, x22
	bl	_DVO_PIPE_SEL
Lloh15:
	adrp	x8, _DVO_PIPE_STALL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DVO_PIPE_STALL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _DRM_MODE_FLAG_PHSYNC@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DRM_MODE_FLAG_PHSYNC@GOTPAGEOFF]
Lloh20:
	adrp	x10, _DVO_HSYNC_ACTIVE_HIGH@GOTPAGE
Lloh21:
	ldr	x10, [x10, _DVO_HSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	ldr	w10, [x10]
	ldp	w11, w12, [x19]
	tst	w9, w11
	csel	w9, wzr, w10, eq
Lloh24:
	adrp	x10, _DRM_MODE_FLAG_PVSYNC@GOTPAGE
Lloh25:
	ldr	x10, [x10, _DRM_MODE_FLAG_PVSYNC@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w11
Lloh27:
	adrp	x10, _DVO_VSYNC_ACTIVE_HIGH@GOTPAGE
Lloh28:
	ldr	x10, [x10, _DVO_VSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	csel	w10, wzr, w10, eq
	orr	w11, w24, w23
	orr	w11, w11, w25
	orr	w11, w11, w0
	orr	w8, w11, w8
	orr	w8, w8, w9
	orr	w22, w8, w10
Lloh30:
	adrp	x8, _DVO_SRCDIM_HORIZONTAL_SHIFT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DVO_SRCDIM_HORIZONTAL_SHIFT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	lsl	w8, w12, w8
	ldr	w9, [x19, #8]
Lloh33:
	adrp	x10, _DVO_SRCDIM_VERTICAL_SHIFT@GOTPAGE
Lloh34:
	ldr	x10, [x10, _DVO_SRCDIM_VERTICAL_SHIFT@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w1, w9, w8
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x20
	mov	x1, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DVO_PRESERVE_MASK,4,2          ; @DVO_PRESERVE_MASK
	.comm	_DVO_DATA_ORDER_GBRG,4,2        ; @DVO_DATA_ORDER_GBRG
	.comm	_DVO_DATA_ORDER_FP,4,2          ; @DVO_DATA_ORDER_FP
	.comm	_DVO_BORDER_ENABLE,4,2          ; @DVO_BORDER_ENABLE
	.comm	_DVO_BLANK_ACTIVE_HIGH,4,2      ; @DVO_BLANK_ACTIVE_HIGH
	.comm	_DVO_PIPE_STALL,4,2             ; @DVO_PIPE_STALL
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ; @DRM_MODE_FLAG_PHSYNC
	.comm	_DVO_HSYNC_ACTIVE_HIGH,4,2      ; @DVO_HSYNC_ACTIVE_HIGH
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ; @DRM_MODE_FLAG_PVSYNC
	.comm	_DVO_VSYNC_ACTIVE_HIGH,4,2      ; @DVO_VSYNC_ACTIVE_HIGH
	.comm	_DVO_SRCDIM_HORIZONTAL_SHIFT,4,2 ; @DVO_SRCDIM_HORIZONTAL_SHIFT
	.comm	_DVO_SRCDIM_VERTICAL_SHIFT,4,2  ; @DVO_SRCDIM_VERTICAL_SHIFT
	.no_dead_strip	_intel_dvo_pre_enable
.subsections_via_symbols
