	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pglz_decompress                ## -- Begin function pglz_decompress
	.p2align	4, 0x90
_pglz_decompress:                       ## @pglz_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
	movslq	%esi, %rax
	leaq	(%rdi,%rax), %rsi
	movslq	%ecx, %r9
	addq	%rdx, %r9
	testl	%eax, %eax
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	jle	LBB0_40
## %bb.1:
	testl	%ecx, %ecx
	jle	LBB0_40
## %bb.2:
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_18 Depth 3
                                        ##       Child Loop BB0_21 Depth 3
                                        ##       Child Loop BB0_27 Depth 3
                                        ##       Child Loop BB0_32 Depth 3
	leaq	1(%rdi), %rax
	cmpq	%rsi, %rax
	jae	LBB0_36
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r9, %r12
	jae	LBB0_39
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	(%rdi), %r14b
	xorl	%r15d, %r15d
	movq	%rax, %rdi
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_18 Depth 3
                                        ##       Child Loop BB0_21 Depth 3
                                        ##       Child Loop BB0_27 Depth 3
                                        ##       Child Loop BB0_32 Depth 3
	testb	$1, %r14b
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movb	(%rdi), %al
	incq	%rdi
	movb	%al, (%r12)
	incq	%r12
	cmpl	$6, %r15d
	jbe	LBB0_34
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movzbl	(%rdi), %r13d
	movl	%r13d, %eax
	andl	$15, %eax
	addl	$3, %eax
	cmpl	$18, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	leaq	3(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movzbl	2(%rdi), %eax
	addl	$18, %eax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	leaq	2(%rdi), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	movzbl	1(%rdi), %ebx
	movl	%r9d, %esi
	subl	%r12d, %esi
	movl	%eax, %edi
	callq	_Min
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	shll	$4, %r13d
	andl	$3840, %r13d                    ## imm = 0xF00
	orq	%r13, %rbx
	movq	%rbx, %r10
	negq	%r10
	leal	-1(%rax), %r9d
	cmpl	$31, %r9d
	movq	%rbx, %r11
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jb	LBB0_25
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$32, %r11d
	jb	LBB0_25
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=2
	incq	%r9
	movq	%r9, %r8
	andq	$-32, %r8
	leaq	-32(%r8), %rcx
	movq	%rcx, %rdi
	shrq	$5, %rdi
	incq	%rdi
	movl	%edi, %esi
	andl	$3, %esi
	cmpq	$96, %rcx
	jae	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=2
	xorl	%edx, %edx
	jmp	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	cmpl	$6, %r15d
	jbe	LBB0_34
	jmp	LBB0_37
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=2
	andq	$-4, %rdi
	leaq	112(%r12), %rcx
	leaq	(%r12,%r10), %rbx
	addq	$112, %rbx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movups	-112(%rbx,%rdx), %xmm0
	movups	-96(%rbx,%rdx), %xmm1
	movups	%xmm0, -112(%rcx,%rdx)
	movups	%xmm1, -96(%rcx,%rdx)
	movups	-80(%rbx,%rdx), %xmm0
	movups	-64(%rbx,%rdx), %xmm1
	movups	%xmm0, -80(%rcx,%rdx)
	movups	%xmm1, -64(%rcx,%rdx)
	movups	-48(%rbx,%rdx), %xmm0
	movups	-32(%rbx,%rdx), %xmm1
	movups	%xmm0, -48(%rcx,%rdx)
	movups	%xmm1, -32(%rcx,%rdx)
	movups	-16(%rbx,%rdx), %xmm0
	movups	(%rbx,%rdx), %xmm1
	movups	%xmm0, -16(%rcx,%rdx)
	movups	%xmm1, (%rcx,%rdx)
	subq	$-128, %rdx
	addq	$-4, %rdi
	jne	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=2
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=2
	leaq	(%r12,%rdx), %rcx
	addq	$16, %rcx
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movups	-16(%rcx,%r10), %xmm0
	movups	(%rcx,%r10), %xmm1
	movups	%xmm0, -16(%rcx)
	movups	%xmm1, (%rcx)
	addq	$32, %rcx
	decq	%rsi
	jne	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=2
	addq	%r8, %r12
	cmpq	%r8, %r9
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	cmpl	$6, %r15d
	jbe	LBB0_34
	jmp	LBB0_37
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=2
	subl	%r8d, %eax
LBB0_25:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	leal	-1(%rax), %edx
	movl	%eax, %ecx
	andl	$7, %ecx
	je	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_6 Depth=2
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movzbl	(%r12,%r10), %ebx
	movb	%bl, (%r12)
	incq	%r12
	incl	%esi
	cmpl	%esi, %ecx
	jne	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_6 Depth=2
	subl	%esi, %eax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
LBB0_29:                                ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$7, %edx
	jb	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	%r11d, %edx
	movl	$7, %ecx
	subq	%rdx, %rcx
	.p2align	4, 0x90
LBB0_32:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movzbl	-7(%r12,%rcx), %edx
	movb	%dl, (%r12)
	movzbl	-6(%r12,%rcx), %edx
	movb	%dl, 1(%r12)
	movzbl	-5(%r12,%rcx), %edx
	movb	%dl, 2(%r12)
	movzbl	-4(%r12,%rcx), %edx
	movb	%dl, 3(%r12)
	movzbl	-3(%r12,%rcx), %edx
	movb	%dl, 4(%r12)
	movzbl	-2(%r12,%rcx), %edx
	movb	%dl, 5(%r12)
	movzbl	-1(%r12,%rcx), %edx
	movb	%dl, 6(%r12)
	movzbl	(%r12,%rcx), %edx
	movb	%dl, 7(%r12)
	addq	$8, %r12
	addl	$-8, %eax
	jne	LBB0_32
LBB0_33:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpl	$6, %r15d
	ja	LBB0_37
LBB0_34:                                ##   in Loop: Header=BB0_6 Depth=2
	cmpq	%rsi, %rdi
	jae	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_6 Depth=2
	shrb	%r14b
	incl	%r15d
	cmpq	%r9, %r12
	jb	LBB0_6
LBB0_37:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rsi, %rdi
	jae	LBB0_40
LBB0_38:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r9, %r12
	jb	LBB0_3
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	cmpq	%rsi, %rdi
	jb	LBB0_38
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	cmpq	%rsi, %rdi
	jb	LBB0_38
LBB0_40:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_43
## %bb.41:
	movl	$-1, %eax
	cmpq	%r9, %r12
	jne	LBB0_44
## %bb.42:
	cmpq	%rsi, %rdi
	jne	LBB0_44
LBB0_43:
	subl	-80(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %eax
LBB0_44:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pglz_decompress                ; -- Begin function pglz_decompress
	.p2align	2
_pglz_decompress:                       ; @pglz_decompress
	.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	x20, x4
	mov	x19, x2
	add	x21, x0, w1, sxtw
	add	x22, x2, w3, sxtw
	mov	x23, x2
	cmp	w1, #1
	b.lt	LBB0_25
; %bb.1:
	cmp	w3, #1
	b.lt	LBB0_25
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
                                        ;       Child Loop BB0_19 Depth 3
	add	x8, x0, #1
	cmp	x8, x21
	ccmp	x23, x22, #2, lo
	b.lo	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x8
	b	LBB0_23
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w24, #0
	ldrb	w25, [x0]
	mov	x0, x8
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
                                        ;       Child Loop BB0_19 Depth 3
	tbnz	w25, #0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldrb	w8, [x0], #1
	strb	w8, [x23], #1
	cmp	w24, #6
	b.ls	LBB0_21
	b	LBB0_23
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldrb	w27, [x0]
	and	w8, w27, #0xf
	add	w8, w8, #3
	cmp	w8, #18
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x26, x0, #3
	ldrb	w8, [x0, #2]
	add	w8, w8, #18
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x26, x0, #2
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	ldrb	w28, [x0, #1]
	sub	w1, w22, w23
	mov	x0, x8
	bl	_Min
	cbz	w0, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=2
	lsl	w8, w27, #4
	and	x8, x8, #0xf00
	orr	x9, x8, x28
	neg	x8, x9
	sub	w10, w0, #1
	cmp	w10, #63
	b.lo	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=2
	cmp	w9, #64
	b.lo	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=2
	add	x10, x10, #1
	and	x11, x10, #0x1ffffffc0
	sub	w0, w0, w11
	add	x9, x23, x11
	add	x12, x23, #32
	mov	x13, x11
LBB0_14:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x14, x12, x8
	ldp	q0, q1, [x14, #-32]
	ldp	q2, q3, [x14]
	stp	q0, q1, [x12, #-32]
	stp	q2, q3, [x12], #64
	subs	x13, x13, #64
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=2
	cmp	x10, x11
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=2
	mov	x23, x9
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x9, x23
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x23, x9
LBB0_19:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrb	w9, [x23, x8]
	strb	w9, [x23], #1
	subs	w0, w0, #1
	b.ne	LBB0_19
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x26
	cmp	w24, #6
	b.hi	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	x0, x21
	b.hs	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=2
	lsr	w25, w25, #1
	add	w24, w24, #1
	cmp	x23, x22
	b.lo	LBB0_5
LBB0_23:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x0, x21
	b.hs	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	x23, x22
	b.lo	LBB0_2
LBB0_25:
	cbz	w20, LBB0_28
; %bb.26:
	mov	w8, #-1
	cmp	x23, x22
	b.ne	LBB0_29
; %bb.27:
	cmp	x0, x21
	b.ne	LBB0_29
LBB0_28:
	sub	w8, w23, w19
LBB0_29:
	mov	x0, x8
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
