	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_lzw_encode                  ## -- Begin function ff_lzw_encode
	.p2align	4, 0x90
_ff_lzw_encode:                         ## @ff_lzw_encode
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leal	(%r15,%r15,2), %eax
	movl	(%rdi), %ecx
	subl	4(%rdi), %ecx
	addl	%ecx, %ecx
	cmpl	%ecx, %eax
	jle	LBB0_1
## %bb.11:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_LZW_PREFIX_EMPTY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_clearTable
LBB0_3:
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.4:
	movl	%r15d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	cmpl	%r14d, %r13d
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %r15d
	movq	8(%rbx), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_findCode
	movl	%eax, %r12d
	movq	24(%rbx), %rcx
	cltq
	movq	%rax, %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rdx
	movq	_LZW_PREFIX_FREE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_writeCode
	movq	8(%rbx), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %ecx
	callq	_addCode
	xorl	%edi, %edi
	movl	%r15d, %esi
	callq	_hash
	movq	24(%rbx), %rcx
	cltq
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	shlq	$4, %rax
	movq	8(%rcx,%rax), %rax
	movq	%rax, 8(%rbx)
	movl	20(%rbx), %eax
	decl	%eax
	cmpl	%eax, 16(%rbx)
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_clearTable
	jmp	LBB0_9
LBB0_10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writtenBytes                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LZW_PREFIX_EMPTY,8,3           ## @LZW_PREFIX_EMPTY
	.comm	_LZW_PREFIX_FREE,8,3            ## @LZW_PREFIX_FREE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_lzw_encode                  ; -- Begin function ff_lzw_encode
	.p2align	2
_ff_lzw_encode:                         ; @ff_lzw_encode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	add	w8, w2, w2, lsl #1
	ldp	w9, w10, [x0]
	sub	w9, w9, w10
	cmp	w8, w9, lsl #1
	b.le	LBB0_2
; %bb.1:
	mov	w0, #-1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _LZW_PREFIX_EMPTY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LZW_PREFIX_EMPTY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_clearTable
LBB0_4:
	cmp	w19, #1
	b.lt	LBB0_11
; %bb.5:
Lloh3:
	adrp	x24, _LZW_PREFIX_FREE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _LZW_PREFIX_FREE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	subs	w19, w19, #1
	b.eq	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x21], #4
	ldr	x2, [x20, #8]
	mov	x0, x20
	mov	x1, x22
	bl	_findCode
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x20, #24]
	sxtw	x23, w0
	sbfiz	x9, x0, #4, #32
	ldr	x9, [x8, x9]
	ldr	x10, [x24]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [x20, #8]
	mov	x0, x20
	bl	_writeCode
	ldr	x2, [x20, #8]
	mov	x0, x20
	mov	x1, x22
	mov	x3, x23
	bl	_addCode
	mov	w0, #0
	mov	x1, x22
	bl	_hash
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x20, #24]
	sxtw	x23, w0
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, x23, lsl #4
	ldr	x8, [x8, #8]
	str	x8, [x20, #8]
	ldp	w8, w9, [x20, #16]
	sub	w9, w9, #1
	cmp	w8, w9
	b.lt	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_clearTable
	b	LBB0_6
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_writtenBytes
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LZW_PREFIX_EMPTY,8,3           ; @LZW_PREFIX_EMPTY
	.comm	_LZW_PREFIX_FREE,8,3            ; @LZW_PREFIX_FREE
.subsections_via_symbols
