	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_rc_send_complete           ## -- Begin function qib_rc_send_complete
	.p2align	4, 0x90
_qib_rc_send_complete:                  ## @qib_rc_send_complete
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ib_rvt_state_ops@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rdi), %rcx
	movq	_RVT_SEND_OR_FLUSH_OR_RECV_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_16
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rsi), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	andl	$3, %eax
	movq	_QIB_LRH_BTH@GOTPCREL(%rip), %rcx
	leaq	8(%rbx), %r12
	cmpl	(%rcx), %eax
	cmovneq	%rbx, %r12
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, %ebx
	sarl	$24, %ebx
	movq	_RDMA_READ_RESPONSE_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP
	cmpl	%eax, %ebx
	jl	LBB0_4
## %bb.2:
	movq	_ATOMIC_ACKNOWLEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP
	cmpl	%eax, %ebx
	jle	LBB0_3
LBB0_4:
	movq	(%r12), %rax
	movl	8(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_reset_sending_psn
	movq	_IB_BTH_REQ_ACK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.5:
	movq	8(%r14), %rax
	cmpq	16(%r14), %rax
	je	LBB0_9
## %bb.6:
	movq	_RVT_S_TIMER@GOTPCREL(%rip), %rax
	movq	_RVT_S_WAIT_RNR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_RVT_S_WAIT_PSN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ecx, 24(%r14)
	jne	LBB0_9
## %bb.7:
	movq	(%r15), %rax
	movq	(%r14), %rcx
	movq	_RVT_PROCESS_RECV_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_rvt_add_retry_timer
LBB0_9:
	movq	32(%r14), %rsi
	cmpq	8(%r14), %rsi
	je	LBB0_14
## %bb.10:
	movq	_ib_qib_wc_opcode@GOTPCREL(%rip), %r15
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edx
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rvt_qp_complete_swqe
	movq	32(%r14), %rsi
	cmpq	8(%r14), %rsi
	je	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_rvt_get_swqe_ptr
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	movq	56(%r14), %rsi
	callq	_qib_cmp24
	testq	%rax, %rax
	js	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	48(%r14), %rsi
	movq	56(%r14), %rdi
	callq	_qib_cmp24
	testq	%rax, %rax
	jg	LBB0_13
LBB0_14:
	movq	_RVT_S_WAIT_PSN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, 24(%r14)
	je	LBB0_16
## %bb.15:
	movq	48(%r14), %rsi
	movq	56(%r14), %rdi
	callq	_qib_cmp24
	testq	%rax, %rax
	jle	LBB0_16
## %bb.17:
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, 24(%r14)
	movq	40(%r14), %rax
	movq	%rax, 56(%r14)
	decq	%rax
	movq	%rax, 48(%r14)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qib_schedule_send              ## TAILCALL
LBB0_3:
	xorl	%edi, %edi
	cmpl	$0, 64(%r14)
	sete	%dil
	callq	_WARN_ON
	decl	64(%r14)
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_rvt_state_ops,8,3           ## @ib_rvt_state_ops
	.comm	_RVT_SEND_OR_FLUSH_OR_RECV_OK,4,2 ## @RVT_SEND_OR_FLUSH_OR_RECV_OK
	.comm	_QIB_LRH_BTH,4,2                ## @QIB_LRH_BTH
	.comm	_RDMA_READ_RESPONSE_FIRST,4,2   ## @RDMA_READ_RESPONSE_FIRST
	.comm	_ATOMIC_ACKNOWLEDGE,4,2         ## @ATOMIC_ACKNOWLEDGE
	.comm	_IB_BTH_REQ_ACK,4,2             ## @IB_BTH_REQ_ACK
	.comm	_RVT_S_TIMER,4,2                ## @RVT_S_TIMER
	.comm	_RVT_S_WAIT_RNR,4,2             ## @RVT_S_WAIT_RNR
	.comm	_RVT_S_WAIT_PSN,4,2             ## @RVT_S_WAIT_PSN
	.comm	_RVT_PROCESS_RECV_OK,4,2        ## @RVT_PROCESS_RECV_OK
	.comm	_ib_qib_wc_opcode,8,3           ## @ib_qib_wc_opcode
	.comm	_IB_WC_SUCCESS,4,2              ## @IB_WC_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_rc_send_complete           ; -- Begin function qib_rc_send_complete
	.p2align	2
_qib_rc_send_complete:                  ; @qib_rc_send_complete
	.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
Lloh0:
	adrp	x22, _ib_rvt_state_ops@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ib_rvt_state_ops@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x0]
	ldr	w8, [x8, x9, lsl #2]
Lloh2:
	adrp	x9, _RVT_SEND_OR_FLUSH_OR_RECV_OK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RVT_SEND_OR_FLUSH_OR_RECV_OK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #16]
	ldr	w0, [x8]
	bl	_be16_to_cpu
	and	w8, w0, #0x3
Lloh5:
	adrp	x9, _QIB_LRH_BTH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QIB_LRH_BTH@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	x10, x20, #8
	cmp	w8, w9
	csel	x20, x10, x20, eq
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_be32_to_cpu
	asr	w21, w0, #24
Lloh8:
	adrp	x8, _RDMA_READ_RESPONSE_FIRST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RDMA_READ_RESPONSE_FIRST@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_OP
	cmp	w21, w0
	b.lt	LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _ATOMIC_ACKNOWLEDGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATOMIC_ACKNOWLEDGE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_OP
	cmp	w21, w0
	b.le	LBB0_16
LBB0_3:
	ldr	x8, [x20]
	ldr	w0, [x8, #8]
	bl	_be32_to_cpu
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_reset_sending_psn
Lloh14:
	adrp	x8, _IB_BTH_REQ_ACK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_BTH_REQ_ACK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x21, _RVT_S_WAIT_PSN@GOTPAGE
Lloh18:
	ldr	x21, [x21, _RVT_S_WAIT_PSN@GOTPAGEOFF]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.4:
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.5:
	ldr	w8, [x19, #24]
Lloh19:
	adrp	x9, _RVT_S_TIMER@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RVT_S_TIMER@GOTPAGEOFF]
Lloh21:
	adrp	x10, _RVT_S_WAIT_RNR@GOTPAGE
Lloh22:
	ldr	x10, [x10, _RVT_S_WAIT_RNR@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x21]
	orr	w9, w9, w10
	tst	w9, w8
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x22]
	ldr	x9, [x19]
	ldr	w8, [x8, x9, lsl #2]
Lloh25:
	adrp	x9, _RVT_PROCESS_RECV_OK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RVT_PROCESS_RECV_OK@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_rvt_add_retry_timer
LBB0_8:
	ldr	x1, [x19, #32]
	ldr	x8, [x19, #8]
	cmp	x1, x8
	b.eq	LBB0_13
; %bb.9:
Lloh28:
	adrp	x22, _ib_qib_wc_opcode@GOTPAGE
Lloh29:
	ldr	x22, [x22, _ib_qib_wc_opcode@GOTPAGEOFF]
Lloh30:
	adrp	x23, _IB_WC_SUCCESS@GOTPAGE
Lloh31:
	ldr	x23, [x23, _IB_WC_SUCCESS@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x20]
	ldr	w2, [x8, x9, lsl #2]
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_rvt_qp_complete_swqe
	ldr	x1, [x19, #32]
	ldr	x8, [x19, #8]
	cmp	x1, x8
	b.eq	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_rvt_get_swqe_ptr
	mov	x20, x0
	ldr	x0, [x0, #8]
	ldr	x1, [x19, #56]
	bl	_qib_cmp24
	tbnz	x0, #63, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldp	x1, x0, [x19, #48]
	bl	_qib_cmp24
	cmp	x0, #1
	b.ge	LBB0_10
LBB0_13:
	ldr	w8, [x19, #24]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.14:
	ldp	x1, x0, [x19, #48]
	bl	_qib_cmp24
	cmp	x0, #1
	b.lt	LBB0_17
; %bb.15:
	ldr	w8, [x21]
	ldr	w9, [x19, #24]
	bic	w8, w9, w8
	str	w8, [x19, #24]
	ldr	x8, [x19, #40]
	sub	x9, x8, #1
	stp	x9, x8, [x19, #48]
	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	_qib_schedule_send
LBB0_16:
	ldr	w8, [x19, #64]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	w8, [x19, #64]
	sub	w8, w8, #1
	str	w8, [x19, #64]
LBB0_17:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_rvt_state_ops,8,3           ; @ib_rvt_state_ops
	.comm	_RVT_SEND_OR_FLUSH_OR_RECV_OK,4,2 ; @RVT_SEND_OR_FLUSH_OR_RECV_OK
	.comm	_QIB_LRH_BTH,4,2                ; @QIB_LRH_BTH
	.comm	_RDMA_READ_RESPONSE_FIRST,4,2   ; @RDMA_READ_RESPONSE_FIRST
	.comm	_ATOMIC_ACKNOWLEDGE,4,2         ; @ATOMIC_ACKNOWLEDGE
	.comm	_IB_BTH_REQ_ACK,4,2             ; @IB_BTH_REQ_ACK
	.comm	_RVT_S_TIMER,4,2                ; @RVT_S_TIMER
	.comm	_RVT_S_WAIT_RNR,4,2             ; @RVT_S_WAIT_RNR
	.comm	_RVT_S_WAIT_PSN,4,2             ; @RVT_S_WAIT_PSN
	.comm	_RVT_PROCESS_RECV_OK,4,2        ; @RVT_PROCESS_RECV_OK
	.comm	_ib_qib_wc_opcode,8,3           ; @ib_qib_wc_opcode
	.comm	_IB_WC_SUCCESS,4,2              ; @IB_WC_SUCCESS
.subsections_via_symbols
