	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pineview_update_wm
_pineview_update_wm:                    ## @pineview_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	8(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_MOBILE
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	movl	8(%r12), %esi
	movl	(%r12), %ecx
	movl	4(%r12), %edx
	callq	_intel_get_cxsr_latency
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_single_enabled_crtc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rax), %rcx
	movq	16(%rax), %rax
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	(%rax), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	_pineview_display_wm@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edx
	movl	12(%r14), %r8d
	callq	_intel_calculate_wm
	movl	%eax, %ebx
	movq	_DSPFW1@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_I915_READ
	movq	_DSPFW_SR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	notl	%r13d
	andl	%eax, %r13d
	movq	_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_FW_WM
	orl	%eax, %r13d
	movl	(%r15), %edi
	movl	%r13d, %esi
	callq	_I915_WRITE
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_pineview_display_wm@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r14), %r8d
	movq	_pineview_cursor_wm@GOTPCREL(%rip), %rsi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	movl	$4, %ecx
	callq	_intel_calculate_wm
	movl	%eax, %r13d
	movq	_DSPFW3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	_DSPFW_CURSOR_SR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	_CURSOR_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_FW_WM
	orl	%eax, %ebx
	movq	_DSPFW3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	_pineview_display_hplloff_wm@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edx
	movl	4(%r14), %r8d
	movl	%r15d, %edi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_intel_calculate_wm
	movl	%eax, %ebx
	movq	_DSPFW3@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_I915_READ
	movq	_DSPFW_HPLL_SR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	notl	%r13d
	andl	%eax, %r13d
	movq	_HPLL_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_FW_WM
	orl	%eax, %r13d
	movl	(%r15), %edi
	movl	%r13d, %esi
	callq	_I915_WRITE
	movq	_pineview_display_hplloff_wm@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %r8d
	movq	_pineview_cursor_hplloff_wm@GOTPCREL(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$4, %ecx
	callq	_intel_calculate_wm
	movl	%eax, %r14d
	movl	(%r15), %edi
	callq	_I915_READ
	movq	_DSPFW_HPLL_CURSOR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	_HPLL_CURSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_FW_WM
	orl	%eax, %ebx
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	$1, %ebx
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r12, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_set_memory_cxsr          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown FSB/MEM found, disable CxSR\n"

	.comm	_pineview_display_wm,4,2        ## @pineview_display_wm
	.comm	_DSPFW1,4,2                     ## @DSPFW1
	.comm	_DSPFW_SR_MASK,4,2              ## @DSPFW_SR_MASK
	.comm	_SR,4,2                         ## @SR
L_.str.1:                               ## @.str.1
	.asciz	"DSPFW1 register is %x\n"

	.comm	_pineview_cursor_wm,4,2         ## @pineview_cursor_wm
	.comm	_DSPFW3,4,2                     ## @DSPFW3
	.comm	_DSPFW_CURSOR_SR_MASK,4,2       ## @DSPFW_CURSOR_SR_MASK
	.comm	_CURSOR_SR,4,2                  ## @CURSOR_SR
	.comm	_pineview_display_hplloff_wm,4,2 ## @pineview_display_hplloff_wm
	.comm	_DSPFW_HPLL_SR_MASK,4,2         ## @DSPFW_HPLL_SR_MASK
	.comm	_HPLL_SR,4,2                    ## @HPLL_SR
	.comm	_pineview_cursor_hplloff_wm,4,2 ## @pineview_cursor_hplloff_wm
	.comm	_DSPFW_HPLL_CURSOR_MASK,4,2     ## @DSPFW_HPLL_CURSOR_MASK
	.comm	_HPLL_CURSOR,4,2                ## @HPLL_CURSOR
L_.str.2:                               ## @.str.2
	.asciz	"DSPFW3 register is %x\n"

	.no_dead_strip	_pineview_update_wm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pineview_update_wm
_pineview_update_wm:                    ; @pineview_update_wm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	w0, [x0, #8]
	bl	_to_i915
	mov	x19, x0
	bl	_IS_MOBILE
	cmp	w0, #0
	cset	w0, eq
	ldp	w2, w1, [x19, #4]
	ldr	w3, [x19]
	bl	_intel_get_cxsr_latency
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_single_enabled_crtc
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x0, #16]
	ldr	x9, [x0]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	w22, [x9]
	ldr	w21, [x8]
Lloh0:
	adrp	x23, _pineview_display_wm@GOTPAGE
Lloh1:
	ldr	x23, [x23, _pineview_display_wm@GOTPAGEOFF]
	ldr	w2, [x23]
	ldr	w4, [x20, #12]
	mov	x0, x21
	mov	x1, x23
	mov	x3, x22
	bl	_intel_calculate_wm
	mov	x24, x0
Lloh2:
	adrp	x25, _DSPFW1@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DSPFW1@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_I915_READ
Lloh4:
	adrp	x8, _DSPFW_SR_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DSPFW_SR_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w26, w0, w8
Lloh7:
	adrp	x8, _SR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_FW_WM
	orr	w24, w0, w26
	ldr	w0, [x25]
	mov	x1, x24
	bl	_I915_WRITE
	str	x24, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w2, [x23]
	ldr	w4, [x20, #8]
Lloh12:
	adrp	x1, _pineview_cursor_wm@GOTPAGE
Lloh13:
	ldr	x1, [x1, _pineview_cursor_wm@GOTPAGEOFF]
	mov	x0, x21
	mov	w3, #4
	bl	_intel_calculate_wm
	mov	x23, x0
Lloh14:
	adrp	x24, _DSPFW3@GOTPAGE
Lloh15:
	ldr	x24, [x24, _DSPFW3@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_I915_READ
Lloh16:
	adrp	x8, _DSPFW_CURSOR_SR_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DSPFW_CURSOR_SR_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	bic	w25, w0, w8
Lloh19:
	adrp	x8, _CURSOR_SR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CURSOR_SR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_FW_WM
	orr	w1, w0, w25
	ldr	w0, [x24]
	bl	_I915_WRITE
Lloh22:
	adrp	x23, _pineview_display_hplloff_wm@GOTPAGE
Lloh23:
	ldr	x23, [x23, _pineview_display_hplloff_wm@GOTPAGEOFF]
	ldr	w2, [x23]
	ldr	w4, [x20, #4]
	mov	x0, x21
	mov	x1, x23
	mov	x3, x22
	bl	_intel_calculate_wm
	mov	x22, x0
	ldr	w0, [x24]
	bl	_I915_READ
Lloh24:
	adrp	x8, _DSPFW_HPLL_SR_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DSPFW_HPLL_SR_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	bic	w25, w0, w8
Lloh27:
	adrp	x8, _HPLL_SR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HPLL_SR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_FW_WM
	orr	w1, w0, w25
	ldr	w0, [x24]
	bl	_I915_WRITE
	ldr	w2, [x23]
	ldr	w4, [x20]
Lloh30:
	adrp	x1, _pineview_cursor_hplloff_wm@GOTPAGE
Lloh31:
	ldr	x1, [x1, _pineview_cursor_hplloff_wm@GOTPAGEOFF]
	mov	x0, x21
	mov	w3, #4
	bl	_intel_calculate_wm
	mov	x20, x0
	ldr	w0, [x24]
	bl	_I915_READ
Lloh32:
	adrp	x8, _DSPFW_HPLL_CURSOR_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DSPFW_HPLL_CURSOR_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	bic	w21, w0, w8
Lloh35:
	adrp	x8, _HPLL_CURSOR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _HPLL_CURSOR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_FW_WM
	orr	w20, w0, w21
	ldr	w0, [x24]
	mov	x1, x20
	bl	_I915_WRITE
	str	x20, [sp]
Lloh38:
	adrp	x0, l_.str.2@PAGE
Lloh39:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w1, #1
	b	LBB0_5
LBB0_3:
Lloh40:
	adrp	x0, l_.str@PAGE
Lloh41:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_4:
	mov	w1, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_intel_set_memory_cxsr
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown FSB/MEM found, disable CxSR\n"

	.comm	_pineview_display_wm,4,2        ; @pineview_display_wm
	.comm	_DSPFW1,4,2                     ; @DSPFW1
	.comm	_DSPFW_SR_MASK,4,2              ; @DSPFW_SR_MASK
	.comm	_SR,4,2                         ; @SR
l_.str.1:                               ; @.str.1
	.asciz	"DSPFW1 register is %x\n"

	.comm	_pineview_cursor_wm,4,2         ; @pineview_cursor_wm
	.comm	_DSPFW3,4,2                     ; @DSPFW3
	.comm	_DSPFW_CURSOR_SR_MASK,4,2       ; @DSPFW_CURSOR_SR_MASK
	.comm	_CURSOR_SR,4,2                  ; @CURSOR_SR
	.comm	_pineview_display_hplloff_wm,4,2 ; @pineview_display_hplloff_wm
	.comm	_DSPFW_HPLL_SR_MASK,4,2         ; @DSPFW_HPLL_SR_MASK
	.comm	_HPLL_SR,4,2                    ; @HPLL_SR
	.comm	_pineview_cursor_hplloff_wm,4,2 ; @pineview_cursor_hplloff_wm
	.comm	_DSPFW_HPLL_CURSOR_MASK,4,2     ; @DSPFW_HPLL_CURSOR_MASK
	.comm	_HPLL_CURSOR,4,2                ; @HPLL_CURSOR
l_.str.2:                               ; @.str.2
	.asciz	"DSPFW3 register is %x\n"

	.no_dead_strip	_pineview_update_wm
.subsections_via_symbols
