	.file	"extr_ftzopen.c_ft_lzwstate_stack_grow.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ft_lzwstate_stack_grow, @function
ft_lzwstate_stack_grow:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR 8[rdi]
	xor	r8d, r8d
	cmp	QWORD PTR [rdi], rax
	jl	.L9
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	edx, eax
	mov	esi, eax
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sar	edx
	mov	rbx, rdi
	lea	eax, 4[rdx+rax]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rcx, QWORD PTR 24[rdi]
	cmp	QWORD PTR 16[rdi], rcx
	je	.L13
.L3:
	mov	ecx, DWORD PTR LZW_MAX_BITS[rip]
	mov	ebp, 1
	sal	ebp, cl
	cmp	ebp, eax
	jge	.L7
	cmp	ebp, esi
	je	.L5
.L4:
	mov	rdi, QWORD PTR 16[rbx]
	mov	edx, ebp
	call	FT_RENEW_ARRAY@PLT
	test	rax, rax
	jne	.L5
	movsx	rbp, ebp
	xor	r8d, r8d
	mov	QWORD PTR 8[rbx], rbp
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore 3
	.cfi_restore 6
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	mov	ebp, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	QWORD PTR 16[rdi], 0
	xor	esi, esi
	jmp	.L3
.L5:
	mov	r8d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ft_lzwstate_stack_grow, .-ft_lzwstate_stack_grow
	.comm	LZW_MAX_BITS,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_ftzopen.c_ft_lzwstate_stack_grow.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ft_lzwstate_stack_grow, %function
ft_lzwstate_stack_grow:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r1, [r0, #4]
	ldr	r3, [r0]
	cmp	r3, r1
	blt	.L6
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #8]
	ldr	r2, [r4, #12]
	mov	r5, #1
	cmp	r0, r2
	moveq	r2, #0
	add	r3, r1, r1, asr #1
	streq	r2, [r4, #8]
	moveq	r1, r2
	ldr	r2, .L13
	add	r3, r3, #4
	ldr	r2, [r2]
	cmp	r3, r5, lsl r2
	lsl	r5, r5, r2
	ble	.L7
	cmp	r5, r1
	beq	.L5
.L4:
	mov	r2, r5
	ldr	r0, [r4, #8]
	bl	FT_RENEW_ARRAY
	cmp	r0, #0
	bne	.L5
	str	r5, [r4, #4]
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, #0
	bx	lr
.L7:
	mov	r5, r3
	b	.L4
.L5:
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	LZW_MAX_BITS
	.size	ft_lzwstate_stack_grow, .-ft_lzwstate_stack_grow
	.comm	LZW_MAX_BITS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
