	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivybridge_check_fifo_underruns
_ivybridge_check_fifo_underruns:        ## @ivybridge_check_fifo_underruns
	.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, %rbx
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r14
	movl	(%rbx), %r15d
	movq	_GEN7_ERR_INT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_lockdep_assert_held
	movl	%r15d, %edi
	callq	_ERR_INT_FIFO_UNDERRUN
	testl	%ebx, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r12), %ebx
	movl	%r15d, %edi
	callq	_ERR_INT_FIFO_UNDERRUN
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movl	(%r12), %edi
	callq	_POSTING_READ
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_trace_intel_cpu_fifo_underrun
	movl	%r15d, %edi
	callq	_pipe_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN7_ERR_INT,4,2               ## @GEN7_ERR_INT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fifo underrun on pipe %c\n"

	.no_dead_strip	_ivybridge_check_fifo_underruns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivybridge_check_fifo_underruns
_ivybridge_check_fifo_underruns:        ; @ivybridge_check_fifo_underruns
	.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, #4]
	bl	_to_i915
	mov	x20, x0
	ldr	w19, [x19]
Lloh0:
	adrp	x22, _GEN7_ERR_INT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GEN7_ERR_INT@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_I915_READ
	mov	x21, x0
	mov	x0, x20
	bl	_lockdep_assert_held
	mov	x0, x19
	bl	_ERR_INT_FIFO_UNDERRUN
	tst	w0, w21
	b.eq	LBB0_2
; %bb.1:
	ldr	w21, [x22]
	mov	x0, x19
	bl	_ERR_INT_FIFO_UNDERRUN
	mov	x1, x0
	mov	x0, x21
	bl	_I915_WRITE
	ldr	w0, [x22]
	bl	_POSTING_READ
	mov	x0, x20
	mov	x1, x19
	bl	_trace_intel_cpu_fifo_underrun
	mov	x0, x19
	bl	_pipe_name
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	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	_DRM_ERROR
LBB0_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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN7_ERR_INT,4,2               ; @GEN7_ERR_INT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fifo underrun on pipe %c\n"

	.no_dead_strip	_ivybridge_check_fifo_underruns
.subsections_via_symbols
