	.file	"extr_blist.c_blist_resize.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	blist_resize
	.type	blist_resize, @function
blist_resize:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	blist_create@PLT
	mov	r12, QWORD PTR 0[rbp]
	mov	QWORD PTR 0[rbp], rax
	mov	r8, rax
	mov	r13, rax
	cmp	QWORD PTR [r12], rbx
	cmovle	rbx, QWORD PTR [r12]
	xor	esi, esi
	mov	ecx, DWORD PTR 8[r12]
	mov	edx, DWORD PTR 12[r12]
	mov	edi, DWORD PTR 16[r12]
	mov	r9, rbx
	call	blst_copy@PLT
	test	r14d, r14d
	je	.L2
	mov	rdx, QWORD PTR 0[r13]
	cmp	rdx, rbx
	jg	.L8
.L2:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	blist_destroy@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, r13
	sub	rdx, rbx
	mov	rsi, rbx
	call	blist_free@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	blist_destroy@PLT
	.cfi_endproc
.LFE0:
	.size	blist_resize, .-blist_resize
	.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_blist.c_blist_resize.c"
	.text
	.align	2
	.global	blist_resize
	.syntax unified
	.arm
	.fpu softvfp
	.type	blist_resize, %function
blist_resize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r4, r1
	sub	sp, sp, #8
	mov	r0, r1
	mov	r8, r2
	bl	blist_create
	ldr	r5, [r7]
	mov	r6, r0
	ldm	r5, {r1, r3}
	cmp	r4, r1
	movge	r4, r1
	ldr	r2, [r5, #8]
	ldr	r0, [r5, #12]
	mov	r1, #0
	str	r6, [r7]
	str	r4, [sp, #4]
	str	r6, [sp]
	bl	blst_copy
	cmp	r8, #0
	beq	.L2
	ldr	r2, [r6]
	cmp	r2, r4
	bgt	.L8
.L2:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	blist_destroy
.L8:
	mov	r1, r4
	mov	r0, r6
	sub	r2, r2, r4
	bl	blist_free
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	blist_destroy
	.size	blist_resize, .-blist_resize
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
