	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlz_decompress                 ## -- Begin function qlz_decompress
	.p2align	4, 0x90
_qlz_decompress:                        ## @qlz_decompress
	.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, %r12
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	andq	$-8, %r12
	testb	$2, (%rdi)
	movl	$3, %eax
	movl	$9, %r13d
	cmovel	%eax, %r13d
	leaq	8(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_QLZ_STREAMING_MODE_ROUNDED@GOTPCREL(%rip), %r14
	movslq	(%r14), %rax
	addq	%r12, %rax
	addq	$16, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	callq	_qlz_size_decompressed
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_qlz_size_compressed
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %r15
	movq	%rbx, %rdi
	callq	_qlz_size_decompressed
	leaq	(%r15,%rax), %rcx
	decq	%rcx
	movslq	(%r14), %rdx
	movb	(%rbx), %al
	cmpq	%rdx, %rcx
	jae	LBB0_3
## %bb.1:
	addq	$16, %r12
	testb	$1, %al
	jne	LBB0_5
## %bb.2:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rdi
	addq	%r12, %rdi
	movl	%r13d, %eax
	addq	%rax, %rbx
	movq	%rbx, %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_memcpy
	jmp	LBB0_6
LBB0_3:
	movl	%r13d, %ecx
	addq	%rcx, %rbx
	testb	$1, %al
	jne	LBB0_7
## %bb.4:
	xorl	%r12d, %r12d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_memcpy
	jmp	LBB0_8
LBB0_5:
	movl	%r13d, %eax
	addq	%rax, %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rsi
	addq	%r12, %rsi
	movq	%rbx, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, %r8
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	_qlz_decompress_core
LBB0_6:
	addq	(%r14), %r12
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_memcpy
	movq	(%r14), %r12
	addq	%rbx, %r12
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rsi, %r8
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	_qlz_decompress_core
	xorl	%r12d, %r12d
LBB0_8:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_9:
	movq	%r12, (%r14)
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLZ_STREAMING_MODE_ROUNDED,4,2 ## @QLZ_STREAMING_MODE_ROUNDED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlz_decompress                 ; -- Begin function qlz_decompress
	.p2align	2
_qlz_decompress:                        ; @qlz_decompress
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x21, x0
	and	x25, x2, #0xfffffffffffffff8
	ldrb	w22, [x0]
Lloh0:
	adrp	x27, _QLZ_STREAMING_MODE_ROUNDED@GOTPAGE
Lloh1:
	ldr	x27, [x27, _QLZ_STREAMING_MODE_ROUNDED@GOTPAGEOFF]
	ldrsw	x24, [x27]
	bl	_qlz_size_decompressed
	mov	x19, x0
	mov	x0, x21
	bl	_qlz_size_compressed
	mov	x23, x0
	ldr	x28, [x25, #8]!
	tst	w22, #0x2
	mov	w8, #9
	mov	w9, #3
	csel	w26, w9, w8, eq
	add	x22, x25, #8
	add	x24, x22, x24
	mov	x0, x21
	bl	_qlz_size_decompressed
	add	x8, x28, x0
	sub	x9, x8, #1
	ldrsw	x10, [x27]
	ldrb	w8, [x21]
	cmp	x9, x10
	b.hs	LBB0_3
; %bb.1:
	tbnz	w8, #0, LBB0_5
; %bb.2:
	ldr	x8, [x25]
	add	x0, x22, x8
	add	x8, x21, w26, uxtw
	stp	x8, x19, [sp]
	bl	_memcpy
	b	LBB0_6
LBB0_3:
	add	x0, x21, w26, uxtw
	tbnz	w8, #0, LBB0_7
; %bb.4:
	stp	x0, x19, [sp]
	mov	x0, x20
	bl	_memcpy
	b	LBB0_8
LBB0_5:
	add	x0, x21, w26, uxtw
	ldr	x8, [x25]
	add	x1, x22, x8
	mov	x2, x19
	mov	x3, x23
	mov	x4, x22
	mov	x5, x24
	bl	_qlz_decompress_core
LBB0_6:
	ldr	x8, [x25]
	add	x8, x22, x8
	stp	x8, x19, [sp]
	mov	x0, x20
	bl	_memcpy
	ldr	x8, [x25]
	add	x8, x8, x19
	b	LBB0_9
LBB0_7:
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	mov	x4, x20
	mov	x5, x24
	bl	_qlz_decompress_core
LBB0_8:
	mov	x8, #0
LBB0_9:
	str	x8, [x25]
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_QLZ_STREAMING_MODE_ROUNDED,4,2 ; @QLZ_STREAMING_MODE_ROUNDED
.subsections_via_symbols
