	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_ud_loopback
_qib_ud_loopback:                       ## @qib_ud_loopback
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	36(%rdi), %esi
	movl	52(%rdi), %edi
	callq	_to_iport
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	movq	8(%rax), %rbx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%r15, %rdi
	callq	_rvt_get_swqe_remote_qpn
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_rvt_lookup_qpn
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	movq	40(%r12), %rax
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	movq	_IB_QPT_UD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmovel	%edx, %eax
	movq	40(%r14), %rsi
	cmpq	%rcx, %rsi
	cmovel	%edx, %esi
	cmpl	%eax, %esi
	jne	LBB0_7
## %bb.2:
	movq	_ib_rvt_state_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	_RVT_PROCESS_RECV_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	callq	_rvt_get_swqe_ah_attr
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_ppd_from_ibp
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	48(%r14), %eax
	cmpl	$2, %eax
	jl	LBB0_10
## %bb.4:
	movl	68(%r12), %esi
	movq	%r13, %rdi
	callq	_qib_get_pkey
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r12d
	movl	68(%r14), %esi
	movq	%r13, %rdi
	callq	_qib_get_pkey
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_qib_pkey_ok
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %r12d
	movq	%rbx, %r15
	movq	%rbx, %rdi
	callq	_rdma_ah_get_path_bits
	movb	4(%r13), %cl
	movl	$-1, %ebx
	shll	%cl, %ebx
	notl	%ebx
	andl	%eax, %ebx
	orl	%r12d, %ebx
	movq	%r15, %rdi
	callq	_rdma_ah_get_sl
	movl	%eax, %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	48(%rax), %r12d
	movl	48(%r14), %r14d
	movl	%ebx, %edi
	callq	_cpu_to_be16
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_rdma_ah_get_dlid
	movl	%eax, %edi
	callq	_cpu_to_be16
	movl	%eax, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	callq	_qib_bad_pkey
	jmp	LBB0_8
LBB0_7:
	incl	4(%r13)
LBB0_8:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	48(%r14), %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_10:
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	movq	%r15, %rdi
	callq	_rvt_get_swqe_remote_qkey
	testl	$-2147483648, %eax              ## imm = 0x80000000
	jne	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_rvt_get_swqe_remote_qkey
	jmp	LBB0_14
LBB0_13:
	movq	8(%r12), %rax
LBB0_14:
	xorl	%edi, %edi
	cmpq	8(%r14), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
LBB0_15:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %r13
	leaq	-216(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	leaq	4(%r13), %rax
	movq	%rax, -216(%rbp)
	movq	8(%r15), %rax
	movq	_IB_WR_SEND_WITH_IMM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	movq	_IB_WC_WITH_IMM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -164(%rbp)
	movl	32(%r15), %eax
	movl	%eax, -160(%rbp)
LBB0_17:
	leaq	32(%r14), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	16(%r14), %eax
	movq	_RVT_R_REUSE_SGE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	testl	%eax, %ecx
	je	LBB0_21
## %bb.18:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 16(%r14)
LBB0_19:
	movq	-216(%rbp), %rax
	xorl	%edi, %edi
	cmpq	24(%r14), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_25
## %bb.20:
	movl	(%rbx), %eax
	orl	%eax, 16(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax)
	jmp	LBB0_45
LBB0_21:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_rvt_get_rwqe
	testl	%eax, %eax
	js	LBB0_27
## %bb.22:
	jne	LBB0_19
## %bb.23:
	cmpl	$0, 48(%r14)
	jne	LBB0_45
## %bb.24:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	8(%rax)
	jmp	LBB0_45
LBB0_25:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_rdma_ah_get_ah_flags
	movq	_IB_AH_GRH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.26:
	movq	%rbx, %rdi
	callq	_rdma_ah_read_grh
	movq	%r15, %rbx
	leaq	-152(%rbp), %r15
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_qib_make_grh
	leaq	64(%r14), %rsi
	movl	$4, %ecx
	movq	%r14, %rdi
	movq	%r15, %rdx
	movq	%rbx, %r15
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_rvt_copy_sge
	movq	_IB_WC_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -164(%rbp)
	jmp	LBB0_29
LBB0_27:
	movq	_IB_WC_LOC_QP_OP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rvt_rc_error
	jmp	LBB0_45
LBB0_28:
	leaq	64(%r14), %rdi
	movl	$4, %esi
	movl	$1, %edx
	callq	_rvt_skip_sge
LBB0_29:
	movq	40(%r15), %rax
	leaq	48(%rax), %rcx
	movq	%rcx, -152(%rbp)
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	32(%rax), %xmm2
	movups	%xmm0, -136(%rbp)
	movups	%xmm1, -120(%rbp)
	movups	%xmm2, -104(%rbp)
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	24(%r15), %rax
	movq	%rax, -144(%rbp)
	testq	%r13, %r13
	je	LBB0_41
## %bb.30:
	leaq	-136(%rbp), %rbx
	leaq	64(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_33
LBB0_31:                                ##   in Loop: Header=BB0_33 Depth=1
	movq	8(%rcx), %rcx
	movq	(%rcx,%rax,8), %rsi
	movq	(%rsi), %rsi
	shlq	$4, %rdx
	movq	8(%rsi,%rdx), %rsi
	movq	%rsi, -96(%rbp)
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdx), %rax
	movq	%rax, -136(%rbp)
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_33 Depth=1
	subq	%r15, %r13
	je	LBB0_41
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_rvt_get_sge_length
	movq	%rax, %r15
	movq	-96(%rbp), %rdx
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, %rcx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_rvt_copy_sge
	leaq	(,%r15,4), %rax
	addq	%rax, -96(%rbp)
	movq	-136(%rbp), %rax
	movq	%rax, %rcx
	subq	%r15, %rcx
	movq	%rcx, -136(%rbp)
	subq	%r15, -128(%rbp)
	jne	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	decq	-144(%rbp)
	je	LBB0_32
## %bb.35:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	-152(%rbp), %rax
	leaq	48(%rax), %rcx
	movq	%rcx, -152(%rbp)
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	32(%rax), %xmm2
	movq	%rbx, %rax
	movups	%xmm2, 32(%rbx)
	movups	%xmm1, 16(%rbx)
	movups	%xmm0, (%rbx)
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_33 Depth=1
	cmpq	%r15, %rax
	jne	LBB0_32
## %bb.37:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	-104(%rbp), %rcx
	cmpq	$0, 16(%rcx)
	je	LBB0_32
## %bb.38:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	-120(%rbp), %rdx
	movq	-112(%rbp), %rax
	incq	%rdx
	movq	%rdx, -120(%rbp)
	movq	_RVT_SEGSZ@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jl	LBB0_31
## %bb.39:                              ##   in Loop: Header=BB0_33 Depth=1
	incq	%rax
	movq	%rax, -112(%rbp)
	cmpq	(%rcx), %rax
	jge	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	$0, -120(%rbp)
	xorl	%edx, %edx
	jmp	LBB0_31
LBB0_41:
	leaq	64(%r14), %rdi
	callq	_rvt_put_ss
	movq	_RVT_R_WRID_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	60(%r14), %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_45
## %bb.42:
	movq	%r14, %rax
	addq	$40, %rax
	movl	56(%r14), %ecx
	movl	%ecx, -168(%rbp)
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -172(%rbp)
	movq	_IB_WC_RECV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -176(%rbp)
	movq	%rax, -184(%rbp)
	movl	48(%r12), %eax
	movl	%eax, -208(%rbp)
	movq	40(%r14), %rcx
	xorl	%eax, %eax
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_44
## %bb.43:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_rvt_get_swqe_pkey_index
LBB0_44:
	movl	%eax, -188(%rbp)
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %r15d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_rdma_ah_get_path_bits
	movb	4(%r13), %cl
	movl	$-1, %ebx
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	orl	%r15d, %edx
	movl	%edx, -204(%rbp)
	movq	%r12, %rdi
	callq	_rdma_ah_get_sl
	movl	%eax, -192(%rbp)
	movq	%r12, %rdi
	callq	_rdma_ah_get_dlid
	movb	4(%r13), %cl
	shll	%cl, %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%ebx, -200(%rbp)
	movl	36(%r14), %eax
	movl	%eax, -196(%rbp)
	movq	_IB_SEND_SOLICITED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	andl	16(%rax), %edx
	leaq	-216(%rbp), %rsi
	movq	%r14, %rdi
	callq	_rvt_recv_cq
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
LBB0_45:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_GSI,8,3                 ## @IB_QPT_GSI
	.comm	_IB_QPT_UD,4,2                  ## @IB_QPT_UD
	.comm	_ib_rvt_state_ops,8,3           ## @ib_rvt_state_ops
	.comm	_RVT_PROCESS_RECV_OK,4,2        ## @RVT_PROCESS_RECV_OK
	.comm	_IB_WR_SEND_WITH_IMM,8,3        ## @IB_WR_SEND_WITH_IMM
	.comm	_IB_WC_WITH_IMM,4,2             ## @IB_WC_WITH_IMM
	.comm	_RVT_R_REUSE_SGE,4,2            ## @RVT_R_REUSE_SGE
	.comm	_IB_WC_LOC_QP_OP_ERR,4,2        ## @IB_WC_LOC_QP_OP_ERR
	.comm	_IB_AH_GRH,4,2                  ## @IB_AH_GRH
	.comm	_IB_WC_GRH,4,2                  ## @IB_WC_GRH
	.comm	_RVT_SEGSZ,8,3                  ## @RVT_SEGSZ
	.comm	_RVT_R_WRID_VALID,4,2           ## @RVT_R_WRID_VALID
	.comm	_IB_WC_SUCCESS,4,2              ## @IB_WC_SUCCESS
	.comm	_IB_WC_RECV,4,2                 ## @IB_WC_RECV
	.comm	_IB_SEND_SOLICITED,4,2          ## @IB_SEND_SOLICITED
	.no_dead_strip	_qib_ud_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_ud_loopback
_qib_ud_loopback:                       ; @qib_ud_loopback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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	x22, x0
	ldr	w0, [x0, #52]
	ldr	w1, [x22, #36]
	bl	_to_iport
	mov	x19, x0
	bl	_ppd_from_ibp
	ldr	x20, [x0, #8]
	bl	_rcu_read_lock
	mov	x0, x21
	bl	_rvt_get_swqe_remote_qpn
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_rvt_lookup_qpn
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x8, [x22, #40]
Lloh0:
	adrp	x24, _IB_QPT_GSI@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IB_QPT_GSI@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh2:
	adrp	x10, _IB_QPT_UD@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IB_QPT_UD@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w8, w10, w8, eq
	mov	x23, x0
	ldr	x11, [x23, #40]!
	cmp	x11, x9
	csel	w9, w10, w11, eq
	cmp	w9, w8
	b.ne	LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, _ib_rvt_state_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ib_rvt_state_ops@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	w8, [x8, x9, lsl #2]
Lloh8:
	adrp	x9, _RVT_PROCESS_RECV_OK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RVT_PROCESS_RECV_OK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x21
	bl	_rvt_get_swqe_ah_attr
	mov	x27, x0
	mov	x0, x19
	bl	_ppd_from_ibp
	mov	x28, x0
	ldr	w8, [x20, #48]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.4:
	ldr	w1, [x22, #68]
	mov	x0, x19
	bl	_qib_get_pkey
	mov	x25, x0
	ldr	w1, [x20, #68]
	mov	x0, x19
	bl	_qib_get_pkey
	mov	x1, x0
	mov	x0, x25
	bl	_qib_pkey_ok
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w21, [x28]
	mov	x0, x27
	bl	_rdma_ah_get_path_bits
	ldr	w8, [x28, #4]
	mov	w9, #-1
	lsl	w8, w9, w8
	bic	w8, w0, w8
	orr	w21, w8, w21
	mov	x0, x27
	bl	_rdma_ah_get_sl
	mov	x24, x0
	ldr	w22, [x22, #48]
	ldr	w20, [x20, #48]
	mov	x0, x21
	bl	_cpu_to_be16
	mov	x21, x0
	mov	x0, x27
	bl	_rdma_ah_get_dlid
	bl	_cpu_to_be16
	mov	x6, x0
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	mov	x3, x22
	mov	x4, x20
	mov	x5, x21
	bl	_qib_bad_pkey
	b	LBB0_7
LBB0_6:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_7:
	bl	_rcu_read_unlock
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_8:
	ldr	w8, [x20, #48]
LBB0_9:
	cbz	w8, LBB0_14
; %bb.10:
	mov	x0, x21
	bl	_rvt_get_swqe_remote_qkey
	tbnz	w0, #31, LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_rvt_get_swqe_remote_qkey
	b	LBB0_13
LBB0_12:
	ldr	x0, [x22, #8]
LBB0_13:
	ldr	x8, [x20, #8]
	cmp	x0, x8
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_7
LBB0_14:
	ldr	x26, [x21]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	add	x8, x26, #4
	str	x8, [sp, #24]
	ldr	x8, [x21, #8]
Lloh11:
	adrp	x9, _IB_WR_SEND_WITH_IMM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IB_WR_SEND_WITH_IMM@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
Lloh14:
	adrp	x8, _IB_WC_WITH_IMM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_WC_WITH_IMM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x21, #32]
	stp	w8, w9, [sp, #76]
LBB0_16:
	add	x0, x20, #32
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	bl	_spin_lock_irqsave
	ldr	w8, [x20, #16]
Lloh17:
	adrp	x25, _RVT_R_REUSE_SGE@GOTPAGE
Lloh18:
	ldr	x25, [x25, _RVT_R_REUSE_SGE@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.17:
	bic	w8, w8, w9
	str	w8, [x20, #16]
LBB0_18:
	ldr	x8, [sp, #24]
	ldr	x9, [x20, #24]
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_24
; %bb.19:
	ldr	w8, [x25]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	b	LBB0_45
LBB0_20:
	mov	x0, x20
	mov	w1, #0
	bl	_rvt_get_rwqe
	tbnz	w0, #31, LBB0_26
; %bb.21:
	cbnz	w0, LBB0_18
; %bb.22:
	ldr	w8, [x20, #48]
	cbnz	w8, LBB0_45
; %bb.23:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_45
LBB0_24:
	mov	x0, x27
	bl	_rdma_ah_get_ah_flags
Lloh19:
	adrp	x8, _IB_AH_GRH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IB_AH_GRH@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w0
	stp	x28, x27, [sp]                  ; 16-byte Folded Spill
	b.eq	LBB0_27
; %bb.25:
	mov	x0, x27
	bl	_rdma_ah_read_grh
	mov	x2, x0
	add	x1, sp, #88
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	bl	_qib_make_grh
	add	x1, x20, #64
	add	x2, sp, #88
	mov	x0, x20
	mov	w3, #4
	mov	w4, #1
	mov	w5, #0
	bl	_rvt_copy_sge
Lloh22:
	adrp	x8, _IB_WC_GRH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IB_WC_GRH@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [sp, #76]
	orr	w8, w9, w8
	str	w8, [sp, #76]
	b	LBB0_28
LBB0_26:
Lloh25:
	adrp	x8, _IB_WC_LOC_QP_OP_ERR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IB_WC_LOC_QP_OP_ERR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rvt_rc_error
	b	LBB0_45
LBB0_27:
	add	x0, x20, #64
	mov	w1, #4
	mov	w2, #1
	bl	_rvt_skip_sge
LBB0_28:
	ldr	x8, [x21, #40]
	add	x9, x8, #48
	str	x9, [sp, #88]
	ldp	q1, q0, [x8, #16]
	ldr	q2, [x8]
	stur	q2, [sp, #104]
	stur	q1, [sp, #120]
	stur	q0, [sp, #136]
	ldr	x8, [x21, #24]
	str	x8, [sp, #96]
	cbz	x26, LBB0_40
; %bb.29:
	add	x8, sp, #88
	add	x27, x8, #16
	add	x28, x20, #64
	b	LBB0_32
LBB0_30:                                ;   in Loop: Header=BB0_32 Depth=1
	ldr	x8, [x8, #8]
	lsl	x9, x9, #3
	ldr	x11, [x8, x9]
	ldr	x11, [x11]
	lsl	x10, x10, #4
	add	x11, x11, x10
	ldr	x11, [x11, #8]
	str	x11, [sp, #144]
	ldr	x8, [x8, x9]
	ldr	x8, [x8]
	ldr	x8, [x8, x10]
	str	x8, [sp, #104]
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=1
	subs	x26, x26, x25
	b.eq	LBB0_40
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x27
	mov	x1, x26
	bl	_rvt_get_sge_length
	mov	x25, x0
	ldr	x2, [sp, #144]
	mov	x0, x20
	mov	x1, x28
	mov	x3, x25
	mov	w4, #1
	mov	w5, #0
	bl	_rvt_copy_sge
	ldr	x8, [sp, #144]
	add	x8, x8, x25, lsl #2
	str	x8, [sp, #144]
	ldp	x8, x9, [sp, #104]
	sub	x10, x8, x25
	subs	x9, x9, x25
	stp	x10, x9, [sp, #104]
	b.ne	LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	ldr	x8, [sp, #96]
	subs	x8, x8, #1
	str	x8, [sp, #96]
	b.eq	LBB0_31
; %bb.34:                               ;   in Loop: Header=BB0_32 Depth=1
	ldr	x8, [sp, #88]
	add	x9, x8, #48
	str	x9, [sp, #88]
	ldp	q0, q1, [x8]
	ldr	q2, [x8, #32]
	stp	q1, q2, [x27, #16]
	str	q0, [x27]
	b	LBB0_31
LBB0_35:                                ;   in Loop: Header=BB0_32 Depth=1
	cmp	x8, x25
	b.ne	LBB0_31
; %bb.36:                               ;   in Loop: Header=BB0_32 Depth=1
	ldr	x8, [sp, #136]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_31
; %bb.37:                               ;   in Loop: Header=BB0_32 Depth=1
	ldp	x10, x9, [sp, #120]
	add	x10, x10, #1
	str	x10, [sp, #120]
Lloh28:
	adrp	x11, _RVT_SEGSZ@GOTPAGE
Lloh29:
	ldr	x11, [x11, _RVT_SEGSZ@GOTPAGEOFF]
Lloh30:
	ldr	x11, [x11]
	cmp	x10, x11
	b.lt	LBB0_30
; %bb.38:                               ;   in Loop: Header=BB0_32 Depth=1
	add	x9, x9, #1
	str	x9, [sp, #128]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ge	LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	x10, #0
	str	xzr, [sp, #120]
	b	LBB0_30
LBB0_40:
	add	x0, x20, #64
	bl	_rvt_put_ss
Lloh31:
	adrp	x8, _RVT_R_WRID_VALID@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RVT_R_WRID_VALID@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	add	x1, x20, #60
	bl	_test_and_clear_bit
	cbz	w0, LBB0_45
; %bb.41:
	ldr	w8, [x20, #56]
	str	w8, [sp, #72]
Lloh34:
	adrp	x8, _IB_WC_SUCCESS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _IB_WC_RECV@GOTPAGE
Lloh38:
	ldr	x9, [x9, _IB_WC_RECV@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #64]
	str	x23, [sp, #56]
	ldr	w8, [x22, #48]
	str	w8, [sp, #32]
	ldr	x8, [x20, #40]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_43
; %bb.42:
	mov	x0, x21
	bl	_rvt_get_swqe_pkey_index
	b	LBB0_44
LBB0_43:
	mov	w0, #0
LBB0_44:
	ldp	x25, x24, [sp]                  ; 16-byte Folded Reload
	str	w0, [sp, #52]
	ldr	w22, [x25]
	mov	x0, x24
	bl	_rdma_ah_get_path_bits
	ldr	w8, [x25, #4]
	mov	w23, #-1
	lsl	w8, w23, w8
	bic	w8, w0, w8
	orr	w8, w8, w22
	str	w8, [sp, #36]
	mov	x0, x24
	bl	_rdma_ah_get_sl
	str	w0, [sp, #48]
	mov	x0, x24
	bl	_rdma_ah_get_dlid
	ldr	w8, [x25, #4]
	lsl	w8, w23, w8
	bic	w8, w0, w8
	ldr	w9, [x20, #36]
	stp	w8, w9, [sp, #40]
	ldr	w8, [x21, #16]
Lloh40:
	adrp	x9, _IB_SEND_SOLICITED@GOTPAGE
Lloh41:
	ldr	x9, [x9, _IB_SEND_SOLICITED@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	and	w2, w9, w8
	add	x1, sp, #24
	mov	x0, x20
	bl	_rvt_recv_cq
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_45:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_spin_unlock_irqrestore
	b	LBB0_7
	.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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_GSI,8,3                 ; @IB_QPT_GSI
	.comm	_IB_QPT_UD,4,2                  ; @IB_QPT_UD
	.comm	_ib_rvt_state_ops,8,3           ; @ib_rvt_state_ops
	.comm	_RVT_PROCESS_RECV_OK,4,2        ; @RVT_PROCESS_RECV_OK
	.comm	_IB_WR_SEND_WITH_IMM,8,3        ; @IB_WR_SEND_WITH_IMM
	.comm	_IB_WC_WITH_IMM,4,2             ; @IB_WC_WITH_IMM
	.comm	_RVT_R_REUSE_SGE,4,2            ; @RVT_R_REUSE_SGE
	.comm	_IB_WC_LOC_QP_OP_ERR,4,2        ; @IB_WC_LOC_QP_OP_ERR
	.comm	_IB_AH_GRH,4,2                  ; @IB_AH_GRH
	.comm	_IB_WC_GRH,4,2                  ; @IB_WC_GRH
	.comm	_RVT_SEGSZ,8,3                  ; @RVT_SEGSZ
	.comm	_RVT_R_WRID_VALID,4,2           ; @RVT_R_WRID_VALID
	.comm	_IB_WC_SUCCESS,4,2              ; @IB_WC_SUCCESS
	.comm	_IB_WC_RECV,4,2                 ; @IB_WC_RECV
	.comm	_IB_SEND_SOLICITED,4,2          ; @IB_SEND_SOLICITED
	.no_dead_strip	_qib_ud_loopback
.subsections_via_symbols
