	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function decode_block
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_decode_block:                          ## @decode_block
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_get_bits
	movl	$1, %esi
	movl	$1, %r8d
	movl	%r15d, %ecx
	shll	%cl, %r8d
	cmpl	$31, %r15d
	je	LBB0_27
## %bb.1:
	movq	(%r14), %rcx
	cmpl	$2, %r8d
	cmovgel	%r8d, %esi
	cmpl	$8, %esi
	jae	LBB0_7
## %bb.2:
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	LBB0_3
LBB0_7:
	movl	%esi, %edi
	andl	$2147483640, %edi               ## imm = 0x7FFFFFF8
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,1,2,3]
	pmulld	%xmm0, %xmm1
	pslld	$2, %xmm0
	leaq	-8(%rdi), %rdx
	movq	%rdx, %rbx
	shrq	$3, %rbx
	incq	%rbx
	movl	%ebx, %r9d
	andl	$3, %r9d
	cmpq	$24, %rdx
	jae	LBB0_9
## %bb.8:
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_9:
	andq	$-4, %rbx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm1, (%rcx,%rdx,4)
	paddd	%xmm0, %xmm1
	movdqu	%xmm1, 16(%rcx,%rdx,4)
	paddd	%xmm0, %xmm1
	movdqu	%xmm1, 32(%rcx,%rdx,4)
	paddd	%xmm0, %xmm1
	movdqu	%xmm1, 48(%rcx,%rdx,4)
	paddd	%xmm0, %xmm1
	movdqu	%xmm1, 64(%rcx,%rdx,4)
	paddd	%xmm0, %xmm1
	movdqu	%xmm1, 80(%rcx,%rdx,4)
	paddd	%xmm0, %xmm1
	movdqu	%xmm1, 96(%rcx,%rdx,4)
	paddd	%xmm0, %xmm1
	movdqu	%xmm1, 112(%rcx,%rdx,4)
	addq	$32, %rdx
	paddd	%xmm0, %xmm1
	addq	$-4, %rbx
	jne	LBB0_10
LBB0_11:
	testq	%r9, %r9
	je	LBB0_14
## %bb.12:
	leaq	(%rcx,%rdx,4), %rdx
	addq	$16, %rdx
	shlq	$5, %r9
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm1, -16(%rdx,%rbx)
	paddd	%xmm0, %xmm1
	movdqu	%xmm1, (%rdx,%rbx)
	paddd	%xmm0, %xmm1
	addq	$32, %rbx
	cmpq	%rbx, %r9
	jne	LBB0_13
LBB0_14:
	cmpq	%rsi, %rdi
	je	LBB0_4
## %bb.15:
	movl	%eax, %edx
	imull	%edi, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%rcx,%rdi,4)
	addl	%eax, %edx
	incq	%rdi
	cmpq	%rdi, %rsi
	jne	LBB0_3
LBB0_4:
	testl	%r8d, %r8d
	jle	LBB0_27
## %bb.5:
	movq	(%r14), %rcx
	movl	%r8d, %esi
	cmpl	$8, %r8d
	jae	LBB0_16
## %bb.6:
	xorl	%edx, %edx
	movl	$1, %edi
	jmp	LBB0_25
LBB0_16:
	movl	%esi, %r8d
	andl	$-8, %r8d
	movl	%eax, %edx
	negl	%edx
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,1,2,3]
	pmulld	%xmm0, %xmm1
	pslld	$2, %xmm0
	movd	%eax, %xmm2
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	leaq	-8(%r8), %rdi
	movq	%rdi, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.18:
	movabsq	$4611686018427387900, %rbx      ## imm = 0x3FFFFFFFFFFFFFFC
	orq	$2, %rbx
	andq	%r9, %rbx
	movq	$-4, %rdi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm1, %xmm3
	paddd	%xmm0, %xmm3
	psubd	%xmm2, %xmm1
	movdqa	%xmm3, %xmm4
	psubd	%xmm2, %xmm4
	pshufd	$27, %xmm1, %xmm1               ## xmm1 = xmm1[3,2,1,0]
	movdqu	%xmm1, (%rcx,%rdi,4)
	pshufd	$27, %xmm4, %xmm1               ## xmm1 = xmm4[3,2,1,0]
	movdqu	%xmm1, -16(%rcx,%rdi,4)
	paddd	%xmm0, %xmm3
	movdqa	%xmm3, %xmm1
	paddd	%xmm0, %xmm1
	psubd	%xmm2, %xmm3
	movdqa	%xmm1, %xmm4
	psubd	%xmm2, %xmm4
	pshufd	$27, %xmm3, %xmm3               ## xmm3 = xmm3[3,2,1,0]
	movdqu	%xmm3, -32(%rcx,%rdi,4)
	pshufd	$27, %xmm4, %xmm3               ## xmm3 = xmm4[3,2,1,0]
	movdqu	%xmm3, -48(%rcx,%rdi,4)
	paddd	%xmm0, %xmm1
	addq	$-16, %rdi
	addq	$-2, %rbx
	jne	LBB0_19
## %bb.20:
	addq	$3, %rdi
	testb	$1, %r9b
	je	LBB0_23
LBB0_22:
	paddd	%xmm1, %xmm0
	psubd	%xmm2, %xmm1
	psubd	%xmm2, %xmm0
	pshufd	$27, %xmm1, %xmm1               ## xmm1 = xmm1[3,2,1,0]
	movdqu	%xmm1, -12(%rcx,%rdi,4)
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, -28(%rcx,%rdi,4)
LBB0_23:
	cmpq	%r8, %rsi
	je	LBB0_27
## %bb.24:
	movq	%r8, %rdi
	orq	$1, %rdi
	imull	%r8d, %edx
LBB0_25:
	incq	%rsi
	negq	%rdi
	negq	%rsi
	subl	%eax, %edx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%rcx,%rdi,4)
	decq	%rdi
	subl	%eax, %edx
	cmpq	%rdi, %rsi
	jne	LBB0_26
LBB0_27:
	movq	%r14, %rdi
	callq	_fill_block
	testl	%eax, %eax
	js	LBB0_29
## %bb.28:
	movq	%r14, %rdi
	callq	_juggle_block
	xorl	%eax, %eax
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	$-1, %rdi
	testb	$1, %r9b
	jne	LBB0_22
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decode_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function decode_block
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_decode_block:                          ; @decode_block
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	add	x21, x0, #8
	mov	x0, x21
	mov	w1, #4
	bl	_get_bits
	mov	x20, x0
	mov	x0, x21
	mov	w1, #16
	bl	_get_bits
	cmp	w20, #31
	b.eq	LBB0_16
; %bb.1:
	mov	w8, #1
	lsl	w8, w8, w20
	ldr	x11, [x19]
	cmp	w8, #1
	csinc	w10, w8, wzr, gt
	cmp	w10, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x12, #0
	mov	w9, #0
	b	LBB0_6
LBB0_3:
	and	x12, x10, #0x7ffffff0
	mul	w9, w0, w12
	dup.4s	v0, w0
Lloh0:
	adrp	x13, lCPI0_0@PAGE
Lloh1:
	ldr	q1, [x13, lCPI0_0@PAGEOFF]
	mul.4s	v1, v0, v1
	lsl	w13, w0, #2
	dup.4s	v0, w13
	add	x13, x11, #32
	mov	x14, x12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v2, v1, v0
	add.4s	v3, v2, v0
	add.4s	v4, v3, v0
	stp	q1, q2, [x13, #-32]
	stp	q3, q4, [x13], #64
	add.4s	v1, v4, v0
	subs	x14, x14, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x12, x10
	b.eq	LBB0_8
LBB0_6:
	add	x11, x11, x12, lsl #2
	sub	x10, x10, x12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	w9, [x11], #4
	add	w9, w9, w0
	subs	x10, x10, #1
	b.ne	LBB0_7
LBB0_8:
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.9:
	ldr	x9, [x19]
	add	w8, w8, #1
	sub	x12, x8, #1
	cmp	x12, #16
	b.hs	LBB0_11
; %bb.10:
	mov	w11, #0
	mov	w10, #1
	b	LBB0_14
LBB0_11:
	and	x13, x12, #0xfffffffffffffff0
	orr	x10, x13, #0x1
	neg	w14, w0
	mneg	w11, w0, w13
	dup.4s	v0, w14
Lloh2:
	adrp	x15, lCPI0_0@PAGE
Lloh3:
	ldr	q1, [x15, lCPI0_0@PAGEOFF]
	mul.4s	v2, v0, v1
	lsl	w14, w14, #2
	dup.4s	v0, w14
	dup.4s	v1, w0
	sub	x14, x9, #32
	mov	x15, x13
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v3, v2, v0
	add.4s	v4, v3, v0
	add.4s	v5, v4, v0
	sub.4s	v2, v2, v1
	sub.4s	v3, v3, v1
	sub.4s	v4, v4, v1
	sub.4s	v6, v5, v1
	rev64.4s	v2, v2
	ext.16b	v2, v2, v2, #8
	rev64.4s	v3, v3
	ext.16b	v3, v3, v3, #8
	stp	q3, q2, [x14]
	rev64.4s	v2, v4
	ext.16b	v2, v2, v2, #8
	rev64.4s	v3, v6
	ext.16b	v3, v3, v3, #8
	stp	q3, q2, [x14, #-32]
	add.4s	v2, v5, v0
	sub	x14, x14, #64
	subs	x15, x15, #16
	b.ne	LBB0_12
; %bb.13:
	cmp	x12, x13
	b.eq	LBB0_16
LBB0_14:
	sub	x9, x9, x10, lsl #2
	sub	x8, x8, x10
	sub	w10, w11, w0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	str	w10, [x9], #-4
	sub	w10, w10, w0
	sub	x8, x8, #1
	cbnz	x8, LBB0_15
LBB0_16:
	mov	x0, x19
	bl	_fill_block
	tbnz	w0, #31, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_juggle_block
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decode_block
.subsections_via_symbols
