	.file	"extr_mlx4_ib_cq.c_mlx4_alloc_resize_buf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlx4_alloc_resize_buf, @function
mlx4_alloc_resize_buf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR [rsi], 0
	je	.L2
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbx, rsi
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	r12, rdi
	mov	ebp, edx
	mov	edi, 8
	call	kmalloc@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L8
	mov	rdi, r12
	lea	rsi, 4[rax]
	mov	edx, ebp
	call	mlx4_ib_alloc_cq_buf@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L9
	mov	rax, QWORD PTR [rbx]
	lea	edx, -1[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR [rbx]
	call	kfree@PLT
	mov	QWORD PTR [rbx], 0
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mlx4_alloc_resize_buf, .-mlx4_alloc_resize_buf
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,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_ib_cq.c_mlx4_alloc_resize_buf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_alloc_resize_buf, %function
mlx4_alloc_resize_buf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r1]
	cmp	r7, #0
	beq	.L2
	ldr	r3, .L10
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L10+4
	mov	r4, r1
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, #8
	mov	r6, r2
	bl	kmalloc
	cmp	r0, #0
	str	r0, [r4]
	beq	.L8
	add	r1, r0, #4
	mov	r2, r6
	mov	r0, r5
	bl	mlx4_ib_alloc_cq_buf
	subs	r5, r0, #0
	bne	.L9
	ldr	r3, [r4]
	sub	r2, r6, #1
	mov	r0, r5
	str	r2, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L10+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L9:
	ldr	r0, [r4]
	bl	kfree
	str	r7, [r4]
	b	.L1
.L11:
	.align	2
.L10:
	.word	EBUSY
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	mlx4_alloc_resize_buf, .-mlx4_alloc_resize_buf
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
