	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_do_send                   ## -- Begin function hfi1_do_send
	.p2align	4, 0x90
_hfi1_do_send:                          ## @hfi1_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	movl	20(%rdi), %edi
	callq	_to_idev
	movl	%eax, -68(%rbp)
	movl	20(%rbx), %edi
	movl	24(%rbx), %esi
	callq	_to_iport
	movl	%eax, -72(%rbp)
	movl	%eax, %edi
	callq	_ppd_from_ibp
	movq	%rax, %r12
	movq	%rax, -96(%rbp)
	movl	%r15d, -128(%rbp)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_iowait_get_ib_work
	movl	%eax, %r13d
	movl	%eax, -104(%rbp)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_trace_hfi1_rc_do_send
	movl	16(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.2:
	movq	_loopback@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	leaq	12(%rbx), %rdi
	callq	_rdma_ah_get_dlid
	movb	(%r12), %cl
	shrl	%cl, %eax
	shll	%cl, %eax
	cmpl	4(%r12), %eax
	je	LBB0_27
LBB0_4:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r14d
	movq	_hfi1_make_rc_req@GOTPCREL(%rip), %r13
	jmp	LBB0_9
LBB0_5:
	movq	_loopback@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.6:
	leaq	12(%rbx), %rdi
	callq	_rdma_ah_get_dlid
	movb	(%r12), %cl
	shrl	%cl, %eax
	shll	%cl, %eax
	cmpl	4(%r12), %eax
	jne	LBB0_7
LBB0_27:
	movq	%rbx, %rdi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rvt_ruc_loopback               ## TAILCALL
LBB0_8:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_SEND_RESCHED_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_hfi1_make_ud_req@GOTPCREL(%rip), %r13
	jmp	LBB0_9
LBB0_7:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_SEND_RESCHED_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_hfi1_make_uc_req@GOTPCREL(%rip), %r13
LBB0_9:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_hfi1_send_ok
	testl	%eax, %eax
	je	LBB0_10
## %bb.13:
	movq	_RVT_S_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	leal	7(%r14), %eax
	testl	%r14d, %r14d
	cmovnsl	%r14d, %eax
	sarl	$3, %eax
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movslq	%eax, %rdx
	addq	(%rcx), %rdx
	movl	%eax, -124(%rbp)
	movq	%rdx, -80(%rbp)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_10:
	movq	_HFI1_S_ANY_WAIT_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_12
## %bb.11:
	movq	_IOWAIT_PENDING_IB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_iowait_set_flag
LBB0_12:
	movq	%r15, %rdi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_15:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_cpumask_of_node
	movl	%eax, %edi
	callq	_cpumask_first
LBB0_16:
	movl	%eax, -88(%rbp)
	movl	$0, -120(%rbp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_get_waiting_verbs_txreq
	movq	%rax, -112(%rbp)
	leaq	-128(%rbp), %r12
	movq	_HFI1_S_TID_BUSY_SET@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	je	LBB0_24
	.p2align	4, 0x90
LBB0_19:
	movl	(%r14), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.20:
	movq	_RVT_S_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_21:
	movl	-116(%rbp), %esi
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_hfi1_verbs_send
	testq	%rax, %rax
	jne	LBB0_26
## %bb.22:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_hfi1_schedule_send_yield
	testq	%rax, %rax
	jne	LBB0_26
## %bb.23:
	movl	-116(%rbp), %esi
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	*%r13
	testl	%eax, %eax
	je	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	-112(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_19
	jmp	LBB0_24
LBB0_25:
	movl	-120(%rbp), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_iowait_starve_clear
	movl	-116(%rbp), %esi
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_26:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_loopback,4,2                   ## @loopback
	.comm	_SEND_RESCHED_TIMEOUT,8,3       ## @SEND_RESCHED_TIMEOUT
	.comm	_HFI1_S_ANY_WAIT_IO,4,2         ## @HFI1_S_ANY_WAIT_IO
	.comm	_IOWAIT_PENDING_IB,4,2          ## @IOWAIT_PENDING_IB
	.comm	_RVT_S_BUSY,4,2                 ## @RVT_S_BUSY
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HFI1_S_TID_BUSY_SET,4,2        ## @HFI1_S_TID_BUSY_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_do_send                   ; -- Begin function hfi1_do_send
	.p2align	2
_hfi1_do_send:                          ; @hfi1_do_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x24, [x0, #32]
	ldr	w0, [x0, #20]
	bl	_to_idev
	str	w0, [sp, #60]
	ldp	w0, w1, [x19, #20]
	bl	_to_iport
	str	w0, [sp, #56]
	bl	_ppd_from_ibp
	mov	x23, x0
	str	x0, [sp, #32]
	str	w21, [sp]
	add	x20, x24, #4
	mov	x0, x20
	bl	_iowait_get_ib_work
	mov	x22, x0
	str	w0, [sp, #24]
	mov	x0, x19
	mov	x1, x21
	bl	_trace_hfi1_rc_do_send
	ldr	w8, [x19, #16]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _loopback@GOTPAGE
Lloh1:
	ldr	x8, [x8, _loopback@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_4
; %bb.3:
	add	x0, x19, #12
	bl	_rdma_ah_get_dlid
	mov	w8, #-1
	ldp	w9, w10, [x23]
	lsl	w8, w8, w9
	and	w8, w8, w0
	cmp	w8, w10
	b.eq	LBB0_7
LBB0_4:
	ldr	w27, [x19]
Lloh3:
	adrp	x25, _hfi1_make_rc_req@GOTPAGE
Lloh4:
	ldr	x25, [x25, _hfi1_make_rc_req@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh5:
	adrp	x8, _loopback@GOTPAGE
Lloh6:
	ldr	x8, [x8, _loopback@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbnz	w8, LBB0_9
; %bb.6:
	add	x0, x19, #12
	bl	_rdma_ah_get_dlid
	mov	w8, #-1
	ldp	w9, w10, [x23]
	lsl	w8, w8, w9
	and	w8, w8, w0
	cmp	w8, w10
	b.ne	LBB0_9
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_rvt_ruc_loopback
LBB0_8:
Lloh8:
	adrp	x8, _SEND_RESCHED_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEND_RESCHED_TIMEOUT@GOTPAGEOFF]
Lloh10:
	ldr	w27, [x8]
Lloh11:
	adrp	x25, _hfi1_make_ud_req@GOTPAGE
Lloh12:
	ldr	x25, [x25, _hfi1_make_ud_req@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x8, _SEND_RESCHED_TIMEOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SEND_RESCHED_TIMEOUT@GOTPAGEOFF]
Lloh15:
	ldr	w27, [x8]
Lloh16:
	adrp	x25, _hfi1_make_uc_req@GOTPAGE
Lloh17:
	ldr	x25, [x25, _hfi1_make_uc_req@GOTPAGEOFF]
LBB0_10:
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_hfi1_send_ok
	cbz	w0, LBB0_13
; %bb.11:
Lloh18:
	adrp	x26, _RVT_S_BUSY@GOTPAGE
Lloh19:
	ldr	x26, [x26, _RVT_S_BUSY@GOTPAGEOFF]
	ldr	w8, [x26]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	add	w8, w27, #7
	cmp	w27, #0
	csel	w8, w8, w27, lt
	asr	w8, w8, #3
	str	w8, [sp, #4]
Lloh20:
	adrp	x9, _jiffies@GOTPAGE
Lloh21:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x8, x9, w8, sxtw
	str	x8, [sp, #48]
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_16
; %bb.12:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_13:
	ldr	w8, [x19, #4]
Lloh23:
	adrp	x9, _HFI1_S_ANY_WAIT_IO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _HFI1_S_ANY_WAIT_IO@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
Lloh26:
	adrp	x8, _IOWAIT_PENDING_IB@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IOWAIT_PENDING_IB@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_iowait_set_flag
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_spin_unlock_irqrestore
LBB0_16:
	ldr	x8, [x23, #8]
	ldr	w0, [x8]
	bl	_cpumask_of_node
	bl	_cpumask_first
LBB0_17:
	str	w0, [sp, #40]
	str	wzr, [sp, #8]
	mov	x0, x22
	bl	_get_waiting_verbs_txreq
	str	x0, [sp, #16]
Lloh29:
	adrp	x22, _HFI1_S_TID_BUSY_SET@GOTPAGE
Lloh30:
	ldr	x22, [x22, _HFI1_S_TID_BUSY_SET@GOTPAGEOFF]
	cbz	x0, LBB0_23
LBB0_18:
	ldr	w8, [x24]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
	ldr	w8, [x26]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_20:
	ldr	w1, [sp, #12]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x1, sp
	mov	x0, x19
	bl	_hfi1_verbs_send
	cbnz	x0, LBB0_26
; %bb.21:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #0
	bl	_hfi1_schedule_send_yield
	cbnz	x0, LBB0_26
; %bb.22:
	ldr	w1, [sp, #12]
	mov	x0, x21
	bl	_spin_lock_irqsave
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	mov	x0, x19
	blr	x25
	cbz	w0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x0, [sp, #16]
	cbnz	x0, LBB0_18
	b	LBB0_23
LBB0_25:
	ldr	w0, [sp, #8]
	mov	x1, x20
	bl	_iowait_starve_clear
	ldr	w1, [sp, #12]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_26:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_loopback,4,2                   ; @loopback
	.comm	_SEND_RESCHED_TIMEOUT,8,3       ; @SEND_RESCHED_TIMEOUT
	.comm	_HFI1_S_ANY_WAIT_IO,4,2         ; @HFI1_S_ANY_WAIT_IO
	.comm	_IOWAIT_PENDING_IB,4,2          ; @IOWAIT_PENDING_IB
	.comm	_RVT_S_BUSY,4,2                 ; @RVT_S_BUSY
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HFI1_S_TID_BUSY_SET,4,2        ; @HFI1_S_TID_BUSY_SET
.subsections_via_symbols
