	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ft_lzwstate_stack_grow
_ft_lzwstate_stack_grow:                ## @ft_lzwstate_stack_grow
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rsi
	xorl	%eax, %eax
	cmpq	%rsi, (%rdi)
	jl	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movl	%esi, %eax
	sarl	%eax
	leal	(%rsi,%rax), %r14d
	addl	$4, %r14d
	movq	16(%rdi), %rdi
	cmpq	24(%rbx), %rdi
	jne	LBB0_3
## %bb.2:
	movq	$0, 16(%rbx)
	xorl	%edi, %edi
	xorl	%esi, %esi
LBB0_3:
	movq	_LZW_MAX_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %edx
	shll	%cl, %edx
	cmpl	%edx, %r14d
	jle	LBB0_5
## %bb.4:
	movl	$-1, %eax
	movl	%edx, %r14d
	cmpl	%esi, %edx
	je	LBB0_7
LBB0_5:
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	callq	_FT_RENEW_ARRAY
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.6:
	movslq	%r14d, %rax
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LZW_MAX_BITS,4,2               ## @LZW_MAX_BITS
	.no_dead_strip	_ft_lzwstate_stack_grow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ft_lzwstate_stack_grow
_ft_lzwstate_stack_grow:                ; @ft_lzwstate_stack_grow
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x8, x1, [x0]
	cmp	x8, x1
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_9
LBB0_2:
	mov	x19, x0
	add	w8, w1, w1, asr #1
	add	w20, w8, #4
	ldr	x0, [x0, #16]
	ldr	x8, [x19, #24]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, #0
	mov	w1, #0
	str	xzr, [x19, #16]
LBB0_4:
Lloh0:
	adrp	x8, _LZW_MAX_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LZW_MAX_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	cmp	w20, w8
	b.le	LBB0_6
; %bb.5:
	mov	x20, x8
	cmp	w8, w1
	b.eq	LBB0_7
LBB0_6:
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x20
	bl	_FT_RENEW_ARRAY
	cbz	x0, LBB0_8
LBB0_7:
	mov	w0, #-1
	b	LBB0_9
LBB0_8:
	sxtw	x8, w20
	str	x8, [x19, #8]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LZW_MAX_BITS,4,2               ; @LZW_MAX_BITS
	.no_dead_strip	_ft_lzwstate_stack_grow
.subsections_via_symbols
