	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_do_send                  ## -- Begin function ipath_do_send
	.p2align	4, 0x90
_ipath_do_send:                         ## @ipath_do_send
	.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	%rdi, %rbx
	movl	48(%rdi), %edi
	callq	_to_idev
	movq	%rax, %r14
	movq	40(%rbx), %rax
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_IB_QPT_UC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rcx, %rax
	je	LBB0_2
## %bb.1:
	cmpq	%rdx, %rax
	jne	LBB0_3
LBB0_2:
	movq	56(%rbx), %rsi
	movq	8(%r14), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_3
## %bb.17:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipath_ruc_loopback             ## TAILCALL
LBB0_3:
	cmpq	%rdx, %rax
	jne	LBB0_4
## %bb.5:
	movq	_ipath_make_uc_req@GOTPCREL(%rip), %r12
	cmpq	%rcx, %rax
	je	LBB0_7
	jmp	LBB0_8
LBB0_4:
	movq	_ipath_make_ud_req@GOTPCREL(%rip), %r12
	cmpq	%rcx, %rax
	jne	LBB0_8
LBB0_7:
	movq	_ipath_make_rc_req@GOTPCREL(%rip), %r12
LBB0_8:
	leaq	36(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	movq	_IPATH_S_BUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IPATH_S_ANY_WAIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	testl	%eax, %edx
	je	LBB0_9
LBB0_18:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_9:
	movq	_ib_ipath_state_ops@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	8(%rbx), %rsi
	movq	_IPATH_PROCESS_OR_FLUSH_SEND@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%edi, (%rdx,%rsi,4)
	je	LBB0_18
## %bb.10:
	orl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	leaq	32(%rbx), %r15
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	(%r14)
	movq	$0, 16(%rbx)
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	*%r12
	testl	%eax, %eax
	je	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	24(%rbx), %r8d
	movl	28(%rbx), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ipath_verbs_send
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ipath_no_bufs_available
	testq	%rax, %rax
	je	LBB0_14
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_RC,8,3                  ## @IB_QPT_RC
	.comm	_IB_QPT_UC,8,3                  ## @IB_QPT_UC
	.comm	_IPATH_S_BUSY,4,2               ## @IPATH_S_BUSY
	.comm	_IPATH_S_ANY_WAIT,4,2           ## @IPATH_S_ANY_WAIT
	.comm	_ib_ipath_state_ops,8,3         ## @ib_ipath_state_ops
	.comm	_IPATH_PROCESS_OR_FLUSH_SEND,4,2 ## @IPATH_PROCESS_OR_FLUSH_SEND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_do_send                  ; -- Begin function ipath_do_send
	.p2align	2
_ipath_do_send:                         ; @ipath_do_send
	.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	x19, x0
	ldr	w0, [x0, #48]
	bl	_to_idev
	mov	x20, x0
	ldr	x8, [x19, #40]
Lloh0:
	adrp	x9, _IB_QPT_RC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPT_RC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _IB_QPT_UC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IB_QPT_UC@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	x11, [x19, #56]
	ldr	x12, [x20, #8]
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_3
; %bb.2:
	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_ruc_loopback
LBB0_3:
Lloh6:
	adrp	x11, _ipath_make_ud_req@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ipath_make_ud_req@GOTPAGEOFF]
Lloh8:
	adrp	x12, _ipath_make_uc_req@GOTPAGE
Lloh9:
	ldr	x12, [x12, _ipath_make_uc_req@GOTPAGEOFF]
	cmp	x8, x10
	csel	x10, x12, x11, eq
Lloh10:
	adrp	x11, _ipath_make_rc_req@GOTPAGE
Lloh11:
	ldr	x11, [x11, _ipath_make_rc_req@GOTPAGEOFF]
	cmp	x8, x9
	csel	x23, x11, x10, eq
	add	x22, x19, #36
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _IPATH_S_BUSY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IPATH_S_BUSY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _IPATH_S_ANY_WAIT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IPATH_S_ANY_WAIT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w10, w10, w9
	tst	w10, w8
	b.eq	LBB0_5
LBB0_4:
	mov	x0, x22
	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	_spin_unlock_irqrestore
LBB0_5:
Lloh18:
	adrp	x10, _ib_ipath_state_ops@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ib_ipath_state_ops@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	ldr	x11, [x19, #8]
	ldr	w10, [x10, x11, lsl #2]
Lloh21:
	adrp	x11, _IPATH_PROCESS_OR_FLUSH_SEND@GOTPAGE
Lloh22:
	ldr	x11, [x11, _IPATH_PROCESS_OR_FLUSH_SEND@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_4
; %bb.6:
	orr	w8, w9, w8
	mov	x21, x19
	str	w8, [x21], #32
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	str	xzr, [x19, #16]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	blr	x23
	cbz	w0, LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x19, #16]
	cbz	x2, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldp	w4, w3, [x19, #24]
	mov	x0, x19
	mov	x1, x21
	bl	_ipath_verbs_send
	cbz	x0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ipath_no_bufs_available
	cbz	x0, LBB0_7
LBB0_12:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_RC,8,3                  ; @IB_QPT_RC
	.comm	_IB_QPT_UC,8,3                  ; @IB_QPT_UC
	.comm	_IPATH_S_BUSY,4,2               ; @IPATH_S_BUSY
	.comm	_IPATH_S_ANY_WAIT,4,2           ; @IPATH_S_ANY_WAIT
	.comm	_ib_ipath_state_ops,8,3         ; @ib_ipath_state_ops
	.comm	_IPATH_PROCESS_OR_FLUSH_SEND,4,2 ; @IPATH_PROCESS_OR_FLUSH_SEND
.subsections_via_symbols
