	.file	"extr_mpiutil.c_mpi_resize.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mpi_resize
	.type	mpi_resize, @function
mpi_resize:
.LFB0:
	.cfi_startproc
	endbr64
	xor	eax, eax
	cmp	DWORD PTR [rdi], esi
	jnb	.L8
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	lea	edi, 0[0+rbp*4]
	cmp	QWORD PTR 8[rbx], 0
	je	.L3
	call	kmalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L11
	mov	eax, DWORD PTR [rbx]
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, r12
	lea	edx, 0[0+rax*4]
	call	memcpy@PLT
	mov	rdi, QWORD PTR 8[rbx]
	call	kfree@PLT
	mov	QWORD PTR 8[rbx], r12
.L5:
	mov	DWORD PTR [rbx], ebp
	xor	eax, eax
	pop	rbx
	.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 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	call	kzalloc@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	jne	.L5
.L11:
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	mpi_resize, .-mpi_resize
	.comm	GFP_KERNEL,4,4
	.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_mpiutil.c_mpi_resize.c"
	.text
	.align	2
	.global	mpi_resize
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpi_resize, %function
mpi_resize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, r1
	bcs	.L6
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r2, [r0, #4]
	ldr	r3, .L13
	cmp	r2, #0
	mov	r4, r0
	ldr	r1, [r3]
	lsl	r0, r5, #2
	beq	.L3
	bl	kmalloc
	subs	r6, r0, #0
	beq	.L11
	ldr	r2, [r4]
	ldr	r1, [r4, #4]
	lsl	r2, r2, #2
	bl	memcpy
	ldr	r0, [r4, #4]
	bl	kfree
	str	r6, [r4, #4]
.L5:
	mov	r0, #0
	str	r5, [r4]
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, #0
	bx	lr
.L3:
	bl	kzalloc
	cmp	r0, #0
	str	r0, [r4, #4]
	bne	.L5
.L11:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	mpi_resize, .-mpi_resize
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
