	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ib_qib_state_ops@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rdi), %rcx
	movq	_QIB_PROCESS_OR_FLUSH_SEND@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_23
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	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	%r15, %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(%r15), %rax
	cmpq	16(%r15), %rax
	je	LBB0_9
## %bb.6:
	movq	_QIB_S_TIMER@GOTPCREL(%rip), %rax
	movq	_QIB_S_WAIT_RNR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_QIB_S_WAIT_PSN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ecx, 24(%r15)
	jne	LBB0_9
## %bb.7:
	movq	(%r14), %rax
	movq	(%r15), %rcx
	movq	_QIB_PROCESS_RECV_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_start_timer
LBB0_9:
	movq	32(%r15), %rsi
	cmpq	8(%r15), %rsi
	jne	LBB0_10
LBB0_20:
	movq	_QIB_S_WAIT_PSN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, 24(%r15)
	je	LBB0_23
## %bb.21:
	movq	56(%r15), %rsi
	movq	64(%r15), %rdi
	callq	_qib_cmp24
	testq	%rax, %rax
	jle	LBB0_23
## %bb.22:
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, 24(%r15)
	movq	48(%r15), %rax
	movq	%rax, 64(%r15)
	decq	%rax
	movq	%rax, 56(%r15)
	movq	%r15, %rdi
	callq	_qib_schedule_send
	jmp	LBB0_23
LBB0_10:
	leaq	72(%r15), %r12
	leaq	-64(%rbp), %r14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	24(%rbx), %eax
	movl	%eax, -44(%rbp)
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_ib_qib_wc_opcode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rbx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -52(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -56(%rbp)
	movq	%r12, -64(%rbp)
	movl	(%r12), %edi
	callq	_to_icq
	movl	%eax, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_qib_cq_enter
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	32(%r15), %rsi
	incq	%rsi
	cmpq	40(%r15), %rsi
	movl	$0, %eax
	cmovgeq	%rax, %rsi
	movq	%rsi, 32(%r15)
	cmpq	8(%r15), %rsi
	je	LBB0_20
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	%r15, %rdi
	callq	_get_swqe_ptr
	movq	%rax, %rbx
	movq	40(%rax), %rdi
	movq	64(%r15), %rsi
	callq	_qib_cmp24
	testq	%rax, %rax
	js	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	56(%r15), %rsi
	movq	64(%r15), %rdi
	callq	_qib_cmp24
	testq	%rax, %rax
	jle	LBB0_20
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, 8(%rbx)
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	32(%rbx), %rax
	movl	(%rax,%r13,4), %edi
	callq	_qib_put_mr
	incq	%r13
	movl	8(%rbx), %eax
	cmpq	%rax, %r13
	jb	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_QIB_S_SIGNAL_REQ_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r15)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_IB_SEND_SIGNALED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%rbx)
	jne	LBB0_18
	jmp	LBB0_19
LBB0_3:
	xorl	%edi, %edi
	cmpl	$0, 76(%r15)
	sete	%dil
	callq	_WARN_ON
	decl	76(%r15)
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_qib_state_ops,8,3           ## @ib_qib_state_ops
	.comm	_QIB_PROCESS_OR_FLUSH_SEND,4,2  ## @QIB_PROCESS_OR_FLUSH_SEND
	.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	_QIB_S_TIMER,4,2                ## @QIB_S_TIMER
	.comm	_QIB_S_WAIT_RNR,4,2             ## @QIB_S_WAIT_RNR
	.comm	_QIB_S_WAIT_PSN,4,2             ## @QIB_S_WAIT_PSN
	.comm	_QIB_PROCESS_RECV_OK,4,2        ## @QIB_PROCESS_RECV_OK
	.comm	_QIB_S_SIGNAL_REQ_WR,4,2        ## @QIB_S_SIGNAL_REQ_WR
	.comm	_IB_SEND_SIGNALED,4,2           ## @IB_SEND_SIGNALED
	.comm	_IB_WC_SUCCESS,4,2              ## @IB_WC_SUCCESS
	.comm	_ib_qib_wc_opcode,8,3           ## @ib_qib_wc_opcode
.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:
	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
Lloh0:
	adrp	x22, _ib_qib_state_ops@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ib_qib_state_ops@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x0]
	ldr	w8, [x8, x9, lsl #2]
Lloh2:
	adrp	x9, _QIB_PROCESS_OR_FLUSH_SEND@GOTPAGE
Lloh3:
	ldr	x9, [x9, _QIB_PROCESS_OR_FLUSH_SEND@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %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_22
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, _QIB_S_WAIT_PSN@GOTPAGE
Lloh18:
	ldr	x21, [x21, _QIB_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, _QIB_S_TIMER@GOTPAGE
Lloh20:
	ldr	x9, [x9, _QIB_S_TIMER@GOTPAGEOFF]
Lloh21:
	adrp	x10, _QIB_S_WAIT_RNR@GOTPAGE
Lloh22:
	ldr	x10, [x10, _QIB_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, _QIB_PROCESS_RECV_OK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _QIB_PROCESS_RECV_OK@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_start_timer
LBB0_8:
	ldr	x1, [x19, #32]
	ldr	x8, [x19, #8]
	cmp	x1, x8
	b.ne	LBB0_12
LBB0_9:
	ldr	w8, [x19, #24]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.10:
	ldp	x1, x0, [x19, #56]
	bl	_qib_cmp24
	cmp	x0, #1
	b.lt	LBB0_23
; %bb.11:
	ldr	w8, [x21]
	ldr	w9, [x19, #24]
	bic	w8, w9, w8
	str	w8, [x19, #24]
	ldr	x8, [x19, #48]
	sub	x9, x8, #1
	stp	x9, x8, [x19, #56]
	mov	x0, x19
	bl	_qib_schedule_send
	b	LBB0_23
LBB0_12:
	add	x22, x19, #72
Lloh28:
	adrp	x23, _QIB_S_SIGNAL_REQ_WR@GOTPAGE
Lloh29:
	ldr	x23, [x23, _QIB_S_SIGNAL_REQ_WR@GOTPAGEOFF]
Lloh30:
	adrp	x24, _IB_WC_SUCCESS@GOTPAGE
Lloh31:
	ldr	x24, [x24, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh32:
	adrp	x25, _ib_qib_wc_opcode@GOTPAGE
Lloh33:
	ldr	x25, [x25, _ib_qib_wc_opcode@GOTPAGEOFF]
Lloh34:
	adrp	x26, _IB_SEND_SIGNALED@GOTPAGE
Lloh35:
	ldr	x26, [x26, _IB_SEND_SIGNALED@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w8, [x20, #24]
	ldr	w9, [x24]
	stp	w9, w8, [sp, #24]
	ldr	x8, [x25]
	ldr	x9, [x20, #16]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [sp, #20]
	ldr	w8, [x20]
	str	w8, [sp, #16]
	str	x22, [sp, #8]
	ldr	w0, [x22]
	bl	_to_icq
	add	x1, sp, #8
	mov	w2, #0
	bl	_qib_cq_enter
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldp	x8, x9, [x19, #32]
	add	x10, x8, #1
	cmp	x10, x9
	csinc	x1, xzr, x8, ge
	str	x1, [x19, #32]
	ldr	x8, [x19, #8]
	cmp	x1, x8
	b.eq	LBB0_9
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	mov	x0, x19
	bl	_get_swqe_ptr
	mov	x20, x0
	ldr	x0, [x0, #40]
	ldr	x1, [x19, #64]
	bl	_qib_cmp24
	tbnz	x0, #63, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldp	x1, x0, [x19, #56]
	bl	_qib_cmp24
	cmp	x0, #1
	b.lt	LBB0_9
LBB0_17:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x27, #0
LBB0_19:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #32]
	ldr	w0, [x8, x27, lsl #2]
	bl	_qib_put_mr
	add	x27, x27, #1
	ldr	w8, [x20, #8]
	cmp	x27, x8
	b.lo	LBB0_19
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x19, #24]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x20, #12]
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_13
	b	LBB0_14
LBB0_22:
	ldr	w8, [x19, #76]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	w8, [x19, #76]
	sub	w8, w8, #1
	str	w8, [x19, #76]
LBB0_23:
	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
	.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	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_qib_state_ops,8,3           ; @ib_qib_state_ops
	.comm	_QIB_PROCESS_OR_FLUSH_SEND,4,2  ; @QIB_PROCESS_OR_FLUSH_SEND
	.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	_QIB_S_TIMER,4,2                ; @QIB_S_TIMER
	.comm	_QIB_S_WAIT_RNR,4,2             ; @QIB_S_WAIT_RNR
	.comm	_QIB_S_WAIT_PSN,4,2             ; @QIB_S_WAIT_PSN
	.comm	_QIB_PROCESS_RECV_OK,4,2        ; @QIB_PROCESS_RECV_OK
	.comm	_QIB_S_SIGNAL_REQ_WR,4,2        ; @QIB_S_SIGNAL_REQ_WR
	.comm	_IB_SEND_SIGNALED,4,2           ; @IB_SEND_SIGNALED
	.comm	_IB_WC_SUCCESS,4,2              ; @IB_WC_SUCCESS
	.comm	_ib_qib_wc_opcode,8,3           ; @ib_qib_wc_opcode
.subsections_via_symbols
