	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_rcv_hdrerr
_qib_rcv_hdrerr:                        ## @qib_rcv_hdrerr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_QLOGIC_IB_RHF_H_ICRCERR@GOTPCREL(%rip), %rax
	movq	_QLOGIC_IB_RHF_H_VCRCERR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movl	$1, %ebx
	testl	%ecx, %edx
	jne	LBB0_24
## %bb.1:
	movq	_QLOGIC_IB_RHF_H_TIDERR@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%ecx, (%rax)
	jne	LBB0_24
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %r14
	movq	16(%rbp), %rdi
	movq	8(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_qib_hdrget_length_in_bytes
	movl	%eax, %r13d
	movq	32(%r14), %rax
	movl	4(%rax), %edi
	callq	_be16_to_cpu
	movl	%eax, %r15d
	movq	32(%r14), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	cmpl	$24, %r13d
	jl	LBB0_24
## %bb.3:
	movl	%eax, %r14d
	movq	_IB_MULTICAST_LID_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	cmpl	%eax, %r15d
	jge	LBB0_5
## %bb.4:
	movb	(%r12), %cl
	shrl	%cl, %r15d
	shll	%cl, %r15d
	xorl	%edi, %edi
	cmpl	4(%r12), %r15d
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_24
LBB0_5:
	andl	$3, %r14d
	movq	_QIB_LRH_BTH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_7
## %bb.6:
	movq	24(%rbp), %rax
	leaq	24(%rax), %r13
LBB0_11:
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	(%r13), %rax
	movl	8(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%r13), %rax
	movl	4(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, %r15d
	movq	_RVT_QPN_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_QIB_MULTICAST_QPN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_24
## %bb.12:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	leaq	16(%r12), %r13
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_rvt_lookup_qpn
	testq	%rax, %rax
	je	LBB0_23
## %bb.13:
	movq	%rax, %r15
	leaq	8(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	_ib_rvt_state_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	_RVT_PROCESS_RECV_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_14
## %bb.15:
	cmpl	$131, 32(%r15)
	jne	LBB0_22
## %bb.16:
	movq	%r15, %r12
	movq	_QIB_LRH_GRH@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpl	(%rax), %r14d
	sete	%r15b
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_be32_to_cpu
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	24(%rbp), %rsi
	movl	%r15d, %edx
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_qib_ruc_check_hdr
	testl	%eax, %eax
	jne	LBB0_22
## %bb.17:
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	sarl	$24, %ecx
	movq	_IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jge	LBB0_22
## %bb.18:
	movl	20(%r12), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_qib_cmp24
	cmpl	$0, 28(%r12)
	jne	LBB0_22
## %bb.19:
	testl	%eax, %eax
	js	LBB0_22
## %bb.20:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	movq	_IB_NAK_PSN_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movl	20(%r12), %eax
	movl	%eax, 24(%r12)
	movq	%r12, %r15
	addq	$12, %r15
	movq	%r15, %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movq	_RVT_R_RSP_NAK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r12)
	movq	%r12, %rdi
	callq	_rvt_get_qp
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	jmp	LBB0_22
LBB0_7:
	movq	_QIB_LRH_GRH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	movq	24(%rbp), %r15
	jne	LBB0_24
## %bb.8:
	movq	(%r15), %rax
	movq	_IB_GRH_NEXT_HDR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.9:
	movl	8(%r15), %edi
	callq	_be32_to_cpu
	movq	_IB_GRH_VERSION_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_IB_GRH_VERSION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_24
## %bb.10:
	leaq	16(%r15), %r13
	jmp	LBB0_11
LBB0_14:
	incl	20(%r12)
LBB0_22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
LBB0_23:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_24:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLOGIC_IB_RHF_H_ICRCERR,4,2    ## @QLOGIC_IB_RHF_H_ICRCERR
	.comm	_QLOGIC_IB_RHF_H_VCRCERR,4,2    ## @QLOGIC_IB_RHF_H_VCRCERR
	.comm	_QLOGIC_IB_RHF_H_TIDERR,4,2     ## @QLOGIC_IB_RHF_H_TIDERR
	.comm	_IB_MULTICAST_LID_BASE,4,2      ## @IB_MULTICAST_LID_BASE
	.comm	_QIB_LRH_BTH,4,2                ## @QIB_LRH_BTH
	.comm	_QIB_LRH_GRH,4,2                ## @QIB_LRH_GRH
	.comm	_IB_GRH_NEXT_HDR,8,3            ## @IB_GRH_NEXT_HDR
	.comm	_IB_GRH_VERSION_SHIFT,4,2       ## @IB_GRH_VERSION_SHIFT
	.comm	_IB_GRH_VERSION,4,2             ## @IB_GRH_VERSION
	.comm	_RVT_QPN_MASK,4,2               ## @RVT_QPN_MASK
	.comm	_QIB_MULTICAST_QPN,4,2          ## @QIB_MULTICAST_QPN
	.comm	_ib_rvt_state_ops,8,3           ## @ib_rvt_state_ops
	.comm	_RVT_PROCESS_RECV_OK,4,2        ## @RVT_PROCESS_RECV_OK
	.comm	_IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST,4,2 ## @IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST
	.comm	_IB_NAK_PSN_ERROR,4,2           ## @IB_NAK_PSN_ERROR
	.comm	_RVT_R_RSP_NAK,4,2              ## @RVT_R_RSP_NAK
	.no_dead_strip	_qib_rcv_hdrerr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_rcv_hdrerr
_qib_rcv_hdrerr:                        ; @qib_rcv_hdrerr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _QLOGIC_IB_RHF_H_ICRCERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLOGIC_IB_RHF_H_ICRCERR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _QLOGIC_IB_RHF_H_VCRCERR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QLOGIC_IB_RHF_H_VCRCERR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w3
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_26
LBB0_2:
Lloh6:
	adrp	x8, _QLOGIC_IB_RHF_H_TIDERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLOGIC_IB_RHF_H_TIDERR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ne	LBB0_25
; %bb.3:
	mov	x20, x7
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x1, #8]
	mov	x0, x6
	bl	_qib_hdrget_length_in_bytes
	mov	x25, x0
	ldr	x8, [x20, #32]
	ldr	w0, [x8, #4]
	bl	_be16_to_cpu
	mov	x24, x0
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
	bl	_be16_to_cpu
	cmp	w25, #24
	b.lt	LBB0_25
; %bb.4:
	mov	x23, x0
Lloh9:
	adrp	x8, _IB_MULTICAST_LID_BASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_MULTICAST_LID_BASE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_be16_to_cpu
	cmp	w24, w0
	b.ge	LBB0_6
; %bb.5:
	mov	w8, #-1
	ldp	w9, w10, [x21]
	lsl	w8, w8, w9
	and	w8, w8, w24
	cmp	w8, w10
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_25
LBB0_6:
	and	w27, w23, #0x3
Lloh12:
	adrp	x8, _QIB_LRH_BTH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QIB_LRH_BTH@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ne	LBB0_18
; %bb.7:
	add	x28, x20, #24
LBB0_8:
	ldr	x8, [x28]
	ldr	w0, [x8]
	bl	_be32_to_cpu
	mov	x26, x0
	ldr	x8, [x28]
	ldr	w0, [x8, #8]
	bl	_be32_to_cpu
	mov	x25, x0
	ldr	x8, [x28]
	ldr	w0, [x8, #4]
	bl	_be32_to_cpu
Lloh15:
	adrp	x8, _RVT_QPN_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RVT_QPN_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w23, w8, w0
Lloh18:
	adrp	x8, _QIB_MULTICAST_QPN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QIB_MULTICAST_QPN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w23, w8
	b.eq	LBB0_25
; %bb.9:
	add	x24, x21, #16
	bl	_rcu_read_lock
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_rvt_lookup_qpn
	cbz	x0, LBB0_24
; %bb.10:
	mov	x23, x0
	add	x22, x0, #8
	mov	x0, x22
	bl	_spin_lock
Lloh21:
	adrp	x8, _ib_rvt_state_ops@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ib_rvt_state_ops@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x9, [x23]
	ldr	w8, [x8, x9, lsl #2]
Lloh24:
	adrp	x9, _RVT_PROCESS_RECV_OK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RVT_PROCESS_RECV_OK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.11:
	ldr	w8, [x23, #32]
	cmp	w8, #131
	b.ne	LBB0_23
; %bb.12:
Lloh27:
	adrp	x8, _QIB_LRH_GRH@GOTPAGE
Lloh28:
	ldr	x8, [x8, _QIB_LRH_GRH@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w27, w8
	cset	w21, eq
	ldr	x8, [x28]
	ldr	w0, [x8]
	bl	_be32_to_cpu
	mov	x4, x0
	mov	x0, x24
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	bl	_qib_ruc_check_hdr
	cbnz	w0, LBB0_23
; %bb.13:
	asr	w8, w26, #24
Lloh30:
	adrp	x9, _IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_23
; %bb.14:
	ldr	w1, [x23, #20]
	mov	x0, x25
	bl	_qib_cmp24
	ldr	w8, [x23, #28]
	cbnz	w8, LBB0_23
; %bb.15:
	tbnz	w0, #31, LBB0_23
; %bb.16:
	ldr	w8, [x24]
	add	w8, w8, #1
Lloh33:
	adrp	x9, _IB_NAK_PSN_ERROR@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IB_NAK_PSN_ERROR@GOTPAGEOFF]
	str	w8, [x24]
Lloh35:
	ldr	w8, [x9]
	ldr	w9, [x23, #20]
	stp	w9, w8, [x23, #24]
	add	x20, x23, #12
	mov	x0, x20
	bl	_list_empty
	cbz	w0, LBB0_23
; %bb.17:
Lloh36:
	adrp	x8, _RVT_R_RSP_NAK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RVT_R_RSP_NAK@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	ldr	w9, [x23, #16]
	orr	w8, w9, w8
	str	w8, [x23, #16]
	mov	x0, x23
	bl	_rvt_get_qp
	mov	x0, x20
	mov	x1, x19
	bl	_list_add_tail
	b	LBB0_23
LBB0_18:
Lloh39:
	adrp	x8, _QIB_LRH_GRH@GOTPAGE
Lloh40:
	ldr	x8, [x8, _QIB_LRH_GRH@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ne	LBB0_25
; %bb.19:
	ldr	x8, [x20]
Lloh42:
	adrp	x9, _IB_GRH_NEXT_HDR@GOTPAGE
Lloh43:
	ldr	x9, [x9, _IB_GRH_NEXT_HDR@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.20:
	ldr	w0, [x20, #8]
	bl	_be32_to_cpu
Lloh45:
	adrp	x8, _IB_GRH_VERSION_SHIFT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _IB_GRH_VERSION_SHIFT@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	asr	w8, w0, w8
Lloh48:
	adrp	x9, _IB_GRH_VERSION@GOTPAGE
Lloh49:
	ldr	x9, [x9, _IB_GRH_VERSION@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_25
; %bb.21:
	add	x28, x20, #16
	b	LBB0_8
LBB0_22:
	ldr	w8, [x21, #20]
	add	w8, w8, #1
	str	w8, [x21, #20]
LBB0_23:
	mov	x0, x22
	bl	_spin_unlock
LBB0_24:
	bl	_rcu_read_unlock
LBB0_25:
	mov	w0, #0
LBB0_26:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_QLOGIC_IB_RHF_H_ICRCERR,4,2    ; @QLOGIC_IB_RHF_H_ICRCERR
	.comm	_QLOGIC_IB_RHF_H_VCRCERR,4,2    ; @QLOGIC_IB_RHF_H_VCRCERR
	.comm	_QLOGIC_IB_RHF_H_TIDERR,4,2     ; @QLOGIC_IB_RHF_H_TIDERR
	.comm	_IB_MULTICAST_LID_BASE,4,2      ; @IB_MULTICAST_LID_BASE
	.comm	_QIB_LRH_BTH,4,2                ; @QIB_LRH_BTH
	.comm	_QIB_LRH_GRH,4,2                ; @QIB_LRH_GRH
	.comm	_IB_GRH_NEXT_HDR,8,3            ; @IB_GRH_NEXT_HDR
	.comm	_IB_GRH_VERSION_SHIFT,4,2       ; @IB_GRH_VERSION_SHIFT
	.comm	_IB_GRH_VERSION,4,2             ; @IB_GRH_VERSION
	.comm	_RVT_QPN_MASK,4,2               ; @RVT_QPN_MASK
	.comm	_QIB_MULTICAST_QPN,4,2          ; @QIB_MULTICAST_QPN
	.comm	_ib_rvt_state_ops,8,3           ; @ib_rvt_state_ops
	.comm	_RVT_PROCESS_RECV_OK,4,2        ; @RVT_PROCESS_RECV_OK
	.comm	_IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST,4,2 ; @IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST
	.comm	_IB_NAK_PSN_ERROR,4,2           ; @IB_NAK_PSN_ERROR
	.comm	_RVT_R_RSP_NAK,4,2              ; @RVT_R_RSP_NAK
	.no_dead_strip	_qib_rcv_hdrerr
.subsections_via_symbols
