	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_update_drain_latency
_vlv_update_drain_latency:              ## @vlv_update_drain_latency
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-16(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	leaq	-12(%rbp), %r8
	leaq	-24(%rbp), %r9
	xorl	%esi, %esi
	callq	_vlv_compute_drain_latency
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	_DRAIN_LATENCY_PRECISION_32@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, -12(%rbp)
	jne	LBB0_2
## %bb.3:
	movq	_DDL_CURSORA_PRECISION_32@GOTPCREL(%rip), %rdi
	cmpl	%ecx, -16(%rbp)
	je	LBB0_6
LBB0_5:
	movq	_DDL_PLANEA_PRECISION_16@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_2:
	movq	_DDL_CURSORA_PRECISION_16@GOTPCREL(%rip), %rdi
	cmpl	%ecx, -16(%rbp)
	jne	LBB0_5
LBB0_6:
	movq	_DDL_PLANEA_PRECISION_32@GOTPCREL(%rip), %rdx
LBB0_7:
	movl	-24(%rbp), %eax
	movq	_DDL_CURSORA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	(%rdx), %esi
	movq	_VLV_DDL1@GOTPCREL(%rip), %rcx
	orl	(%rdi), %esi
	movl	(%rcx), %edi
	orl	%eax, %esi
	orl	-32(%rbp), %esi
	callq	_I915_WRITE
LBB0_8:
	leaq	-16(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	leaq	-12(%rbp), %r8
	leaq	-20(%rbp), %r9
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_vlv_compute_drain_latency
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	_DRAIN_LATENCY_PRECISION_32@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, -12(%rbp)
	jne	LBB0_10
## %bb.11:
	movq	_DDL_CURSORB_PRECISION_32@GOTPCREL(%rip), %rax
	cmpl	%ecx, -16(%rbp)
	je	LBB0_14
LBB0_13:
	movq	_DDL_PLANEB_PRECISION_16@GOTPCREL(%rip), %rdx
	jmp	LBB0_15
LBB0_10:
	movq	_DDL_CURSORB_PRECISION_16@GOTPCREL(%rip), %rax
	cmpl	%ecx, -16(%rbp)
	jne	LBB0_13
LBB0_14:
	movq	_DDL_PLANEB_PRECISION_32@GOTPCREL(%rip), %rdx
LBB0_15:
	movl	-20(%rbp), %ebx
	movq	_DDL_CURSORB_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movl	(%rdx), %esi
	movq	_VLV_DDL2@GOTPCREL(%rip), %rcx
	orl	(%rax), %esi
	movl	(%rcx), %edi
	orl	%ebx, %esi
	orl	-28(%rbp), %esi
	callq	_I915_WRITE
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRAIN_LATENCY_PRECISION_32,4,2 ## @DRAIN_LATENCY_PRECISION_32
	.comm	_DDL_CURSORA_PRECISION_32,4,2   ## @DDL_CURSORA_PRECISION_32
	.comm	_DDL_CURSORA_PRECISION_16,4,2   ## @DDL_CURSORA_PRECISION_16
	.comm	_DDL_PLANEA_PRECISION_32,4,2    ## @DDL_PLANEA_PRECISION_32
	.comm	_DDL_PLANEA_PRECISION_16,4,2    ## @DDL_PLANEA_PRECISION_16
	.comm	_VLV_DDL1,4,2                   ## @VLV_DDL1
	.comm	_DDL_CURSORA_SHIFT,4,2          ## @DDL_CURSORA_SHIFT
	.comm	_DDL_CURSORB_PRECISION_32,4,2   ## @DDL_CURSORB_PRECISION_32
	.comm	_DDL_CURSORB_PRECISION_16,4,2   ## @DDL_CURSORB_PRECISION_16
	.comm	_DDL_PLANEB_PRECISION_32,4,2    ## @DDL_PLANEB_PRECISION_32
	.comm	_DDL_PLANEB_PRECISION_16,4,2    ## @DDL_PLANEB_PRECISION_16
	.comm	_VLV_DDL2,4,2                   ## @VLV_DDL2
	.comm	_DDL_CURSORB_SHIFT,4,2          ## @DDL_CURSORB_SHIFT
	.no_dead_strip	_vlv_update_drain_latency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_update_drain_latency
_vlv_update_drain_latency:              ; @vlv_update_drain_latency
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	add	x2, sp, #12
	sub	x3, x29, #20
	add	x4, sp, #8
	add	x5, sp, #20
	mov	w1, #0
	bl	_vlv_compute_drain_latency
Lloh0:
	adrp	x20, _DRAIN_LATENCY_PRECISION_32@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DRAIN_LATENCY_PRECISION_32@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #8]
Lloh2:
	adrp	x9, _DDL_CURSORA_PRECISION_32@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DDL_CURSORA_PRECISION_32@GOTPAGEOFF]
Lloh4:
	adrp	x10, _DDL_CURSORA_PRECISION_16@GOTPAGE
Lloh5:
	ldr	x10, [x10, _DDL_CURSORA_PRECISION_16@GOTPAGEOFF]
	ldr	w11, [x20]
	cmp	w8, w11
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DDL_PLANEA_PRECISION_32@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DDL_PLANEA_PRECISION_32@GOTPAGEOFF]
	ldr	w10, [sp, #12]
Lloh8:
	adrp	x12, _DDL_PLANEA_PRECISION_16@GOTPAGE
Lloh9:
	ldr	x12, [x12, _DDL_PLANEA_PRECISION_16@GOTPAGEOFF]
	cmp	w10, w11
	csel	x9, x9, x12, eq
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _VLV_DDL1@GOTPAGE
Lloh11:
	ldr	x10, [x10, _VLV_DDL1@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x10]
	ldr	w10, [sp, #20]
Lloh13:
	adrp	x11, _DDL_CURSORA_SHIFT@GOTPAGE
Lloh14:
	ldr	x11, [x11, _DDL_CURSORA_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	ldur	w11, [x29, #-20]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w1, w8, w11
	bl	_I915_WRITE
LBB0_2:
	add	x2, sp, #12
	add	x3, sp, #24
	add	x4, sp, #8
	add	x5, sp, #16
	mov	x0, x19
	mov	w1, #1
	bl	_vlv_compute_drain_latency
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [sp, #8]
Lloh16:
	adrp	x9, _DDL_CURSORB_PRECISION_32@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DDL_CURSORB_PRECISION_32@GOTPAGEOFF]
Lloh18:
	adrp	x10, _DDL_CURSORB_PRECISION_16@GOTPAGE
Lloh19:
	ldr	x10, [x10, _DDL_CURSORB_PRECISION_16@GOTPAGEOFF]
	ldr	w11, [x20]
	cmp	w8, w11
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _DDL_PLANEB_PRECISION_32@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DDL_PLANEB_PRECISION_32@GOTPAGEOFF]
	ldr	w10, [sp, #12]
Lloh22:
	adrp	x12, _DDL_PLANEB_PRECISION_16@GOTPAGE
Lloh23:
	ldr	x12, [x12, _DDL_PLANEB_PRECISION_16@GOTPAGEOFF]
	cmp	w10, w11
	csel	x9, x9, x12, eq
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _VLV_DDL2@GOTPAGE
Lloh25:
	ldr	x10, [x10, _VLV_DDL2@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x10]
	ldr	w10, [sp, #16]
Lloh27:
	adrp	x11, _DDL_CURSORB_SHIFT@GOTPAGE
Lloh28:
	ldr	x11, [x11, _DDL_CURSORB_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	ldr	w11, [sp, #24]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w1, w8, w11
	bl	_I915_WRITE
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DRAIN_LATENCY_PRECISION_32,4,2 ; @DRAIN_LATENCY_PRECISION_32
	.comm	_DDL_CURSORA_PRECISION_32,4,2   ; @DDL_CURSORA_PRECISION_32
	.comm	_DDL_CURSORA_PRECISION_16,4,2   ; @DDL_CURSORA_PRECISION_16
	.comm	_DDL_PLANEA_PRECISION_32,4,2    ; @DDL_PLANEA_PRECISION_32
	.comm	_DDL_PLANEA_PRECISION_16,4,2    ; @DDL_PLANEA_PRECISION_16
	.comm	_VLV_DDL1,4,2                   ; @VLV_DDL1
	.comm	_DDL_CURSORA_SHIFT,4,2          ; @DDL_CURSORA_SHIFT
	.comm	_DDL_CURSORB_PRECISION_32,4,2   ; @DDL_CURSORB_PRECISION_32
	.comm	_DDL_CURSORB_PRECISION_16,4,2   ; @DDL_CURSORB_PRECISION_16
	.comm	_DDL_PLANEB_PRECISION_32,4,2    ; @DDL_PLANEB_PRECISION_32
	.comm	_DDL_PLANEB_PRECISION_16,4,2    ; @DDL_PLANEB_PRECISION_16
	.comm	_VLV_DDL2,4,2                   ; @VLV_DDL2
	.comm	_DDL_CURSORB_SHIFT,4,2          ; @DDL_CURSORB_SHIFT
	.no_dead_strip	_vlv_update_drain_latency
.subsections_via_symbols
