	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_lzf_uncompress              ## -- Begin function ff_lzf_uncompress
	.p2align	4, 0x90
_ff_lzf_uncompress:                     ## @ff_lzf_uncompress
	.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
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r13
	callq	_bytestream2_get_bytes_left
	movl	$0, %ebx
	cmpl	$3, %eax
	jl	LBB0_16
## %bb.1:
	xorl	%ecx, %ecx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_bytestream2_get_buffer
	movl	%r14d, %r15d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %rbx
	leaq	(%r13,%rbx,4), %r13
	addl	%r14d, %ebx
	movq	%r12, %rdi
	callq	_bytestream2_get_bytes_left
	movl	%ebx, %ecx
	cmpl	$2, %eax
	jle	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, %r14d
	movq	_LZF_LITERAL_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, %ecx
	subl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	cmpl	%ecx, %r14d
	jl	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	addl	%eax, %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%esi, (%rax)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_av_reallocp
	testl	%eax, %eax
	js	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	-44(%rbp), %r13                 ## 4-byte Folded Reload
	shlq	$2, %r13
	addq	(%rbx), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %r15d
	sarl	$5, %r15d
	addl	$2, %r15d
	andl	$31, %r14d
	shll	$8, %r14d
	orl	$1, %r14d
	movq	_LZF_LONG_BACKREF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_bytestream2_get_byte
	addl	%eax, %r15d
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, %r12d
	addl	%r14d, %r12d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	cmpl	%r14d, %r12d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jg	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, %ecx
	subl	%r14d, %ecx
	cmpl	%ecx, %r15d
	jle	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	addl	%eax, %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%esi, (%rax)
	movq	%rbx, %rdi
	callq	_av_reallocp
	testl	%eax, %eax
	js	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r14d, %r13
	shlq	$2, %r13
	addq	(%rbx), %r13
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_av_memcpy_backptr
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	xorl	%eax, %eax
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_LZF_LITERAL_MAX,4,2            ## @LZF_LITERAL_MAX
	.comm	_LZF_LONG_BACKREF,4,2           ## @LZF_LONG_BACKREF
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_lzf_uncompress              ; -- Begin function ff_lzf_uncompress
	.p2align	2
_ff_lzf_uncompress:                     ; @ff_lzf_uncompress
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x1]
	bl	_bytestream2_get_bytes_left
	cmp	w0, #3
	b.lt	LBB0_15
; %bb.1:
	mov	w25, #0
Lloh0:
	adrp	x26, _LZF_LITERAL_MAX@GOTPAGE
Lloh1:
	ldr	x26, [x26, _LZF_LITERAL_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x27, _LZF_LONG_BACKREF@GOTPAGE
Lloh3:
	ldr	x27, [x27, _LZF_LONG_BACKREF@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w24, #1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_bytestream2_get_buffer
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, w23, sxtw #2
	add	w25, w23, w25
	mov	x0, x21
	bl	_bytestream2_get_bytes_left
	cmp	w0, #2
	b.le	LBB0_16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_bytestream2_get_byte
	mov	x24, x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.ge	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	sub	w9, w8, w25
	cmp	w24, w9
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #0
	cinc	w9, w8, lt
	add	w1, w8, w9, asr #1
	str	w1, [x19]
	mov	x0, x20
	bl	_av_reallocp
	tbnz	w0, #31, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	add	x22, x8, w25, sxtw #2
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	asr	w8, w24, #5
	add	w23, w8, #2
	ldr	w8, [x27]
	cmp	w23, w8
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_bytestream2_get_byte
	add	w23, w0, w23
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #1
	bfi	w28, w24, #8, #5
	mov	x0, x21
	bl	_bytestream2_get_byte
	add	w24, w0, w28
	cmp	w24, w25
	b.gt	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	sub	w9, w8, w25
	cmp	w23, w9
	b.le	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #0
	cinc	w9, w8, lt
	add	w1, w8, w9, asr #1
	str	w1, [x19]
	mov	x0, x20
	bl	_av_reallocp
	tbnz	w0, #31, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	add	x22, x8, w25, sxtw #2
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_av_memcpy_backptr
	b	LBB0_3
LBB0_15:
	mov	w25, #0
LBB0_16:
	mov	w0, #0
	str	w25, [x19]
LBB0_17:
	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_18:
Lloh4:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_17
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LZF_LITERAL_MAX,4,2            ; @LZF_LITERAL_MAX
	.comm	_LZF_LONG_BACKREF,4,2           ; @LZF_LONG_BACKREF
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
.subsections_via_symbols
