	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_7322_p_errors
_sdma_7322_p_errors:                    ## @sdma_7322_p_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	_QIB_E_P_SDMAERRS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movq	32(%rdi), %r15
	movl	(%rax), %edi
	movq	_qib_7322p_error_msgs@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4, %esi
	movl	%ebx, %edx
	callq	_err_decode
	movq	_QIB_E_P_SDMAUNEXPDATA@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edx
	movl	24(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_qib_dev_err
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_QIB_E_P_SDMAHALT@GOTPCREL(%rip), %r12
	cmpl	(%r12), %ebx
	je	LBB0_4
## %bb.3:
	movl	24(%r14), %esi
	movq	_qib_sdma_state_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movq	16(%r14), %rdx
	movl	(%rax,%rcx,4), %ecx
	movl	(%rdx), %r9d
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %r8d
	callq	_qib_dev_porterr
	movq	%r14, %rdi
	callq	_dump_sdma_7322_state
LBB0_4:
	movq	8(%r14), %rax
	addq	$-128, %rax
	cmpq	$5, %rax
	ja	LBB0_14
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movq	_qib_sdma_event_e7322_err_halted@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	___qib_sdma_process_event
	jmp	LBB0_12
LBB0_10:
	testl	%ebx, (%r12)
	je	LBB0_14
LBB0_12:
	movq	_qib_sdma_event_e60_hw_halted@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	testl	%ebx, (%r12)
	je	LBB0_14
## %bb.9:
	movq	_qib_sdma_event_e50_hw_cleaned@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_6:
	testl	%ebx, (%r12)
	je	LBB0_14
## %bb.7:
	movq	_qib_sdma_event_e20_hw_started@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	___qib_sdma_process_event
LBB0_14:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_QIB_E_P_SDMAERRS,4,2           ## @QIB_E_P_SDMAERRS
	.comm	_qib_7322p_error_msgs,4,2       ## @qib_7322p_error_msgs
	.comm	_QIB_E_P_SDMAUNEXPDATA,4,2      ## @QIB_E_P_SDMAUNEXPDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IB%u:%u SDmaUnexpData\n"

	.comm	_QIB_E_P_SDMAHALT,4,2           ## @QIB_E_P_SDMAHALT
L_.str.1:                               ## @.str.1
	.asciz	"SDMA %s 0x%016llx %s\n"

	.comm	_qib_sdma_state_names,8,3       ## @qib_sdma_state_names
	.comm	_qib_sdma_event_e20_hw_started,4,2 ## @qib_sdma_event_e20_hw_started
	.comm	_qib_sdma_event_e50_hw_cleaned,4,2 ## @qib_sdma_event_e50_hw_cleaned
	.comm	_qib_sdma_event_e60_hw_halted,4,2 ## @qib_sdma_event_e60_hw_halted
	.comm	_qib_sdma_event_e7322_err_halted,4,2 ## @qib_sdma_event_e7322_err_halted
	.no_dead_strip	_sdma_7322_p_errors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_7322_p_errors
_sdma_7322_p_errors:                    ; @sdma_7322_p_errors
	.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	x21, [x0, #32]
Lloh0:
	adrp	x8, _QIB_E_P_SDMAERRS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QIB_E_P_SDMAERRS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w20, w8, w1
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _qib_7322p_error_msgs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qib_7322p_error_msgs@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	w1, #4
	mov	x2, x20
	bl	_err_decode
Lloh6:
	adrp	x8, _QIB_E_P_SDMAUNEXPDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QIB_E_P_SDMAUNEXPDATA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	w2, [x21]
	ldr	w3, [x19, #24]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_qib_dev_err
LBB0_2:
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh11:
	adrp	x22, _QIB_E_P_SDMAHALT@GOTPAGE
Lloh12:
	ldr	x22, [x22, _QIB_E_P_SDMAHALT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w20, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x19, #24]
Lloh13:
	adrp	x8, _qib_sdma_state_names@GOTPAGE
Lloh14:
	ldr	x8, [x8, _qib_sdma_state_names@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldp	x9, x10, [x19, #8]
	ldr	w3, [x8, x9, lsl #2]
	ldr	w5, [x10]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x4, x20
	bl	_qib_dev_porterr
	mov	x0, x19
	bl	_dump_sdma_7322_state
LBB0_4:
	ldr	x8, [x19, #8]
	sub	x8, x8, #128
	cmp	x8, #5
	b.hi	LBB0_14
; %bb.5:
Lloh18:
	adrp	x9, lJTI0_0@PAGE
Lloh19:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
Lloh20:
	adrp	x8, _qib_sdma_event_e7322_err_halted@GOTPAGE
Lloh21:
	ldr	x8, [x8, _qib_sdma_event_e7322_err_halted@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___qib_sdma_process_event
	b	LBB0_8
LBB0_7:
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_14
LBB0_8:
Lloh23:
	adrp	x8, _qib_sdma_event_e60_hw_halted@GOTPAGE
Lloh24:
	ldr	x8, [x8, _qib_sdma_event_e60_hw_halted@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.10:
Lloh25:
	adrp	x8, _qib_sdma_event_e50_hw_cleaned@GOTPAGE
Lloh26:
	ldr	x8, [x8, _qib_sdma_event_e50_hw_cleaned@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.12:
Lloh27:
	adrp	x8, _qib_sdma_event_e20_hw_started@GOTPAGE
Lloh28:
	ldr	x8, [x8, _qib_sdma_event_e20_hw_started@GOTPAGEOFF]
LBB0_13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___qib_sdma_process_event
LBB0_14:
	mov	x0, x19
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
                                        ; -- End function
	.comm	_QIB_E_P_SDMAERRS,4,2           ; @QIB_E_P_SDMAERRS
	.comm	_qib_7322p_error_msgs,4,2       ; @qib_7322p_error_msgs
	.comm	_QIB_E_P_SDMAUNEXPDATA,4,2      ; @QIB_E_P_SDMAUNEXPDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IB%u:%u SDmaUnexpData\n"

	.comm	_QIB_E_P_SDMAHALT,4,2           ; @QIB_E_P_SDMAHALT
l_.str.1:                               ; @.str.1
	.asciz	"SDMA %s 0x%016llx %s\n"

	.comm	_qib_sdma_state_names,8,3       ; @qib_sdma_state_names
	.comm	_qib_sdma_event_e20_hw_started,4,2 ; @qib_sdma_event_e20_hw_started
	.comm	_qib_sdma_event_e50_hw_cleaned,4,2 ; @qib_sdma_event_e50_hw_cleaned
	.comm	_qib_sdma_event_e60_hw_halted,4,2 ; @qib_sdma_event_e60_hw_halted
	.comm	_qib_sdma_event_e7322_err_halted,4,2 ; @qib_sdma_event_e7322_err_halted
	.no_dead_strip	_sdma_7322_p_errors
.subsections_via_symbols
