	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_atomic_update_fifo
_vlv_atomic_update_fifo:                ## @vlv_atomic_update_fifo
	.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	%rsi, %rbx
	movl	16(%rsi), %edi
	callq	_to_intel_crtc
	movq	%rax, %r15
	movl	4(%rax), %edi
	callq	_to_i915
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movq	_PLANE_PRIMARY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r12d
	movq	_PLANE_SPRITE0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r13d
	addl	%r12d, %r13d
	movq	_PLANE_SPRITE1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ebx
	addl	%r13d, %ebx
	movq	_PLANE_CURSOR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edi, %edi
	cmpl	$63, (%rax,%rcx,4)
	setne	%dil
	callq	_WARN_ON
	xorl	%edi, %edi
	cmpl	$511, %ebx                      ## imm = 0x1FF
	setne	%dil
	callq	_WARN_ON
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_trace_vlv_fifo_size
	movq	%r14, %rdi
	callq	_spin_lock
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_3
## %bb.2:
	cltq
	leaq	l_switch.table.vlv_atomic_update_fifo(%rip), %rcx
	movq	(%rcx,%rax,8), %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	leaq	l_switch.table.vlv_atomic_update_fifo.1(%rip), %rcx
	movq	(%rcx,%rax,8), %r15
	leaq	l_switch.table.vlv_atomic_update_fifo.2(%rip), %rcx
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	(%rcx,%rax,8), %r12
	leaq	l_switch.table.vlv_atomic_update_fifo.3(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	l_switch.table.vlv_atomic_update_fifo.4(%rip), %rcx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%rcx,%rax,4), %r14d
	leaq	l_switch.table.vlv_atomic_update_fifo.5(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_intel_uncore_read_fw
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_DSPARB2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_intel_uncore_read_fw
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	movl	$255, %esi
	callq	_VLV_FIFO
	movl	%eax, %ebx
	movl	(%r12), %edi
	movl	$255, %esi
	callq	_VLV_FIFO
	orl	%eax, %ebx
	notl	%ebx
	andl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	(%r15), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_VLV_FIFO
	movl	%eax, %r15d
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_VLV_FIFO
	orl	%eax, %r15d
	orl	%ebx, %r15d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_VLV_FIFO
	movl	%eax, %r12d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%r14d, %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	callq	_VLV_FIFO
	orl	%eax, %r12d
	notl	%r12d
	andl	-64(%rbp), %r12d                ## 4-byte Folded Reload
	movl	(%rbx), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	sarl	$8, %esi
	callq	_VLV_FIFO
	movl	%eax, %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	sarl	$8, %r13d
	movl	%r13d, %esi
	callq	_VLV_FIFO
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_intel_uncore_write_fw
	movq	_DSPARB2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_intel_uncore_write_fw
LBB0_3:
	movq	_DSPARB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_intel_uncore_posting_read_fw
	movq	%r14, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_4:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANE_PRIMARY,8,3              ## @PLANE_PRIMARY
	.comm	_PLANE_SPRITE0,8,3              ## @PLANE_SPRITE0
	.comm	_PLANE_SPRITE1,8,3              ## @PLANE_SPRITE1
	.comm	_PLANE_CURSOR,8,3               ## @PLANE_CURSOR
	.comm	_DSPARB,4,2                     ## @DSPARB
	.comm	_DSPARB2,4,2                    ## @DSPARB2
	.comm	_SPRITEA,4,2                    ## @SPRITEA
	.comm	_SPRITEB,4,2                    ## @SPRITEB
	.comm	_SPRITEA_HI,4,2                 ## @SPRITEA_HI
	.comm	_SPRITEB_HI,4,2                 ## @SPRITEB_HI
	.comm	_SPRITEC,4,2                    ## @SPRITEC
	.comm	_SPRITED,4,2                    ## @SPRITED
	.comm	_SPRITEC_HI,4,2                 ## @SPRITEC_HI
	.comm	_SPRITED_HI,4,2                 ## @SPRITED_HI
	.comm	_DSPARB3,4,2                    ## @DSPARB3
	.comm	_SPRITEE,4,2                    ## @SPRITEE
	.comm	_SPRITEF,4,2                    ## @SPRITEF
	.comm	_SPRITEE_HI,4,2                 ## @SPRITEE_HI
	.comm	_SPRITEF_HI,4,2                 ## @SPRITEF_HI
	.no_dead_strip	_vlv_atomic_update_fifo
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.vlv_atomic_update_fifo
l_switch.table.vlv_atomic_update_fifo:
	.quad	_DSPARB3
	.quad	_DSPARB
	.quad	_DSPARB

	.p2align	3                               ## @switch.table.vlv_atomic_update_fifo.1
l_switch.table.vlv_atomic_update_fifo.1:
	.quad	_SPRITEE
	.quad	_SPRITEC
	.quad	_SPRITEA

	.p2align	3                               ## @switch.table.vlv_atomic_update_fifo.2
l_switch.table.vlv_atomic_update_fifo.2:
	.quad	_SPRITEF
	.quad	_SPRITED
	.quad	_SPRITEB

	.p2align	3                               ## @switch.table.vlv_atomic_update_fifo.3
l_switch.table.vlv_atomic_update_fifo.3:
	.quad	_SPRITEE_HI
	.quad	_SPRITEC_HI
	.quad	_SPRITEA_HI

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.vlv_atomic_update_fifo.4
l_switch.table.vlv_atomic_update_fifo.4:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	1                               ## 0x1

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.vlv_atomic_update_fifo.5
l_switch.table.vlv_atomic_update_fifo.5:
	.quad	_SPRITEF_HI
	.quad	_SPRITED_HI
	.quad	_SPRITEB_HI

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_atomic_update_fifo
_vlv_atomic_update_fifo:                ; @vlv_atomic_update_fifo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	ldr	w0, [x1, #16]
	bl	_to_intel_crtc
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _PLANE_PRIMARY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLANE_PRIMARY@GOTPAGEOFF]
	ldr	x9, [x20, #8]
Lloh2:
	ldr	x8, [x8]
	ldr	w20, [x9, x8, lsl #2]
Lloh3:
	adrp	x8, _PLANE_SPRITE0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLANE_SPRITE0@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
Lloh6:
	adrp	x10, _PLANE_SPRITE1@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PLANE_SPRITE1@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	ldr	w10, [x9, x10, lsl #2]
Lloh9:
	adrp	x11, _PLANE_CURSOR@GOTPAGE
Lloh10:
	ldr	x11, [x11, _PLANE_CURSOR@GOTPAGEOFF]
	add	w21, w8, w20
	add	w23, w10, w21
Lloh11:
	ldr	x8, [x11]
	ldr	w8, [x9, x8, lsl #2]
	cmp	w8, #63
	cset	w0, ne
	bl	_WARN_ON
	cmp	w23, #511
	cset	w0, ne
	bl	_WARN_ON
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	bl	_trace_vlv_fifo_size
	mov	x0, x19
	bl	_spin_lock
	ldr	w8, [x22]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_3
; %bb.2:
	sbfiz	x9, x8, #3, #32
Lloh12:
	adrp	x10, l_switch.table.vlv_atomic_update_fifo@PAGE
Lloh13:
	add	x10, x10, l_switch.table.vlv_atomic_update_fifo@PAGEOFF
	ldr	x11, [x10, x9]
	str	x11, [sp, #8]                   ; 8-byte Folded Spill
Lloh14:
	adrp	x10, l_switch.table.vlv_atomic_update_fifo.1@PAGE
Lloh15:
	add	x10, x10, l_switch.table.vlv_atomic_update_fifo.1@PAGEOFF
	ldr	x26, [x10, x9]
Lloh16:
	adrp	x10, l_switch.table.vlv_atomic_update_fifo.2@PAGE
Lloh17:
	add	x10, x10, l_switch.table.vlv_atomic_update_fifo.2@PAGEOFF
	ldr	x24, [x10, x9]
Lloh18:
	adrp	x10, l_switch.table.vlv_atomic_update_fifo.3@PAGE
Lloh19:
	add	x10, x10, l_switch.table.vlv_atomic_update_fifo.3@PAGEOFF
	ldr	x27, [x10, x9]
Lloh20:
	adrp	x10, l_switch.table.vlv_atomic_update_fifo.4@PAGE
Lloh21:
	add	x10, x10, l_switch.table.vlv_atomic_update_fifo.4@PAGEOFF
	ldr	w22, [x10, w8, sxtw #2]
Lloh22:
	adrp	x8, l_switch.table.vlv_atomic_update_fifo.5@PAGE
Lloh23:
	add	x8, x8, l_switch.table.vlv_atomic_update_fifo.5@PAGEOFF
	ldr	x28, [x8, x9]
	ldr	w1, [x11]
	mov	x0, x19
	bl	_intel_uncore_read_fw
	mov	x23, x0
Lloh24:
	adrp	x8, _DSPARB2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DSPARB2@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_intel_uncore_read_fw
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	ldr	w0, [x26]
	mov	w1, #255
	bl	_VLV_FIFO
	mov	x25, x0
	ldr	w0, [x24]
	mov	w1, #255
	bl	_VLV_FIFO
	orr	w8, w0, w25
	bic	w25, w23, w8
	ldr	w0, [x26]
	mov	x1, x20
	bl	_VLV_FIFO
	mov	x23, x0
	ldr	w0, [x24]
	mov	x1, x21
	bl	_VLV_FIFO
	orr	w8, w25, w23
	orr	w23, w8, w0
	ldr	w0, [x27]
	mov	x1, x22
	bl	_VLV_FIFO
	mov	x25, x0
	ldr	w0, [x28]
	mov	x1, x22
	bl	_VLV_FIFO
	orr	w8, w0, w25
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	bic	w22, w9, w8
	ldr	w0, [x27]
	asr	w1, w20, #8
	bl	_VLV_FIFO
	mov	x20, x0
	ldr	w0, [x28]
	asr	w1, w21, #8
	bl	_VLV_FIFO
	orr	w8, w22, w20
	orr	w20, w8, w0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_intel_uncore_write_fw
Lloh27:
	adrp	x8, _DSPARB2@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DSPARB2@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_intel_uncore_write_fw
LBB0_3:
Lloh30:
	adrp	x8, _DSPARB@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DSPARB@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_intel_uncore_posting_read_fw
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_spin_unlock
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANE_PRIMARY,8,3              ; @PLANE_PRIMARY
	.comm	_PLANE_SPRITE0,8,3              ; @PLANE_SPRITE0
	.comm	_PLANE_SPRITE1,8,3              ; @PLANE_SPRITE1
	.comm	_PLANE_CURSOR,8,3               ; @PLANE_CURSOR
	.comm	_DSPARB,4,2                     ; @DSPARB
	.comm	_DSPARB2,4,2                    ; @DSPARB2
	.comm	_SPRITEA,4,2                    ; @SPRITEA
	.comm	_SPRITEB,4,2                    ; @SPRITEB
	.comm	_SPRITEA_HI,4,2                 ; @SPRITEA_HI
	.comm	_SPRITEB_HI,4,2                 ; @SPRITEB_HI
	.comm	_SPRITEC,4,2                    ; @SPRITEC
	.comm	_SPRITED,4,2                    ; @SPRITED
	.comm	_SPRITEC_HI,4,2                 ; @SPRITEC_HI
	.comm	_SPRITED_HI,4,2                 ; @SPRITED_HI
	.comm	_DSPARB3,4,2                    ; @DSPARB3
	.comm	_SPRITEE,4,2                    ; @SPRITEE
	.comm	_SPRITEF,4,2                    ; @SPRITEF
	.comm	_SPRITEE_HI,4,2                 ; @SPRITEE_HI
	.comm	_SPRITEF_HI,4,2                 ; @SPRITEF_HI
	.no_dead_strip	_vlv_atomic_update_fifo
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.vlv_atomic_update_fifo
l_switch.table.vlv_atomic_update_fifo:
	.quad	_DSPARB3
	.quad	_DSPARB
	.quad	_DSPARB

	.p2align	3                               ; @switch.table.vlv_atomic_update_fifo.1
l_switch.table.vlv_atomic_update_fifo.1:
	.quad	_SPRITEE
	.quad	_SPRITEC
	.quad	_SPRITEA

	.p2align	3                               ; @switch.table.vlv_atomic_update_fifo.2
l_switch.table.vlv_atomic_update_fifo.2:
	.quad	_SPRITEF
	.quad	_SPRITED
	.quad	_SPRITEB

	.p2align	3                               ; @switch.table.vlv_atomic_update_fifo.3
l_switch.table.vlv_atomic_update_fifo.3:
	.quad	_SPRITEE_HI
	.quad	_SPRITEC_HI
	.quad	_SPRITEA_HI

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.vlv_atomic_update_fifo.4
l_switch.table.vlv_atomic_update_fifo.4:
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	1                               ; 0x1

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.vlv_atomic_update_fifo.5
l_switch.table.vlv_atomic_update_fifo.5:
	.quad	_SPRITEF_HI
	.quad	_SPRITED_HI
	.quad	_SPRITEB_HI

.subsections_via_symbols
