	.file	"extr_mlx4_mr.c_mlx4_mr_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx4_mr_alloc
	.type	mlx4_mr_alloc, @function
mlx4_mr_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	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	ebx, ecx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], r9d
	call	mlx4_mpt_reserve@PLT
	cmp	eax, -1
	je	.L9
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r12d, eax
	mov	edx, r13d
	mov	r9d, r15d
	push	QWORD PTR 96[rsp]
	.cfi_def_cfa_offset 96
	mov	eax, DWORD PTR 96[rsp]
	mov	r8d, ebx
	mov	ecx, r14d
	mov	esi, r12d
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 104
	mov	eax, DWORD PTR 36[rsp]
	push	rax
	.cfi_def_cfa_offset 112
	call	mlx4_mr_alloc_reserved@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r13d, eax
	test	eax, eax
	jne	.L10
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L10:
	.cfi_restore_state
	mov	esi, r12d
	mov	rdi, rbp
	call	mlx4_mpt_release@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mlx4_mr_alloc, .-mlx4_mr_alloc
	.comm	ENOMEM,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_mlx4_mr.c_mlx4_mr_alloc.c"
	.text
	.align	2
	.global	mlx4_mr_alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_mr_alloc, %function
mlx4_mr_alloc:
	@ args = 16, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #24
	mov	r5, r1
	mov	r7, r2
	mov	r8, r3
	mov	r6, r0
	bl	mlx4_mpt_reserve
	cmn	r0, #1
	beq	.L9
	ldr	r3, [sp, #60]
	mov	r2, r5
	str	r3, [sp, #16]
	ldr	r3, [sp, #56]
	mov	r1, r0
	str	r3, [sp, #12]
	ldr	r3, [sp, #52]
	mov	r4, r0
	str	r3, [sp, #8]
	ldr	r3, [sp, #48]
	mov	r0, r6
	str	r3, [sp, #4]
	str	r8, [sp]
	mov	r3, r7
	bl	mlx4_mr_alloc_reserved
	subs	r5, r0, #0
	bne	.L10
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r1, r4
	mov	r0, r6
	bl	mlx4_mpt_release
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L11
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	ENOMEM
	.size	mlx4_mr_alloc, .-mlx4_mr_alloc
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
