	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_restart_rc                ## -- Begin function hfi1_restart_rc
	.p2align	4, 0x90
_hfi1_restart_rc:                       ## @hfi1_restart_rc
	.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
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	movq	64(%rdi), %r13
	callq	_rvt_get_swqe_ptr
	movq	%rax, %r15
	leaq	60(%rbx), %rdi
	callq	_lockdep_assert_held
	leaq	56(%rbx), %rdi
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	callq	_trace_hfi1_sender_restart_rc
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	decq	%rax
	jmp	LBB0_11
LBB0_1:
	movq	16(%rbx), %rax
	movq	_IB_MIG_ARMED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_hfi1_migrate_qp
	movq	24(%rbx), %rax
LBB0_11:
	movq	%rax, 8(%rbx)
	movl	48(%rbx), %esi
	movl	52(%rbx), %edi
	callq	_to_iport
	movq	%rax, %r13
	movq	(%r15), %rcx
	movq	_IB_WR_RDMA_READ@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_14
## %bb.12:
	movq	_IB_WR_TID_RDMA_READ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_14
## %bb.13:
	movl	44(%rbx), %edi
	movl	%r14d, %esi
	callq	_delta_psn
LBB0_14:
	addq	%rax, (%r13)
	movq	_RVT_S_WAIT_FENCE@GOTPCREL(%rip), %rcx
	movq	_RVT_S_WAIT_RDMAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_RVT_S_WAIT_SSN_CREDIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_RVT_S_WAIT_PSN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_RVT_S_WAIT_ACK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_HFI1_S_WAIT_TID_RESP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	40(%rbx), %eax
	movl	%eax, 40(%rbx)
	testl	%r12d, %r12d
	je	LBB0_16
## %bb.15:
	movq	_RVT_S_SEND_ONE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 40(%rbx)
LBB0_16:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reset_psn                      ## TAILCALL
LBB0_3:
	movq	32(%rbx), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_6
## %bb.4:
	movq	(%r15), %rax
	movq	_IB_WR_OPFN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movl	48(%rbx), %esi
	movl	52(%rbx), %edi
	callq	_to_iport
	movq	%rax, %r14
	movl	4(%r13), %esi
	movq	%rbx, %rdi
	callq	_opfn_conn_reply
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_do_rc_completion
	movq	_RVT_S_WAIT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 40(%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_trace_hfi1_tid_write_sender_restart_rc
	movq	(%r15), %rax
	movq	_IB_WR_TID_RDMA_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_wqe_to_tid_req
	movq	%rax, %rdi
	callq	_hfi1_kern_exp_rcv_clear_all
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_hfi1_kern_clear_hw_flow
LBB0_9:
	movq	_IB_WC_RETRY_EXC_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_hfi1_trdma_send_complete
	movq	_IB_WC_WR_FLUSH_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rvt_error_qp                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MIG_ARMED,8,3               ## @IB_MIG_ARMED
	.comm	_IB_WR_OPFN,8,3                 ## @IB_WR_OPFN
	.comm	_RVT_S_WAIT_ACK,4,2             ## @RVT_S_WAIT_ACK
	.comm	_IB_WR_TID_RDMA_READ,8,3        ## @IB_WR_TID_RDMA_READ
	.comm	_IB_WC_RETRY_EXC_ERR,4,2        ## @IB_WC_RETRY_EXC_ERR
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ## @IB_WC_WR_FLUSH_ERR
	.comm	_IB_WR_RDMA_READ,8,3            ## @IB_WR_RDMA_READ
	.comm	_RVT_S_WAIT_FENCE,4,2           ## @RVT_S_WAIT_FENCE
	.comm	_RVT_S_WAIT_RDMAR,4,2           ## @RVT_S_WAIT_RDMAR
	.comm	_RVT_S_WAIT_SSN_CREDIT,4,2      ## @RVT_S_WAIT_SSN_CREDIT
	.comm	_RVT_S_WAIT_PSN,4,2             ## @RVT_S_WAIT_PSN
	.comm	_HFI1_S_WAIT_TID_RESP,4,2       ## @HFI1_S_WAIT_TID_RESP
	.comm	_RVT_S_SEND_ONE,4,2             ## @RVT_S_SEND_ONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_restart_rc                ; -- Begin function hfi1_restart_rc
	.p2align	2
_hfi1_restart_rc:                       ; @hfi1_restart_rc
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x0, #64]
	ldr	x1, [x0]
	bl	_rvt_get_swqe_ptr
	mov	x21, x0
	add	x0, x19, #60
	bl	_lockdep_assert_held
	add	x0, x19, #56
	bl	_lockdep_assert_held
	mov	x0, x19
	bl	_trace_hfi1_sender_restart_rc
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	sub	x8, x8, #1
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _IB_MIG_ARMED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_MIG_ARMED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.3:
	mov	x0, x19
	bl	_hfi1_migrate_qp
	ldr	x8, [x19, #24]
LBB0_4:
	str	x8, [x19, #8]
	ldp	w1, w0, [x19, #48]
	bl	_to_iport
	mov	x23, x0
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _IB_WR_RDMA_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_WR_RDMA_READ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _IB_WR_TID_RDMA_READ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IB_WR_TID_RDMA_READ@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19, #44]
	mov	x1, x20
	bl	_delta_psn
LBB0_7:
	ldr	x8, [x23]
	add	x8, x8, x0
	str	x8, [x23]
Lloh9:
	adrp	x8, _RVT_S_WAIT_FENCE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RVT_S_WAIT_FENCE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _RVT_S_WAIT_RDMAR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RVT_S_WAIT_RDMAR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _RVT_S_WAIT_SSN_CREDIT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _RVT_S_WAIT_SSN_CREDIT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh17:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _RVT_S_WAIT_PSN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RVT_S_WAIT_PSN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _RVT_S_WAIT_ACK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RVT_S_WAIT_ACK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _HFI1_S_WAIT_TID_RESP@GOTPAGE
Lloh25:
	ldr	x10, [x10, _HFI1_S_WAIT_TID_RESP@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh26:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x19, #40]
	bic	w8, w9, w8
	str	w8, [x19, #40]
	cbz	w22, LBB0_9
; %bb.8:
Lloh27:
	adrp	x9, _RVT_S_SEND_ONE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RVT_S_SEND_ONE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #40]
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	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	_reset_psn
LBB0_10:
	ldr	x8, [x19, #32]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	ldr	x8, [x21]
Lloh30:
	adrp	x9, _IB_WR_OPFN@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IB_WR_OPFN@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	ldp	w1, w0, [x19, #48]
	bl	_to_iport
	mov	x20, x0
	ldr	w1, [x23, #4]
	mov	x0, x19
	bl	_opfn_conn_reply
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_do_rc_completion
Lloh33:
	adrp	x8, _RVT_S_WAIT_ACK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RVT_S_WAIT_ACK@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	bic	w8, w9, w8
	str	w8, [x19, #40]
LBB0_13:
	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
LBB0_14:
	mov	x0, x19
	mov	w1, #0
	bl	_trace_hfi1_tid_write_sender_restart_rc
	ldr	x8, [x21]
Lloh36:
	adrp	x9, _IB_WR_TID_RDMA_READ@GOTPAGE
Lloh37:
	ldr	x9, [x9, _IB_WR_TID_RDMA_READ@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_wqe_to_tid_req
	bl	_hfi1_kern_exp_rcv_clear_all
	ldr	w0, [x23]
	mov	x1, x19
	bl	_hfi1_kern_clear_hw_flow
LBB0_16:
Lloh39:
	adrp	x8, _IB_WC_RETRY_EXC_ERR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IB_WC_RETRY_EXC_ERR@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_hfi1_trdma_send_complete
Lloh42:
	adrp	x8, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, 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	_rvt_error_qp
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MIG_ARMED,8,3               ; @IB_MIG_ARMED
	.comm	_IB_WR_OPFN,8,3                 ; @IB_WR_OPFN
	.comm	_RVT_S_WAIT_ACK,4,2             ; @RVT_S_WAIT_ACK
	.comm	_IB_WR_TID_RDMA_READ,8,3        ; @IB_WR_TID_RDMA_READ
	.comm	_IB_WC_RETRY_EXC_ERR,4,2        ; @IB_WC_RETRY_EXC_ERR
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ; @IB_WC_WR_FLUSH_ERR
	.comm	_IB_WR_RDMA_READ,8,3            ; @IB_WR_RDMA_READ
	.comm	_RVT_S_WAIT_FENCE,4,2           ; @RVT_S_WAIT_FENCE
	.comm	_RVT_S_WAIT_RDMAR,4,2           ; @RVT_S_WAIT_RDMAR
	.comm	_RVT_S_WAIT_SSN_CREDIT,4,2      ; @RVT_S_WAIT_SSN_CREDIT
	.comm	_RVT_S_WAIT_PSN,4,2             ; @RVT_S_WAIT_PSN
	.comm	_HFI1_S_WAIT_TID_RESP,4,2       ; @HFI1_S_WAIT_TID_RESP
	.comm	_RVT_S_SEND_ONE,4,2             ; @RVT_S_SEND_ONE
.subsections_via_symbols
