	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_pipestat_enable_mask      ## -- Begin function i915_pipestat_enable_mask
	.p2align	4, 0x90
_i915_pipestat_enable_mask:             ## @i915_pipestat_enable_mask
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	%esi, %ecx
	movl	(%rax,%rcx,4), %r15d
	movl	%r15d, %r13d
	shll	$16, %r13d
	addq	$8, %rdi
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$5, %eax
	jge	LBB0_2
## %bb.1:
	movl	%r13d, %r12d
LBB0_5:
	movq	_PIPESTAT_INT_ENABLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	$1, %ebx
	testl	%eax, %r12d
	jne	LBB0_7
## %bb.6:
	movq	_PIPESTAT_INT_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	xorl	%ebx, %ebx
	testl	%eax, %r15d
	setne	%bl
LBB0_7:
	movl	%r14d, %edi
	callq	_pipe_name
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	callq	_WARN_ONCE
	jmp	LBB0_8
LBB0_2:
	movq	_PIPE_A_PSR_STATUS_VLV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r15d, %edi
	callq	_WARN_ON_ONCE
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movq	_PIPE_B_PSR_STATUS_VLV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r15d, %edi
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_4
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_PIPE_FIFO_UNDERRUN_STATUS@GOTPCREL(%rip), %rax
	movq	_SPRITE0_FLIP_DONE_INT_EN_VLV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %eax
	orl	%ecx, %eax
	movq	_SPRITE1_FLIP_DONE_INT_EN_VLV@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, %eax
	notl	%eax
	andl	%eax, %r13d
	movq	_SPRITE0_FLIP_DONE_INT_STATUS_VLV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	cmovnel	%ecx, %eax
	orl	%r13d, %eax
	movq	_SPRITE1_FLIP_DONE_INT_STATUS_VLV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	andl	%r15d, %r12d
	cmovnel	%edx, %r12d
	orl	%eax, %r12d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_PIPE_A_PSR_STATUS_VLV,4,2      ## @PIPE_A_PSR_STATUS_VLV
	.comm	_PIPE_B_PSR_STATUS_VLV,4,2      ## @PIPE_B_PSR_STATUS_VLV
	.comm	_PIPE_FIFO_UNDERRUN_STATUS,4,2  ## @PIPE_FIFO_UNDERRUN_STATUS
	.comm	_SPRITE0_FLIP_DONE_INT_EN_VLV,4,2 ## @SPRITE0_FLIP_DONE_INT_EN_VLV
	.comm	_SPRITE1_FLIP_DONE_INT_EN_VLV,4,2 ## @SPRITE1_FLIP_DONE_INT_EN_VLV
	.comm	_SPRITE0_FLIP_DONE_INT_STATUS_VLV,4,2 ## @SPRITE0_FLIP_DONE_INT_STATUS_VLV
	.comm	_SPRITE1_FLIP_DONE_INT_STATUS_VLV,4,2 ## @SPRITE1_FLIP_DONE_INT_STATUS_VLV
	.comm	_PIPESTAT_INT_ENABLE_MASK,4,2   ## @PIPESTAT_INT_ENABLE_MASK
	.comm	_PIPESTAT_INT_STATUS_MASK,4,2   ## @PIPESTAT_INT_STATUS_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pipe %c: enable_mask=0x%x, status_mask=0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_pipestat_enable_mask      ; -- Begin function i915_pipestat_enable_mask
	.p2align	2
_i915_pipestat_enable_mask:             ; @i915_pipestat_enable_mask
	.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	x21, x1
	mov	x22, x0
	ldr	x8, [x0], #8
	ldr	w19, [x8, w1, uxtw #2]
	lsl	w20, w19, #16
	bl	_lockdep_assert_held
	mov	x0, x22
	bl	_INTEL_GEN
	cmp	w0, #5
	b.ge	LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _PIPESTAT_INT_ENABLE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIPESTAT_INT_ENABLE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bics	wzr, w20, w8
	b.eq	LBB0_6
; %bb.2:
	mov	w22, #1
	b	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _PIPE_A_PSR_STATUS_VLV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIPE_A_PSR_STATUS_VLV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w0, w8, w19
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _PIPE_B_PSR_STATUS_VLV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PIPE_B_PSR_STATUS_VLV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w0, w8, w19
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_9
LBB0_5:
	mov	w20, #0
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _PIPESTAT_INT_STATUS_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PIPESTAT_INT_STATUS_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bics	wzr, w19, w8
	cset	w22, ne
LBB0_7:
	mov	x0, x21
	bl	_pipe_name
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x3, x20
	mov	x4, x19
	bl	_WARN_ONCE
LBB0_8:
	mov	x0, x20
	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_9:
Lloh14:
	adrp	x8, _PIPE_FIFO_UNDERRUN_STATUS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PIPE_FIFO_UNDERRUN_STATUS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _SPRITE0_FLIP_DONE_INT_EN_VLV@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SPRITE0_FLIP_DONE_INT_EN_VLV@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x10, _SPRITE1_FLIP_DONE_INT_EN_VLV@GOTPAGE
Lloh21:
	ldr	x10, [x10, _SPRITE1_FLIP_DONE_INT_EN_VLV@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w8, w8, w10
	bic	w8, w20, w8
Lloh23:
	adrp	x11, _SPRITE0_FLIP_DONE_INT_STATUS_VLV@GOTPAGE
Lloh24:
	ldr	x11, [x11, _SPRITE0_FLIP_DONE_INT_STATUS_VLV@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	tst	w11, w19
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
Lloh26:
	adrp	x9, _SPRITE1_FLIP_DONE_INT_STATUS_VLV@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SPRITE1_FLIP_DONE_INT_STATUS_VLV@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w19
	csel	w9, wzr, w10, eq
	orr	w20, w8, w9
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PIPE_A_PSR_STATUS_VLV,4,2      ; @PIPE_A_PSR_STATUS_VLV
	.comm	_PIPE_B_PSR_STATUS_VLV,4,2      ; @PIPE_B_PSR_STATUS_VLV
	.comm	_PIPE_FIFO_UNDERRUN_STATUS,4,2  ; @PIPE_FIFO_UNDERRUN_STATUS
	.comm	_SPRITE0_FLIP_DONE_INT_EN_VLV,4,2 ; @SPRITE0_FLIP_DONE_INT_EN_VLV
	.comm	_SPRITE1_FLIP_DONE_INT_EN_VLV,4,2 ; @SPRITE1_FLIP_DONE_INT_EN_VLV
	.comm	_SPRITE0_FLIP_DONE_INT_STATUS_VLV,4,2 ; @SPRITE0_FLIP_DONE_INT_STATUS_VLV
	.comm	_SPRITE1_FLIP_DONE_INT_STATUS_VLV,4,2 ; @SPRITE1_FLIP_DONE_INT_STATUS_VLV
	.comm	_PIPESTAT_INT_ENABLE_MASK,4,2   ; @PIPESTAT_INT_ENABLE_MASK
	.comm	_PIPESTAT_INT_STATUS_MASK,4,2   ; @PIPESTAT_INT_STATUS_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pipe %c: enable_mask=0x%x, status_mask=0x%x\n"

.subsections_via_symbols
