	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_send_complete            ## -- Begin function ipath_send_complete
	.p2align	4, 0x90
_ipath_send_complete:                   ## @ipath_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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	_ib_ipath_state_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movq	_IPATH_PROCESS_OR_FLUSH_SEND@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_14
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_IPATH_S_SIGNAL_REQ_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_4
## %bb.2:
	movq	_IB_SEND_SIGNALED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	jne	LBB0_4
## %bb.3:
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_7
LBB0_4:
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	24(%r15), %eax
	movl	%eax, -36(%rbp)
	movl	%r14d, -56(%rbp)
	movq	_ib_ipath_wc_opcode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%r15), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -40(%rbp)
	leaq	56(%rbx), %rax
	movq	%rax, -48(%rbp)
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %r12
	cmpl	%r14d, (%r12)
	jne	LBB0_6
## %bb.5:
	movl	(%r15), %ecx
	movl	%ecx, -52(%rbp)
LBB0_6:
	movl	(%rax), %edi
	callq	_to_icq
	xorl	%edx, %edx
	cmpl	%r14d, (%r12)
	setne	%dl
	leaq	-56(%rbp), %rsi
	movl	%eax, %edi
	callq	_ipath_cq_enter
LBB0_7:
	movq	16(%rbx), %rdx
	movq	32(%rbx), %rcx
	leaq	1(%rdx), %rsi
	xorl	%eax, %eax
	cmpq	24(%rbx), %rsi
	cmovlq	%rsi, %rax
	movq	%rax, 16(%rbx)
	cmpq	%rdx, %rcx
	jne	LBB0_9
## %bb.8:
	movq	%rax, 32(%rbx)
	movq	%rax, %rcx
LBB0_9:
	cmpq	%rdx, 40(%rbx)
	jne	LBB0_11
## %bb.10:
	movq	%rax, 40(%rbx)
LBB0_11:
	movq	(%rbx), %rdx
	movq	_IB_QPS_SQD@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_14
## %bb.12:
	cmpq	%rcx, %rax
	jne	LBB0_14
## %bb.13:
	movq	$0, 48(%rbx)
LBB0_14:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_ipath_state_ops,8,3         ## @ib_ipath_state_ops
	.comm	_IPATH_PROCESS_OR_FLUSH_SEND,4,2 ## @IPATH_PROCESS_OR_FLUSH_SEND
	.comm	_IPATH_S_SIGNAL_REQ_WR,4,2      ## @IPATH_S_SIGNAL_REQ_WR
	.comm	_IB_SEND_SIGNALED,4,2           ## @IB_SEND_SIGNALED
	.comm	_IB_WC_SUCCESS,4,2              ## @IB_WC_SUCCESS
	.comm	_ib_ipath_wc_opcode,8,3         ## @ib_ipath_wc_opcode
	.comm	_IB_QPS_SQD,8,3                 ## @IB_QPS_SQD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_send_complete            ; -- Begin function ipath_send_complete
	.p2align	2
_ipath_send_complete:                   ; @ipath_send_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _ib_ipath_state_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ib_ipath_state_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _IPATH_PROCESS_OR_FLUSH_SEND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPATH_PROCESS_OR_FLUSH_SEND@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0, #8]
Lloh6:
	adrp	x9, _IPATH_S_SIGNAL_REQ_WR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IPATH_S_SIGNAL_REQ_WR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x22, _IB_WC_SUCCESS@GOTPAGE
Lloh10:
	ldr	x22, [x22, _IB_WC_SUCCESS@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _IB_SEND_SIGNALED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_SEND_SIGNALED@GOTPAGEOFF]
	ldr	w9, [x21, #8]
Lloh13:
	ldr	w8, [x8]
	and	w8, w8, w9
	ldr	w9, [x22]
	cmp	w8, #0
	ccmp	w9, w20, #0, eq
	b.eq	LBB0_6
LBB0_3:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w8, [x21, #24]
	str	w8, [sp, #28]
	str	w20, [sp, #8]
Lloh14:
	adrp	x8, _ib_ipath_wc_opcode@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ib_ipath_wc_opcode@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x9, [x21, #16]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [sp, #24]
	add	x8, x19, #56
	str	x8, [sp, #16]
	ldr	w9, [x22]
	cmp	w9, w20
	b.ne	LBB0_5
; %bb.4:
	ldr	w9, [x21]
	str	w9, [sp, #12]
LBB0_5:
	ldr	w0, [x8]
	bl	_to_icq
	ldr	w8, [x22]
	cmp	w8, w20
	cset	w2, ne
	add	x1, sp, #8
	bl	_ipath_cq_enter
LBB0_6:
	ldp	x10, x8, [x19, #16]
	add	x9, x10, #1
	cmp	x9, x8
	csinc	x8, xzr, x10, ge
	str	x8, [x19, #16]
	ldr	x9, [x19, #32]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.7:
	str	x8, [x19, #32]
	mov	x9, x8
LBB0_8:
	ldr	x11, [x19, #40]
	cmp	x11, x10
	b.ne	LBB0_10
; %bb.9:
	str	x8, [x19, #40]
LBB0_10:
	ldr	x10, [x19]
Lloh17:
	adrp	x11, _IB_QPS_SQD@GOTPAGE
Lloh18:
	ldr	x11, [x11, _IB_QPS_SQD@GOTPAGEOFF]
Lloh19:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_13
; %bb.11:
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	str	xzr, [x19, #48]
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_ipath_state_ops,8,3         ; @ib_ipath_state_ops
	.comm	_IPATH_PROCESS_OR_FLUSH_SEND,4,2 ; @IPATH_PROCESS_OR_FLUSH_SEND
	.comm	_IPATH_S_SIGNAL_REQ_WR,4,2      ; @IPATH_S_SIGNAL_REQ_WR
	.comm	_IB_SEND_SIGNALED,4,2           ; @IB_SEND_SIGNALED
	.comm	_IB_WC_SUCCESS,4,2              ; @IB_WC_SUCCESS
	.comm	_ib_ipath_wc_opcode,8,3         ; @ib_ipath_wc_opcode
	.comm	_IB_QPS_SQD,8,3                 ; @IB_QPS_SQD
.subsections_via_symbols
