	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r12
	movl	(%rdi), %r15d
	movl	4(%rdi), %r13d
	movq	%r12, %rdi
	callq	_IS_GEN2
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	decl	4(%rbx)
	decl	8(%rbx)
	movl	12(%rbx), %r14d
	movl	16(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	subl	%ecx, %r14d
LBB0_3:
	movq	%r12, %rdi
	callq	_INTEL_INFO
	cmpl	$4, (%rax)
	jl	LBB0_5
## %bb.4:
	movl	%r13d, %edi
	callq	_VSYNCSHIFT
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
LBB0_5:
	movl	%r13d, %edi
	callq	_HTOTAL
	movl	16(%rbx), %esi
	movl	20(%rbx), %ecx
	decl	%ecx
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%ecx, %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%r13d, %edi
	callq	_HBLANK
	movl	24(%rbx), %ecx
	movl	28(%rbx), %esi
	decl	%ecx
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%ecx, %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%r13d, %edi
	callq	_HSYNC
	movl	12(%rbx), %ecx
	movl	32(%rbx), %esi
	decl	%ecx
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%ecx, %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%r13d, %edi
	callq	_VTOTAL
	movl	4(%rbx), %esi
	movl	36(%rbx), %ecx
	decl	%ecx
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%ecx, %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%r13d, %edi
	callq	_VBLANK
	movl	8(%rbx), %esi
	movl	40(%rbx), %ecx
	decl	%ecx
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%ecx, %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%r13d, %edi
	callq	_VSYNC
	movl	44(%rbx), %ecx
	movl	48(%rbx), %esi
	decl	%ecx
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%ecx, %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movq	%r12, %rdi
	callq	_IS_HASWELL
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	_TRANSCODER_EDP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_10
## %bb.7:
	movq	_PIPE_B@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_9
## %bb.8:
	movq	_PIPE_C@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_10
LBB0_9:
	movl	%r15d, %edi
	callq	_VTOTAL
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_VTOTAL
	movl	%eax, %edi
	callq	_I915_READ
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
LBB0_10:
	movl	%r15d, %edi
	callq	_PIPESRC
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	52(%rdx), %ecx
	movl	56(%rdx), %esi
	shll	$16, %ecx
	addl	$-65536, %ecx                   ## imm = 0xFFFF0000
	decl	%esi
	orl	%ecx, %esi
	movl	%eax, %edi
	addq	$8, %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	_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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x19, x1
	ldr	x22, [x0, #8]
	ldp	w20, w21, [x0]
	mov	x0, x22
	bl	_IS_GEN2
	cbz	w0, LBB0_2
LBB0_1:
	mov	w24, #0
	b	LBB0_4
LBB0_2:
	ldr	w8, [x23]
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_1
; %bb.3:
	ldur	d0, [x23, #4]
	movi.2d	v1, #0xffffffffffffffff
	add.2s	v0, v0, v1
	stur	d0, [x23, #4]
	ldp	w8, w9, [x23, #12]
	cmp	w9, #0
	cinc	w9, w9, lt
	sub	w24, w8, w9, asr #1
LBB0_4:
	mov	x0, x22
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #4
	b.lt	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_VSYNCSHIFT
	mov	x1, x24
	bl	_I915_WRITE
LBB0_6:
	mov	x0, x21
	bl	_HTOTAL
	ldp	w9, w8, [x23, #16]
	sub	w8, w8, #1
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	bl	_I915_WRITE
	mov	x0, x21
	bl	_HBLANK
	ldp	w8, w9, [x23, #24]
	sub	w8, w8, #1
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	bl	_I915_WRITE
	mov	x0, x21
	bl	_HSYNC
	ldr	w8, [x23, #12]
	sub	w8, w8, #1
	ldr	w9, [x23, #32]
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	bl	_I915_WRITE
	mov	x0, x21
	bl	_VTOTAL
	ldr	w8, [x23, #36]
	sub	w8, w8, #1
	ldr	w9, [x23, #4]
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	bl	_I915_WRITE
	mov	x0, x21
	bl	_VBLANK
	ldr	w8, [x23, #40]
	sub	w8, w8, #1
	ldr	w9, [x23, #8]
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	bl	_I915_WRITE
	mov	x0, x21
	bl	_VSYNC
	ldp	w8, w9, [x23, #44]
	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_11
; %bb.7:
Lloh3:
	adrp	x8, _TRANSCODER_EDP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRANSCODER_EDP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_11
; %bb.8:
Lloh6:
	adrp	x8, _PIPE_B@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PIPE_B@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_10
; %bb.9:
Lloh9:
	adrp	x8, _PIPE_C@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PIPE_C@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_VTOTAL
	mov	x22, x0
	mov	x0, x21
	bl	_VTOTAL
	bl	_I915_READ
	mov	x1, x0
	mov	x0, x22
	bl	_I915_WRITE
LBB0_11:
	mov	x0, x20
	bl	_PIPESRC
	ldp	w8, w9, [x19, #52]
	lsl	w8, w8, #16
	sub	w8, w8, #16, lsl #12            ; =65536
	sub	w9, w9, #1
	orr	w1, w8, w9
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 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
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.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
