	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_lzw_decode                  ## -- Begin function ff_lzw_decode
	.p2align	4, 0x90
_ff_lzw_decode:                         ## @ff_lzw_decode
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	js	LBB0_1
## %bb.2:
	movq	72(%rdi), %r12
	movl	4(%rdi), %r9d
	movl	8(%rdi), %r8d
	movl	%edx, %ebx
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	movq	88(%rdi), %rax
	movl	%ebx, %ebx
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%r12,%r14), %r13
	cmpq	%rax, %r13
	jbe	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	-4(%r12,%r14), %ecx
	movl	%ecx, (%rsi,%r15,4)
	incq	%r15
	addq	$-4, %r14
	cmpl	%r15d, %ebx
	jne	LBB0_4
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%r9d, -64(%rbp)                 ## 4-byte Spill
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	callq	_lzw_get_code
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	movl	-64(%rbp), %r9d                 ## 4-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	cmpl	(%rdi), %eax
	je	LBB0_25
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	12(%rdi), %eax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rdi), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, 16(%rdi)
	movq	_mask@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	8(%rdx,%rax,8), %rax
	movq	%rax, 80(%rdi)
	movl	36(%rdi), %eax
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %edx
	movl	%eax, 32(%rdi)
	movl	%edx, 40(%rdi)
	movl	$-1, %eax
	movl	$-1, %ecx
	movq	%r13, %r12
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	32(%rdi), %edx
	cmpl	%edx, %eax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%r8d, %r8d
	js	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r8d, (%r12,%r14)
	addq	%r14, %r12
	addq	$4, %r12
	movl	%r9d, %ecx
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	movq	%r13, %r12
	cmpl	%edx, %eax
	jge	LBB0_25
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r8
	cmpl	36(%rdi), %ecx
	jl	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%rdi), %rdx
	movq	56(%rdi), %rsi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %ebx
	movl	%ebx, (%r12)
	addq	$4, %r12
	movl	(%rsi,%rcx,4), %ecx
	cmpl	36(%rdi), %ecx
	jge	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, (%r12)
	movl	32(%rdi), %esi
	movl	40(%rdi), %edx
	cmpl	%edx, %esi
	jge	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%r9d, %r9d
	js	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%esi, %rdx
	movq	48(%rdi), %rsi
	movl	%ecx, (%rsi,%rdx,4)
	movq	56(%rdi), %rdx
	movslq	32(%rdi), %rsi
	leal	1(%rsi), %ebx
	movl	%ebx, 32(%rdi)
	movl	%r9d, (%rdx,%rsi,4)
	movl	32(%rdi), %esi
	movl	40(%rdi), %edx
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %r12
	movslq	%esi, %rsi
	movslq	%edx, %rbx
	subq	64(%rdi), %rbx
	cmpq	%rsi, %rbx
	ja	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rdi), %rsi
	movq	_LZW_MAXBITS@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rbx
	cmpq	%rbx, %rsi
	jae	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	addl	%edx, %edx
	movl	%edx, 40(%rdi)
	movq	_mask@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	1(%rsi), %rbx
	movq	%rbx, 16(%rdi)
	movq	8(%rdx,%rsi,8), %rdx
	movq	%rdx, 80(%rdi)
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r8, %rbx
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	subq	%r15, %rbx
	subq	%r14, %rsi
	movl	%eax, %r9d
	movl	%ecx, %r8d
	jmp	LBB0_3
LBB0_6:
	addq	%r14, %r12
	xorl	%ebx, %ebx
	movq	%r12, %r13
LBB0_26:
	movq	%r13, 72(%rdi)
	movl	%r9d, 4(%rdi)
	movl	%r8d, 8(%rdi)
	subl	%ebx, %edx
	jmp	LBB0_27
LBB0_1:
	xorl	%edx, %edx
LBB0_27:
	movl	%edx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	$-1, (%rdi)
	subl	%r15d, %ebx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_mask,8,3                       ## @mask
	.comm	_LZW_MAXBITS,4,2                ## @LZW_MAXBITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_lzw_decode                  ; -- Begin function ff_lzw_decode
	.p2align	2
_ff_lzw_decode:                         ; @ff_lzw_decode
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_24
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x0, #72]
	ldp	w28, w23, [x0, #4]
	mov	x9, x2
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	mov	x25, #0
	mov	x26, #0
	ldr	x8, [x20, #88]
	mov	w27, w9
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x24, x22, x25
	cmp	x24, x8
	b.ls	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	ldur	w9, [x24, #-4]
	str	w9, [x21, x26, lsl #2]
	add	x26, x26, #1
	sub	x25, x25, #4
	cmp	w27, w26
	b.ne	LBB0_3
	b	LBB0_22
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_lzw_get_code
	ldr	w8, [x20]
	cmp	w0, w8
	b.eq	LBB0_26
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20, #12]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #24]
	add	x8, x8, #1
	str	x8, [x20, #16]
Lloh0:
	adrp	x9, _mask@GOTPAGE
Lloh1:
	ldr	x9, [x9, _mask@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x9, x8, lsl #3]
	str	x9, [x20, #80]
	ldr	w9, [x20, #36]
	str	w9, [x20, #32]
	mov	w9, #1
	lsl	w8, w9, w8
	str	w8, [x20, #40]
	mov	w0, #-1
	mov	w8, #-1
	mov	x22, x24
	b	LBB0_21
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x20, #32]
	cmp	w0, w9
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w23, #31, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x22, x25
	str	w23, [x24], #4
	mov	x8, x28
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x0
	cmp	w0, w9
	b.ge	LBB0_26
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x20, #36]
	cmp	w8, w9
	b.lt	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	ldp	x9, x10, [x20, #48]
LBB0_14:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sbfiz	x8, x8, #2, #32
	ldr	w11, [x9, x8]
	str	w11, [x24], #4
	ldr	w11, [x20, #36]
	ldr	w8, [x10, x8]
	cmp	w8, w11
	b.ge	LBB0_14
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x24
	str	w8, [x22], #4
	ldr	w10, [x20, #32]
	ldr	w9, [x20, #40]
	cmp	w10, w9
	b.ge	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w28, #31, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x9, w10
	ldp	x10, x11, [x20, #48]
	str	w8, [x10, x9, lsl #2]
	ldrsw	x9, [x20, #32]
	add	w10, w9, #1
	str	w10, [x20, #32]
	str	w28, [x11, x9, lsl #2]
	ldr	w10, [x20, #32]
	ldr	w9, [x20, #40]
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x11, w9
	ldr	x12, [x20, #64]
	sub	x11, x11, x12
	cmp	x11, w10, sxtw
	b.hi	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [x20, #16]
Lloh3:
	adrp	x11, _LZW_MAXBITS@GOTPAGE
Lloh4:
	ldr	x11, [x11, _LZW_MAXBITS@GOTPAGEOFF]
Lloh5:
	ldrsw	x11, [x11]
	cmp	x10, x11
	b.hs	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	lsl	w9, w9, #1
	str	w9, [x20, #40]
Lloh6:
	adrp	x9, _mask@GOTPAGE
Lloh7:
	ldr	x9, [x9, _mask@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x10, x10, #1
	str	x10, [x20, #16]
	ldr	x9, [x9, x10, lsl #3]
	str	x9, [x20, #80]
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x9, x27, x26
	sub	x21, x21, x25
	mov	x28, x0
	mov	x23, x8
	b	LBB0_2
LBB0_22:
	mov	w8, #0
LBB0_23:
	add	x9, x22, x25
	str	x9, [x20, #72]
	sub	w0, w19, w8
	stp	w28, w23, [x20, #4]
	b	LBB0_25
LBB0_24:
	mov	w0, #0
LBB0_25:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
	mov	w8, #-1
	str	w8, [x20]
	sub	w8, w27, w26
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_mask,8,3                       ; @mask
	.comm	_LZW_MAXBITS,4,2                ; @LZW_MAXBITS
.subsections_via_symbols
