	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivybridge_update_wm
_ivybridge_update_wm:                   ## @ivybridge_update_wm
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %r13
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_SNB_READ_WM0_LATENCY
	imull	$100, %eax, %r15d
	leaq	-44(%rbp), %rax
	leaq	-48(%rbp), %rbx
	movq	_sandybridge_display_wm_info@GOTPCREL(%rip), %rdx
	movq	_sandybridge_cursor_wm_info@GOTPCREL(%rip), %r8
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r15d, %ecx
	movl	%r15d, %r9d
	pushq	%rax
	pushq	%rbx
	callq	_g4x_compute_wm0
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_WM0_PIPEA_ILK@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_I915_READ
	movq	_WM0_PIPE_PLANE_MASK@GOTPCREL(%rip), %rcx
	movq	_WM0_PIPE_CURSOR_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	-48(%rbp), %eax
	movq	_WM0_PIPE_PLANE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	(%r14), %edi
	orl	-44(%rbp), %esi
	orl	%eax, %esi
	callq	_I915_WRITE
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	$1, %r14d
LBB0_2:
	movq	_sandybridge_display_wm_info@GOTPCREL(%rip), %rdx
	movq	_sandybridge_cursor_wm_info@GOTPCREL(%rip), %r8
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%r15d, %ecx
	movl	%r15d, %r9d
	leaq	-44(%rbp), %rax
	pushq	%rax
	pushq	%rbx
	callq	_g4x_compute_wm0
	addq	$16, %rsp
	testq	%rax, %rax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	movq	_WM0_PIPEB_ILK@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_I915_READ
	movq	_WM0_PIPE_PLANE_MASK@GOTPCREL(%rip), %rcx
	movq	_WM0_PIPE_CURSOR_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	-48(%rbp), %eax
	movq	_WM0_PIPE_PLANE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	(%r13), %edi
	orl	-44(%rbp), %esi
	orl	%eax, %esi
	callq	_I915_WRITE
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	orl	$2, %r14d
LBB0_4:
	movq	_sandybridge_display_wm_info@GOTPCREL(%rip), %rdx
	movq	_sandybridge_cursor_wm_info@GOTPCREL(%rip), %r8
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	$2, %esi
	movl	%r15d, %ecx
	movl	%r15d, %r9d
	leaq	-44(%rbp), %rax
	pushq	%rax
	pushq	%rbx
	callq	_g4x_compute_wm0
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_WM0_PIPEC_IVB@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_WM0_PIPE_PLANE_MASK@GOTPCREL(%rip), %rcx
	movq	_WM0_PIPE_CURSOR_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	-48(%rbp), %eax
	movq	_WM0_PIPE_PLANE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	(%rbx), %edi
	orl	-44(%rbp), %esi
	orl	%eax, %esi
	callq	_I915_WRITE
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	$3, %r14d
LBB0_6:
	movq	_WM3_LP_ILK@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_I915_WRITE
	movq	_WM2_LP_ILK@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_I915_WRITE
	movq	_WM1_LP_ILK@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_I915_WRITE
	movl	%r14d, %edi
	callq	_single_plane_enabled
	testl	%eax, %eax
	je	LBB0_13
## %bb.7:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_8
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	bsfl	%r14d, %eax
	movl	$-1, %r14d
	cmovnel	%eax, %r14d
	xorl	%eax, %eax
	callq	_SNB_READ_WM1_LATENCY
	imull	$500, %eax, %ecx                ## imm = 0x1F4
	subq	$8, %rsp
	leaq	-52(%rbp), %rbx
	movq	_sandybridge_display_srwm_info@GOTPCREL(%rip), %r8
	movq	_sandybridge_cursor_srwm_info@GOTPCREL(%rip), %r9
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	movl	%r14d, %edx
	leaq	-44(%rbp), %rax
	pushq	%rax
	leaq	-48(%rbp), %rax
	pushq	%rax
	pushq	%rbx
	callq	_ironlake_compute_srwm
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movl	(%r13), %r13d
	movq	_WM1_LP_SR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_SNB_READ_WM1_LATENCY
	movq	_WM1_LP_LATENCY_SHIFT@GOTPCREL(%rip), %r8
	movb	(%r8), %cl
	shll	%cl, %eax
	movl	-52(%rbp), %edx
	movq	_WM1_LP_FBC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %ebx
	movl	-48(%rbp), %esi
	movq	_WM1_LP_SR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	%edx, %esi
	orl	%ebx, %esi
	orl	-44(%rbp), %esi
	movl	%r13d, %edi
	movq	%r8, %r13
	callq	_I915_WRITE
	xorl	%eax, %eax
	callq	_SNB_READ_WM2_LATENCY
	imull	$500, %eax, %ecx                ## imm = 0x1F4
	subq	$8, %rsp
	movq	_sandybridge_display_srwm_info@GOTPCREL(%rip), %r8
	movq	_sandybridge_cursor_srwm_info@GOTPCREL(%rip), %r9
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$2, %esi
	movl	%r14d, %edx
	leaq	-44(%rbp), %rax
	pushq	%rax
	leaq	-48(%rbp), %rax
	pushq	%rax
	leaq	-52(%rbp), %rax
	pushq	%rax
	callq	_ironlake_compute_srwm
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movl	(%r12), %r12d
	movq	_WM2_LP_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_SNB_READ_WM2_LATENCY
	movb	(%r13), %cl
	shll	%cl, %eax
	orl	%eax, %ebx
	movl	-52(%rbp), %eax
	movq	_WM1_LP_FBC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	-48(%rbp), %esi
	movq	_WM1_LP_SR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%eax, %esi
	orl	%ebx, %esi
	orl	-44(%rbp), %esi
	movl	%r12d, %edi
	callq	_I915_WRITE
	xorl	%eax, %eax
	callq	_SNB_READ_WM3_LATENCY
	imull	$500, %eax, %ecx                ## imm = 0x1F4
	subq	$8, %rsp
	leaq	-76(%rbp), %rax
	movq	_sandybridge_display_srwm_info@GOTPCREL(%rip), %r8
	movq	_sandybridge_cursor_srwm_info@GOTPCREL(%rip), %r9
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$3, %esi
	movl	%r14d, %edx
	pushq	%rax
	leaq	-48(%rbp), %rax
	pushq	%rax
	leaq	-52(%rbp), %rax
	pushq	%rax
	callq	_ironlake_compute_srwm
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	xorl	%eax, %eax
	callq	_SNB_READ_WM3_LATENCY
	imull	$1000, %eax, %ecx               ## imm = 0x3E8
	subq	$8, %rsp
	leaq	-80(%rbp), %r10
	leaq	-84(%rbp), %rbx
	movq	_sandybridge_display_srwm_info@GOTPCREL(%rip), %r8
	movq	_sandybridge_cursor_srwm_info@GOTPCREL(%rip), %r9
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$3, %esi
	movl	%r14d, %edx
	leaq	-44(%rbp), %rax
	pushq	%rax
	pushq	%r10
	pushq	%rbx
	callq	_ironlake_compute_srwm
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	(%r15), %r14d
	movq	_WM3_LP_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_SNB_READ_WM3_LATENCY
	movb	(%r13), %cl
	shll	%cl, %eax
	orl	%eax, %ebx
	movl	-52(%rbp), %eax
	movq	_WM1_LP_FBC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	-48(%rbp), %esi
	movq	_WM1_LP_SR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%eax, %esi
	orl	%ebx, %esi
	orl	-44(%rbp), %esi
	movl	%r14d, %edi
	callq	_I915_WRITE
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_sandybridge_display_wm_info,4,2 ## @sandybridge_display_wm_info
	.comm	_sandybridge_cursor_wm_info,4,2 ## @sandybridge_cursor_wm_info
	.comm	_WM0_PIPEA_ILK,4,2              ## @WM0_PIPEA_ILK
	.comm	_WM0_PIPE_PLANE_MASK,4,2        ## @WM0_PIPE_PLANE_MASK
	.comm	_WM0_PIPE_CURSOR_MASK,4,2       ## @WM0_PIPE_CURSOR_MASK
	.comm	_WM0_PIPE_PLANE_SHIFT,4,2       ## @WM0_PIPE_PLANE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FIFO watermarks For pipe A - plane %d, cursor: %d\n"

	.comm	_WM0_PIPEB_ILK,4,2              ## @WM0_PIPEB_ILK
L_.str.1:                               ## @.str.1
	.asciz	"FIFO watermarks For pipe B - plane %d, cursor: %d\n"

	.comm	_WM0_PIPEC_IVB,4,2              ## @WM0_PIPEC_IVB
L_.str.2:                               ## @.str.2
	.asciz	"FIFO watermarks For pipe C - plane %d, cursor: %d\n"

	.comm	_WM3_LP_ILK,4,2                 ## @WM3_LP_ILK
	.comm	_WM2_LP_ILK,4,2                 ## @WM2_LP_ILK
	.comm	_WM1_LP_ILK,4,2                 ## @WM1_LP_ILK
	.comm	_sandybridge_display_srwm_info,4,2 ## @sandybridge_display_srwm_info
	.comm	_sandybridge_cursor_srwm_info,4,2 ## @sandybridge_cursor_srwm_info
	.comm	_WM1_LP_SR_EN,4,2               ## @WM1_LP_SR_EN
	.comm	_WM1_LP_LATENCY_SHIFT,4,2       ## @WM1_LP_LATENCY_SHIFT
	.comm	_WM1_LP_FBC_SHIFT,4,2           ## @WM1_LP_FBC_SHIFT
	.comm	_WM1_LP_SR_SHIFT,4,2            ## @WM1_LP_SR_SHIFT
	.comm	_WM2_LP_EN,4,2                  ## @WM2_LP_EN
	.comm	_WM3_LP_EN,4,2                  ## @WM3_LP_EN
	.no_dead_strip	_ivybridge_update_wm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivybridge_update_wm
_ivybridge_update_wm:                   ; @ivybridge_update_wm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x22, [x0]
	bl	_SNB_READ_WM0_LATENCY
	mov	w8, #100
	mul	w20, w0, w8
Lloh0:
	adrp	x2, _sandybridge_display_wm_info@GOTPAGE
Lloh1:
	ldr	x2, [x2, _sandybridge_display_wm_info@GOTPAGEOFF]
Lloh2:
	adrp	x4, _sandybridge_cursor_wm_info@GOTPAGE
Lloh3:
	ldr	x4, [x4, _sandybridge_cursor_wm_info@GOTPAGEOFF]
	add	x6, sp, #24
	add	x7, sp, #20
	mov	x0, x19
	mov	w1, #0
	mov	x3, x20
	mov	x5, x20
	bl	_g4x_compute_wm0
Lloh4:
	adrp	x25, _WM0_PIPE_PLANE_MASK@GOTPAGE
Lloh5:
	ldr	x25, [x25, _WM0_PIPE_PLANE_MASK@GOTPAGEOFF]
Lloh6:
	adrp	x24, _WM0_PIPE_CURSOR_MASK@GOTPAGE
Lloh7:
	ldr	x24, [x24, _WM0_PIPE_CURSOR_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x23, _WM0_PIPE_PLANE_SHIFT@GOTPAGE
Lloh9:
	ldr	x23, [x23, _WM0_PIPE_PLANE_SHIFT@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x21, _WM0_PIPEA_ILK@GOTPAGE
Lloh11:
	ldr	x21, [x21, _WM0_PIPEA_ILK@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_I915_READ
	ldr	w8, [x25]
	ldr	w9, [x24]
	orr	w8, w9, w8
	bic	w8, w0, w8
	ldr	w0, [x21]
	ldr	w9, [sp, #24]
	ldr	w10, [x23]
	lsl	w9, w9, w10
	ldr	w10, [sp, #20]
	orr	w8, w10, w8
	orr	w1, w8, w9
	bl	_I915_WRITE
	ldp	w2, w1, [sp, #20]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w21, #1
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
Lloh14:
	adrp	x2, _sandybridge_display_wm_info@GOTPAGE
Lloh15:
	ldr	x2, [x2, _sandybridge_display_wm_info@GOTPAGEOFF]
Lloh16:
	adrp	x4, _sandybridge_cursor_wm_info@GOTPAGE
Lloh17:
	ldr	x4, [x4, _sandybridge_cursor_wm_info@GOTPAGEOFF]
	add	x6, sp, #24
	add	x7, sp, #20
	mov	x0, x19
	mov	w1, #1
	mov	x3, x20
	mov	x5, x20
	bl	_g4x_compute_wm0
	cbz	x0, LBB0_5
; %bb.4:
Lloh18:
	adrp	x26, _WM0_PIPEB_ILK@GOTPAGE
Lloh19:
	ldr	x26, [x26, _WM0_PIPEB_ILK@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_I915_READ
	ldr	w8, [x25]
	ldr	w9, [x24]
	orr	w8, w9, w8
	bic	w8, w0, w8
	ldr	w0, [x26]
	ldr	w9, [sp, #24]
	ldr	w10, [x23]
	lsl	w9, w9, w10
	ldr	w10, [sp, #20]
	orr	w8, w10, w8
	orr	w1, w8, w9
	bl	_I915_WRITE
	ldp	w2, w1, [sp, #20]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	orr	w21, w21, #0x2
LBB0_5:
Lloh22:
	adrp	x2, _sandybridge_display_wm_info@GOTPAGE
Lloh23:
	ldr	x2, [x2, _sandybridge_display_wm_info@GOTPAGEOFF]
Lloh24:
	adrp	x4, _sandybridge_cursor_wm_info@GOTPAGE
Lloh25:
	ldr	x4, [x4, _sandybridge_cursor_wm_info@GOTPAGEOFF]
	add	x6, sp, #24
	add	x7, sp, #20
	mov	x0, x19
	mov	w1, #2
	mov	x3, x20
	mov	x5, x20
	bl	_g4x_compute_wm0
	cbz	x0, LBB0_7
; %bb.6:
Lloh26:
	adrp	x20, _WM0_PIPEC_IVB@GOTPAGE
Lloh27:
	ldr	x20, [x20, _WM0_PIPEC_IVB@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_READ
	ldr	w8, [x25]
	ldr	w9, [x24]
	orr	w8, w9, w8
	bic	w8, w0, w8
	ldr	w0, [x20]
	ldr	w9, [sp, #24]
	ldr	w10, [x23]
	lsl	w9, w9, w10
	ldr	w10, [sp, #20]
	orr	w8, w10, w8
	orr	w1, w8, w9
	bl	_I915_WRITE
	ldp	w2, w1, [sp, #20]
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w21, #3
LBB0_7:
Lloh30:
	adrp	x23, _WM3_LP_ILK@GOTPAGE
Lloh31:
	ldr	x23, [x23, _WM3_LP_ILK@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	w1, #0
	bl	_I915_WRITE
Lloh32:
	adrp	x26, _WM2_LP_ILK@GOTPAGE
Lloh33:
	ldr	x26, [x26, _WM2_LP_ILK@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	w1, #0
	bl	_I915_WRITE
Lloh34:
	adrp	x24, _WM1_LP_ILK@GOTPAGE
Lloh35:
	ldr	x24, [x24, _WM1_LP_ILK@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	w1, #0
	bl	_I915_WRITE
	mov	x0, x21
	bl	_single_plane_enabled
	cbz	w0, LBB0_9
; %bb.8:
	ldr	x8, [x22]
	cbz	x8, LBB0_10
LBB0_9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
	rbit	w8, w21
	clz	w8, w8
	cmp	w21, #0
	csinv	w20, w8, wzr, ne
	bl	_SNB_READ_WM1_LATENCY
	mov	w27, #500
	mul	w3, w0, w27
	add	x28, sp, #20
	str	x28, [sp]
Lloh36:
	adrp	x4, _sandybridge_display_srwm_info@GOTPAGE
Lloh37:
	ldr	x4, [x4, _sandybridge_display_srwm_info@GOTPAGEOFF]
Lloh38:
	adrp	x5, _sandybridge_cursor_srwm_info@GOTPAGE
Lloh39:
	ldr	x5, [x5, _sandybridge_cursor_srwm_info@GOTPAGEOFF]
	add	x6, sp, #28
	add	x7, sp, #24
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_ironlake_compute_srwm
	cbz	w0, LBB0_9
; %bb.11:
	ldr	w21, [x24]
Lloh40:
	adrp	x8, _WM1_LP_SR_EN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _WM1_LP_SR_EN@GOTPAGEOFF]
Lloh42:
	ldr	w24, [x8]
	bl	_SNB_READ_WM1_LATENCY
Lloh43:
	adrp	x22, _WM1_LP_LATENCY_SHIFT@GOTPAGE
Lloh44:
	ldr	x22, [x22, _WM1_LP_LATENCY_SHIFT@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w8, w0, w8
	orr	w8, w8, w24
Lloh45:
	adrp	x24, _WM1_LP_FBC_SHIFT@GOTPAGE
Lloh46:
	ldr	x24, [x24, _WM1_LP_FBC_SHIFT@GOTPAGEOFF]
	ldr	w9, [sp, #28]
	ldr	w10, [x24]
	lsl	w9, w9, w10
	orr	w8, w8, w9
Lloh47:
	adrp	x25, _WM1_LP_SR_SHIFT@GOTPAGE
Lloh48:
	ldr	x25, [x25, _WM1_LP_SR_SHIFT@GOTPAGEOFF]
	ldr	w9, [sp, #24]
	ldr	w10, [x25]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	ldr	w9, [sp, #20]
	orr	w1, w8, w9
	mov	x0, x21
	bl	_I915_WRITE
	bl	_SNB_READ_WM2_LATENCY
	mul	w3, w0, w27
	str	x28, [sp]
Lloh49:
	adrp	x4, _sandybridge_display_srwm_info@GOTPAGE
Lloh50:
	ldr	x4, [x4, _sandybridge_display_srwm_info@GOTPAGEOFF]
Lloh51:
	adrp	x5, _sandybridge_cursor_srwm_info@GOTPAGE
Lloh52:
	ldr	x5, [x5, _sandybridge_cursor_srwm_info@GOTPAGEOFF]
	add	x6, sp, #28
	add	x7, sp, #24
	mov	x0, x19
	mov	w1, #2
	mov	x2, x20
	bl	_ironlake_compute_srwm
	cbz	w0, LBB0_9
; %bb.12:
	ldr	w21, [x26]
Lloh53:
	adrp	x8, _WM2_LP_EN@GOTPAGE
Lloh54:
	ldr	x8, [x8, _WM2_LP_EN@GOTPAGEOFF]
Lloh55:
	ldr	w26, [x8]
	bl	_SNB_READ_WM2_LATENCY
	ldr	w8, [x22]
	lsl	w8, w0, w8
	orr	w8, w8, w26
	ldr	w9, [sp, #28]
	ldr	w10, [x24]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	ldr	w9, [sp, #24]
	ldr	w10, [x25]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	ldr	w9, [sp, #20]
	orr	w1, w8, w9
	mov	x0, x21
	bl	_I915_WRITE
	bl	_SNB_READ_WM3_LATENCY
	mov	w8, #500
	mul	w3, w0, w8
	add	x8, sp, #8
	str	x8, [sp]
Lloh56:
	adrp	x4, _sandybridge_display_srwm_info@GOTPAGE
Lloh57:
	ldr	x4, [x4, _sandybridge_display_srwm_info@GOTPAGEOFF]
Lloh58:
	adrp	x5, _sandybridge_cursor_srwm_info@GOTPAGE
Lloh59:
	ldr	x5, [x5, _sandybridge_cursor_srwm_info@GOTPAGEOFF]
	add	x6, sp, #28
	add	x7, sp, #24
	mov	x0, x19
	mov	w1, #3
	mov	x2, x20
	bl	_ironlake_compute_srwm
	cbz	w0, LBB0_9
; %bb.13:
	bl	_SNB_READ_WM3_LATENCY
	mov	w8, #1000
	mul	w3, w0, w8
	add	x8, sp, #20
	str	x8, [sp]
Lloh60:
	adrp	x4, _sandybridge_display_srwm_info@GOTPAGE
Lloh61:
	ldr	x4, [x4, _sandybridge_display_srwm_info@GOTPAGEOFF]
Lloh62:
	adrp	x5, _sandybridge_cursor_srwm_info@GOTPAGE
Lloh63:
	ldr	x5, [x5, _sandybridge_cursor_srwm_info@GOTPAGEOFF]
	add	x6, sp, #16
	add	x7, sp, #12
	mov	x0, x19
	mov	w1, #3
	mov	x2, x20
	bl	_ironlake_compute_srwm
	cbz	w0, LBB0_9
; %bb.14:
	ldr	w19, [x23]
Lloh64:
	adrp	x8, _WM3_LP_EN@GOTPAGE
Lloh65:
	ldr	x8, [x8, _WM3_LP_EN@GOTPAGEOFF]
Lloh66:
	ldr	w20, [x8]
	bl	_SNB_READ_WM3_LATENCY
	ldr	w8, [x22]
	lsl	w8, w0, w8
	orr	w8, w8, w20
	ldr	w9, [sp, #28]
	ldr	w10, [x24]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	ldr	w9, [sp, #24]
	ldr	w10, [x25]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	ldr	w9, [sp, #20]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_I915_WRITE
	b	LBB0_9
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.comm	_sandybridge_display_wm_info,4,2 ; @sandybridge_display_wm_info
	.comm	_sandybridge_cursor_wm_info,4,2 ; @sandybridge_cursor_wm_info
	.comm	_WM0_PIPEA_ILK,4,2              ; @WM0_PIPEA_ILK
	.comm	_WM0_PIPE_PLANE_MASK,4,2        ; @WM0_PIPE_PLANE_MASK
	.comm	_WM0_PIPE_CURSOR_MASK,4,2       ; @WM0_PIPE_CURSOR_MASK
	.comm	_WM0_PIPE_PLANE_SHIFT,4,2       ; @WM0_PIPE_PLANE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FIFO watermarks For pipe A - plane %d, cursor: %d\n"

	.comm	_WM0_PIPEB_ILK,4,2              ; @WM0_PIPEB_ILK
l_.str.1:                               ; @.str.1
	.asciz	"FIFO watermarks For pipe B - plane %d, cursor: %d\n"

	.comm	_WM0_PIPEC_IVB,4,2              ; @WM0_PIPEC_IVB
l_.str.2:                               ; @.str.2
	.asciz	"FIFO watermarks For pipe C - plane %d, cursor: %d\n"

	.comm	_WM3_LP_ILK,4,2                 ; @WM3_LP_ILK
	.comm	_WM2_LP_ILK,4,2                 ; @WM2_LP_ILK
	.comm	_WM1_LP_ILK,4,2                 ; @WM1_LP_ILK
	.comm	_sandybridge_display_srwm_info,4,2 ; @sandybridge_display_srwm_info
	.comm	_sandybridge_cursor_srwm_info,4,2 ; @sandybridge_cursor_srwm_info
	.comm	_WM1_LP_SR_EN,4,2               ; @WM1_LP_SR_EN
	.comm	_WM1_LP_LATENCY_SHIFT,4,2       ; @WM1_LP_LATENCY_SHIFT
	.comm	_WM1_LP_FBC_SHIFT,4,2           ; @WM1_LP_FBC_SHIFT
	.comm	_WM1_LP_SR_SHIFT,4,2            ; @WM1_LP_SR_SHIFT
	.comm	_WM2_LP_EN,4,2                  ; @WM2_LP_EN
	.comm	_WM3_LP_EN,4,2                  ; @WM3_LP_EN
	.no_dead_strip	_ivybridge_update_wm
.subsections_via_symbols
