	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_get_fifo_size
_vlv_get_fifo_size:                     ## @vlv_get_fifo_size
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_to_i915
	movl	(%rbx), %edi
	cmpl	$128, %edi
	je	LBB0_4
## %bb.1:
	cmpl	$129, %edi
	je	LBB0_6
## %bb.2:
	cmpl	$130, %edi
	jne	LBB0_5
## %bb.3:
	movq	_DSPARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r15d
	movq	_DSPARB2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r12d
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_VLV_FIFO_START
	movl	%eax, %ebx
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	$8, %edx
	movl	$4, %ecx
	jmp	LBB0_7
LBB0_4:
	movq	_DSPARB2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r15d
	movq	_DSPARB3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r12d
	movl	%eax, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	$16, %ecx
	callq	_VLV_FIFO_START
	movl	%eax, %ebx
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	$8, %edx
	movl	$20, %ecx
	jmp	LBB0_7
LBB0_6:
	movq	_DSPARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r15d
	movq	_DSPARB2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r12d
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	$16, %edx
	movl	$8, %ecx
	callq	_VLV_FIFO_START
	movl	%eax, %ebx
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	$24, %edx
	movl	$12, %ecx
LBB0_7:
	callq	_VLV_FIFO_START
	movq	(%r14), %rcx
	movq	_PLANE_PRIMARY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ebx, (%rcx,%rdx,4)
	movl	%eax, %edx
	subl	%ebx, %edx
	movq	_PLANE_SPRITE0@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rcx,%rsi,4)
	movl	$511, %edx                      ## imm = 0x1FF
	subl	%eax, %edx
	movq	_PLANE_SPRITE1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edx, (%rcx,%rax,4)
	movq	_PLANE_CURSOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$63, (%rcx,%rax,4)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MISSING_CASE                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DSPARB,4,2                     ## @DSPARB
	.comm	_DSPARB2,4,2                    ## @DSPARB2
	.comm	_DSPARB3,4,2                    ## @DSPARB3
	.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
	.no_dead_strip	_vlv_get_fifo_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_get_fifo_size
_vlv_get_fifo_size:                     ; @vlv_get_fifo_size
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_to_intel_crtc
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	ldr	w0, [x20]
	cmp	w0, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #130
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _DSPARB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSPARB@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x21, x0
Lloh3:
	adrp	x8, _DSPARB2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSPARB2@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	mov	w3, #0
	bl	_VLV_FIFO_START
	mov	x20, x0
	mov	x0, x21
	mov	x1, x22
	mov	w2, #8
	mov	w3, #4
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _DSPARB2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DSPARB2@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x21, x0
Lloh9:
	adrp	x8, _DSPARB3@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DSPARB3@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x22, x0
	mov	x1, x21
	mov	w2, #0
	mov	w3, #16
	bl	_VLV_FIFO_START
	mov	x20, x0
	mov	x0, x22
	mov	x1, x21
	mov	w2, #8
	mov	w3, #20
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _DSPARB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DSPARB@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x21, x0
Lloh15:
	adrp	x8, _DSPARB2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DSPARB2@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	mov	w2, #16
	mov	w3, #8
	bl	_VLV_FIFO_START
	mov	x20, x0
	mov	x0, x21
	mov	x1, x22
	mov	w2, #24
	mov	w3, #12
LBB0_6:
	bl	_VLV_FIFO_START
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _PLANE_PRIMARY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PLANE_PRIMARY@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	str	w20, [x8, x9, lsl #2]
	sub	w9, w0, w20
Lloh21:
	adrp	x10, _PLANE_SPRITE0@GOTPAGE
Lloh22:
	ldr	x10, [x10, _PLANE_SPRITE0@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	str	w9, [x8, x10, lsl #2]
	mov	w9, #511
	sub	w9, w9, w0
Lloh24:
	adrp	x10, _PLANE_SPRITE1@GOTPAGE
Lloh25:
	ldr	x10, [x10, _PLANE_SPRITE1@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	str	w9, [x8, x10, lsl #2]
Lloh27:
	adrp	x9, _PLANE_CURSOR@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PLANE_CURSOR@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	mov	w10, #63
	str	w10, [x8, x9, lsl #2]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_MISSING_CASE
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_DSPARB,4,2                     ; @DSPARB
	.comm	_DSPARB2,4,2                    ; @DSPARB2
	.comm	_DSPARB3,4,2                    ; @DSPARB3
	.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
	.no_dead_strip	_vlv_get_fifo_size
.subsections_via_symbols
