	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_set_pipe_timings
_intel_set_pipe_timings:                ## @intel_set_pipe_timings
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	56(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_to_i915
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ecx
	movl	(%r12), %ebx
	movl	4(%r12), %r14d
	movl	8(%r12), %r13d
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r12)
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movq	_INTEL_OUTPUT_SDVO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_intel_crtc_has_type
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	16(%r12), %eax
	leal	-1(%rax), %ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx), %r15d
	decl	%r15d
	sarl	%r15d
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_4:
	movl	16(%r12), %eax
	movl	20(%r12), %r15d
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	subl	%ecx, %r15d
LBB0_5:
	decl	%r14d
	decl	%r13d
	testl	%r15d, %r15d
	jns	LBB0_7
## %bb.6:
	addl	%r15d, %eax
	movl	%eax, %r15d
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_INTEL_GEN
	cmpl	$4, %eax
	jl	LBB0_9
## %bb.8:
	movl	%ebx, %edi
	callq	_VSYNCSHIFT
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_I915_WRITE
LBB0_9:
	movl	%ebx, %edi
	callq	_HTOTAL
	movl	16(%r12), %esi
	movl	24(%r12), %ecx
	decl	%ecx
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%ecx, %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_HBLANK
	movl	28(%r12), %ecx
	movl	32(%r12), %esi
	decl	%ecx
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%ecx, %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_HSYNC
	movl	20(%r12), %ecx
	movl	36(%r12), %esi
	decl	%ecx
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%ecx, %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_VTOTAL
	movl	40(%r12), %ecx
	decl	%ecx
	shll	$16, %r14d
	addl	$-65536, %r14d                  ## imm = 0xFFFF0000
	orl	%ecx, %r14d
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_VBLANK
	movl	44(%r12), %ecx
	decl	%ecx
	shll	$16, %r13d
	addl	$-65536, %r13d                  ## imm = 0xFFFF0000
	orl	%ecx, %r13d
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_VSYNC
	movl	48(%r12), %ecx
	movl	52(%r12), %esi
	decl	%ecx
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%ecx, %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_IS_HASWELL
	testq	%rax, %rax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_13
## %bb.10:
	movq	_TRANSCODER_EDP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_13
## %bb.11:
	movq	_PIPE_B@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	je	LBB0_14
## %bb.12:
	movq	_PIPE_C@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	je	LBB0_14
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	_VTOTAL
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_VTOTAL
	movl	%eax, %edi
	callq	_I915_READ
	movl	%r14d, %edi
	movl	%eax, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_INTEL_OUTPUT_SDVO,4,2          ## @INTEL_OUTPUT_SDVO
	.comm	_TRANSCODER_EDP,4,2             ## @TRANSCODER_EDP
	.comm	_PIPE_B,4,2                     ## @PIPE_B
	.comm	_PIPE_C,4,2                     ## @PIPE_C
	.no_dead_strip	_intel_set_pipe_timings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_set_pipe_timings
_intel_set_pipe_timings:                ; @intel_set_pipe_timings
	.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	x21, x0
	ldr	w0, [x0, #56]
	bl	_to_intel_crtc
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x22, x0
	ldr	w20, [x19]
	ldp	w19, w25, [x21]
	ldp	w24, w8, [x21, #8]
Lloh0:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	sub	w25, w25, #1
	sub	w24, w24, #1
Lloh3:
	adrp	x8, _INTEL_OUTPUT_SDVO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTEL_OUTPUT_SDVO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_intel_crtc_has_type
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x21, #16]
	sub	w9, w8, #1
	cmp	w9, #0
	csel	w9, w8, w9, lt
	asr	w9, w9, #1
	b	LBB0_5
LBB0_3:
	mov	w23, #0
	b	LBB0_6
LBB0_4:
	ldp	w8, w9, [x21, #16]
	cmp	w8, #0
	cinc	w10, w8, lt
	sub	w9, w9, w10, asr #1
LBB0_5:
	add	w8, w8, w9
	tst	w9, #0x80000000
	csel	w23, w9, w8, eq
LBB0_6:
	mov	x0, x22
	bl	_INTEL_GEN
	cmp	w0, #4
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_VSYNCSHIFT
	mov	x1, x23
	bl	_I915_WRITE
LBB0_8:
	mov	x0, x19
	bl	_HTOTAL
	ldr	w8, [x21, #24]
	sub	w8, w8, #1
	ldr	w9, [x21, #16]
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	bl	_I915_WRITE
	mov	x0, x19
	bl	_HBLANK
	ldp	w8, w9, [x21, #28]
	sub	w8, w8, #1
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	bl	_I915_WRITE
	mov	x0, x19
	bl	_HSYNC
	ldr	w8, [x21, #20]
	sub	w8, w8, #1
	ldr	w9, [x21, #36]
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	bl	_I915_WRITE
	mov	x0, x19
	bl	_VTOTAL
	ldr	w8, [x21, #40]
	sub	w8, w8, #1
	lsl	w9, w25, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w8, w9
	bl	_I915_WRITE
	mov	x0, x19
	bl	_VBLANK
	ldr	w8, [x21, #44]
	sub	w8, w8, #1
	lsl	w9, w24, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w8, w9
	bl	_I915_WRITE
	mov	x0, x19
	bl	_VSYNC
	ldp	w8, w9, [x21, #48]
	sub	w8, w8, #1
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	bl	_I915_WRITE
	mov	x0, x22
	bl	_IS_HASWELL
	cbz	x0, LBB0_12
; %bb.9:
Lloh6:
	adrp	x8, _TRANSCODER_EDP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRANSCODER_EDP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ne	LBB0_12
; %bb.10:
Lloh9:
	adrp	x8, _PIPE_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PIPE_B@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_13
; %bb.11:
Lloh12:
	adrp	x8, _PIPE_C@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PIPE_C@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_13
LBB0_12:
	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
	ret
LBB0_13:
	mov	x0, x20
	bl	_VTOTAL
	mov	x20, x0
	mov	x0, x19
	bl	_VTOTAL
	bl	_I915_READ
	mov	x1, x0
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_INTEL_OUTPUT_SDVO,4,2          ; @INTEL_OUTPUT_SDVO
	.comm	_TRANSCODER_EDP,4,2             ; @TRANSCODER_EDP
	.comm	_PIPE_B,4,2                     ; @PIPE_B
	.comm	_PIPE_C,4,2                     ; @PIPE_C
	.no_dead_strip	_intel_set_pipe_timings
.subsections_via_symbols
