	.file	"extr_cma.c_cma_modify_qp_rtr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cma_modify_qp_rtr, @function
cma_modify_qp_rtr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	mutex_lock@PLT
	mov	r12d, DWORD PTR 4[rbp]
	test	r12d, r12d
	jne	.L13
.L2:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L13:
	.cfi_restore_state
	mov	eax, DWORD PTR IB_QPS_INIT[rip]
	lea	r14, 4[rbp]
	lea	r15, 12[rsp]
	lea	r13, 16[rsp]
	mov	rdx, r15
	mov	rdi, r14
	mov	rsi, r13
	mov	DWORD PTR 20[rsp], eax
	call	rdma_init_qp_attr@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	mov	edi, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR 12[rsp]
	mov	rsi, r13
	call	ib_modify_qp@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR IB_QPS_RTR[rip]
	mov	rdx, r15
	mov	rsi, r13
	mov	rdi, r14
	mov	DWORD PTR 20[rsp], eax
	call	rdma_init_qp_attr@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	test	rbx, rbx
	je	.L3
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 16[rsp], eax
.L3:
	mov	edi, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR 12[rsp]
	mov	rsi, r13
	call	ib_modify_qp@PLT
	mov	r12d, eax
	jmp	.L2
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cma_modify_qp_rtr, .-cma_modify_qp_rtr
	.comm	IB_QPS_RTR,4,4
	.comm	IB_QPS_INIT,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_cma.c_cma_modify_qp_rtr.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cma_modify_qp_rtr, %function
cma_modify_qp_rtr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r0
	ldr	r3, .L15
	sub	sp, sp, #20
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	mutex_lock
	ldr	r4, [r5, #4]
	cmp	r4, #0
	bne	.L13
.L2:
	mov	r0, r5
	bl	mutex_unlock
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	ldr	r3, .L15+4
	add	r7, r5, #4
	ldr	r3, [r3]
	mov	r0, r7
	mov	r2, sp
	add	r1, sp, #4
	str	r3, [sp, #8]
	bl	rdma_init_qp_attr
	subs	r4, r0, #0
	bne	.L2
	ldr	r2, [sp]
	ldr	r0, [r5, #4]
	add	r1, sp, #4
	bl	ib_modify_qp
	subs	r4, r0, #0
	bne	.L2
	ldr	r3, .L15+8
	mov	r2, sp
	ldr	r3, [r3]
	mov	r0, r7
	add	r1, sp, #4
	str	r3, [sp, #8]
	bl	rdma_init_qp_attr
	subs	r4, r0, #0
	bne	.L2
	cmp	r6, #0
	ldrne	r3, [r6]
	ldr	r2, [sp]
	ldr	r0, [r5, #4]
	add	r1, sp, #4
	strne	r3, [sp, #4]
	bl	ib_modify_qp
	mov	r4, r0
	b	.L2
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	IB_QPS_INIT
	.word	IB_QPS_RTR
	.size	cma_modify_qp_rtr, .-cma_modify_qp_rtr
	.comm	IB_QPS_RTR,4,4
	.comm	IB_QPS_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
