	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_rc_hdrerr                 ## -- Begin function hfi1_rc_hdrerr
	.p2align	4, 0x90
_hfi1_rc_hdrerr:                        ## @hfi1_rc_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_rcd_to_iport
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_hfi1_ruc_check_hdr
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	callq	_ib_bth_get_psn
	movq	%rax, %r13
	movl	(%rbx), %edi
	callq	_ib_bth_get_opcode
	movq	_IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.2:
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_delta_psn
	cmpq	$0, 8(%r14)
	jne	LBB0_4
## %bb.3:
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	incl	(%r12)
	movq	_IB_NAK_PSN_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movl	(%r14), %eax
	movl	%eax, 4(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rc_defered_ack                 ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST,8,3 ## @IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST
	.comm	_IB_NAK_PSN_ERROR,8,3           ## @IB_NAK_PSN_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_rc_hdrerr                 ; -- Begin function hfi1_rc_hdrerr
	.p2align	2
_hfi1_rc_hdrerr:                        ; @hfi1_rc_hdrerr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_rcd_to_iport
	mov	x21, x0
	mov	x1, x22
	bl	_hfi1_ruc_check_hdr
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	w0, [x22]
	bl	_ib_bth_get_psn
	mov	x23, x0
	ldr	w0, [x22]
	bl	_ib_bth_get_opcode
Lloh0:
	adrp	x8, _IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_5
; %bb.2:
	ldr	w1, [x19]
	mov	x0, x23
	bl	_delta_psn
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_5
; %bb.3:
	tbnz	w0, #31, LBB0_5
; %bb.4:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
Lloh3:
	adrp	x8, _IB_NAK_PSN_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_NAK_PSN_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w8, [x19]
	str	w8, [x19, #4]
	mov	x0, x20
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rc_defered_ack
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST,8,3 ; @IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST
	.comm	_IB_NAK_PSN_ERROR,8,3           ; @IB_NAK_PSN_ERROR
.subsections_via_symbols
