	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_rc_ack                      ## -- Begin function do_rc_ack
	.p2align	4, 0x90
_do_rc_ack:                             ## @do_rc_ack
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movl	%r8d, -72(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	88(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	addq	$80, %rdi
	callq	_lockdep_assert_held
	movq	_IB_AETH_NAK_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, %eax
	sarl	%cl, %eax
	leal	-1(%rbx), %r15d
	testl	%eax, %eax
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	cmovel	%ebx, %r15d
	movq	(%r12), %rsi
	movq	%r12, %rdi
	callq	_rvt_get_swqe_ptr
	movq	%rax, %rbx
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_rcd_to_iport
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_IB_WR_ATOMIC_CMP_AND_SWP@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movl	%r15d, %edi
	callq	_delta_psn
	testl	%eax, %eax
	js	LBB0_38
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r14d
	movq	8(%rbx), %rax
	movq	_IB_WR_RDMA_READ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_RDMA_READ_RESPONSE_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	je	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rax
	movq	_IB_WR_RDMA_READ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rcx, %rax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_RDMA_READ_RESPONSE_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_95
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_95
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rax
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_IB_WR_TID_RDMA_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_READ_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TID_OP
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_95
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_95
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rax
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	(%r13), %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_IB_WR_ATOMIC_FETCH_AND_ADD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_ATOMIC_ACKNOWLEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_95
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_95
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rax
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_IB_WR_TID_RDMA_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r12), %esi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_delta_psn
	cmpl	$1, %eax
	jne	LBB0_95
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rax
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	(%r13), %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_IB_WR_ATOMIC_FETCH_AND_ADD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rcx)
LBB0_26:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_IB_WR_OPFN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	_opfn_conn_reply
LBB0_28:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	72(%r12), %rax
	testq	%rax, %rax
	je	LBB0_36
## %bb.29:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rcx
	movq	_IB_WR_RDMA_READ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	(%r13), %rcx
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_IB_WR_ATOMIC_FETCH_AND_ADD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_36
LBB0_32:                                ##   in Loop: Header=BB0_1 Depth=1
	decq	%rax
	movq	%rax, 72(%r12)
	movl	12(%r12), %ecx
	movq	_RVT_S_WAIT_FENCE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_1 Depth=1
	testq	%rax, %rax
	je	LBB0_35
LBB0_34:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_RVT_S_WAIT_RDMAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%ecx, %edx
	je	LBB0_36
LBB0_35:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_RVT_S_WAIT_ACK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, 12(%r12)
	movq	%r12, %rdi
	callq	_hfi1_schedule_send
LBB0_36:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rax
	movq	_IB_WR_TID_RDMA_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_do_rc_completion
	movq	%rax, %rbx
	movq	(%r12), %rax
	cmpq	16(%r12), %rax
	jne	LBB0_1
LBB0_38:
	movq	%r12, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %edx
	movq	%rbx, %rcx
	callq	_trace_hfi1_rc_ack_do
	movq	%r12, %rdi
	callq	_trace_hfi1_sender_do_rc_ack
	movq	_IB_AETH_NAK_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r15d, %eax
	sarl	%cl, %eax
	xorl	%r14d, %r14d
	cmpl	$3, %eax
	je	LBB0_80
## %bb.39:
	cmpl	$1, %eax
	je	LBB0_68
## %bb.40:
	testl	%eax, %eax
	jne	LBB0_93
## %bb.41:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	(%rax), %edi
	callq	_this_cpu_inc
	movq	8(%rbx), %rax
	movq	_IB_WR_TID_RDMA_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_45
## %bb.42:
	movq	%rbx, %rdi
	callq	_wqe_to_tid_req
	cmpl	$0, (%rax)
	je	LBB0_44
## %bb.43:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %esi
	movq	%r12, %rdi
	callq	_rvt_mod_retry_timer_ext
	jmp	LBB0_62
LBB0_95:
	movq	%r12, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_restart_qp
	xorl	%r14d, %r14d
	jmp	LBB0_93
LBB0_80:
	movq	(%r12), %rax
	cmpq	16(%r12), %rax
	je	LBB0_93
## %bb.81:
	movq	%r12, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_update_last_psn
	movq	_IB_AETH_CREDIT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r15d
	movq	_IB_AETH_CREDIT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	cmpl	$3, %r15d
	ja	LBB0_93
## %bb.82:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_83:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	8(%rax)
	movq	%r12, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_hfi1_restart_rc
	movq	%r12, %rdi
	callq	_hfi1_schedule_send
	jmp	LBB0_92
LBB0_68:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	12(%rax)
	movq	(%r12), %rax
	cmpq	16(%r12), %rax
	je	LBB0_93
## %bb.69:
	movq	_RVT_S_WAIT_RNR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r12)
	jne	LBB0_93
## %bb.70:
	movl	64(%r12), %edi
	callq	_ib_to_rvt
	movl	40(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_71
## %bb.74:
	movl	44(%r12), %eax
	decl	%eax
	cmpl	$5, %eax
	ja	LBB0_76
## %bb.75:
	decl	%ecx
	movl	%ecx, 40(%r12)
	jmp	LBB0_76
LBB0_5:
	movl	$1, %r14d
	jmp	LBB0_93
LBB0_45:
	movq	(%r12), %rax
	cmpq	16(%r12), %rax
	jne	LBB0_46
## %bb.60:
	movq	%r12, %rdi
	callq	_rvt_stop_rc_timers
	movl	32(%r12), %edi
	movl	%r13d, %esi
	callq	_cmp_psn
	testl	%eax, %eax
	jg	LBB0_62
## %bb.61:
	movq	_SEND_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP
	movl	%eax, 36(%r12)
	leal	1(%r13), %eax
	movl	%eax, 32(%r12)
	jmp	LBB0_62
LBB0_46:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	_HFI1_QP_WQE_INVALID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_57
## %bb.47:
	movq	%r12, %rdi
	callq	_rvt_get_swqe_ptr
	testq	%rax, %rax
	je	LBB0_57
## %bb.48:
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	_IB_WR_TID_RDMA_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_57
## %bb.49:
	movq	_WRITE_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TID_OP
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_57
## %bb.50:
	movl	8(%r12), %esi
	incl	%esi
	movl	%r13d, %edi
	callq	_cmp_psn
	testl	%eax, %eax
	je	LBB0_51
## %bb.59:
	movq	%r12, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_restart_qp
	jmp	LBB0_93
LBB0_57:
	movq	%r12, %rdi
	callq	_rvt_mod_retry_timer
	movl	32(%r12), %edi
	movl	%r13d, %esi
	callq	_cmp_psn
	testl	%eax, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jg	LBB0_62
## %bb.58:
	leal	1(%r13), %esi
	movq	%r12, %rdi
	callq	_reset_psn
	jmp	LBB0_62
LBB0_44:
	movq	%r12, %rdi
	callq	_rvt_stop_rc_timers
LBB0_62:
	movl	12(%r12), %eax
	movq	_RVT_S_WAIT_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_64
## %bb.63:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 12(%r12)
	movq	%r12, %rdi
	callq	_hfi1_schedule_send
LBB0_64:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_rvt_get_credit
	movl	44(%r12), %eax
	movl	56(%r12), %ecx
	movl	%eax, 40(%r12)
	movl	%ecx, 60(%r12)
	movq	8(%rbx), %rax
	movq	_IB_WR_TID_RDMA_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_67
## %bb.65:
	movq	_WRITE_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TID_OP
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_67
## %bb.66:
	movl	4(%rbx), %esi
	movl	%r13d, %edi
	callq	_cmp_psn
	movl	$1, %r14d
	testl	%eax, %eax
	jns	LBB0_94
LBB0_67:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_update_last_psn
	movl	$1, %r14d
	jmp	LBB0_94
LBB0_84:
	movq	_IB_WC_REM_INV_REQ_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_87
LBB0_85:
	movq	_IB_WC_REM_ACCESS_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_87
LBB0_86:
	movq	_IB_WC_REM_OP_ERR@GOTPCREL(%rip), %rax
LBB0_87:
	movl	(%rax), %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax)
LBB0_88:
	movq	48(%r12), %rax
	cmpq	(%r12), %rax
	jne	LBB0_92
## %bb.89:
	movq	8(%rbx), %rax
	movq	_IB_WR_TID_RDMA_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_91
## %bb.90:
	movq	%r12, %rdi
	callq	_hfi1_kern_read_tid_flow_free
LBB0_91:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_hfi1_trdma_send_complete
	movq	_IB_WC_WR_FLUSH_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rvt_error_qp
LBB0_92:
	movl	44(%r12), %eax
	movl	56(%r12), %ecx
	movl	%ecx, 60(%r12)
	movl	%eax, 40(%r12)
LBB0_93:
	movq	%r12, %rdi
	callq	_rvt_stop_rc_timers
LBB0_94:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_71:
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	_RVT_OPERATION_IGN_RNR_CNT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_73
## %bb.72:
	cmpl	$0, 44(%r12)
	je	LBB0_76
LBB0_73:
	movq	_IB_WC_RNR_RETRY_EXC_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_88
LBB0_76:
	movq	8(%rbx), %rax
	movq	_IB_WR_TID_RDMA_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_78
## %bb.77:
	movl	8(%r12), %esi
	incl	%esi
	jmp	LBB0_79
LBB0_78:
	movq	%r12, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_update_last_psn
	movl	%r13d, %esi
LBB0_79:
	movq	%r12, %rdi
	callq	_reset_psn
	movl	32(%r12), %edi
	movl	%r13d, %esi
	callq	_delta_psn
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, (%rcx)
	movq	_RVT_S_WAIT_SSN_CREDIT@GOTPCREL(%rip), %rax
	movq	_RVT_S_WAIT_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, 12(%r12)
	movq	%r12, %rdi
	callq	_rvt_stop_rc_timers
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_rvt_add_rnr_timer
	xorl	%r14d, %r14d
	jmp	LBB0_94
LBB0_51:
	movq	24(%r12), %rax
	cmpq	16(%r12), %rax
	je	LBB0_54
## %bb.52:
	movl	32(%r12), %edi
	movl	%r13d, %esi
	callq	_cmp_psn
	testl	%eax, %eax
	jle	LBB0_53
LBB0_54:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	decl	8(%rax)
	je	LBB0_56
## %bb.55:
	movq	%r12, %rdi
	callq	_rvt_mod_retry_timer
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_62
LBB0_56:
	movq	%r12, %rdi
	callq	_rvt_stop_rc_timers
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_62
LBB0_53:
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_update_qp_retry_state
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_62
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_83, LBB0_83-LJTI0_0
.set L0_0_set_84, LBB0_84-LJTI0_0
.set L0_0_set_85, LBB0_85-LJTI0_0
.set L0_0_set_86, LBB0_86-LJTI0_0
LJTI0_0:
	.long	L0_0_set_83
	.long	L0_0_set_84
	.long	L0_0_set_85
	.long	L0_0_set_86
	.end_data_region
                                        ## -- End function
	.comm	_IB_AETH_NAK_SHIFT,4,2          ## @IB_AETH_NAK_SHIFT
	.comm	_IB_WR_RDMA_READ,8,3            ## @IB_WR_RDMA_READ
	.comm	_RDMA_READ_RESPONSE_ONLY,4,2    ## @RDMA_READ_RESPONSE_ONLY
	.comm	_RDMA_READ_RESPONSE_LAST,4,2    ## @RDMA_READ_RESPONSE_LAST
	.comm	_IB_WR_TID_RDMA_READ,8,3        ## @IB_WR_TID_RDMA_READ
	.comm	_READ_RESP,4,2                  ## @READ_RESP
	.comm	_IB_WR_ATOMIC_CMP_AND_SWP,8,3   ## @IB_WR_ATOMIC_CMP_AND_SWP
	.comm	_IB_WR_ATOMIC_FETCH_AND_ADD,8,3 ## @IB_WR_ATOMIC_FETCH_AND_ADD
	.comm	_ATOMIC_ACKNOWLEDGE,4,2         ## @ATOMIC_ACKNOWLEDGE
	.comm	_IB_WR_TID_RDMA_WRITE,8,3       ## @IB_WR_TID_RDMA_WRITE
	.comm	_IB_WR_OPFN,8,3                 ## @IB_WR_OPFN
	.comm	_RVT_S_WAIT_FENCE,4,2           ## @RVT_S_WAIT_FENCE
	.comm	_RVT_S_WAIT_ACK,4,2             ## @RVT_S_WAIT_ACK
	.comm	_RVT_S_WAIT_RDMAR,4,2           ## @RVT_S_WAIT_RDMAR
	.comm	_HFI1_QP_WQE_INVALID,8,3        ## @HFI1_QP_WQE_INVALID
	.comm	_WRITE_RESP,4,2                 ## @WRITE_RESP
	.comm	_SEND_LAST,4,2                  ## @SEND_LAST
	.comm	_RVT_S_WAIT_RNR,4,2             ## @RVT_S_WAIT_RNR
	.comm	_RVT_OPERATION_IGN_RNR_CNT,4,2  ## @RVT_OPERATION_IGN_RNR_CNT
	.comm	_IB_WC_RNR_RETRY_EXC_ERR,4,2    ## @IB_WC_RNR_RETRY_EXC_ERR
	.comm	_RVT_S_WAIT_SSN_CREDIT,4,2      ## @RVT_S_WAIT_SSN_CREDIT
	.comm	_IB_AETH_CREDIT_SHIFT,4,2       ## @IB_AETH_CREDIT_SHIFT
	.comm	_IB_AETH_CREDIT_MASK,4,2        ## @IB_AETH_CREDIT_MASK
	.comm	_IB_WC_REM_INV_REQ_ERR,4,2      ## @IB_WC_REM_INV_REQ_ERR
	.comm	_IB_WC_REM_ACCESS_ERR,4,2       ## @IB_WC_REM_ACCESS_ERR
	.comm	_IB_WC_REM_OP_ERR,4,2           ## @IB_WC_REM_OP_ERR
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ## @IB_WC_WR_FLUSH_ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_rc_ack                      ; -- Begin function do_rc_ack
	.p2align	2
_do_rc_ack:                             ; @do_rc_ack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x22, x5
	mov	x27, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #88]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	add	x0, x0, #80
	bl	_lockdep_assert_held
Lloh0:
	adrp	x8, _IB_AETH_NAK_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_AETH_NAK_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w21, w20, [sp, #24]             ; 8-byte Folded Spill
	asr	w8, w21, w8
	sub	w9, w20, #1
	cmp	w8, #0
	str	w9, [sp, #4]                    ; 4-byte Folded Spill
	csel	w28, w20, w9, eq
	ldr	x1, [x19]
	mov	x0, x19
	bl	_rvt_get_swqe_ptr
	mov	x21, x0
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x22
	bl	_rcd_to_iport
	mov	x24, x0
Lloh3:
	adrp	x25, _IB_WR_RDMA_READ@GOTPAGE
Lloh4:
	ldr	x25, [x25, _IB_WR_RDMA_READ@GOTPAGEOFF]
Lloh5:
	adrp	x20, _IB_WR_ATOMIC_CMP_AND_SWP@GOTPAGE
Lloh6:
	ldr	x20, [x20, _IB_WR_ATOMIC_CMP_AND_SWP@GOTPAGEOFF]
Lloh7:
	adrp	x26, _IB_WR_ATOMIC_FETCH_AND_ADD@GOTPAGE
Lloh8:
	ldr	x26, [x26, _IB_WR_ATOMIC_FETCH_AND_ADD@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x28
	bl	_delta_psn
	tbnz	w0, #31, LBB0_31
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x22, x0
	ldr	x8, [x21, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh9:
	adrp	x8, _RDMA_READ_RESPONSE_ONLY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RDMA_READ_RESPONSE_ONLY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_OP
	cmp	w0, w23
	ccmp	w22, #0, #0, eq
	b.eq	LBB0_46
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x25]
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh12:
	adrp	x8, _RDMA_READ_RESPONSE_LAST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RDMA_READ_RESPONSE_LAST@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_OP
	cmp	w0, w23
	ccmp	w22, #0, #0, eq
	b.ne	LBB0_55
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x21, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
Lloh15:
	adrp	x9, _IB_WR_TID_RDMA_READ@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IB_WR_TID_RDMA_READ@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh18:
	adrp	x8, _READ_RESP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _READ_RESP@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_TID_OP
	cmp	w0, w23
	ccmp	w22, #0, #0, eq
	b.ne	LBB0_55
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x21, #8]
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x20]
	ldr	x10, [x26]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh21:
	adrp	x8, _ATOMIC_ACKNOWLEDGE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ATOMIC_ACKNOWLEDGE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_OP
	cmp	w0, w23
	ccmp	w22, #0, #0, eq
	b.ne	LBB0_55
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x21, #8]
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh24:
	adrp	x9, _IB_WR_TID_RDMA_WRITE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IB_WR_TID_RDMA_WRITE@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x19, #8]
	ldr	w0, [sp, #28]                   ; 4-byte Folded Reload
	bl	_delta_psn
	cmp	w0, #1
	b.ne	LBB0_55
; %bb.16:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x21, #8]
LBB0_17:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x20]
	ldr	x10, [x26]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x21, #16]
	ldr	x9, [x9]
	str	w27, [x9]
LBB0_19:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh27:
	adrp	x9, _IB_WR_OPFN@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IB_WR_OPFN@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x27
	bl	_opfn_conn_reply
LBB0_21:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_29
; %bb.22:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x21, #8]
	ldr	x10, [x25]
	cmp	x9, x10
	b.eq	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x10, [x20]
	cmp	x9, x10
	b.eq	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x10, [x26]
	cmp	x9, x10
	b.ne	LBB0_29
LBB0_25:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x10, x8, #1
	str	x10, [x19, #72]
	ldr	w8, [x19, #12]
Lloh30:
	adrp	x9, _RVT_S_WAIT_FENCE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RVT_S_WAIT_FENCE@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_1 Depth=1
	cbz	x10, LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh33:
	adrp	x9, _RVT_S_WAIT_RDMAR@GOTPAGE
Lloh34:
	ldr	x9, [x9, _RVT_S_WAIT_RDMAR@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh36:
	adrp	x10, _RVT_S_WAIT_ACK@GOTPAGE
Lloh37:
	ldr	x10, [x10, _RVT_S_WAIT_ACK@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w8, w8, w9
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_hfi1_schedule_send
LBB0_29:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x21, #8]
Lloh39:
	adrp	x9, _IB_WR_TID_RDMA_WRITE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _IB_WR_TID_RDMA_WRITE@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	bl	_do_rc_completion
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_1
LBB0_31:
	mov	x0, x19
	ldp	w25, w20, [sp, #24]             ; 8-byte Folded Reload
	mov	x1, x25
	mov	x2, x20
	mov	x3, x21
	bl	_trace_hfi1_rc_ack_do
	mov	x0, x19
	bl	_trace_hfi1_sender_do_rc_ack
Lloh42:
	adrp	x8, _IB_AETH_NAK_SHIFT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IB_AETH_NAK_SHIFT@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	asr	w8, w25, w8
	cmp	w8, #3
	b.eq	LBB0_37
; %bb.32:
	cmp	w8, #1
	b.eq	LBB0_41
; %bb.33:
	cbnz	w8, LBB0_56
; %bb.34:
	ldr	x8, [x24, #16]
	ldr	w0, [x8]
	bl	_this_cpu_inc
	ldr	x8, [x21, #8]
Lloh45:
	adrp	x9, _IB_WR_TID_RDMA_READ@GOTPAGE
Lloh46:
	ldr	x9, [x9, _IB_WR_TID_RDMA_READ@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_47
; %bb.35:
	mov	x0, x21
	bl	_wqe_to_tid_req
	ldr	w8, [x0]
	cbz	w8, LBB0_81
; %bb.36:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w1, [x8, #12]
	mov	x0, x19
	bl	_rvt_mod_retry_timer_ext
	b	LBB0_82
LBB0_37:
	ldr	x8, [x19]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_56
; %bb.38:
	mov	x0, x19
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
	bl	_update_last_psn
Lloh48:
	adrp	x8, _IB_AETH_CREDIT_SHIFT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IB_AETH_CREDIT_SHIFT@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	asr	w8, w25, w8
Lloh51:
	adrp	x9, _IB_AETH_CREDIT_MASK@GOTPAGE
Lloh52:
	ldr	x9, [x9, _IB_AETH_CREDIT_MASK@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	and	w8, w8, w9
	cmp	w8, #3
	b.hi	LBB0_56
; %bb.39:
Lloh54:
	adrp	x9, lJTI0_0@PAGE
Lloh55:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_40
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_40:
	ldr	w8, [x24, #8]
	add	w8, w8, #1
	str	w8, [x24, #8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_hfi1_restart_rc
	mov	x0, x19
	bl	_hfi1_schedule_send
	b	LBB0_69
LBB0_41:
	ldr	w8, [x24, #12]
	add	w8, w8, #1
	str	w8, [x24, #12]
	ldr	x8, [x19]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_56
; %bb.42:
	ldr	w8, [x19, #12]
Lloh56:
	adrp	x9, _RVT_S_WAIT_RNR@GOTPAGE
Lloh57:
	ldr	x9, [x9, _RVT_S_WAIT_RNR@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_56
; %bb.43:
	ldr	w0, [x19, #64]
	bl	_ib_to_rvt
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_70
; %bb.44:
	ldr	w9, [x19, #44]
	sub	w9, w9, #1
	cmp	w9, #5
	b.hi	LBB0_73
; %bb.45:
	sub	w8, w8, #1
	str	w8, [x19, #40]
	b	LBB0_73
LBB0_46:
	mov	w20, #1
	b	LBB0_57
LBB0_47:
	ldr	x8, [x19]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_50
; %bb.48:
	mov	x0, x19
	bl	_rvt_stop_rc_timers
	ldr	w0, [x19, #32]
	mov	x1, x20
	bl	_cmp_psn
	cmp	w0, #0
	b.gt	LBB0_82
; %bb.49:
Lloh59:
	adrp	x8, _SEND_LAST@GOTPAGE
Lloh60:
	ldr	x8, [x8, _SEND_LAST@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
	bl	_OP
	add	w8, w20, #1
	stp	w8, w0, [x19, #32]
	b	LBB0_82
LBB0_50:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x1, [x8]
Lloh62:
	adrp	x8, _HFI1_QP_WQE_INVALID@GOTPAGE
Lloh63:
	ldr	x8, [x8, _HFI1_QP_WQE_INVALID@GOTPAGEOFF]
Lloh64:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_59
; %bb.51:
	mov	x0, x19
	bl	_rvt_get_swqe_ptr
	cbz	x0, LBB0_59
; %bb.52:
	mov	x22, x0
	ldr	x8, [x0, #8]
Lloh65:
	adrp	x9, _IB_WR_TID_RDMA_WRITE@GOTPAGE
Lloh66:
	ldr	x9, [x9, _IB_WR_TID_RDMA_WRITE@GOTPAGEOFF]
Lloh67:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_59
; %bb.53:
Lloh68:
	adrp	x8, _WRITE_RESP@GOTPAGE
Lloh69:
	ldr	x8, [x8, _WRITE_RESP@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
	bl	_TID_OP
	cmp	w0, w23
	b.ne	LBB0_59
; %bb.54:
	ldr	w8, [x19, #8]
	add	w1, w8, #1
	mov	x0, x20
	bl	_cmp_psn
	cbz	w0, LBB0_77
LBB0_55:
	mov	x0, x19
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_set_restart_qp
LBB0_56:
	mov	w20, #0
LBB0_57:
	mov	x0, x19
	bl	_rvt_stop_rc_timers
LBB0_58:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_59:
	mov	x0, x19
	bl	_rvt_mod_retry_timer
	ldr	w0, [x19, #32]
	mov	x1, x20
	bl	_cmp_psn
	cmp	w0, #0
	b.gt	LBB0_82
; %bb.60:
	add	w1, w20, #1
	mov	x0, x19
	bl	_reset_psn
	b	LBB0_82
LBB0_61:
Lloh71:
	adrp	x8, _IB_WC_REM_INV_REQ_ERR@GOTPAGE
Lloh72:
	ldr	x8, [x8, _IB_WC_REM_INV_REQ_ERR@GOTPAGEOFF]
	b	LBB0_64
LBB0_62:
Lloh73:
	adrp	x8, _IB_WC_REM_ACCESS_ERR@GOTPAGE
Lloh74:
	ldr	x8, [x8, _IB_WC_REM_ACCESS_ERR@GOTPAGEOFF]
	b	LBB0_64
LBB0_63:
Lloh75:
	adrp	x8, _IB_WC_REM_OP_ERR@GOTPAGE
Lloh76:
	ldr	x8, [x8, _IB_WC_REM_OP_ERR@GOTPAGEOFF]
LBB0_64:
	ldr	w20, [x8]
	ldr	w8, [x24, #4]
	add	w8, w8, #1
	str	w8, [x24, #4]
LBB0_65:
	ldr	x8, [x19, #48]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_69
; %bb.66:
	ldr	x8, [x21, #8]
Lloh77:
	adrp	x9, _IB_WR_TID_RDMA_READ@GOTPAGE
Lloh78:
	ldr	x9, [x9, _IB_WR_TID_RDMA_READ@GOTPAGEOFF]
Lloh79:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_68
; %bb.67:
	mov	x0, x19
	bl	_hfi1_kern_read_tid_flow_free
LBB0_68:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_hfi1_trdma_send_complete
Lloh80:
	adrp	x8, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh81:
	ldr	x8, [x8, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rvt_error_qp
LBB0_69:
	mov	w20, #0
	ldr	w8, [x19, #56]
	str	w8, [x19, #60]
	ldr	w8, [x19, #44]
	str	w8, [x19, #40]
	b	LBB0_57
LBB0_70:
	ldr	x8, [x0]
	ldr	x9, [x21, #8]
	ldr	w8, [x8, x9, lsl #2]
Lloh83:
	adrp	x9, _RVT_OPERATION_IGN_RNR_CNT@GOTPAGE
Lloh84:
	ldr	x9, [x9, _RVT_OPERATION_IGN_RNR_CNT@GOTPAGEOFF]
Lloh85:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_72
; %bb.71:
	ldr	w8, [x19, #44]
	cbz	w8, LBB0_73
LBB0_72:
Lloh86:
	adrp	x8, _IB_WC_RNR_RETRY_EXC_ERR@GOTPAGE
Lloh87:
	ldr	x8, [x8, _IB_WC_RNR_RETRY_EXC_ERR@GOTPAGEOFF]
Lloh88:
	ldr	w20, [x8]
	b	LBB0_65
LBB0_73:
	ldr	x8, [x21, #8]
Lloh89:
	adrp	x9, _IB_WR_TID_RDMA_WRITE@GOTPAGE
Lloh90:
	ldr	x9, [x9, _IB_WR_TID_RDMA_WRITE@GOTPAGEOFF]
Lloh91:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_75
; %bb.74:
	ldr	w8, [x19, #8]
	add	w1, w8, #1
	b	LBB0_76
LBB0_75:
	mov	x0, x19
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
	bl	_update_last_psn
	mov	x1, x20
LBB0_76:
	mov	x0, x19
	bl	_reset_psn
	ldr	w0, [x19, #32]
	mov	x1, x20
	bl	_delta_psn
	ldr	w8, [x24]
	add	w8, w8, w0
	str	w8, [x24]
Lloh92:
	adrp	x8, _RVT_S_WAIT_SSN_CREDIT@GOTPAGE
Lloh93:
	ldr	x8, [x8, _RVT_S_WAIT_SSN_CREDIT@GOTPAGEOFF]
Lloh94:
	ldr	w8, [x8]
Lloh95:
	adrp	x9, _RVT_S_WAIT_ACK@GOTPAGE
Lloh96:
	ldr	x9, [x9, _RVT_S_WAIT_ACK@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #12]
	bic	w8, w9, w8
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_rvt_stop_rc_timers
	mov	x0, x19
	mov	x1, x25
	bl	_rvt_add_rnr_timer
	mov	w20, #0
	b	LBB0_58
LBB0_77:
	ldp	x9, x8, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_79
; %bb.78:
	ldr	w0, [x19, #32]
	mov	x1, x20
	bl	_cmp_psn
	cmp	w0, #0
	b.le	LBB0_89
LBB0_79:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x9, #8]
	subs	w8, w8, #1
	str	w8, [x9, #8]
	b.eq	LBB0_81
; %bb.80:
	mov	x0, x19
	bl	_rvt_mod_retry_timer
	b	LBB0_82
LBB0_81:
	mov	x0, x19
	bl	_rvt_stop_rc_timers
LBB0_82:
	ldr	w8, [x19, #12]
Lloh98:
	adrp	x9, _RVT_S_WAIT_ACK@GOTPAGE
Lloh99:
	ldr	x9, [x9, _RVT_S_WAIT_ACK@GOTPAGEOFF]
Lloh100:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_84
; %bb.83:
	bic	w8, w8, w9
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_hfi1_schedule_send
LBB0_84:
	mov	x0, x19
	mov	x1, x25
	bl	_rvt_get_credit
	ldr	w8, [x19, #44]
	str	w8, [x19, #40]
	ldr	w8, [x19, #56]
	str	w8, [x19, #60]
	ldr	x8, [x21, #8]
Lloh101:
	adrp	x9, _IB_WR_TID_RDMA_WRITE@GOTPAGE
Lloh102:
	ldr	x9, [x9, _IB_WR_TID_RDMA_WRITE@GOTPAGEOFF]
Lloh103:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_88
; %bb.85:
Lloh104:
	adrp	x8, _WRITE_RESP@GOTPAGE
Lloh105:
	ldr	x8, [x8, _WRITE_RESP@GOTPAGEOFF]
Lloh106:
	ldr	w0, [x8]
	bl	_TID_OP
	cmp	w0, w23
	b.eq	LBB0_88
; %bb.86:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_cmp_psn
	tbnz	w0, #31, LBB0_88
; %bb.87:
	mov	w20, #1
	b	LBB0_58
LBB0_88:
	mov	x0, x19
	mov	x1, x20
	bl	_update_last_psn
	mov	w20, #1
	b	LBB0_58
LBB0_89:
	ldp	w3, w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_update_qp_retry_state
	b	LBB0_82
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_40-LBB0_40)>>2
	.byte	(LBB0_61-LBB0_40)>>2
	.byte	(LBB0_62-LBB0_40)>>2
	.byte	(LBB0_63-LBB0_40)>>2
                                        ; -- End function
	.comm	_IB_AETH_NAK_SHIFT,4,2          ; @IB_AETH_NAK_SHIFT
	.comm	_IB_WR_RDMA_READ,8,3            ; @IB_WR_RDMA_READ
	.comm	_RDMA_READ_RESPONSE_ONLY,4,2    ; @RDMA_READ_RESPONSE_ONLY
	.comm	_RDMA_READ_RESPONSE_LAST,4,2    ; @RDMA_READ_RESPONSE_LAST
	.comm	_IB_WR_TID_RDMA_READ,8,3        ; @IB_WR_TID_RDMA_READ
	.comm	_READ_RESP,4,2                  ; @READ_RESP
	.comm	_IB_WR_ATOMIC_CMP_AND_SWP,8,3   ; @IB_WR_ATOMIC_CMP_AND_SWP
	.comm	_IB_WR_ATOMIC_FETCH_AND_ADD,8,3 ; @IB_WR_ATOMIC_FETCH_AND_ADD
	.comm	_ATOMIC_ACKNOWLEDGE,4,2         ; @ATOMIC_ACKNOWLEDGE
	.comm	_IB_WR_TID_RDMA_WRITE,8,3       ; @IB_WR_TID_RDMA_WRITE
	.comm	_IB_WR_OPFN,8,3                 ; @IB_WR_OPFN
	.comm	_RVT_S_WAIT_FENCE,4,2           ; @RVT_S_WAIT_FENCE
	.comm	_RVT_S_WAIT_ACK,4,2             ; @RVT_S_WAIT_ACK
	.comm	_RVT_S_WAIT_RDMAR,4,2           ; @RVT_S_WAIT_RDMAR
	.comm	_HFI1_QP_WQE_INVALID,8,3        ; @HFI1_QP_WQE_INVALID
	.comm	_WRITE_RESP,4,2                 ; @WRITE_RESP
	.comm	_SEND_LAST,4,2                  ; @SEND_LAST
	.comm	_RVT_S_WAIT_RNR,4,2             ; @RVT_S_WAIT_RNR
	.comm	_RVT_OPERATION_IGN_RNR_CNT,4,2  ; @RVT_OPERATION_IGN_RNR_CNT
	.comm	_IB_WC_RNR_RETRY_EXC_ERR,4,2    ; @IB_WC_RNR_RETRY_EXC_ERR
	.comm	_RVT_S_WAIT_SSN_CREDIT,4,2      ; @RVT_S_WAIT_SSN_CREDIT
	.comm	_IB_AETH_CREDIT_SHIFT,4,2       ; @IB_AETH_CREDIT_SHIFT
	.comm	_IB_AETH_CREDIT_MASK,4,2        ; @IB_AETH_CREDIT_MASK
	.comm	_IB_WC_REM_INV_REQ_ERR,4,2      ; @IB_WC_REM_INV_REQ_ERR
	.comm	_IB_WC_REM_ACCESS_ERR,4,2       ; @IB_WC_REM_ACCESS_ERR
	.comm	_IB_WC_REM_OP_ERR,4,2           ; @IB_WC_REM_OP_ERR
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ; @IB_WC_WR_FLUSH_ERR
.subsections_via_symbols
