	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_7220_errors
_sdma_7220_errors:                      ## @sdma_7220_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.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	16(%rdi), %r15
	movq	_QLOGIC_IB_E_SDMAERRS@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	8(%r15), %rax
	movq	(%rax), %rdx
	movl	%r14d, %esi
	movl	$8, %ecx
	callq	_qib_decode_7220_sdma_errs
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_SendBufMisuseErr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_MASK
	testl	%r14d, %eax
	je	LBB0_2
## %bb.1:
	movq	_kr_sendbuffererror@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_qib_read_kreg64
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rsi
	incq	%rsi
	movq	%r15, %rdi
	callq	_qib_read_kreg64
	movq	%rax, %r13
	movq	(%r12), %rsi
	addq	$2, %rsi
	movq	%r15, %rdi
	callq	_qib_read_kreg64
	movq	16(%rbx), %rdi
	movl	(%rdi), %edx
	movl	8(%rbx), %ecx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%rax, %r8
	movq	%r13, %r9
	xorl	%eax, %eax
	callq	_qib_dev_err
LBB0_2:
	movq	_SDmaUnexpDataErr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_MASK
	testl	%r14d, %eax
	je	LBB0_4
## %bb.3:
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	movl	8(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_qib_dev_err
LBB0_4:
	movl	4(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.5:
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.6:
	movq	_SDmaDisabledErr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_MASK
	testl	%r14d, %eax
	je	LBB0_11
## %bb.7:
	movq	_qib_sdma_event_e50_hw_cleaned@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_DISABLES_SDMA@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.9:
	movq	_qib_sdma_event_e7220_err_halted@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	___qib_sdma_process_event
LBB0_11:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QLOGIC_IB_E_SDMAERRS,4,2       ## @QLOGIC_IB_E_SDMAERRS
	.comm	_SendBufMisuseErr,4,2           ## @SendBufMisuseErr
	.comm	_kr_sendbuffererror,8,3         ## @kr_sendbuffererror
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IB%u:%u SendBufMisuse: %04lx %016lx %016lx\n"

	.comm	_SDmaUnexpDataErr,4,2           ## @SDmaUnexpDataErr
L_.str.1:                               ## @.str.1
	.asciz	"IB%u:%u SDmaUnexpData\n"

	.comm	_SDmaDisabledErr,4,2            ## @SDmaDisabledErr
	.comm	_qib_sdma_event_e50_hw_cleaned,4,2 ## @qib_sdma_event_e50_hw_cleaned
	.comm	_DISABLES_SDMA,4,2              ## @DISABLES_SDMA
	.comm	_qib_sdma_event_e7220_err_halted,4,2 ## @qib_sdma_event_e7220_err_halted
	.no_dead_strip	_sdma_7220_errors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_7220_errors
_sdma_7220_errors:                      ; @sdma_7220_errors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	x21, [x0, #16]
Lloh0:
	adrp	x8, _QLOGIC_IB_E_SDMAERRS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLOGIC_IB_E_SDMAERRS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w20, w8, w1
	ldr	x8, [x21, #8]
	ldr	x2, [x8]
	mov	x1, x20
	mov	w3, #8
	bl	_qib_decode_7220_sdma_errs
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _SendBufMisuseErr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SendBufMisuseErr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_ERR_MASK
	tst	w0, w20
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x24, _kr_sendbuffererror@GOTPAGE
Lloh7:
	ldr	x24, [x24, _kr_sendbuffererror@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x21
	bl	_qib_read_kreg64
	mov	x22, x0
	ldr	x8, [x24]
	add	x1, x8, #1
	mov	x0, x21
	bl	_qib_read_kreg64
	mov	x23, x0
	ldr	x8, [x24]
	add	x1, x8, #2
	mov	x0, x21
	bl	_qib_read_kreg64
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
	ldr	w3, [x19, #8]
	stp	x23, x22, [sp, #8]
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_qib_dev_err
LBB0_2:
Lloh10:
	adrp	x8, _SDmaUnexpDataErr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDmaUnexpDataErr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_ERR_MASK
	tst	w0, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
	ldr	w3, [x19, #8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_qib_dev_err
LBB0_4:
	ldr	w8, [x19, #4]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.6:
Lloh15:
	adrp	x8, _SDmaDisabledErr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SDmaDisabledErr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_ERR_MASK
	tst	w0, w20
	b.eq	LBB0_11
; %bb.7:
Lloh18:
	adrp	x8, _qib_sdma_event_e50_hw_cleaned@GOTPAGE
Lloh19:
	ldr	x8, [x8, _qib_sdma_event_e50_hw_cleaned@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh20:
	adrp	x8, _DISABLES_SDMA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DISABLES_SDMA@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.9:
Lloh23:
	adrp	x8, _qib_sdma_event_e7220_err_halted@GOTPAGE
Lloh24:
	ldr	x8, [x8, _qib_sdma_event_e7220_err_halted@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___qib_sdma_process_event
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_QLOGIC_IB_E_SDMAERRS,4,2       ; @QLOGIC_IB_E_SDMAERRS
	.comm	_SendBufMisuseErr,4,2           ; @SendBufMisuseErr
	.comm	_kr_sendbuffererror,8,3         ; @kr_sendbuffererror
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IB%u:%u SendBufMisuse: %04lx %016lx %016lx\n"

	.comm	_SDmaUnexpDataErr,4,2           ; @SDmaUnexpDataErr
l_.str.1:                               ; @.str.1
	.asciz	"IB%u:%u SDmaUnexpData\n"

	.comm	_SDmaDisabledErr,4,2            ; @SDmaDisabledErr
	.comm	_qib_sdma_event_e50_hw_cleaned,4,2 ; @qib_sdma_event_e50_hw_cleaned
	.comm	_DISABLES_SDMA,4,2              ; @DISABLES_SDMA
	.comm	_qib_sdma_event_e7220_err_halted,4,2 ; @qib_sdma_event_e7220_err_halted
	.no_dead_strip	_sdma_7220_errors
.subsections_via_symbols
