	.file	"extr_ud.c_ud_loopback.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ud_loopback, @function
ud_loopback:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 200
	.cfi_def_cfa_offset 256
	mov	esi, DWORD PTR 36[rdi]
	mov	edi, DWORD PTR 52[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 184[rsp], rax
	xor	eax, eax
	call	to_iport@PLT
	mov	r14, QWORD PTR 80[r15]
	mov	rbp, rax
	xor	eax, eax
	call	rcu_read_lock@PLT
	mov	rdi, rbx
	call	rvt_get_swqe_remote_qpn@PLT
	mov	edi, DWORD PTR 52[r15]
	mov	r12d, eax
	call	ib_to_rvt@PLT
	mov	edx, r12d
	mov	rsi, rbp
	mov	edi, eax
	call	rvt_lookup_qpn@PLT
	test	rax, rax
	je	.L55
	mov	rdx, QWORD PTR 40[r15]
	mov	rsi, QWORD PTR IB_QPT_GSI[rip]
	mov	r13, rax
	mov	ecx, DWORD PTR IB_QPT_UD[rip]
	mov	rax, QWORD PTR 40[rax]
	cmp	rdx, rsi
	cmove	edx, ecx
	cmp	rsi, rax
	cmove	eax, ecx
	cmp	edx, eax
	je	.L56
.L8:
	add	DWORD PTR 4[rbp], 1
.L10:
	xor	eax, eax
	call	rcu_read_unlock@PLT
.L1:
	mov	rax, QWORD PTR 184[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L57
	add	rsp, 200
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L56:
	.cfi_restore_state
	mov	rdx, QWORD PTR 0[r13]
	mov	rax, QWORD PTR ib_rvt_state_ops[rip]
	mov	eax, DWORD PTR [rax+rdx*4]
	test	DWORD PTR RVT_PROCESS_RECV_OK[rip], eax
	je	.L8
	mov	rdi, rbx
	call	rvt_get_swqe_ah_attr@PLT
	mov	rdi, rbp
	mov	QWORD PTR [rsp], rax
	call	ppd_from_ibp@PLT
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR 48[r13]
	cmp	eax, 1
	jg	.L58
.L11:
	test	eax, eax
	jne	.L13
.L18:
	mov	r12, QWORD PTR [rbx]
	lea	rax, 112[rsp]
	mov	edx, 72
	xor	esi, esi
	mov	rdi, rax
	mov	QWORD PTR 32[rsp], rax
	mov	QWORD PTR 24[rsp], r12
	call	memset@PLT
	lea	rax, 4[r12]
	mov	QWORD PTR 112[rsp], rax
	mov	rax, QWORD PTR IB_WR_SEND_WITH_IMM[rip]
	cmp	QWORD PTR 8[rbx], rax
	jne	.L15
	mov	eax, DWORD PTR IB_WC_WITH_IMM[rip]
	mov	DWORD PTR 172[rsp], eax
	mov	eax, DWORD PTR 24[rbx]
	mov	DWORD PTR 176[rsp], eax
.L15:
	lea	rax, 32[r13]
	xor	esi, esi
	mov	rdi, rax
	mov	QWORD PTR 16[rsp], rax
	call	spin_lock_irqsave@PLT
	mov	edx, DWORD PTR 16[r13]
	mov	eax, DWORD PTR RVT_R_REUSE_SGE[rip]
	test	edx, eax
	je	.L19
	not	eax
	and	eax, edx
	mov	DWORD PTR 16[r13], eax
.L20:
	xor	edi, edi
	mov	rax, QWORD PTR 24[r13]
	cmp	QWORD PTR 112[rsp], rax
	setg	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L24
	mov	eax, DWORD PTR RVT_R_REUSE_SGE[rip]
	or	DWORD PTR 16[r13], eax
	add	DWORD PTR 4[rbp], 1
.L22:
	mov	rdi, QWORD PTR 16[rsp]
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, rbx
	call	rvt_get_swqe_remote_qkey@PLT
	test	eax, eax
	jns	.L16
	mov	rax, QWORD PTR 8[r15]
.L17:
	xor	edi, edi
	cmp	QWORD PTR 8[r13], rax
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L18
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L58:
	mov	rdi, QWORD PTR [rsp]
	mov	r12, QWORD PTR 16[rbp]
	call	rdma_ah_get_sl@PLT
	mov	rsi, QWORD PTR 56[r15]
	mov	rdi, rbp
	mov	edx, DWORD PTR [r12+rax*4]
	mov	DWORD PTR 24[rsp], edx
	call	hfi1_get_pkey@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	r12d, eax
	mov	rax, QWORD PTR 8[rsp]
	mov	ecx, DWORD PTR [rax]
	mov	DWORD PTR 16[rsp], ecx
	call	rdma_ah_get_path_bits@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, 1
	xor	r9d, r9d
	mov	r8d, eax
	mov	edx, DWORD PTR 24[rsp]
	mov	ecx, DWORD PTR 4[rdi]
	sal	esi, cl
	mov	rcx, QWORD PTR 56[r13]
	lea	eax, -1[rsi]
	mov	esi, r12d
	and	eax, r8d
	or	eax, DWORD PTR 16[rsp]
	movsx	r8, eax
	mov	QWORD PTR 16[rsp], r8
	call	ingress_pkey_check@PLT
	mov	edi, eax
	call	unlikely@PLT
	mov	r8, QWORD PTR 16[rsp]
	test	rax, rax
	jne	.L12
	mov	eax, DWORD PTR 48[r13]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L55:
	add	DWORD PTR 4[rbp], 1
	xor	eax, eax
	call	rcu_read_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	r12, QWORD PTR [rsp]
	mov	rdi, r12
	call	rdma_ah_get_ah_flags@PLT
	lea	rcx, 72[r13]
	mov	QWORD PTR 40[rsp], rcx
	test	DWORD PTR IB_AH_GRH[rip], eax
	jne	.L59
	mov	edx, 1
	mov	esi, 4
	lea	rdi, 72[r13]
	call	rvt_skip_sge@PLT
.L30:
	mov	rax, QWORD PTR 32[rbx]
	cmp	QWORD PTR 24[rsp], 0
	lea	r14, 80[rsp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 96[rsp], rdx
	mov	QWORD PTR 80[rsp], rax
	mov	eax, DWORD PTR 20[rbx]
	mov	DWORD PTR 88[rsp], eax
	je	.L34
	mov	QWORD PTR 48[rsp], rbp
	mov	r12, QWORD PTR 40[rsp]
	mov	QWORD PTR 56[rsp], rbx
	mov	rbx, QWORD PTR 24[rsp]
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rsi, rbx
	mov	rdi, r14
	call	rvt_get_sge_length@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbp, rax
	sete	dil
	call	WARN_ON_ONCE@PLT
	mov	rdx, QWORD PTR 80[rsp]
	xor	r9d, r9d
	mov	rsi, r12
	mov	rdi, r13
	mov	r8d, 1
	mov	rcx, rbp
	call	rvt_copy_sge@PLT
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, r14
	call	rvt_update_sge@PLT
	sub	rbx, rbp
	jne	.L31
	mov	rbp, QWORD PTR 48[rsp]
	mov	rbx, QWORD PTR 56[rsp]
.L34:
	mov	rdi, QWORD PTR 40[rsp]
	call	rvt_put_ss@PLT
	mov	edi, DWORD PTR RVT_R_WRID_VALID[rip]
	lea	rsi, 68[r13]
	call	test_and_clear_bit@PLT
	test	eax, eax
	je	.L22
	mov	eax, DWORD PTR 64[r13]
	mov	rdx, QWORD PTR IB_QPT_GSI[rip]
	mov	DWORD PTR 168[rsp], eax
	mov	eax, DWORD PTR IB_WC_SUCCESS[rip]
	mov	DWORD PTR 164[rsp], eax
	mov	eax, DWORD PTR IB_WC_RECV[rip]
	mov	DWORD PTR 160[rsp], eax
	lea	rax, 40[r13]
	mov	QWORD PTR 152[rsp], rax
	mov	eax, DWORD PTR 48[r15]
	mov	DWORD PTR 120[rsp], eax
	mov	rax, QWORD PTR 40[r13]
	cmp	rax, rdx
	je	.L35
	cmp	rax, QWORD PTR IB_QPT_SMI[rip]
	je	.L35
	mov	QWORD PTR 144[rsp], 0
.L39:
	mov	r14, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR [rsp]
	mov	r12d, DWORD PTR [r14]
	call	rdma_ah_get_path_bits@PLT
	mov	ecx, DWORD PTR 4[r14]
	mov	r8d, eax
	mov	eax, 1
	sal	eax, cl
	sub	eax, 1
	and	eax, r8d
	or	r12d, eax
	and	r12d, DWORD PTR U16_MAX[rip]
	mov	DWORD PTR 124[rsp], r12d
	jne	.L40
	mov	rax, QWORD PTR IB_QPT_GSI[rip]
	cmp	QWORD PTR 40[r15], rax
	je	.L60
.L40:
	mov	r14, QWORD PTR [rsp]
	mov	rdi, r14
	call	rdma_ah_get_sl@PLT
	mov	rdi, r14
	mov	QWORD PTR 128[rsp], rax
	call	rdma_ah_get_dlid@PLT
	mov	rsi, QWORD PTR 32[rsp]
	mov	edx, DWORD PTR 16[rbx]
	mov	rdi, r13
	mov	r8d, eax
	mov	rax, QWORD PTR 8[rsp]
	and	edx, DWORD PTR IB_SEND_SOLICITED[rip]
	mov	ecx, DWORD PTR 4[rax]
	mov	eax, 1
	sal	eax, cl
	sub	eax, 1
	and	eax, r8d
	mov	DWORD PTR 136[rsp], eax
	mov	eax, DWORD PTR 36[r13]
	mov	DWORD PTR 140[rsp], eax
	call	rvt_recv_cq@PLT
	add	DWORD PTR 0[rbp], 1
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L19:
	xor	esi, esi
	mov	rdi, r13
	call	rvt_get_rwqe@PLT
	test	eax, eax
	js	.L61
	jne	.L20
	mov	eax, DWORD PTR 48[r13]
	test	eax, eax
	jne	.L22
	add	DWORD PTR 8[rbp], 1
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L59:
	mov	rdi, r12
	call	rdma_ah_read_grh@PLT
	movdqu	xmm0, XMMWORD PTR [rax]
	mov	rax, QWORD PTR HFI1_PKT_TYPE_16B[rip]
	movaps	XMMWORD PTR 80[rsp], xmm0
	cmp	QWORD PTR [r14], rax
	je	.L62
.L27:
	lea	r10, 76[rsp]
	lea	r14, 80[rsp]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	rsi, r10
	mov	rdx, r14
	mov	rdi, rbp
	mov	QWORD PTR 48[rsp], r10
	call	hfi1_make_grh@PLT
	mov	r10, QWORD PTR 48[rsp]
	xor	r9d, r9d
	mov	rdi, r13
	mov	r8d, 1
	mov	ecx, 4
	lea	rsi, 72[r13]
	mov	rdx, r10
	call	rvt_copy_sge@PLT
	mov	eax, DWORD PTR IB_WC_GRH[rip]
	or	DWORD PTR 172[rsp], eax
	jmp	.L30
.L61:
	mov	esi, DWORD PTR IB_WC_LOC_QP_OP_ERR[rip]
	mov	rdi, r13
	call	rvt_rc_error@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, rbx
	call	rvt_get_swqe_remote_qkey@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rax, QWORD PTR 40[r15]
	cmp	rdx, rax
	je	.L37
	cmp	rax, QWORD PTR IB_QPT_SMI[rip]
	je	.L37
	mov	rax, QWORD PTR 56[r15]
	mov	QWORD PTR 144[rsp], rax
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR [rsp]
	mov	QWORD PTR 8[rsp], r8
	call	rdma_ah_get_dlid@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	r13d, DWORD PTR 48[r13]
	mov	r14d, DWORD PTR 48[r15]
	mov	ebx, eax
	call	rdma_ah_get_sl@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 264
	mov	esi, r12d
	mov	rdi, rbp
	push	rbx
	.cfi_def_cfa_offset 272
	mov	r8, QWORD PTR 24[rsp]
	mov	rdx, rax
	mov	ecx, r14d
	mov	r9, r8
	mov	r8d, r13d
	call	hfi1_bad_pkey@PLT
	pop	rdx
	.cfi_def_cfa_offset 264
	pop	rcx
	.cfi_def_cfa_offset 256
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rdi, rbx
	call	rvt_get_swqe_pkey_index@PLT
	mov	QWORD PTR 144[rsp], rax
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L62:
	cmp	QWORD PTR 80[rsp], 0
	jne	.L28
	mov	rax, QWORD PTR OPA_GID_INDEX[rip]
	mov	QWORD PTR 80[rsp], rax
.L28:
	lea	rdi, 88[rsp]
	call	ib_is_opa_gid@PLT
	test	rax, rax
	je	.L27
	mov	rax, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR HFI1_PORT_GUID_INDEX[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR [rax+rdx*4]
	call	cpu_to_be64@PLT
	mov	DWORD PTR 88[rsp], eax
	jmp	.L27
.L60:
	mov	edi, DWORD PTR IB_LID_PERMISSIVE[rip]
	call	be16_to_cpu@PLT
	mov	DWORD PTR 124[rsp], eax
	jmp	.L40
.L57:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ud_loopback, .-ud_loopback
	.comm	ib_rvt_state_ops,8,8
	.comm	U16_MAX,4,4
	.comm	RVT_R_WRID_VALID,4,4
	.comm	RVT_R_REUSE_SGE,4,4
	.comm	RVT_PROCESS_RECV_OK,4,4
	.comm	OPA_GID_INDEX,8,8
	.comm	IB_WR_SEND_WITH_IMM,8,8
	.comm	IB_WC_WITH_IMM,4,4
	.comm	IB_WC_SUCCESS,4,4
	.comm	IB_WC_RECV,4,4
	.comm	IB_WC_LOC_QP_OP_ERR,4,4
	.comm	IB_WC_GRH,4,4
	.comm	IB_SEND_SOLICITED,4,4
	.comm	IB_QPT_UD,4,4
	.comm	IB_QPT_SMI,8,8
	.comm	IB_QPT_GSI,8,8
	.comm	IB_LID_PERMISSIVE,4,4
	.comm	IB_AH_GRH,4,4
	.comm	HFI1_PORT_GUID_INDEX,8,8
	.comm	HFI1_PKT_TYPE_16B,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ud.c_ud_loopback.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ud_loopback, %function
ud_loopback:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r3, .L61
	sub	sp, sp, #116
	mov	r7, r1
	ldr	r0, [r0, #32]
	ldr	r1, [r4, #20]
	ldr	r3, [r3]
	str	r3, [sp, #108]
	mov	r3,#0
	bl	to_iport
	ldr	r8, [r4, #52]
	mov	r6, r0
	bl	rcu_read_lock
	ldr	r0, [r4, #32]
	bl	ib_to_rvt
	mov	r5, r0
	mov	r0, r7
	bl	rvt_get_swqe_remote_qpn
	mov	r1, r6
	mov	r2, r0
	mov	r0, r5
	bl	rvt_lookup_qpn
	subs	r5, r0, #0
	beq	.L53
	ldr	r10, .L61+4
	ldr	r3, [r4, #24]
	ldr	r1, [r10]
	cmp	r3, r1
	movne	r2, r3
	ldreq	r3, .L61+8
	ldreq	r2, [r3]
	ldr	r3, [r5, #24]
	cmp	r1, r3
	ldreq	r3, .L61+8
	ldreq	r3, [r3]
	cmp	r2, r3
	beq	.L54
.L8:
	ldr	r3, [r6, #4]
	add	r3, r3, #1
	str	r3, [r6, #4]
.L10:
	bl	rcu_read_unlock
.L1:
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [sp, #108]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L55
	add	sp, sp, #116
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L54:
	ldr	r3, .L61+12
	ldr	r1, [r5]
	ldr	r2, [r3]
	ldr	r3, .L61+16
	ldr	r2, [r2, r1, lsl #2]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L8
	mov	r0, r7
	bl	rvt_get_swqe_ah_attr
	mov	r3, r0
	mov	r0, r6
	mov	r9, r3
	str	r3, [sp, #20]
	bl	ppd_from_ibp
	ldr	r3, [r5, #28]
	str	r0, [sp, #24]
	cmp	r3, #1
	bgt	.L56
.L11:
	cmp	r3, #0
	bne	.L13
.L18:
	mov	r2, #48
	mov	r1, #0
	add	r0, sp, #60
	ldr	r9, [r7]
	bl	memset
	ldr	r3, .L61+20
	ldr	r1, [r7, #4]
	ldr	r2, [r3]
	add	r3, r9, #4
	cmp	r1, r2
	str	r3, [sp, #56]
	bne	.L15
	ldr	r3, .L61+24
	ldr	r2, [r7, #16]
	ldr	r3, [r3]
	str	r2, [sp, #104]
	str	r3, [sp, #100]
.L15:
	add	r3, r5, #16
	ldr	fp, .L61+28
	mov	r0, r3
	mov	r1, #0
	str	r3, [sp, #28]
	bl	spin_lock_irqsave
	ldr	r2, [fp]
	ldr	r3, [r5, #8]
	ands	r1, r3, r2
	beq	.L19
	bic	r3, r3, r2
	str	r3, [r5, #8]
.L20:
	ldr	r0, [sp, #56]
	ldr	r3, [r5, #12]
	cmp	r0, r3
	movle	r0, #0
	movgt	r0, #1
	bl	unlikely
	cmp	r0, #0
	beq	.L24
	ldr	r2, [r5, #8]
	ldr	r3, [r6, #4]
	ldr	r1, [fp]
	add	r3, r3, #1
	orr	r2, r2, r1
	str	r2, [r5, #8]
	str	r3, [r6, #4]
.L22:
	mov	r1, #0
	ldr	r0, [sp, #28]
	bl	spin_unlock_irqrestore
	b	.L10
.L13:
	mov	r0, r7
	bl	rvt_get_swqe_remote_qkey
	cmp	r0, #0
	bge	.L16
	ldr	r0, [r4, #4]
.L17:
	ldr	r3, [r5, #4]
	subs	r0, r3, r0
	movne	r0, #1
	bl	unlikely
	cmp	r0, #0
	beq	.L18
	b	.L10
.L56:
	mov	r0, r9
	str	r9, [sp, #20]
	ldr	r9, [r6, #12]
	bl	rdma_ah_get_sl
	mov	r3, r0
	ldr	r2, [r9, r3, lsl #2]
	ldr	r1, [r4, #36]
	mov	r0, r6
	str	r2, [sp, #28]
	bl	hfi1_get_pkey
	ldr	lr, [sp, #24]
	mov	fp, r0
	ldr	r0, [sp, #20]
	ldr	r9, [lr]
	bl	rdma_ah_get_path_bits
	mvn	r1, #0
	mov	ip, #0
	ldr	lr, [sp, #24]
	ldr	r2, [sp, #28]
	ldr	r3, [lr, #4]
	bic	r0, r0, r1, lsl r3
	orr	r9, r0, r9
	ldr	r3, [r5, #36]
	mov	r1, fp
	mov	r0, lr
	str	ip, [sp, #4]
	str	r9, [sp]
	bl	ingress_pkey_check
	bl	unlikely
	cmp	r0, #0
	bne	.L12
	ldr	r3, [r5, #28]
	b	.L11
.L53:
	ldr	r3, [r6, #4]
	add	r3, r3, #1
	str	r3, [r6, #4]
	bl	rcu_read_unlock
	b	.L1
.L24:
	ldr	fp, [sp, #20]
	mov	r0, fp
	bl	rdma_ah_get_ah_flags
	ldr	r3, .L61+32
	add	r2, r5, #48
	ldr	r3, [r3]
	str	r2, [sp, #32]
	tst	r0, r3
	bne	.L57
	mov	r2, #1
	mov	r1, #4
	add	r0, r5, #48
	bl	rvt_skip_sge
.L30:
	ldr	r3, [r7, #20]
	ldr	r2, [r7, #12]
	ldr	r1, [r3]
	cmp	r9, #0
	add	r3, r3, #4
	str	r1, [sp, #44]
	str	r3, [sp, #52]
	str	r2, [sp, #48]
	beq	.L34
	ldr	r8, [sp, #32]
	add	fp, sp, #44
	str	r6, [sp, #36]
.L31:
	mov	r1, r9
	mov	r0, fp
	bl	rvt_get_sge_length
	mov	r6, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	WARN_ON_ONCE
	mov	r2, #1
	mov	r3, #0
	mov	r1, r8
	stm	sp, {r2, r3}
	mov	r0, r5
	mov	r3, r6
	ldr	r2, [sp, #44]
	bl	rvt_copy_sge
	mov	r1, r6
	mov	r2, #0
	mov	r0, fp
	bl	rvt_update_sge
	subs	r9, r9, r6
	bne	.L31
	ldr	r6, [sp, #36]
.L34:
	ldr	r0, [sp, #32]
	bl	rvt_put_ss
	ldr	r3, .L61+36
	add	r1, r5, #44
	ldr	r0, [r3]
	bl	test_and_clear_bit
	cmp	r0, #0
	beq	.L22
	ldr	r3, .L61+40
	ldr	r0, .L61+44
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	r2, [r5, #24]
	ldr	r1, [r10]
	str	r3, [sp, #92]
	ldr	r3, [r5, #40]
	str	r0, [sp, #88]
	ldr	r0, [r4, #28]
	str	r3, [sp, #96]
	cmp	r2, r1
	add	r3, r5, #24
	str	r0, [sp, #60]
	str	r3, [sp, #84]
	beq	.L35
	ldr	r3, .L61+48
	ldr	r3, [r3]
	cmp	r2, r3
	movne	r3, #0
	strne	r3, [sp, #80]
	beq	.L35
.L39:
	ldr	r9, [sp, #24]
	ldr	r0, [sp, #20]
	ldr	r8, [r9]
	bl	rdma_ah_get_path_bits
	mvn	r1, #0
	ldr	r3, [r9, #4]
	ldr	r2, .L61+52
	bic	r3, r0, r1, lsl r3
	ldr	r2, [r2]
	orr	r3, r3, r8
	and	r3, r3, r2
	cmp	r3, #0
	str	r3, [sp, #64]
	bne	.L40
	ldr	r2, [r4, #24]
	ldr	r3, [r10]
	cmp	r2, r3
	beq	.L58
.L40:
	ldr	r4, [sp, #20]
	mov	r0, r4
	bl	rdma_ah_get_sl
	mov	r3, r0
	mov	r0, r4
	str	r3, [sp, #68]
	bl	rdma_ah_get_dlid
	mvn	ip, #0
	ldr	r3, [sp, #24]
	ldr	r2, .L61+56
	ldr	r3, [r3, #4]
	ldr	r1, [r7, #8]
	ldr	r2, [r2]
	bic	r3, r0, ip, lsl r3
	ldr	ip, [r5, #20]
	and	r2, r2, r1
	mov	r0, r5
	add	r1, sp, #56
	str	r3, [sp, #72]
	str	ip, [sp, #76]
	bl	rvt_recv_cq
	ldr	r3, [r6]
	add	r3, r3, #1
	str	r3, [r6]
	b	.L22
.L19:
	mov	r0, r5
	bl	rvt_get_rwqe
	cmp	r0, #0
	blt	.L59
	bne	.L20
	ldr	r3, [r5, #28]
	cmp	r3, #0
	ldreq	r3, [r6, #8]
	addeq	r3, r3, #1
	streq	r3, [r6, #8]
	b	.L22
.L57:
	mov	r0, fp
	bl	rdma_ah_read_grh
	ldr	r3, .L61+60
	ldr	r2, [r8]
	ldr	r3, [r3]
	add	fp, sp, #44
	cmp	r2, r3
	ldm	r0, {r0, r1}
	stm	fp, {r0, r1}
	beq	.L60
.L27:
	mov	r8, #0
	mov	r2, fp
	mov	r3, r8
	add	r1, sp, #40
	mov	r0, r6
	str	r8, [sp]
	bl	hfi1_make_grh
	mov	r3, #1
	add	r2, sp, #40
	str	r3, [sp]
	mov	r0, r5
	mov	r3, #4
	str	r8, [sp, #4]
	add	r1, r5, #48
	bl	rvt_copy_sge
	ldr	r2, .L61+64
	ldr	r3, [sp, #100]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [sp, #100]
	b	.L30
.L59:
	ldr	r3, .L61+68
	mov	r0, r5
	ldr	r1, [r3]
	bl	rvt_rc_error
	b	.L22
.L16:
	mov	r0, r7
	bl	rvt_get_swqe_remote_qkey
	b	.L17
.L35:
	ldr	r3, [r4, #24]
	cmp	r1, r3
	beq	.L37
	ldr	r2, .L61+48
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L37
	ldr	r3, [r4, #36]
	str	r3, [sp, #80]
	b	.L39
.L12:
	ldr	r8, [sp, #20]
	mov	r0, r8
	bl	rdma_ah_get_sl
	mov	r7, r0
	mov	r0, r8
	ldr	r4, [r4, #28]
	ldr	r5, [r5, #28]
	bl	rdma_ah_get_dlid
	mov	r2, r7
	str	r0, [sp, #8]
	mov	r3, r4
	mov	r1, fp
	mov	r0, r6
	str	r5, [sp]
	str	r9, [sp, #4]
	bl	hfi1_bad_pkey
	b	.L10
.L37:
	mov	r0, r7
	bl	rvt_get_swqe_pkey_index
	str	r0, [sp, #80]
	b	.L39
.L60:
	mov	r3, r0
	cmp	r0, #0
	ldreq	r3, .L61+72
	add	r0, sp, #48
	ldreq	r3, [r3]
	streq	r3, [sp, #44]
	bl	ib_is_opa_gid
	cmp	r0, #0
	beq	.L27
	ldr	r3, [sp, #24]
	ldr	r2, .L61+76
	ldr	r3, [r3, #8]
	ldr	r2, [r2]
	ldr	r0, [r3, r2, lsl #2]
	bl	cpu_to_be64
	str	r0, [sp, #48]
	b	.L27
.L58:
	ldr	r3, .L61+80
	ldr	r0, [r3]
	bl	be16_to_cpu
	str	r0, [sp, #64]
	b	.L40
.L55:
	bl	__stack_chk_fail
.L62:
	.align	2
.L61:
	.word	.LC0
	.word	IB_QPT_GSI
	.word	IB_QPT_UD
	.word	ib_rvt_state_ops
	.word	RVT_PROCESS_RECV_OK
	.word	IB_WR_SEND_WITH_IMM
	.word	IB_WC_WITH_IMM
	.word	RVT_R_REUSE_SGE
	.word	IB_AH_GRH
	.word	RVT_R_WRID_VALID
	.word	IB_WC_SUCCESS
	.word	IB_WC_RECV
	.word	IB_QPT_SMI
	.word	U16_MAX
	.word	IB_SEND_SOLICITED
	.word	HFI1_PKT_TYPE_16B
	.word	IB_WC_GRH
	.word	IB_WC_LOC_QP_OP_ERR
	.word	OPA_GID_INDEX
	.word	HFI1_PORT_GUID_INDEX
	.word	IB_LID_PERMISSIVE
	.size	ud_loopback, .-ud_loopback
	.comm	ib_rvt_state_ops,4,4
	.comm	U16_MAX,4,4
	.comm	RVT_R_WRID_VALID,4,4
	.comm	RVT_R_REUSE_SGE,4,4
	.comm	RVT_PROCESS_RECV_OK,4,4
	.comm	OPA_GID_INDEX,4,4
	.comm	IB_WR_SEND_WITH_IMM,4,4
	.comm	IB_WC_WITH_IMM,4,4
	.comm	IB_WC_SUCCESS,4,4
	.comm	IB_WC_RECV,4,4
	.comm	IB_WC_LOC_QP_OP_ERR,4,4
	.comm	IB_WC_GRH,4,4
	.comm	IB_SEND_SOLICITED,4,4
	.comm	IB_QPT_UD,4,4
	.comm	IB_QPT_SMI,4,4
	.comm	IB_QPT_GSI,4,4
	.comm	IB_LID_PERMISSIVE,4,4
	.comm	IB_AH_GRH,4,4
	.comm	HFI1_PORT_GUID_INDEX,4,4
	.comm	HFI1_PKT_TYPE_16B,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
