	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_get_pipe_timings
_intel_get_pipe_timings:                ## @intel_get_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rdi
	callq	_to_i915
	movl	(%rbx), %r14d
	movl	%r14d, %edi
	callq	_HTOTAL
	movl	%eax, %edi
	callq	_I915_READ
	movzwl	%ax, %ecx
	incl	%ecx
	movl	%ecx, 4(%rbx)
	shrl	$16, %eax
	incl	%eax
	movl	%eax, 8(%rbx)
	movl	%r14d, %edi
	callq	_transcoder_is_dsi
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_HBLANK
	movl	%eax, %edi
	callq	_I915_READ
	movzwl	%ax, %ecx
	incl	%ecx
	movl	%ecx, 12(%rbx)
	shrl	$16, %eax
	incl	%eax
	movl	%eax, 16(%rbx)
LBB0_2:
	movl	%r14d, %edi
	callq	_HSYNC
	movl	%eax, %edi
	callq	_I915_READ
	movzwl	%ax, %ecx
	incl	%ecx
	movl	%ecx, 20(%rbx)
	shrl	$16, %eax
	incl	%eax
	movl	%eax, 24(%rbx)
	movl	%r14d, %edi
	callq	_VTOTAL
	movl	%eax, %edi
	callq	_I915_READ
	movzwl	%ax, %ecx
	incl	%ecx
	movl	%ecx, 28(%rbx)
	shrl	$16, %eax
	incl	%eax
	movl	%eax, 32(%rbx)
	movl	%r14d, %edi
	callq	_transcoder_is_dsi
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	%r14d, %edi
	callq	_VBLANK
	movl	%eax, %edi
	callq	_I915_READ
	movzwl	%ax, %ecx
	incl	%ecx
	movl	%ecx, 36(%rbx)
	shrl	$16, %eax
	incl	%eax
	movl	%eax, 40(%rbx)
LBB0_4:
	movl	%r14d, %edi
	callq	_VSYNC
	movl	%eax, %edi
	callq	_I915_READ
	movzwl	%ax, %ecx
	incl	%ecx
	movl	%ecx, 44(%rbx)
	shrl	$16, %eax
	incl	%eax
	movl	%eax, 48(%rbx)
	movl	%r14d, %edi
	callq	_PIPECONF
	movl	%eax, %edi
	callq	_I915_READ
	movq	_PIPECONF_INTERLACE_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 52(%rbx)
	incl	32(%rbx)
	incl	40(%rbx)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIPECONF_INTERLACE_MASK,4,2    ## @PIPECONF_INTERLACE_MASK
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.no_dead_strip	_intel_get_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_get_pipe_timings
_intel_get_pipe_timings:                ; @intel_get_pipe_timings
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x0, [x0]
	bl	_to_i915
	ldr	w20, [x19]
	mov	x0, x20
	bl	_HTOTAL
	bl	_I915_READ
	and	w8, w0, #0xffff
	add	w8, w8, #1
	lsr	w9, w0, #16
	add	w9, w9, #1
	stp	w8, w9, [x19, #4]
	mov	x0, x20
	bl	_transcoder_is_dsi
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_HBLANK
	bl	_I915_READ
	and	w8, w0, #0xffff
	add	w8, w8, #1
	lsr	w9, w0, #16
	add	w9, w9, #1
	stp	w8, w9, [x19, #12]
LBB0_2:
	mov	x0, x20
	bl	_HSYNC
	bl	_I915_READ
	and	w8, w0, #0xffff
	add	w8, w8, #1
	lsr	w9, w0, #16
	add	w9, w9, #1
	stp	w8, w9, [x19, #20]
	mov	x0, x20
	bl	_VTOTAL
	bl	_I915_READ
	and	w8, w0, #0xffff
	add	w8, w8, #1
	lsr	w9, w0, #16
	add	w9, w9, #1
	stp	w8, w9, [x19, #28]
	mov	x0, x20
	bl	_transcoder_is_dsi
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_VBLANK
	bl	_I915_READ
	and	w8, w0, #0xffff
	add	w8, w8, #1
	lsr	w9, w0, #16
	add	w9, w9, #1
	stp	w8, w9, [x19, #36]
LBB0_4:
	mov	x0, x20
	bl	_VSYNC
	bl	_I915_READ
	and	w8, w0, #0xffff
	add	w8, w8, #1
	lsr	w9, w0, #16
	add	w9, w9, #1
	stp	w8, w9, [x19, #44]
	mov	x0, x20
	bl	_PIPECONF
	bl	_I915_READ
Lloh0:
	adrp	x8, _PIPECONF_INTERLACE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIPECONF_INTERLACE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #52]
	orr	w8, w9, w8
	str	w8, [x19, #52]
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PIPECONF_INTERLACE_MASK,4,2    ; @PIPECONF_INTERLACE_MASK
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.no_dead_strip	_intel_get_pipe_timings
.subsections_via_symbols
