	.file	"extr_mlx4_en_rx.c_mlx4_en_create_drop_qp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed reserving drop qpn\n"
.LC1:
	.string	"Failed allocating drop qp\n"
	.text
	.p2align 4
	.globl	mlx4_en_create_drop_qp
	.type	mlx4_en_create_drop_qp, @function
mlx4_en_create_drop_qp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r8d, r8d
	mov	edx, 1
	mov	esi, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	lea	rcx, 4[rsp]
	mov	edi, DWORD PTR [rax]
	call	mlx4_qp_reserve_range@PLT
	test	eax, eax
	jne	.L10
	mov	rax, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	lea	rdx, 8[rbp]
	mov	esi, DWORD PTR 4[rsp]
	mov	edi, DWORD PTR [rax]
	call	mlx4_qp_alloc@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L11
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	mov	r12d, eax
	call	en_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	en_err@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR 4[rsp]
	mov	edx, 1
	mov	edi, DWORD PTR [rax]
	call	mlx4_qp_release_range@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlx4_en_create_drop_qp, .-mlx4_en_create_drop_qp
	.comm	GFP_KERNEL,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_en_rx.c_mlx4_en_create_drop_qp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed reserving drop qpn\012\000"
	.align	2
.LC1:
	.ascii	"Failed allocating drop qp\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mlx4_en_create_drop_qp
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_en_create_drop_qp, %function
mlx4_en_create_drop_qp:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	mov	r2, #1
	push	{r4, r5, lr}
	mov	r5, r0
	ldr	r0, [r0]
	sub	sp, sp, #20
	ldr	ip, .L13
	ldr	r0, [r0]
	mov	r1, r2
	str	r3, [sp]
	add	r3, sp, #8
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	mlx4_qp_reserve_range
	subs	r4, r0, #0
	bne	.L10
	mov	r2, r5
	ldr	r3, .L13+4
	ldr	r1, [r2], #4
	ldr	r3, [r3]
	ldr	r0, [r1]
	ldr	r1, [sp, #8]
	bl	mlx4_qp_alloc
	subs	r4, r0, #0
	bne	.L11
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L10:
	mov	r0, r5
	ldr	r1, .L13+8
	bl	en_err
	b	.L1
.L11:
	mov	r0, r5
	ldr	r1, .L13+12
	bl	en_err
	ldr	r3, [r5]
	mov	r2, #1
	ldr	r0, [r3]
	ldr	r1, [sp, #8]
	bl	mlx4_qp_release_range
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	GFP_KERNEL
	.word	.LC0
	.word	.LC1
	.size	mlx4_en_create_drop_qp, .-mlx4_en_create_drop_qp
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
