	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dvo_mode_set
_intel_dvo_mode_set:                    ## @intel_dvo_mode_set
	.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, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_enc_to_intel_dvo
	movq	%rax, %r15
	movl	(%r13), %ebx
	movl	(%rax), %r13d
	movl	%ebx, %edi
	callq	_DPLL
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$129, %r13d
	jne	LBB0_1
## %bb.2:
	movq	_DVOB_SRCDIM@GOTPCREL(%rip), %rax
	cmpl	$128, %r13d
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_DVOA_SRCDIM@GOTPCREL(%rip), %rax
	cmpl	$128, %r13d
	jne	LBB0_5
LBB0_4:
	movq	_DVOC_SRCDIM@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rax
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	*(%rax)
	movl	%r13d, %edi
	callq	_I915_READ
	movq	_DVO_PRESERVE_MASK@GOTPCREL(%rip), %rsi
	movq	_DVO_DATA_ORDER_GBRG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_DVO_BORDER_ENABLE@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	cmpl	$1, %ebx
	jne	LBB0_7
## %bb.6:
	movq	_DVO_PIPE_B_SELECT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_7:
	orl	(%rsi), %ecx
	movq	_DVO_DATA_ORDER_FP@GOTPCREL(%rip), %r8
	movl	(%rdi), %ebx
	movl	(%r14), %edi
	movq	_DRM_MODE_FLAG_PHSYNC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%edi, %esi
	je	LBB0_9
## %bb.8:
	movq	_DVO_HSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_9:
	andl	%eax, %ecx
	orl	(%r8), %ebx
	movq	_DVO_BLANK_ACTIVE_HIGH@GOTPCREL(%rip), %r9
	movq	_DVO_PIPE_STALL@GOTPCREL(%rip), %r8
	movq	_DRM_MODE_FLAG_PVSYNC@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	je	LBB0_11
## %bb.10:
	movq	_DVO_VSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_11:
	orl	%edi, %esi
	orl	%ecx, %ebx
	orl	(%r9), %ebx
	orl	%edx, %ebx
	orl	(%r8), %ebx
	orl	%esi, %ebx
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_I915_READ
	movq	_DPLL_DVO_HIGH_SPEED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_DVO_SRCDIM_HORIZONTAL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	4(%r14), %eax
	shll	%cl, %eax
	movl	8(%r14), %esi
	movq	_DVO_SRCDIM_VERTICAL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%eax, %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_I915_WRITE
	movl	%r13d, %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	_DVOA_SRCDIM,4,2                ## @DVOA_SRCDIM
	.comm	_DVOB_SRCDIM,4,2                ## @DVOB_SRCDIM
	.comm	_DVOC_SRCDIM,4,2                ## @DVOC_SRCDIM
	.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_B_SELECT,4,2          ## @DVO_PIPE_B_SELECT
	.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	_DPLL_DVO_HIGH_SPEED,4,2        ## @DPLL_DVO_HIGH_SPEED
	.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_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dvo_mode_set
_intel_dvo_mode_set:                    ; @intel_dvo_mode_set
	.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, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_to_intel_crtc
	mov	x21, x0
	mov	x0, x20
	bl	_enc_to_intel_dvo
	mov	x24, x0
	ldr	w25, [x21]
	ldr	w20, [x0]
	mov	x0, x25
	bl	_DPLL
	mov	x22, x0
Lloh0:
	adrp	x8, _DVOC_SRCDIM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DVOC_SRCDIM@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DVOB_SRCDIM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DVOB_SRCDIM@GOTPAGEOFF]
Lloh4:
	adrp	x10, _DVOA_SRCDIM@GOTPAGE
Lloh5:
	ldr	x10, [x10, _DVOA_SRCDIM@GOTPAGEOFF]
	cmp	w20, #129
	csel	x9, x9, x10, eq
	cmp	w20, #128
	csel	x8, x8, x9, eq
	ldr	w21, [x8]
	ldr	x8, [x24, #8]
	ldr	x8, [x8]
	mov	x0, x24
	mov	x1, x23
	mov	x2, x19
	blr	x8
	mov	x0, x20
	bl	_I915_READ
Lloh6:
	adrp	x8, _DVO_PRESERVE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DVO_PRESERVE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _DVO_DATA_ORDER_GBRG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DVO_DATA_ORDER_GBRG@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w8, w8, w0
Lloh12:
	adrp	x9, _DVO_DATA_ORDER_FP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DVO_DATA_ORDER_FP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _DVO_BORDER_ENABLE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DVO_BORDER_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh18:
	adrp	x10, _DVO_BLANK_ACTIVE_HIGH@GOTPAGE
Lloh19:
	ldr	x10, [x10, _DVO_BLANK_ACTIVE_HIGH@GOTPAGEOFF]
Lloh20:
	adrp	x11, _DVO_PIPE_B_SELECT@GOTPAGE
Lloh21:
	ldr	x11, [x11, _DVO_PIPE_B_SELECT@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
Lloh23:
	ldr	w11, [x11]
	cmp	w25, #1
	csel	w11, w11, wzr, eq
Lloh24:
	adrp	x12, _DVO_PIPE_STALL@GOTPAGE
Lloh25:
	ldr	x12, [x12, _DVO_PIPE_STALL@GOTPAGEOFF]
Lloh26:
	ldr	w12, [x12]
	ldr	w13, [x19]
Lloh27:
	adrp	x14, _DRM_MODE_FLAG_PHSYNC@GOTPAGE
Lloh28:
	ldr	x14, [x14, _DRM_MODE_FLAG_PHSYNC@GOTPAGEOFF]
Lloh29:
	adrp	x15, _DVO_HSYNC_ACTIVE_HIGH@GOTPAGE
Lloh30:
	ldr	x15, [x15, _DVO_HSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh31:
	ldr	w14, [x14]
Lloh32:
	ldr	w15, [x15]
	tst	w14, w13
	csel	w14, wzr, w15, eq
Lloh33:
	adrp	x15, _DRM_MODE_FLAG_PVSYNC@GOTPAGE
Lloh34:
	ldr	x15, [x15, _DRM_MODE_FLAG_PVSYNC@GOTPAGEOFF]
Lloh35:
	ldr	w15, [x15]
Lloh36:
	adrp	x16, _DVO_VSYNC_ACTIVE_HIGH@GOTPAGE
Lloh37:
	ldr	x16, [x16, _DVO_VSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh38:
	ldr	w16, [x16]
	tst	w15, w13
	csel	w13, wzr, w16, eq
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w8, w8, w14
	orr	w23, w8, w13
	mov	x0, x22
	bl	_I915_READ
Lloh39:
	adrp	x8, _DPLL_DVO_HIGH_SPEED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _DPLL_DVO_HIGH_SPEED@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x22
	bl	_I915_WRITE
Lloh42:
	adrp	x8, _DVO_SRCDIM_HORIZONTAL_SHIFT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _DVO_SRCDIM_HORIZONTAL_SHIFT@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	ldp	w9, w10, [x19, #4]
	lsl	w8, w9, w8
Lloh45:
	adrp	x9, _DVO_SRCDIM_VERTICAL_SHIFT@GOTPAGE
Lloh46:
	ldr	x9, [x9, _DVO_SRCDIM_VERTICAL_SHIFT@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w1, w9, w8
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x20
	mov	x1, x23
	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	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DVOA_SRCDIM,4,2                ; @DVOA_SRCDIM
	.comm	_DVOB_SRCDIM,4,2                ; @DVOB_SRCDIM
	.comm	_DVOC_SRCDIM,4,2                ; @DVOC_SRCDIM
	.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_B_SELECT,4,2          ; @DVO_PIPE_B_SELECT
	.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	_DPLL_DVO_HIGH_SPEED,4,2        ; @DPLL_DVO_HIGH_SPEED
	.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_mode_set
.subsections_via_symbols
