	.file	"extr_zip_dirent.c__zip_cdir_grow.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	_zip_cdir_grow
	.type	_zip_cdir_grow, @function
_zip_cdir_grow:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	DWORD PTR [rdi], esi
	jg	.L11
	mov	eax, 0
	je	.L1
	mov	rbp, rdi
	mov	rdi, QWORD PTR 8[rdi]
	mov	r12d, esi
	lea	esi, 0[0+rsi*4]
	call	realloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L12
	mov	eax, DWORD PTR 0[rbp]
	cmp	r12d, eax
	jle	.L5
	lea	edx, -1[r12]
	movsx	rcx, eax
	mov	esi, edx
	lea	rbx, [r14+rcx*4]
	sub	esi, eax
	lea	rax, 1[rcx+rsi]
	lea	r13, [r14+rax*4]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbx
	add	rbx, 4
	call	_zip_entry_init@PLT
	cmp	rbx, r13
	jne	.L6
.L5:
	mov	DWORD PTR 0[rbp], r12d
	xor	eax, eax
	mov	QWORD PTR 8[rbp], r14
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	ret
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR ZIP_ER_INTERNAL[rip]
	xor	edx, edx
	mov	rdi, r13
	call	_zip_error_set@PLT
	mov	eax, -1
	jmp	.L1
.L12:
	mov	esi, DWORD PTR ZIP_ER_MEMORY[rip]
	xor	edx, edx
	mov	rdi, r13
	call	_zip_error_set@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	_zip_cdir_grow, .-_zip_cdir_grow
	.comm	ZIP_ER_MEMORY,4,4
	.comm	ZIP_ER_INTERNAL,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_zip_dirent.c__zip_cdir_grow.c"
	.text
	.align	2
	.global	_zip_cdir_grow
	.syntax unified
	.arm
	.fpu softvfp
	.type	_zip_cdir_grow, %function
_zip_cdir_grow:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, r1
	mov	r4, r2
	bgt	.L11
	beq	.L7
	lsl	r5, r1, #2
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [r0, #4]
	mov	r1, r5
	bl	realloc
	subs	r8, r0, #0
	beq	.L12
	ldr	r4, [r6]
	cmp	r7, r4
	ble	.L5
	add	r4, r8, r4, lsl #2
	add	r5, r5, r8
.L6:
	mov	r0, r4
	add	r4, r4, #4
	bl	_zip_entry_init
	cmp	r4, r5
	bne	.L6
.L5:
	mov	r0, #0
	stm	r6, {r7, r8}
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, .L13
	mov	r0, r2
	ldr	r1, [r3]
	mov	r2, #0
	bl	_zip_error_set
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, .L13+4
	mov	r2, r8
	mov	r0, r4
	ldr	r1, [r3]
	bl	_zip_error_set
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	ZIP_ER_INTERNAL
	.word	ZIP_ER_MEMORY
	.size	_zip_cdir_grow, .-_zip_cdir_grow
	.comm	ZIP_ER_MEMORY,4,4
	.comm	ZIP_ER_INTERNAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
