	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_rc_ack
_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, -80(%rbp)                  ## 8-byte Spill
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r13
	movq	_IB_AETH_NAK_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, %eax
	sarl	%cl, %eax
	leal	-1(%rdx), %r15d
	testl	%eax, %eax
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmovel	%edx, %r15d
	movq	(%rdi), %rsi
	callq	_rvt_get_swqe_ptr
	movq	%rax, %rbx
	movl	76(%r13), %esi
	movl	80(%r13), %edi
	callq	_to_iport
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_RVT_S_WAIT_RDMAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_RVT_S_WAIT_ACK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, 16(%r13)
	movq	%r13, %rdi
	callq	_qib_schedule_send
LBB0_27:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_do_rc_completion
	movq	%rax, %rbx
	movq	(%r13), %rax
	cmpq	24(%r13), %rax
	je	LBB0_28
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movl	%r15d, %edi
	callq	_qib_cmp24
	testl	%eax, %eax
	js	LBB0_28
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r12d
	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	%r14d, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	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	%r14d, %eax
	jne	LBB0_34
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_34
## %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_ATOMIC_CMP_AND_SWP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_IB_WR_ATOMIC_FETCH_AND_ADD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rax
	je	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rcx, %rax
	jne	LBB0_17
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_ATOMIC_ACKNOWLEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP
	cmpl	%r14d, %eax
	jne	LBB0_34
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_34
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rax
	movq	_IB_WR_ATOMIC_CMP_AND_SWP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_IB_WR_ATOMIC_FETCH_AND_ADD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rcx, %rax
	je	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rdx, %rax
	jne	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rcx)
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	64(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_27
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_IB_WR_RDMA_READ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_IB_WR_ATOMIC_CMP_AND_SWP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_IB_WR_ATOMIC_FETCH_AND_ADD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_27
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	decq	%rcx
	movq	%rcx, 64(%r13)
	movl	16(%r13), %eax
	movq	_RVT_S_WAIT_FENCE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%eax, %edx
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	testq	%rcx, %rcx
	je	LBB0_26
	jmp	LBB0_25
LBB0_28:
	movq	_IB_AETH_NAK_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %eax
	sarl	%cl, %eax
	xorl	%r14d, %r14d
	cmpl	$3, %eax
	je	LBB0_49
## %bb.29:
	cmpl	$1, %eax
	je	LBB0_42
## %bb.30:
	testl	%eax, %eax
	jne	LBB0_60
## %bb.31:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	(%rax), %edi
	callq	_this_cpu_inc
	movq	(%r13), %rax
	cmpq	24(%r13), %rax
	jne	LBB0_32
## %bb.37:
	movq	%r13, %rdi
	callq	_rvt_stop_rc_timers
	movl	32(%r13), %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_qib_cmp24
	testl	%eax, %eax
	jg	LBB0_39
## %bb.38:
	movq	_SEND_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP
	movl	%eax, 36(%r13)
	leal	1(%rbx), %eax
	movl	%eax, 32(%r13)
	jmp	LBB0_39
LBB0_34:
	movl	8(%r13), %eax
	movq	_RVT_R_RDMAR_SEQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r14d, %r14d
	testl	%eax, %ecx
	jne	LBB0_60
## %bb.35:
	orl	%eax, %ecx
	movl	%ecx, 8(%r13)
	movl	12(%r13), %esi
	incl	%esi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_qib_restart_rc
	leaq	72(%r13), %rbx
	movq	%rbx, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_60
## %bb.36:
	movq	_RVT_R_RSP_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r13)
	movq	%r13, %rdi
	callq	_rvt_get_qp
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	jmp	LBB0_60
LBB0_5:
	movl	$1, %r14d
	jmp	LBB0_60
LBB0_49:
	movq	(%r13), %rax
	cmpq	24(%r13), %rax
	je	LBB0_60
## %bb.50:
	movq	%r13, %rdi
	movl	-52(%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_60
## %bb.51:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_52:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	8(%rax)
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_qib_restart_rc
	movq	%r13, %rdi
	callq	_qib_schedule_send
	jmp	LBB0_59
LBB0_42:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	12(%rax)
	movq	(%r13), %rax
	cmpq	24(%r13), %rax
	je	LBB0_60
## %bb.43:
	movq	_RVT_S_WAIT_RNR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r13)
	jne	LBB0_60
## %bb.44:
	movl	40(%r13), %eax
	testl	%eax, %eax
	je	LBB0_45
## %bb.46:
	cmpl	$6, 44(%r13)
	jg	LBB0_48
## %bb.47:
	decl	%eax
	movl	%eax, 40(%r13)
LBB0_48:
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_update_last_psn
	movl	32(%r13), %eax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	subl	%esi, %eax
	movq	_QIB_PSN_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, (%rcx)
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_reset_psn
	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, 16(%r13)
	movq	%r13, %rdi
	callq	_rvt_stop_rc_timers
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_rvt_add_rnr_timer
	xorl	%r14d, %r14d
	jmp	LBB0_61
LBB0_32:
	movq	%r13, %rdi
	callq	_rvt_mod_retry_timer
	movl	32(%r13), %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_qib_cmp24
	testl	%eax, %eax
	jg	LBB0_39
## %bb.33:
	leal	1(%rbx), %esi
	movq	%r13, %rdi
	callq	_reset_psn
LBB0_39:
	movl	16(%r13), %eax
	movq	_RVT_S_WAIT_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_41
## %bb.40:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 16(%r13)
	movq	%r13, %rdi
	callq	_qib_schedule_send
LBB0_41:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_rvt_get_credit
	movl	44(%r13), %eax
	movl	56(%r13), %ecx
	movl	%eax, 40(%r13)
	movl	%ecx, 60(%r13)
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_update_last_psn
	movl	$1, %r14d
	jmp	LBB0_61
LBB0_53:
	movq	_IB_WC_REM_INV_REQ_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_56
LBB0_54:
	movq	_IB_WC_REM_ACCESS_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_56
LBB0_55:
	movq	_IB_WC_REM_OP_ERR@GOTPCREL(%rip), %rax
LBB0_56:
	movl	(%rax), %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax)
LBB0_57:
	movq	48(%r13), %rax
	cmpq	(%r13), %rax
	jne	LBB0_59
## %bb.58:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_rvt_send_complete
	movq	_IB_WC_WR_FLUSH_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_rvt_error_qp
LBB0_59:
	movl	44(%r13), %eax
	movl	56(%r13), %ecx
	movl	%ecx, 60(%r13)
	movl	%eax, 40(%r13)
LBB0_60:
	movq	%r13, %rdi
	callq	_rvt_stop_rc_timers
LBB0_61:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_45:
	movq	_IB_WC_RNR_RETRY_EXC_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_57
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_52, LBB0_52-LJTI0_0
.set L0_0_set_53, LBB0_53-LJTI0_0
.set L0_0_set_54, LBB0_54-LJTI0_0
.set L0_0_set_55, LBB0_55-LJTI0_0
LJTI0_0:
	.long	L0_0_set_52
	.long	L0_0_set_53
	.long	L0_0_set_54
	.long	L0_0_set_55
	.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_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	_RVT_R_RDMAR_SEQ,4,2            ## @RVT_R_RDMAR_SEQ
	.comm	_RVT_R_RSP_SEND,4,2             ## @RVT_R_RSP_SEND
	.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	_SEND_LAST,4,2                  ## @SEND_LAST
	.comm	_RVT_S_WAIT_RNR,4,2             ## @RVT_S_WAIT_RNR
	.comm	_IB_WC_RNR_RETRY_EXC_ERR,4,2    ## @IB_WC_RNR_RETRY_EXC_ERR
	.comm	_QIB_PSN_MASK,4,2               ## @QIB_PSN_MASK
	.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
	.no_dead_strip	_do_rc_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_rc_ack
_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
	str	x5, [sp, #8]                    ; 8-byte Folded Spill
	mov	x26, x4
	mov	x27, x3
	mov	x19, x0
Lloh0:
	adrp	x8, _IB_AETH_NAK_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_AETH_NAK_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w2, w1, [sp, #24]               ; 8-byte Folded Spill
	asr	w8, w1, w8
	sub	w9, w2, #1
	cmp	w8, #0
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
	csel	w28, w2, w9, eq
	ldr	x1, [x0]
	bl	_rvt_get_swqe_ptr
	mov	x22, x0
	ldp	w1, w0, [x19, #76]
	bl	_to_iport
	mov	x23, x0
Lloh3:
	adrp	x21, _IB_WR_RDMA_READ@GOTPAGE
Lloh4:
	ldr	x21, [x21, _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	x24, _IB_WR_ATOMIC_FETCH_AND_ADD@GOTPAGE
Lloh8:
	ldr	x24, [x24, _IB_WR_ATOMIC_FETCH_AND_ADD@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x10, _RVT_S_WAIT_ACK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RVT_S_WAIT_ACK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w8, w8, w9
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_qib_schedule_send
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_do_rc_completion
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.eq	LBB0_19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x28
	bl	_qib_cmp24
	tbnz	w0, #31, LBB0_19
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	ldr	x8, [x22, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh12:
	adrp	x8, _RDMA_READ_RESPONSE_ONLY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RDMA_READ_RESPONSE_ONLY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_OP
	cmp	w0, w27
	ccmp	w25, #0, #0, eq
	b.eq	LBB0_28
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #8]
	ldr	x9, [x21]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh15:
	adrp	x8, _RDMA_READ_RESPONSE_LAST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RDMA_READ_RESPONSE_LAST@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_OP
	cmp	w0, w27
	ccmp	w25, #0, #0, eq
	b.ne	LBB0_25
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #8]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x20]
	ldr	x10, [x24]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x8, _ATOMIC_ACKNOWLEDGE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ATOMIC_ACKNOWLEDGE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_OP
	cmp	w0, w27
	ccmp	w25, #0, #0, eq
	b.ne	LBB0_25
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #8]
	ldr	x9, [x20]
	ldr	x10, [x24]
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x22, #16]
	ldr	x9, [x9]
	str	w26, [x9]
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #64]
	cbz	x9, LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x21]
	ldr	x11, [x20]
	ldr	x12, [x24]
	cmp	x8, x10
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_2
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	x10, x9, #1
	str	x10, [x19, #64]
	ldr	w8, [x19, #16]
Lloh21:
	adrp	x9, _RVT_S_WAIT_FENCE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RVT_S_WAIT_FENCE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w11, w9, w8
	cmp	w11, #0
	ccmp	x10, #0, #0, ne
	b.eq	LBB0_1
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh24:
	adrp	x9, _RVT_S_WAIT_RDMAR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RVT_S_WAIT_RDMAR@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_1
	b	LBB0_2
LBB0_19:
Lloh27:
	adrp	x8, _IB_AETH_NAK_SHIFT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IB_AETH_NAK_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w21, [sp, #28]                  ; 4-byte Folded Reload
	asr	w8, w21, w8
	cmp	w8, #3
	b.eq	LBB0_29
; %bb.20:
	cmp	w8, #1
	b.eq	LBB0_33
; %bb.21:
	cbnz	w8, LBB0_35
; %bb.22:
	ldr	x8, [x23, #16]
	ldr	w0, [x8]
	bl	_this_cpu_inc
	ldr	x8, [x19]
	ldr	x9, [x19, #24]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_38
; %bb.23:
	bl	_rvt_stop_rc_timers
	ldr	w0, [x19, #32]
	ldr	w20, [sp, #24]                  ; 4-byte Folded Reload
	mov	x1, x20
	bl	_qib_cmp24
	cmp	w0, #0
	b.gt	LBB0_40
; %bb.24:
Lloh30:
	adrp	x8, _SEND_LAST@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SEND_LAST@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_OP
	add	w8, w20, #1
	stp	w8, w0, [x19, #32]
	b	LBB0_40
LBB0_25:
	ldr	w8, [x19, #8]
Lloh33:
	adrp	x9, _RVT_R_RDMAR_SEQ@GOTPAGE
Lloh34:
	ldr	x9, [x9, _RVT_R_RDMAR_SEQ@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_35
; %bb.26:
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	w8, [x19, #12]
	add	w1, w8, #1
	mov	x0, x19
	mov	w2, #0
	bl	_qib_restart_rc
	add	x20, x19, #72
	mov	x0, x20
	bl	_list_empty
	cbz	x0, LBB0_35
; %bb.27:
Lloh36:
	adrp	x8, _RVT_R_RSP_SEND@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RVT_R_RSP_SEND@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_rvt_get_qp
	mov	x0, x20
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_list_add_tail
	mov	w20, #0
	b	LBB0_36
LBB0_28:
	mov	w20, #1
	b	LBB0_36
LBB0_29:
	ldr	x8, [x19]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.eq	LBB0_35
; %bb.30:
	mov	x0, x19
	ldr	w1, [sp, #20]                   ; 4-byte Folded Reload
	bl	_update_last_psn
Lloh39:
	adrp	x8, _IB_AETH_CREDIT_SHIFT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IB_AETH_CREDIT_SHIFT@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	asr	w8, w21, w8
Lloh42:
	adrp	x9, _IB_AETH_CREDIT_MASK@GOTPAGE
Lloh43:
	ldr	x9, [x9, _IB_AETH_CREDIT_MASK@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	and	w8, w8, w9
	cmp	w8, #3
	b.hi	LBB0_35
; %bb.31:
Lloh45:
	adrp	x9, lJTI0_0@PAGE
Lloh46:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_32
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_32:
	ldr	w8, [x23, #8]
	add	w8, w8, #1
	str	w8, [x23, #8]
	mov	x0, x19
	ldr	w1, [sp, #24]                   ; 4-byte Folded Reload
	mov	w2, #0
	bl	_qib_restart_rc
	mov	x0, x19
	bl	_qib_schedule_send
	b	LBB0_53
LBB0_33:
	ldr	w8, [x23, #12]
	add	w8, w8, #1
	str	w8, [x23, #12]
	ldr	x8, [x19]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.eq	LBB0_35
; %bb.34:
	ldr	w8, [x19, #16]
Lloh47:
	adrp	x9, _RVT_S_WAIT_RNR@GOTPAGE
Lloh48:
	ldr	x9, [x9, _RVT_S_WAIT_RNR@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_43
LBB0_35:
	mov	w20, #0
LBB0_36:
	mov	x0, x19
	bl	_rvt_stop_rc_timers
LBB0_37:
	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_38:
	bl	_rvt_mod_retry_timer
	ldr	w0, [x19, #32]
	ldr	w20, [sp, #24]                  ; 4-byte Folded Reload
	mov	x1, x20
	bl	_qib_cmp24
	cmp	w0, #0
	b.gt	LBB0_40
; %bb.39:
	add	w1, w20, #1
	mov	x0, x19
	bl	_reset_psn
LBB0_40:
	ldr	w8, [x19, #16]
Lloh50:
	adrp	x9, _RVT_S_WAIT_ACK@GOTPAGE
Lloh51:
	ldr	x9, [x9, _RVT_S_WAIT_ACK@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_42
; %bb.41:
	bic	w8, w8, w9
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_qib_schedule_send
LBB0_42:
	mov	x0, x19
	mov	x1, x21
	bl	_rvt_get_credit
	ldr	w8, [x19, #44]
	str	w8, [x19, #40]
	ldr	w8, [x19, #56]
	str	w8, [x19, #60]
	mov	x0, x19
	mov	x1, x20
	bl	_update_last_psn
	mov	w20, #1
	b	LBB0_37
LBB0_43:
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_54
; %bb.44:
	ldr	w9, [x19, #44]
	cmp	w9, #6
	b.gt	LBB0_46
; %bb.45:
	sub	w8, w8, #1
	str	w8, [x19, #40]
LBB0_46:
	mov	x0, x19
	ldr	w1, [sp, #20]                   ; 4-byte Folded Reload
	bl	_update_last_psn
	ldr	w8, [x19, #32]
Lloh53:
	adrp	x9, _QIB_PSN_MASK@GOTPAGE
Lloh54:
	ldr	x9, [x9, _QIB_PSN_MASK@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	ldr	w1, [sp, #24]                   ; 4-byte Folded Reload
	sub	w8, w8, w1
	and	w8, w8, w9
	ldr	w9, [x23]
	add	w8, w9, w8
	str	w8, [x23]
	mov	x0, x19
	bl	_reset_psn
Lloh56:
	adrp	x8, _RVT_S_WAIT_SSN_CREDIT@GOTPAGE
Lloh57:
	ldr	x8, [x8, _RVT_S_WAIT_SSN_CREDIT@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _RVT_S_WAIT_ACK@GOTPAGE
Lloh60:
	ldr	x9, [x9, _RVT_S_WAIT_ACK@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_rvt_stop_rc_timers
	mov	x0, x19
	mov	x1, x21
	bl	_rvt_add_rnr_timer
	mov	w20, #0
	b	LBB0_37
LBB0_47:
Lloh62:
	adrp	x8, _IB_WC_REM_INV_REQ_ERR@GOTPAGE
Lloh63:
	ldr	x8, [x8, _IB_WC_REM_INV_REQ_ERR@GOTPAGEOFF]
	b	LBB0_50
LBB0_48:
Lloh64:
	adrp	x8, _IB_WC_REM_ACCESS_ERR@GOTPAGE
Lloh65:
	ldr	x8, [x8, _IB_WC_REM_ACCESS_ERR@GOTPAGEOFF]
	b	LBB0_50
LBB0_49:
Lloh66:
	adrp	x8, _IB_WC_REM_OP_ERR@GOTPAGE
Lloh67:
	ldr	x8, [x8, _IB_WC_REM_OP_ERR@GOTPAGEOFF]
LBB0_50:
	ldr	w2, [x8]
	ldr	w8, [x23, #4]
	add	w8, w8, #1
	str	w8, [x23, #4]
LBB0_51:
	ldr	x8, [x19, #48]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_53
; %bb.52:
	mov	x0, x19
	mov	x1, x22
	bl	_rvt_send_complete
Lloh68:
	adrp	x8, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh69:
	ldr	x8, [x8, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rvt_error_qp
LBB0_53:
	mov	w20, #0
	ldr	w8, [x19, #56]
	str	w8, [x19, #60]
	ldr	w8, [x19, #44]
	str	w8, [x19, #40]
	b	LBB0_36
LBB0_54:
Lloh71:
	adrp	x8, _IB_WC_RNR_RETRY_EXC_ERR@GOTPAGE
Lloh72:
	ldr	x8, [x8, _IB_WC_RNR_RETRY_EXC_ERR@GOTPAGEOFF]
Lloh73:
	ldr	w2, [x8]
	b	LBB0_51
	.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	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_32-LBB0_32)>>2
	.byte	(LBB0_47-LBB0_32)>>2
	.byte	(LBB0_48-LBB0_32)>>2
	.byte	(LBB0_49-LBB0_32)>>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_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	_RVT_R_RDMAR_SEQ,4,2            ; @RVT_R_RDMAR_SEQ
	.comm	_RVT_R_RSP_SEND,4,2             ; @RVT_R_RSP_SEND
	.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	_SEND_LAST,4,2                  ; @SEND_LAST
	.comm	_RVT_S_WAIT_RNR,4,2             ; @RVT_S_WAIT_RNR
	.comm	_IB_WC_RNR_RETRY_EXC_ERR,4,2    ; @IB_WC_RNR_RETRY_EXC_ERR
	.comm	_QIB_PSN_MASK,4,2               ; @QIB_PSN_MASK
	.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
	.no_dead_strip	_do_rc_ack
.subsections_via_symbols
