	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtip_process_errors
_mtip_process_errors:                   ## @mtip_process_errors
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_PORT_IRQ_TF_ERR@GOTPCREL(%rip), %rax
	movq	_PORT_IRQ_IF_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	andl	%esi, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_mtip_handle_tfe
LBB0_2:
	movq	_PORT_IRQ_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	8(%r14), %rax
	movq	_PORT_SCR_ERR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movl	$67108864, %edi                 ## imm = 0x4000000
	callq	_writel
LBB0_4:
	movq	_PORT_IRQ_PHYRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	8(%r14), %rax
	movq	_PORT_SCR_ERR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movl	$65536, %edi                    ## imm = 0x10000
	callq	_writel
LBB0_6:
	movq	_PORT_IRQ_HANDLED@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	notl	%edi
	andl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	(%r14), %rdi
	movl	(%r15), %edx
	notl	%edx
	andl	%ebx, %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_IRQ_TF_ERR,4,2            ## @PORT_IRQ_TF_ERR
	.comm	_PORT_IRQ_IF_ERR,4,2            ## @PORT_IRQ_IF_ERR
	.comm	_PORT_IRQ_CONNECT,4,2           ## @PORT_IRQ_CONNECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Clearing PxSERR.DIAG.x\n"

	.comm	_PORT_SCR_ERR,8,3               ## @PORT_SCR_ERR
	.comm	_PORT_IRQ_PHYRDY,4,2            ## @PORT_IRQ_PHYRDY
L_.str.1:                               ## @.str.1
	.asciz	"Clearing PxSERR.DIAG.n\n"

	.comm	_PORT_IRQ_HANDLED,4,2           ## @PORT_IRQ_HANDLED
L_.str.2:                               ## @.str.2
	.asciz	"Port stat errors %x unhandled\n"

	.no_dead_strip	_mtip_process_errors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtip_process_errors
_mtip_process_errors:                   ; @mtip_process_errors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PORT_IRQ_TF_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_IRQ_TF_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PORT_IRQ_IF_ERR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PORT_IRQ_IF_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w0, w8, w1
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_mtip_handle_tfe
LBB0_2:
Lloh6:
	adrp	x8, _PORT_IRQ_CONNECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORT_IRQ_CONNECT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w0, w8, w19
	bl	_unlikely
Lloh9:
	adrp	x21, _PORT_SCR_ERR@GOTPAGE
Lloh10:
	ldr	x21, [x21, _PORT_SCR_ERR@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x20]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #67108864
	bl	_writel
LBB0_4:
Lloh13:
	adrp	x8, _PORT_IRQ_PHYRDY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PORT_IRQ_PHYRDY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	and	w0, w8, w19
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x20]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #65536
	bl	_writel
LBB0_6:
Lloh18:
	adrp	x21, _PORT_IRQ_HANDLED@GOTPAGE
Lloh19:
	ldr	x21, [x21, _PORT_IRQ_HANDLED@GOTPAGEOFF]
	ldr	w8, [x21]
	bic	w0, w19, w8
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x20]
	ldr	w8, [x21]
	bic	w8, w19, w8
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_IRQ_TF_ERR,4,2            ; @PORT_IRQ_TF_ERR
	.comm	_PORT_IRQ_IF_ERR,4,2            ; @PORT_IRQ_IF_ERR
	.comm	_PORT_IRQ_CONNECT,4,2           ; @PORT_IRQ_CONNECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Clearing PxSERR.DIAG.x\n"

	.comm	_PORT_SCR_ERR,8,3               ; @PORT_SCR_ERR
	.comm	_PORT_IRQ_PHYRDY,4,2            ; @PORT_IRQ_PHYRDY
l_.str.1:                               ; @.str.1
	.asciz	"Clearing PxSERR.DIAG.n\n"

	.comm	_PORT_IRQ_HANDLED,4,2           ; @PORT_IRQ_HANDLED
l_.str.2:                               ; @.str.2
	.asciz	"Port stat errors %x unhandled\n"

	.no_dead_strip	_mtip_process_errors
.subsections_via_symbols
