	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decompress_5
_decompress_5:                          ## @decompress_5
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	(%rdi), %r13
	leaq	12(%r13), %rdi
	leaq	8(%r13), %r14
	movl	$0, -48(%rbp)
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_bytestream2_init
	movq	_PREAMBLE_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bytestream2_skip_p
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left_p
	testq	%rax, %rax
	jle	LBB0_16
## %bb.1:
	addq	$16, %r13
	leaq	-48(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_bytestream2_get_byte
	movl	%eax, %ecx
	andl	$3, %ecx
	addl	$2, %ecx
	sarl	$2, %eax
	notl	%eax
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_lz_copy
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left_p
	testq	%rax, %rax
	jle	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_bytestream2_get_bytes_left
	testl	%eax, %eax
	jle	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_read_bits2
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_bytestream2_get_bytes_left
	testl	%eax, %eax
	jle	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	cmpl	$2, %ebx
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %ebx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_bytestream2_get_byte
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bytestream2_put_byte
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_bytestream2_get_byte
	cmpl	$255, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_bytestream2_get_byte
	movl	%eax, %ebx
	movl	%eax, %r12d
	andl	$15, %r12d
	addl	$3, %r12d
	sarl	$4, %ebx
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
                                        ## kill: def $eax killed $eax def $rax
	shll	$4, %eax
	leal	(%rbx,%rax), %edx
	addl	$-4096, %edx                    ## imm = 0xF000
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %ecx
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_bytestream2_get_le16
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bytestream2_skip_p
	jmp	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left_p
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jle	LBB0_18
LBB0_17:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PREAMBLE_SIZE,4,2              ## @PREAMBLE_SIZE
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decompress_5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decompress_5
_decompress_5:                          ; @decompress_5
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	ldr	x22, [x0]
	add	x20, x22, #12
	add	x19, x22, #8
	str	wzr, [sp, #8]
	ldp	w2, w1, [x22]
	mov	x0, x20
	bl	_bytestream2_init
Lloh0:
	adrp	x8, _PREAMBLE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PREAMBLE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w1, w8, w21
	mov	x0, x19
	bl	_bytestream2_skip_p
	mov	x0, x19
	bl	_bytestream2_get_bytes_left_p
	cmp	x0, #1
	b.lt	LBB0_16
; %bb.1:
	add	x21, x22, #16
	mov	w23, #-1
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_bytestream2_get_byte
	and	w8, w0, #0xf
	add	w22, w8, #3
	asr	w24, w0, #4
	mov	x0, x21
	bl	_bytestream2_get_byte
	add	w8, w24, w0, lsl #4
	sub	w2, w8, #1, lsl #12             ; =4096
	mov	x0, x19
	mov	x1, x20
	mov	x3, x22
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_lz_copy
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_bytestream2_get_bytes_left_p
	cmp	x0, #0
	b.le	LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_bytestream2_get_bytes_left
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	mov	x1, x21
	bl	_read_bits2
	mov	x22, x0
	mov	x0, x21
	bl	_bytestream2_get_bytes_left
	cmp	w0, #0
	b.le	LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	cmp	w22, #2
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w22, #1
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w22, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_bytestream2_get_byte
	mov	x1, x0
	mov	x0, x19
	bl	_bytestream2_put_byte
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_bytestream2_get_byte
	cmp	w0, #255
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w0, LBB0_15
	b	LBB0_18
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_bytestream2_get_byte
	and	w8, w0, #0x3
	add	w3, w8, #2
	eor	w2, w23, w0, asr #2
	mov	x0, x19
	mov	x1, x20
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_bytestream2_get_le16
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w1, w0, #1
	mov	x0, x19
	bl	_bytestream2_skip_p
	b	LBB0_4
LBB0_16:
	mov	x0, x19
	bl	_bytestream2_get_bytes_left_p
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, gt
	b	LBB0_18
LBB0_17:
Lloh6:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PREAMBLE_SIZE,4,2              ; @PREAMBLE_SIZE
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decompress_5
.subsections_via_symbols
