	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_program_pfi_credits
_vlv_program_pfi_credits:               ## @vlv_program_pfi_credits
	.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, %r15
	callq	_IS_CHERRYVIEW
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	8(,%rcx,4), %edi
	callq	_PFI_CREDIT
	movl	%eax, %r14d
	movq	8(%r15), %rax
	movl	%r14d, %ebx
	cmpq	(%r15), %rax
	jl	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_PFI_CREDIT_63@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_4
LBB0_3:
	movl	$15, %edi
	callq	_PFI_CREDIT
	movl	%eax, %ebx
LBB0_4:
	movq	_GCI_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_VGA_FAST_MODE_DISABLE@GOTPCREL(%rip), %r12
	orl	(%r12), %r14d
	movl	%r14d, %esi
	callq	_I915_WRITE
	orl	(%r12), %ebx
	movl	(%r15), %edi
	movq	_PFI_CREDIT_RESEND@GOTPCREL(%rip), %r14
	orl	(%r14), %ebx
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r15), %edi
	callq	_I915_READ
	andl	(%r14), %eax
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PFI_CREDIT_63,4,2              ## @PFI_CREDIT_63
	.comm	_GCI_CONTROL,4,2                ## @GCI_CONTROL
	.comm	_VGA_FAST_MODE_DISABLE,4,2      ## @VGA_FAST_MODE_DISABLE
	.comm	_PFI_CREDIT_RESEND,4,2          ## @PFI_CREDIT_RESEND
	.no_dead_strip	_vlv_program_pfi_credits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_program_pfi_credits
_vlv_program_pfi_credits:               ; @vlv_program_pfi_credits
	.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	x20, x0
	bl	_IS_CHERRYVIEW
	cmp	x0, #0
	mov	w8, #12
	mov	w9, #8
	csel	w0, w9, w8, eq
	bl	_PFI_CREDIT
	mov	x19, x0
	ldp	x9, x8, [x20]
	mov	x21, x0
	cmp	x8, x9
	b.lt	LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _PFI_CREDIT_63@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PFI_CREDIT_63@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_4
LBB0_3:
	mov	w0, #15
	bl	_PFI_CREDIT
	mov	x21, x0
LBB0_4:
Lloh3:
	adrp	x20, _GCI_CONTROL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _GCI_CONTROL@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh5:
	adrp	x22, _VGA_FAST_MODE_DISABLE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _VGA_FAST_MODE_DISABLE@GOTPAGEOFF]
	ldr	w8, [x22]
	orr	w1, w8, w19
	bl	_I915_WRITE
	ldr	w0, [x20]
	ldr	w8, [x22]
	orr	w8, w8, w21
Lloh7:
	adrp	x19, _PFI_CREDIT_RESEND@GOTPAGE
Lloh8:
	ldr	x19, [x19, _PFI_CREDIT_RESEND@GOTPAGEOFF]
	ldr	w9, [x19]
	orr	w1, w8, w9
	bl	_I915_WRITE
	ldr	w0, [x20]
	bl	_I915_READ
	ldr	w8, [x19]
	and	w0, w8, w0
	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	_WARN_ON
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PFI_CREDIT_63,4,2              ; @PFI_CREDIT_63
	.comm	_GCI_CONTROL,4,2                ; @GCI_CONTROL
	.comm	_VGA_FAST_MODE_DISABLE,4,2      ; @VGA_FAST_MODE_DISABLE
	.comm	_PFI_CREDIT_RESEND,4,2          ; @PFI_CREDIT_RESEND
	.no_dead_strip	_vlv_program_pfi_credits
.subsections_via_symbols
