	.file	"extr_trans_rdma.c_rdma_request.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"POST RECV failed: %d\n"
.LC1:
	.string	"Error %d in rdma_request()\n"
	.text
	.p2align 4
	.type	rdma_request, @function
rdma_request:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	r14, 24[rbp]
	mov	rdi, r14
	call	atomic_read@PLT
	xor	edi, edi
	test	rax, rax
	setg	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L2
	mov	rsi, r14
	mov	edi, 1
	call	atomic_sub_return@PLT
	test	rax, rax
	jns	.L24
	mov	rdi, r14
	call	atomic_inc@PLT
.L2:
	mov	esi, DWORD PTR GFP_NOFS[rip]
	mov	edi, 32
	call	kmalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L25
	mov	rax, QWORD PTR 16[rbx]
	lea	rdi, 48[rbp]
	mov	QWORD PTR 24[r13], rax
	call	down_interruptible@PLT
	test	rax, rax
	je	.L7
	mov	r12d, DWORD PTR EINTR[rip]
	neg	r12d
.L6:
	mov	rdi, r13
	lea	r13, 8[rbp]
	call	kfree@PLT
	xor	esi, esi
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	eax, r12d
	add	eax, DWORD PTR EINTR[rip]
	je	.L14
	mov	rax, QWORD PTR P9_RDMA_CLOSING[rip]
	cmp	QWORD PTR 0[rbp], rax
	jl	.L26
.L14:
	xor	esi, esi
	mov	rdi, r13
	call	spin_unlock_irqrestore@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, r12
	mov	rsi, r13
	call	post_recv@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L28
	mov	QWORD PTR 16[rbx], 0
.L4:
	mov	esi, DWORD PTR GFP_NOFS[rip]
	mov	edi, 32
	call	kmalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	r13, rax
	neg	r12d
	test	rax, rax
	je	.L10
	mov	esi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR 4[rbx]
	mov	QWORD PTR 8[rax], rbx
	mov	rax, QWORD PTR 16[rbp]
	mov	ecx, DWORD PTR DMA_TO_DEVICE[rip]
	mov	edi, DWORD PTR [rax]
	call	ib_dma_map_single@PLT
	mov	DWORD PTR 16[r13], eax
	mov	esi, eax
	mov	rax, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR [rax]
	call	ib_dma_mapping_error@PLT
	test	rax, rax
	je	.L11
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L10:
	mov	eax, DWORD PTR REQ_STATUS_ERROR[rip]
	mov	rdi, r13
	mov	DWORD PTR [rbx], eax
	call	kfree@PLT
	mov	edi, DWORD PTR P9_DEBUG_ERROR[rip]
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	call	p9_debug@PLT
	mov	rdi, r14
	call	atomic_inc@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rdi, 16[rbx]
	call	p9_fcall_fini@PLT
	mov	QWORD PTR 16[rbx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR send_done[rip]
	lea	rdi, 32[rbp]
	mov	DWORD PTR 0[r13], eax
	mov	eax, DWORD PTR 16[r13]
	mov	DWORD PTR 12[rsp], eax
	mov	rax, QWORD PTR 8[r13]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR 8[rsp], eax
	mov	rax, QWORD PTR 40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	QWORD PTR 40[rsp], r13
	mov	QWORD PTR 48[rsp], 0
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR IB_WR_SEND[rip]
	mov	DWORD PTR 16[rsp], 1
	mov	DWORD PTR 36[rsp], eax
	mov	eax, DWORD PTR IB_SEND_SIGNALED[rip]
	mov	DWORD PTR 32[rsp], eax
	lea	rax, 4[rsp]
	mov	QWORD PTR 24[rsp], rax
	call	down_interruptible@PLT
	test	rax, rax
	je	.L12
	mov	r12d, DWORD PTR EINTR[rip]
	neg	r12d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L26:
	mov	QWORD PTR 0[rbp], rax
	mov	rdi, r13
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	rdi, QWORD PTR 16[rbp]
	call	rdma_disconnect@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR REQ_STATUS_SENT[rip]
	mov	edi, DWORD PTR 28[rbp]
	lea	rsi, 16[rsp]
	xor	edx, edx
	mov	DWORD PTR [rbx], eax
	call	ib_post_send@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edi, DWORD PTR P9_DEBUG_ERROR[rip]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	p9_debug@PLT
	jmp	.L6
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rdma_request, .-rdma_request
	.comm	send_done,4,4
	.comm	REQ_STATUS_SENT,4,4
	.comm	REQ_STATUS_ERROR,4,4
	.comm	P9_RDMA_CLOSING,8,8
	.comm	P9_DEBUG_ERROR,4,4
	.comm	IB_WR_SEND,4,4
	.comm	IB_SEND_SIGNALED,4,4
	.comm	GFP_NOFS,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINTR,4,4
	.comm	DMA_TO_DEVICE,4,4
	.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_trans_rdma.c_rdma_request.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"POST RECV failed: %d\012\000"
	.align	2
.LC1:
	.ascii	"Error %d in rdma_request()\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rdma_request, %function
rdma_request:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r6, [r0]
	ldr	r3, .L30
	add	r8, r6, #12
	sub	sp, sp, #44
	mov	r4, r0
	mov	r0, r8
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	atomic_read
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
	bl	unlikely
	cmp	r0, #0
	beq	.L2
	mov	r1, r8
	mov	r0, #1
	bl	atomic_sub_return
	cmp	r0, #0
	bge	.L24
	mov	r0, r8
	bl	atomic_inc
.L2:
	ldr	r9, .L30+4
	mov	r0, #16
	ldr	r1, [r9]
	bl	kmalloc
	subs	r7, r0, #0
	beq	.L25
	ldr	r3, [r5, #12]
	add	r0, r6, #28
	str	r3, [r7, #12]
	bl	down_interruptible
	cmp	r0, #0
	beq	.L7
	ldr	r8, .L30+8
	ldr	r4, [r8]
	rsb	r4, r4, #0
.L6:
	mov	r0, r7
	add	r5, r6, #4
	bl	kfree
	mov	r0, r5
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, [r8]
	cmn	r4, r3
	beq	.L14
	ldr	r3, .L30+12
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L26
.L14:
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
.L1:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r4
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	mov	r0, r4
	mov	r1, r7
	bl	post_recv
	subs	r4, r0, #0
	streq	r4, [r5, #12]
	bne	.L28
.L4:
	mov	r0, #16
	ldr	r1, [r9]
	bl	kmalloc
	subs	r7, r0, #0
	beq	.L29
	ldr	r2, [r6, #8]
	ldr	r3, .L30+16
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r2, [r5, #4]
	ldr	r1, [r5, #8]
	str	r5, [r7, #4]
	bl	ib_dma_map_single
	ldr	r3, [r6, #8]
	mov	r1, r0
	str	r0, [r7, #8]
	ldr	r0, [r3]
	bl	ib_dma_mapping_error
	subs	r3, r0, #0
	beq	.L11
	ldr	r3, .L30+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L10:
	ldr	r3, .L30+24
	mov	r0, r7
	ldr	r3, [r3]
	str	r3, [r5]
	bl	kfree
	ldr	r3, .L30+28
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L30+32
	bl	p9_debug
	mov	r0, r8
	bl	atomic_inc
	b	.L1
.L24:
	add	r0, r5, #12
	bl	p9_fcall_fini
	mov	r3, #0
	ldr	r9, .L30+4
	str	r3, [r5, #12]
	b	.L4
.L25:
	ldr	r3, .L30+36
	ldr	r8, .L30+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L6
.L11:
	mov	ip, #1
	ldr	r2, .L30+40
	ldr	r0, [r7, #4]
	ldr	r2, [r2]
	ldr	r1, [r6, #24]
	ldr	lr, [r0, #4]
	ldr	r0, .L30+44
	ldr	r1, [r1]
	str	r2, [r7]
	ldr	r2, .L30+48
	ldr	r0, [r0]
	ldr	r2, [r2]
	stm	sp, {r1, lr}
	ldr	r1, [r7, #8]
	str	r0, [sp, #24]
	add	r0, r6, #20
	str	r2, [sp, #20]
	str	ip, [sp, #12]
	str	r1, [sp, #8]
	str	r3, [sp, #32]
	str	r7, [sp, #28]
	str	sp, [sp, #16]
	bl	down_interruptible
	subs	r2, r0, #0
	beq	.L12
	ldr	r3, .L30+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L10
.L26:
	mov	r0, r5
	mov	r1, #0
	str	r3, [r6]
	bl	spin_unlock_irqrestore
	ldr	r0, [r6, #8]
	bl	rdma_disconnect
	b	.L1
.L29:
	ldr	r3, .L30+36
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L10
.L12:
	ldr	r3, .L30+52
	ldr	r0, [r6, #16]
	ldr	r3, [r3]
	add	r1, sp, #12
	str	r3, [r5]
	bl	ib_post_send
	subs	r4, r0, #0
	beq	.L1
	b	.L10
.L28:
	ldr	r3, .L30+28
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L30+56
	bl	p9_debug
	ldr	r8, .L30+8
	b	.L6
.L27:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	.LC2
	.word	GFP_NOFS
	.word	EINTR
	.word	P9_RDMA_CLOSING
	.word	DMA_TO_DEVICE
	.word	EIO
	.word	REQ_STATUS_ERROR
	.word	P9_DEBUG_ERROR
	.word	.LC1
	.word	ENOMEM
	.word	send_done
	.word	IB_WR_SEND
	.word	IB_SEND_SIGNALED
	.word	REQ_STATUS_SENT
	.word	.LC0
	.size	rdma_request, .-rdma_request
	.comm	send_done,4,4
	.comm	REQ_STATUS_SENT,4,4
	.comm	REQ_STATUS_ERROR,4,4
	.comm	P9_RDMA_CLOSING,4,4
	.comm	P9_DEBUG_ERROR,4,4
	.comm	IB_WR_SEND,4,4
	.comm	IB_SEND_SIGNALED,4,4
	.comm	GFP_NOFS,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINTR,4,4
	.comm	DMA_TO_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
