	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpt_set_fifo_underrun_reporting
_cpt_set_fifo_underrun_reporting:       ## @cpt_set_fifo_underrun_reporting
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_to_i915
	movq	%rax, %r15
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movq	_SERR_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_SERR_INT_TRANS_FIFO_UNDERRUN
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	%r13, %rdi
	callq	_cpt_can_enable_serr_int
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	_SDE_ERROR_CPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ibx_enable_display_interrupt   ## TAILCALL
LBB0_3:
	movq	_SDE_ERROR_CPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ibx_disable_display_interrupt
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	movq	_SERR_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_SERR_INT_TRANS_FIFO_UNDERRUN
	testl	%ebx, %eax
	je	LBB0_5
## %bb.6:
	movl	%r14d, %edi
	callq	_pipe_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SERR_INT,4,2                   ## @SERR_INT
	.comm	_SDE_ERROR_CPT,4,2              ## @SDE_ERROR_CPT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uncleared pch fifo underrun on pch transcoder %c\n"

	.no_dead_strip	_cpt_set_fifo_underrun_reporting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpt_set_fifo_underrun_reporting
_cpt_set_fifo_underrun_reporting:       ; @cpt_set_fifo_underrun_reporting
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
	bl	_to_i915
	mov	x20, x0
	cbz	w23, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _SERR_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SERR_INT@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_SERR_INT_TRANS_FIFO_UNDERRUN
	mov	x1, x0
	mov	x0, x22
	bl	_I915_WRITE
	mov	x0, x21
	bl	_cpt_can_enable_serr_int
	cbz	w0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _SDE_ERROR_CPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDE_ERROR_CPT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ibx_enable_display_interrupt
LBB0_3:
Lloh6:
	adrp	x8, _SDE_ERROR_CPT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDE_ERROR_CPT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ibx_disable_display_interrupt
	cbz	w22, LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _SERR_INT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SERR_INT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x20, x0
	mov	x0, x19
	bl	_SERR_INT_TRANS_FIFO_UNDERRUN
	tst	w0, w20
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_pipe_name
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_DRM_ERROR
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SERR_INT,4,2                   ; @SERR_INT
	.comm	_SDE_ERROR_CPT,4,2              ; @SDE_ERROR_CPT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uncleared pch fifo underrun on pch transcoder %c\n"

	.no_dead_strip	_cpt_set_fifo_underrun_reporting
.subsections_via_symbols
