	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_make_ud_req                ## -- Begin function qib_make_ud_req
	.p2align	4, 0x90
_qib_make_ud_req:                       ## @qib_make_ud_req
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	136(%rdi), %r14
	movq	_ib_rvt_state_ops@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	movq	_RVT_PROCESS_NEXT_SEND_OK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r15
	movq	16(%r12), %rbx
	movl	128(%r12), %edi
	callq	_READ_ONCE
	cmpq	%rax, %rbx
	je	LBB0_10
## %bb.2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rsi
	movq	%r12, %rdi
	callq	_rvt_get_swqe_ptr
	movq	%rax, %rbx
	movl	16(%r12), %eax
	incl	%eax
	xorl	%ecx, %ecx
	cmpl	24(%r12), %eax
	movl	60(%r12), %edi
	cmovll	%eax, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	124(%r12), %esi
	callq	_to_iport
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	movq	%rax, %r13
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rvt_get_swqe_ah_attr
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_rdma_ah_get_dlid
	movl	%eax, %ebx
	movq	_IB_MULTICAST_LID_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_be16_to_cpu
	cmpl	%eax, %ebx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	jge	LBB0_11
## %bb.3:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_this_cpu_inc
	movq	%r14, %rdi
	callq	_rdma_ah_get_dlid
	movb	(%r13), %cl
	shrl	%cl, %eax
	shll	%cl, %eax
	xorl	%edi, %edi
	cmpl	4(%r13), %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %r15
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, 16(%r12)
	leaq	120(%r12), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_qib_ud_loopback
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_spin_lock_irqsave
	movq	%r15, (%rbx)
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	jmp	LBB0_41
LBB0_6:
	movq	_RVT_FLUSH_SEND@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.7:
	movq	8(%r12), %rbx
	movl	128(%r12), %edi
	callq	_READ_ONCE
	cmpq	%rax, %rbx
	je	LBB0_10
## %bb.8:
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_40
LBB0_9:
	movq	_RVT_S_WAIT_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%r12)
LBB0_10:
	movq	_RVT_S_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 40(%r12)
	xorl	%eax, %eax
	jmp	LBB0_43
LBB0_11:
	movq	%r14, %rdi
	callq	_rdma_ah_get_dlid
	movl	%eax, %ebx
	movq	_IB_LID_PERMISSIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_be16_to_cpu
	xorl	%ecx, %ecx
	cmpl	%eax, %ebx
	setne	%cl
	movq	8(%r15), %rax
	movl	(%rax,%rcx,4), %edi
	callq	_this_cpu_inc
LBB0_12:
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, 16(%r12)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	movl	%eax, %ecx
	negl	%ecx
	andl	$3, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	addl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	$7, 28(%r12)
	movl	%eax, 32(%r12)
	leaq	72(%r12), %rax
	movq	%rax, 112(%r12)
	movq	%r14, %rdi
	callq	_rdma_ah_get_static_rate
	movl	%eax, 104(%r12)
	movq	%rbx, 96(%r12)
	movq	32(%rbx), %rax
	movl	(%rax), %ecx
	movl	%ecx, 88(%r12)
	addq	$4, %rax
	movq	%rax, 80(%r12)
	movl	24(%rbx), %eax
	movl	%eax, 76(%r12)
	movl	(%rbx), %eax
	movl	%eax, 72(%r12)
	movq	%r14, %rdi
	callq	_rdma_ah_get_ah_flags
	movq	_IB_AH_GRH@GOTPCREL(%rip), %rcx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %r15
	testl	%eax, (%rcx)
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_14
## %bb.13:
	addq	$56, %r15
	movq	%r14, %rdi
	callq	_rdma_ah_read_grh
	movl	28(%r12), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%eax, %edx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	callq	_qib_make_grh
	addl	%eax, 28(%r12)
	movq	(%r13), %r15
	addq	$32, %r15
	movq	_QIB_LRH_GRH@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	addq	$8, %r15
	movq	_QIB_LRH_BTH@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rax
	movq	_IB_WR_SEND_WITH_IMM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	jne	LBB0_17
## %bb.16:
	incl	28(%r12)
	movl	20(%rbx), %eax
	movl	%eax, 8(%r15)
	movq	_IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_IB_OPCODE_UD_SEND_ONLY@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %r14d
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_rdma_ah_get_sl
	movq	%rax, %r13
	shll	$4, %r13d
	orl	-84(%rbp), %r13d                ## 4-byte Folded Reload
	movq	48(%r12), %rax
	movq	_IB_QPT_SMI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	orl	$61440, %r13d                   ## imm = 0xF000
	jmp	LBB0_21
LBB0_20:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_rdma_ah_get_sl
	movl	(%rbx,%rax,4), %eax
	shll	$12, %eax
	orl	%r13d, %eax
	movl	%eax, %r13d
LBB0_21:
	movl	%r13d, %edi
	callq	_cpu_to_be16
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	%r15, %rdi
	callq	_rdma_ah_get_dlid
	movl	%eax, %edi
	callq	_cpu_to_be16
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	addl	28(%r12), %edi
	movq	_SIZE_OF_CRC@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	callq	_cpu_to_be16
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 16(%rcx)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %ebx
	testl	%ebx, %ebx
	movq	%r15, %r13
	je	LBB0_23
## %bb.22:
	movq	%r13, %rdi
	movq	%rax, %r15
	callq	_rdma_ah_get_path_bits
	movb	(%r15), %cl
	movl	$-1, %edi
	shll	%cl, %edi
	notl	%edi
	andl	%eax, %edi
	orl	%ebx, %edi
	callq	_cpu_to_be16
	jmp	LBB0_24
LBB0_23:
	movq	_IB_LID_PERMISSIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_24:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 24(%rcx)
	movq	_IB_SEND_SOLICITED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	16(%r15), %ebx
	je	LBB0_26
## %bb.25:
	movq	_IB_BTH_SOLICITED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_26:
	shll	$24, %r14d
	shll	$20, %edx
	movq	48(%r12), %rax
	movq	_IB_QPT_SMI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.27:
	movq	_QIB_DEFAULT_P_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_32
LBB0_28:
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_30
## %bb.29:
	movq	%r15, %rdi
	callq	_rvt_get_swqe_pkey_index
	movl	%eax, %esi
	jmp	LBB0_31
LBB0_30:
	movl	64(%r12), %esi
LBB0_31:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_qib_get_pkey
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_32:
	orl	%edx, %r14d
	orl	%ebx, %r14d
	orl	%eax, %r14d
	movl	%r14d, %edi
	callq	_cpu_to_be32
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	16(%r14), %rcx
	movq	%rax, (%rcx)
	movq	%r13, %rdi
	callq	_rdma_ah_get_dlid
	movl	%eax, %ebx
	movq	_IB_MULTICAST_LID_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_be16_to_cpu
	cmpl	%eax, %ebx
	jl	LBB0_34
## %bb.33:
	movq	%r13, %rdi
	callq	_rdma_ah_get_dlid
	movl	%eax, %ebx
	movq	_IB_LID_PERMISSIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_be16_to_cpu
	cmpl	%eax, %ebx
	jne	LBB0_35
LBB0_34:
	movq	%r15, %rdi
	callq	_rvt_get_swqe_remote_qpn
	movl	%eax, %edi
	jmp	LBB0_36
LBB0_35:
	movq	_QIB_MULTICAST_QPN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_36:
	callq	_cpu_to_be32
	movq	16(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	_QIB_PSN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	4(%r15), %edi
	callq	_cpu_to_be32
	movq	16(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	%r15, %rdi
	callq	_rvt_get_swqe_remote_qkey
	testl	%eax, %eax
	js	LBB0_38
## %bb.37:
	movq	%r15, %rdi
	callq	_rvt_get_swqe_remote_qkey
	movl	%eax, %edi
	jmp	LBB0_39
LBB0_38:
	movl	36(%r12), %edi
LBB0_39:
	callq	_cpu_to_be32
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	movl	56(%r12), %edi
	callq	_cpu_to_be32
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_42
LBB0_40:
	movq	8(%r12), %rsi
	movq	%r12, %rdi
	callq	_rvt_get_swqe_ptr
	movq	_IB_WC_WR_FLUSH_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
LBB0_41:
	callq	_rvt_send_complete
LBB0_42:
	movl	$1, %eax
LBB0_43:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_rvt_state_ops,8,3           ## @ib_rvt_state_ops
	.comm	_RVT_PROCESS_NEXT_SEND_OK,4,2   ## @RVT_PROCESS_NEXT_SEND_OK
	.comm	_RVT_FLUSH_SEND,4,2             ## @RVT_FLUSH_SEND
	.comm	_RVT_S_WAIT_DMA,4,2             ## @RVT_S_WAIT_DMA
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ## @IB_WC_WR_FLUSH_ERR
	.comm	_IB_MULTICAST_LID_BASE,8,3      ## @IB_MULTICAST_LID_BASE
	.comm	_IB_LID_PERMISSIVE,8,3          ## @IB_LID_PERMISSIVE
	.comm	_IB_WC_SUCCESS,4,2              ## @IB_WC_SUCCESS
	.comm	_IB_AH_GRH,4,2                  ## @IB_AH_GRH
	.comm	_QIB_LRH_GRH,4,2                ## @QIB_LRH_GRH
	.comm	_QIB_LRH_BTH,4,2                ## @QIB_LRH_BTH
	.comm	_IB_WR_SEND_WITH_IMM,8,3        ## @IB_WR_SEND_WITH_IMM
	.comm	_IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE,4,2 ## @IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE
	.comm	_IB_OPCODE_UD_SEND_ONLY,4,2     ## @IB_OPCODE_UD_SEND_ONLY
	.comm	_IB_QPT_SMI,8,3                 ## @IB_QPT_SMI
	.comm	_SIZE_OF_CRC,4,2                ## @SIZE_OF_CRC
	.comm	_IB_SEND_SOLICITED,4,2          ## @IB_SEND_SOLICITED
	.comm	_IB_BTH_SOLICITED,4,2           ## @IB_BTH_SOLICITED
	.comm	_QIB_DEFAULT_P_KEY,4,2          ## @QIB_DEFAULT_P_KEY
	.comm	_IB_QPT_GSI,8,3                 ## @IB_QPT_GSI
	.comm	_QIB_MULTICAST_QPN,4,2          ## @QIB_MULTICAST_QPN
	.comm	_QIB_PSN_MASK,4,2               ## @QIB_PSN_MASK
	.comm	_RVT_S_BUSY,4,2                 ## @RVT_S_BUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_make_ud_req                ; -- Begin function qib_make_ud_req
	.p2align	2
_qib_make_ud_req:                       ; @qib_make_ud_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	ldr	x26, [x0, #136]
Lloh0:
	adrp	x8, _ib_rvt_state_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ib_rvt_state_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _RVT_PROCESS_NEXT_SEND_OK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RVT_PROCESS_NEXT_SEND_OK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	mov	x24, x1
	ldr	x20, [x19, #16]
	ldr	w0, [x19, #128]
	bl	_READ_ONCE
	cmp	x20, x0
	b.eq	LBB0_10
; %bb.2:
	ldr	x1, [x19, #16]
	mov	x0, x19
	bl	_rvt_get_swqe_ptr
	mov	x20, x0
	ldr	w8, [x19, #16]
	add	w9, w8, #1
	ldr	w10, [x19, #24]
	cmp	w9, w10
	csinc	w27, wzr, w8, ge
	ldr	w0, [x19, #60]
	ldr	w1, [x19, #124]
	bl	_to_iport
	mov	x22, x0
	bl	_ppd_from_ibp
	mov	x23, x0
	mov	x0, x20
	bl	_rvt_get_swqe_ah_attr
	mov	x21, x0
	bl	_rdma_ah_get_dlid
	mov	x25, x0
Lloh6:
	adrp	x8, _IB_MULTICAST_LID_BASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_MULTICAST_LID_BASE@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	bl	_be16_to_cpu
	cmp	w25, w0
	b.ge	LBB0_11
; %bb.3:
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
	bl	_this_cpu_inc
	mov	x0, x21
	bl	_rdma_ah_get_dlid
	mov	w8, #-1
	ldp	w9, w10, [x23]
	lsl	w8, w8, w9
	and	w8, w8, w0
	cmp	w8, w10
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.4:
	ldr	x21, [x24]
	add	x0, x26, #8
	bl	_atomic_read
	cbnz	x0, LBB0_9
; %bb.5:
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	sxtw	x8, w27
	str	x8, [x19, #16]
	add	x22, x19, #120
	mov	x0, x22
	mov	x1, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x20
	bl	_qib_ud_loopback
	mov	x0, x22
	mov	x1, x21
	bl	_spin_lock_irqsave
	str	x21, [x24]
Lloh9:
	adrp	x8, _IB_WC_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	b	LBB0_39
LBB0_6:
Lloh12:
	adrp	x9, _RVT_FLUSH_SEND@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RVT_FLUSH_SEND@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	ldr	x20, [x19, #8]
	ldr	w0, [x19, #128]
	bl	_READ_ONCE
	cmp	x20, x0
	b.eq	LBB0_10
; %bb.8:
	add	x0, x26, #8
	bl	_atomic_read
	cbz	x0, LBB0_38
LBB0_9:
Lloh15:
	adrp	x8, _RVT_S_WAIT_DMA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RVT_S_WAIT_DMA@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	orr	w8, w9, w8
	str	w8, [x19, #40]
LBB0_10:
	mov	w0, #0
Lloh18:
	adrp	x8, _RVT_S_BUSY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RVT_S_BUSY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	bic	w8, w9, w8
	str	w8, [x19, #40]
	b	LBB0_41
LBB0_11:
	mov	x0, x21
	bl	_rdma_ah_get_dlid
	mov	x24, x0
Lloh21:
	adrp	x8, _IB_LID_PERMISSIVE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IB_LID_PERMISSIVE@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
	bl	_be16_to_cpu
	cmp	w24, w0
	cset	w8, ne
	ldr	x9, [x22, #8]
	ldr	w0, [x9, w8, uxtw #2]
	bl	_this_cpu_inc
LBB0_12:
	sxtw	x8, w27
	str	x8, [x19, #16]
	ldr	w8, [x20]
	neg	w9, w8
	and	w9, w9, #0x3
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	add	w9, w9, w8
	asr	w24, w9, #2
	mov	w9, #7
	stp	w9, w8, [x19, #28]
	add	x8, x19, #72
	str	x8, [x19, #112]
	mov	x0, x21
	bl	_rdma_ah_get_static_rate
	str	w0, [x19, #104]
	str	x20, [x19, #96]
	ldr	x8, [x20, #32]
	ldr	w9, [x8], #4
	str	w9, [x19, #88]
	str	x8, [x19, #80]
	ldr	w8, [x20, #24]
	ldr	w9, [x20]
	stp	w9, w8, [x19, #72]
	mov	x0, x21
	bl	_rdma_ah_get_ah_flags
Lloh24:
	adrp	x8, _IB_AH_GRH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IB_AH_GRH@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x8]
	ldr	x8, [x26]
	tst	w9, w0
	b.eq	LBB0_14
; %bb.13:
	add	x25, x8, #56
	mov	x0, x21
	bl	_rdma_ah_read_grh
	mov	x2, x0
	ldr	w3, [x19, #28]
	mov	x0, x22
	mov	x1, x25
	mov	x4, x24
	bl	_qib_make_grh
	ldr	w8, [x19, #28]
	add	w8, w8, w0
	str	w8, [x19, #28]
	ldr	x8, [x26]
	add	x25, x8, #32
Lloh27:
	adrp	x8, _QIB_LRH_GRH@GOTPAGE
Lloh28:
	ldr	x8, [x8, _QIB_LRH_GRH@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
	add	x25, x8, #8
Lloh29:
	adrp	x8, _QIB_LRH_BTH@GOTPAGE
Lloh30:
	ldr	x8, [x8, _QIB_LRH_BTH@GOTPAGEOFF]
LBB0_15:
	ldr	w28, [x8]
	ldr	x8, [x20, #8]
Lloh31:
	adrp	x9, _IB_WR_SEND_WITH_IMM@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IB_WR_SEND_WITH_IMM@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
	ldr	w8, [x20, #20]
	str	w8, [x25, #8]
Lloh34:
	adrp	x8, _IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh36:
	adrp	x8, _IB_OPCODE_UD_SEND_ONLY@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IB_OPCODE_UD_SEND_ONLY@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	mov	x0, x21
	bl	_rdma_ah_get_sl
	orr	w28, w28, w0, lsl #4
	ldr	x8, [x19, #48]
Lloh38:
	adrp	x27, _IB_QPT_SMI@GOTPAGE
Lloh39:
	ldr	x27, [x27, _IB_QPT_SMI@GOTPAGEOFF]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:
	orr	w0, w28, #0xf000
	b	LBB0_21
LBB0_20:
	mov	x27, x24
	ldr	x24, [x22]
	mov	x0, x21
	bl	_rdma_ah_get_sl
	ldr	w8, [x24, x0, lsl #2]
	mov	x24, x27
Lloh40:
	adrp	x27, _IB_QPT_SMI@GOTPAGE
Lloh41:
	ldr	x27, [x27, _IB_QPT_SMI@GOTPAGEOFF]
	orr	w0, w28, w8, lsl #12
LBB0_21:
	bl	_cpu_to_be16
	ldr	x8, [x26]
	ldr	x8, [x8]
	str	x0, [x8]
	mov	x0, x21
	bl	_rdma_ah_get_dlid
	bl	_cpu_to_be16
	ldr	x8, [x26]
	ldr	x8, [x8]
	str	x0, [x8, #8]
	ldr	w8, [x19, #28]
Lloh42:
	adrp	x9, _SIZE_OF_CRC@GOTPAGE
Lloh43:
	ldr	x9, [x9, _SIZE_OF_CRC@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	add	w8, w8, w24
	add	w0, w8, w9
	bl	_cpu_to_be16
	ldr	x8, [x26]
	ldr	x8, [x8]
	str	x0, [x8, #16]
	ldr	w24, [x23, #4]
Lloh45:
	adrp	x28, _IB_MULTICAST_LID_BASE@GOTPAGE
Lloh46:
	ldr	x28, [x28, _IB_MULTICAST_LID_BASE@GOTPAGEOFF]
	cbz	w24, LBB0_23
; %bb.22:
	mov	x0, x21
	bl	_rdma_ah_get_path_bits
	ldr	w8, [x23]
	mov	w9, #-1
	lsl	w8, w9, w8
	bic	w8, w0, w8
	orr	w0, w8, w24
	bl	_cpu_to_be16
	b	LBB0_24
LBB0_23:
Lloh47:
	adrp	x8, _IB_LID_PERMISSIVE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _IB_LID_PERMISSIVE@GOTPAGEOFF]
Lloh49:
	ldr	x0, [x8]
LBB0_24:
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	lsl	w23, w8, #24
	ldr	x8, [x26]
	ldr	x8, [x8]
	str	x0, [x8, #24]
	ldr	w8, [x20, #16]
Lloh50:
	adrp	x9, _IB_SEND_SOLICITED@GOTPAGE
Lloh51:
	ldr	x9, [x9, _IB_SEND_SOLICITED@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
Lloh53:
	adrp	x10, _IB_BTH_SOLICITED@GOTPAGE
Lloh54:
	ldr	x10, [x10, _IB_BTH_SOLICITED@GOTPAGEOFF]
Lloh55:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w24, wzr, w10, eq
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	lsl	w26, w8, #20
	ldr	x8, [x19, #48]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.25:
Lloh56:
	adrp	x8, _QIB_DEFAULT_P_KEY@GOTPAGE
Lloh57:
	ldr	x8, [x8, _QIB_DEFAULT_P_KEY@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	b	LBB0_30
LBB0_26:
Lloh59:
	adrp	x9, _IB_QPT_GSI@GOTPAGE
Lloh60:
	ldr	x9, [x9, _IB_QPT_GSI@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.27:
	mov	x0, x20
	bl	_rvt_get_swqe_pkey_index
	mov	x1, x0
	b	LBB0_29
LBB0_28:
	ldr	w1, [x19, #64]
LBB0_29:
	mov	x0, x22
	bl	_qib_get_pkey
LBB0_30:
	orr	w8, w23, w26
	orr	w8, w8, w24
	orr	w0, w8, w0
	bl	_cpu_to_be32
	ldr	x8, [x25, #16]
	str	x0, [x8]
	mov	x0, x21
	bl	_rdma_ah_get_dlid
	mov	x22, x0
	ldr	x0, [x28]
	bl	_be16_to_cpu
	cmp	w22, w0
	b.lt	LBB0_32
; %bb.31:
	mov	x0, x21
	bl	_rdma_ah_get_dlid
	mov	x21, x0
Lloh62:
	adrp	x8, _IB_LID_PERMISSIVE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _IB_LID_PERMISSIVE@GOTPAGEOFF]
Lloh64:
	ldr	x0, [x8]
	bl	_be16_to_cpu
	cmp	w21, w0
	b.ne	LBB0_33
LBB0_32:
	mov	x0, x20
	bl	_rvt_get_swqe_remote_qpn
	b	LBB0_34
LBB0_33:
Lloh65:
	adrp	x8, _QIB_MULTICAST_QPN@GOTPAGE
Lloh66:
	ldr	x8, [x8, _QIB_MULTICAST_QPN@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
LBB0_34:
	bl	_cpu_to_be32
	ldr	x8, [x25, #16]
	str	x0, [x8, #8]
	ldr	w8, [x20, #4]
Lloh68:
	adrp	x9, _QIB_PSN_MASK@GOTPAGE
Lloh69:
	ldr	x9, [x9, _QIB_PSN_MASK@GOTPAGEOFF]
Lloh70:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_cpu_to_be32
	ldr	x8, [x25, #16]
	str	x0, [x8, #16]
	mov	x0, x20
	bl	_rvt_get_swqe_remote_qkey
	tbnz	w0, #31, LBB0_36
; %bb.35:
	mov	x0, x20
	bl	_rvt_get_swqe_remote_qkey
	b	LBB0_37
LBB0_36:
	ldr	w0, [x19, #36]
LBB0_37:
	bl	_cpu_to_be32
	ldr	x8, [x25]
	str	x0, [x8]
	ldr	w0, [x19, #56]
	bl	_cpu_to_be32
	ldr	x8, [x25]
	str	x0, [x8, #8]
	b	LBB0_40
LBB0_38:
	ldr	x1, [x19, #8]
	mov	x0, x19
	bl	_rvt_get_swqe_ptr
	mov	x1, x0
Lloh71:
	adrp	x8, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh72:
	ldr	x8, [x8, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh73:
	ldr	w2, [x8]
	mov	x0, x19
LBB0_39:
	bl	_rvt_send_complete
LBB0_40:
	mov	w0, #1
LBB0_41:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_rvt_state_ops,8,3           ; @ib_rvt_state_ops
	.comm	_RVT_PROCESS_NEXT_SEND_OK,4,2   ; @RVT_PROCESS_NEXT_SEND_OK
	.comm	_RVT_FLUSH_SEND,4,2             ; @RVT_FLUSH_SEND
	.comm	_RVT_S_WAIT_DMA,4,2             ; @RVT_S_WAIT_DMA
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ; @IB_WC_WR_FLUSH_ERR
	.comm	_IB_MULTICAST_LID_BASE,8,3      ; @IB_MULTICAST_LID_BASE
	.comm	_IB_LID_PERMISSIVE,8,3          ; @IB_LID_PERMISSIVE
	.comm	_IB_WC_SUCCESS,4,2              ; @IB_WC_SUCCESS
	.comm	_IB_AH_GRH,4,2                  ; @IB_AH_GRH
	.comm	_QIB_LRH_GRH,4,2                ; @QIB_LRH_GRH
	.comm	_QIB_LRH_BTH,4,2                ; @QIB_LRH_BTH
	.comm	_IB_WR_SEND_WITH_IMM,8,3        ; @IB_WR_SEND_WITH_IMM
	.comm	_IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE,4,2 ; @IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE
	.comm	_IB_OPCODE_UD_SEND_ONLY,4,2     ; @IB_OPCODE_UD_SEND_ONLY
	.comm	_IB_QPT_SMI,8,3                 ; @IB_QPT_SMI
	.comm	_SIZE_OF_CRC,4,2                ; @SIZE_OF_CRC
	.comm	_IB_SEND_SOLICITED,4,2          ; @IB_SEND_SOLICITED
	.comm	_IB_BTH_SOLICITED,4,2           ; @IB_BTH_SOLICITED
	.comm	_QIB_DEFAULT_P_KEY,4,2          ; @QIB_DEFAULT_P_KEY
	.comm	_IB_QPT_GSI,8,3                 ; @IB_QPT_GSI
	.comm	_QIB_MULTICAST_QPN,4,2          ; @QIB_MULTICAST_QPN
	.comm	_QIB_PSN_MASK,4,2               ; @QIB_PSN_MASK
	.comm	_RVT_S_BUSY,4,2                 ; @RVT_S_BUSY
.subsections_via_symbols
