	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ft_lzwstate_get_code
_ft_lzwstate_get_code:                  ## @ft_lzwstate_get_code
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	64(%rdi), %rdx
	testq	%rdx, %rdx
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	cmpq	16(%rbx), %rax
	jae	LBB0_3
## %bb.2:
	movq	24(%rbx), %rcx
	cmpq	32(%rbx), %rcx
	jl	LBB0_14
LBB0_3:
	movq	24(%rbx), %rax
	cmpq	32(%rbx), %rax
	jl	LBB0_9
## %bb.4:
	incq	%r14
	movq	%r14, (%rbx)
	movq	_LZW_MAX_BITS@GOTPCREL(%rip), %rax
	movl	$-1, %r15d
	cmpq	(%rax), %r14
	ja	LBB0_18
## %bb.5:
	cmpq	40(%rbx), %r14
	jae	LBB0_7
## %bb.6:
	movl	$1, %eax
	movl	%r14d, %ecx
	shlq	%cl, %rax
	addq	$-256, %rax
	jmp	LBB0_8
LBB0_7:
	movq	48(%rbx), %rax
	incq	%rax
LBB0_8:
	movq	%rax, 32(%rbx)
LBB0_9:
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.10:
	movq	_LZW_INIT_BITS@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	$1, %eax
	movl	%r14d, %ecx
	shlq	%cl, %rax
	movq	%r14, (%rbx)
	addq	$-256, %rax
	movq	%rax, 32(%rbx)
	movq	$0, 64(%rbx)
LBB0_11:
	movq	%rbx, %rdi
	callq	_ft_lzwstate_refill
	testq	%rax, %rax
	js	LBB0_12
## %bb.13:
	xorl	%eax, %eax
LBB0_14:
	leaq	(%rax,%r14), %rcx
	movq	%rcx, 8(%rbx)
	movq	56(%rbx), %rcx
	movq	%rax, %rsi
	andq	$-8, %rsi
	andl	$7, %eax
	leaq	(%rcx,%rsi), %rdx
	addq	$8, %rdx
	movq	(%rcx,%rsi), %r15
	movl	%eax, %ecx
	shrq	%cl, %r15
	movl	$8, %ebx
	subq	%rax, %rbx
	subq	%rbx, %r14
	cmpq	$8, %r14
	jb	LBB0_16
## %bb.15:
	movq	(%rdx), %rsi
	addq	$8, %rdx
	movl	%ebx, %ecx
	shlq	%cl, %rsi
	orq	%rsi, %r15
	movl	$16, %ebx
	subq	%rax, %rbx
	addq	$-8, %r14
LBB0_16:
	testq	%r14, %r14
	je	LBB0_18
## %bb.17:
	movq	(%rdx), %r12
	movq	%r14, %rdi
	callq	_LZW_MASK
	andq	%r12, %rax
	movl	%ebx, %ecx
	shlq	%cl, %rax
	orq	%rax, %r15
	jmp	LBB0_18
LBB0_12:
	movl	$-1, %r15d
LBB0_18:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LZW_MAX_BITS,8,3               ## @LZW_MAX_BITS
	.comm	_LZW_INIT_BITS,8,3              ## @LZW_INIT_BITS
	.no_dead_strip	_ft_lzwstate_get_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ft_lzwstate_get_code
_ft_lzwstate_get_code:                  ; @ft_lzwstate_get_code
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x8, [x0, #64]
	cbnz	x8, LBB0_3
; %bb.1:
	ldp	x9, x10, [x19, #8]
	cmp	x9, x10
	b.hs	LBB0_3
; %bb.2:
	ldp	x10, x11, [x19, #24]
	cmp	x10, x11
	b.lt	LBB0_13
LBB0_3:
	ldp	x9, x10, [x19, #24]
	cmp	x9, x10
	b.lt	LBB0_9
; %bb.4:
	add	x20, x20, #1
	str	x20, [x19]
Lloh0:
	adrp	x9, _LZW_MAX_BITS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LZW_MAX_BITS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x20, x9
	b.hi	LBB0_17
; %bb.5:
	ldr	x9, [x19, #40]
	cmp	x20, x9
	b.hs	LBB0_7
; %bb.6:
	mov	w9, #1
	lsl	x9, x9, x20
	sub	x9, x9, #256
	b	LBB0_8
LBB0_7:
	ldr	x9, [x19, #48]
	add	x9, x9, #1
LBB0_8:
	str	x9, [x19, #32]
LBB0_9:
	cbz	x8, LBB0_11
; %bb.10:
Lloh3:
	adrp	x8, _LZW_INIT_BITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LZW_INIT_BITS@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
	str	x20, [x19]
	mov	w8, #1
	lsl	x8, x8, x20
	sub	x8, x8, #256
	str	x8, [x19, #32]
	str	xzr, [x19, #64]
LBB0_11:
	mov	x0, x19
	bl	_ft_lzwstate_refill
	tbnz	x0, #63, LBB0_17
; %bb.12:
	mov	x9, #0
LBB0_13:
	add	x8, x9, x20
	str	x8, [x19, #8]
	ldr	x8, [x19, #56]
	and	x10, x9, #0xfffffffffffffff8
	add	x8, x8, x10
	ldr	x10, [x8], #8
	and	x9, x9, #0x7
	lsr	x19, x10, x9
	mov	w10, #8
	sub	x21, x10, x9
	sub	x0, x20, x21
	subs	x10, x0, #8
	b.lo	LBB0_15
; %bb.14:
	ldr	x11, [x8], #8
	lsl	x11, x11, x21
	orr	x19, x11, x19
	mov	w11, #16
	sub	x21, x11, x9
	mov	x0, x10
LBB0_15:
	cbz	x0, LBB0_18
; %bb.16:
	ldr	x20, [x8]
	bl	_LZW_MASK
	and	x8, x0, x20
	lsl	x8, x8, x21
	orr	x19, x8, x19
	b	LBB0_18
LBB0_17:
	mov	w19, #-1
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LZW_MAX_BITS,8,3               ; @LZW_MAX_BITS
	.comm	_LZW_INIT_BITS,8,3              ; @LZW_INIT_BITS
	.no_dead_strip	_ft_lzwstate_get_code
.subsections_via_symbols
