	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_lzw_decode_init             ## -- Begin function ff_lzw_decode_init
	.p2align	4, 0x90
_ff_lzw_decode_init:                    ## @ff_lzw_decode_init
	.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, %eax
	testl	%esi, %esi
	jle	LBB0_3
## %bb.1:
	movl	%esi, %r15d
	movq	_LZW_MAXBITS@GOTPCREL(%rip), %rsi
	cmpl	%r15d, (%rsi)
	jle	LBB0_3
## %bb.2:
	movl	%r8d, %r14d
	movq	%rdi, %rbx
	addq	$80, %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	callq	_bytestream2_init
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbx)
	movq	$0, 72(%rbx)
	movl	%r15d, (%rbx)
	leal	1(%r15), %eax
	movl	%eax, 4(%rbx)
	movq	_mask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r15d, %ecx
	movl	4(%rax,%rcx,4), %eax
	movl	$2, %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	movl	$1, %esi
	shll	%cl, %esi
	movl	%eax, 52(%rbx)
	movl	%edx, 8(%rbx)
	movl	%esi, 12(%rbx)
	leal	1(%rsi), %eax
	movl	%eax, 16(%rbx)
	addl	$2, %esi
	movl	%esi, 24(%rbx)
	movl	%esi, 20(%rbx)
	movq	$-1, 28(%rbx)
	movl	44(%rbx), %eax
	movl	%eax, 48(%rbx)
	movl	%r14d, 36(%rbx)
	movq	_FF_LZW_TIFF@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%r14d, (%rax)
	sete	%cl
	movl	%ecx, 40(%rbx)
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LZW_MAXBITS,4,2                ## @LZW_MAXBITS
	.comm	_mask,8,3                       ## @mask
	.comm	_FF_LZW_TIFF,4,2                ## @FF_LZW_TIFF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_lzw_decode_init             ; -- Begin function ff_lzw_decode_init
	.p2align	2
_ff_lzw_decode_init:                    ; @ff_lzw_decode_init
	.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	x20, x0
	mov	w0, #-1
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, x1
Lloh0:
	adrp	x8, _LZW_MAXBITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LZW_MAXBITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_3
; %bb.2:
	mov	x19, x4
	add	x0, x20, #80
	mov	x1, x2
	mov	x2, x3
	bl	_bytestream2_init
	mov	w0, #0
	stp	xzr, xzr, [x20, #64]
	str	xzr, [x20, #56]
	add	w8, w21, #1
	stp	w21, w8, [x20]
Lloh3:
	adrp	x9, _mask@GOTPAGE
Lloh4:
	ldr	x9, [x9, _mask@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w8, [x9, w8, uxtw #2]
	mov	w9, #2
	lsl	w9, w9, w21
	mov	w10, #1
	lsl	w10, w10, w21
	stp	w9, w10, [x20, #8]
	add	w9, w10, #1
	add	w10, w10, #2
	stp	w10, w10, [x20, #20]
	str	w9, [x20, #16]
	movi.2d	v0, #0xffffffffffffffff
	stur	d0, [x20, #28]
	ldr	w9, [x20, #44]
Lloh6:
	adrp	x10, _FF_LZW_TIFF@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FF_LZW_TIFF@GOTPAGEOFF]
	stp	w9, w8, [x20, #48]
Lloh8:
	ldr	w8, [x10]
	cmp	w8, w19
	cset	w8, eq
	stp	w19, w8, [x20, #36]
LBB0_3:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LZW_MAXBITS,4,2                ; @LZW_MAXBITS
	.comm	_mask,8,3                       ; @mask
	.comm	_FF_LZW_TIFF,4,2                ; @FF_LZW_TIFF
.subsections_via_symbols
