	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_restart_rc               ## -- Begin function ipath_restart_rc
	.p2align	4, 0x90
_ipath_restart_rc:                      ## @ipath_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	%esi, %r14d
	movq	%rdi, %rbx
	movl	24(%rdi), %esi
	callq	_get_swqe_ptr
	movq	%rax, %r15
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	decq	%rax
	movq	%rax, (%rbx)
	movl	20(%rbx), %edi
	callq	_to_idev
	movq	%rax, %r12
	leaq	8(%rax), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_list_del_init
LBB0_3:
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_list_del_init
LBB0_5:
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	(%r15), %rcx
	movq	_IB_WR_RDMA_READ@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_7
## %bb.6:
	movslq	8(%rbx), %rcx
	movslq	%esi, %rax
	subq	%rax, %rcx
	movq	_IPATH_PSN_MASK@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	andq	%rcx, %rax
LBB0_7:
	addq	%rax, (%r12)
	movq	%rbx, %rdi
	callq	_reset_psn
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipath_schedule_send            ## TAILCALL
LBB0_8:
	movq	_IB_WC_RETRY_EXC_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ipath_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	_ipath_error_qp                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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	_IPATH_PSN_MASK,4,2             ## @IPATH_PSN_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_restart_rc               ; -- Begin function ipath_restart_rc
	.p2align	2
_ipath_restart_rc:                      ; @ipath_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	x20, x1
	mov	x19, x0
	ldr	w1, [x0, #24]
	bl	_get_swqe_ptr
	mov	x22, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.1:
	sub	x8, x8, #1
	str	x8, [x19]
	ldr	w0, [x19, #20]
	bl	_to_idev
	mov	x21, x0
	add	x23, x0, #8
	mov	x0, x23
	bl	_spin_lock
	add	x24, x19, #16
	mov	x0, x24
	bl	_list_empty
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x24
	bl	_list_del_init
LBB0_3:
	add	x24, x19, #12
	mov	x0, x24
	bl	_list_empty
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x24
	bl	_list_del_init
LBB0_5:
	mov	x0, x23
	bl	_spin_unlock
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _IB_WR_RDMA_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_WR_RDMA_READ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	mov	w8, #1
	b	LBB0_9
LBB0_7:
Lloh3:
	adrp	x8, _IB_WC_RETRY_EXC_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_WC_RETRY_EXC_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_ipath_send_complete
Lloh6:
	adrp	x8, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh8:
	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	_ipath_error_qp
LBB0_8:
	ldrsw	x8, [x19, #8]
	sub	x8, x8, w20, sxtw
Lloh9:
	adrp	x9, _IPATH_PSN_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPATH_PSN_MASK@GOTPAGEOFF]
Lloh11:
	ldrsw	x9, [x9]
	and	x8, x8, x9
LBB0_9:
	ldr	x9, [x21]
	add	x8, x9, x8
	str	x8, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_reset_psn
	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	_ipath_schedule_send
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.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	_IPATH_PSN_MASK,4,2             ; @IPATH_PSN_MASK
.subsections_via_symbols
