	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ft_lzwstate_refill
_ft_lzwstate_refill:                    ## @ft_lzwstate_refill
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	cmpl	$0, 24(%rdi)
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movl	36(%rdi), %edi
	movl	32(%rbx), %esi
	movq	(%rbx), %rdx
	callq	_FT_Stream_TryRead
	movq	%rax, %r15
	movl	%r15d, 8(%rbx)
	addl	%r15d, 28(%rbx)
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setl	%dil
	callq	_FT_BOOL
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	movl	8(%rbx), %eax
	shll	$3, %eax
	movl	%eax, 8(%rbx)
	movslq	%eax, %rdx
	movq	(%rbx), %rcx
	cmpq	%rdx, %rcx
	jge	LBB0_3
## %bb.2:
	orl	$1, %eax
	subl	%ecx, %eax
	movl	%eax, 8(%rbx)
	xorl	%r14d, %r14d
	cmpq	$1, %r15
	sbbl	%r14d, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ft_lzwstate_refill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ft_lzwstate_refill
_ft_lzwstate_refill:                    ; @ft_lzwstate_refill
	.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
	ldr	w8, [x0, #24]
	cbnz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #36]
	ldr	w1, [x19, #32]
	ldr	x2, [x19]
	bl	_FT_Stream_TryRead
	mov	x20, x0
	str	w20, [x19, #8]
	ldr	w8, [x19, #28]
	add	w8, w8, w20
	str	w8, [x19, #28]
	ldr	x8, [x19]
	cmp	x0, x8
	cset	w0, lt
	bl	_FT_BOOL
	str	w0, [x19, #24]
	str	xzr, [x19, #16]
	ldr	w8, [x19, #8]
	lsl	w8, w8, #3
	str	w8, [x19, #8]
	ldr	x9, [x19]
	cmp	x9, w8, sxtw
	b.ge	LBB0_3
; %bb.2:
	orr	w8, w8, #0x1
	sub	w8, w8, w9
	str	w8, [x19, #8]
	cmp	x20, #0
	csetm	w0, eq
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ft_lzwstate_refill
.subsections_via_symbols
