	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function unpack_codebook
LCPI0_0:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.long	8                               ## 0x8
LCPI0_1:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_unpack_codebook:                       ## @unpack_codebook
	.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	%ecx, %r15d
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, (%rdi)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	$0, 16(%rdi)
	movq	_INT_MAX@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rax
	imulq	$2021161081, %rax, %rax         ## imm = 0x78787879
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$36, %rax
	addl	%ecx, %eax
	cmpl	%r15d, %eax
	jbe	LBB0_7
## %bb.1:
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_get_bits_left
	movl	%r15d, %ecx
	shll	$5, %ecx
	leal	(%rcx,%r15,2), %ecx
	cmpl	%ecx, %eax
	jb	LBB0_7
## %bb.2:
	movl	%r15d, %ecx
	movslq	(%rbx), %rax
	shrq	$2, %rax
	cmpq	%rcx, %rax
	jbe	LBB0_7
## %bb.3:
	movq	%rcx, %rbx
	leal	(,%r15,4), %eax
	testl	%r15d, %r15d
	movl	$1, %edi
	cmovnel	%eax, %edi
	callq	_av_malloc
	movq	%rax, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, 8(%rax)
	testq	%r12, %r12
	je	LBB0_7
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	movl	%r15d, 4(%rax)
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.5:
	xorl	%r13d, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$15, %esi
	callq	_get_bits
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	$15, %esi
	callq	_get_bits
	movd	%ebx, %xmm0
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	pand	LCPI0_0(%rip), %xmm0
	pcmpeqd	LCPI0_1(%rip), %xmm0
	movd	%r15d, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	movd	%eax, %xmm2
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	blendvps	%xmm0, %xmm1, %xmm2
	movq	(%r12,%r13,8), %rax
	movups	%xmm2, (%rax)
	incq	%r13
	cmpq	%r13, %rbx
	jne	LBB0_6
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_unpack_codebook
.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 unpack_codebook
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	4                               ; 0x4
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_unpack_codebook:                       ; @unpack_codebook
	.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	x23, x8
	stp	xzr, xzr, [x8]
	str	xzr, [x8, #16]
Lloh0:
	adrp	x20, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _INT_MAX@GOTPAGEOFF]
	ldrsw	x8, [x20]
	mov	w9, #30841
	movk	w9, #30840, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #36
	add	w8, w8, w9
	cmp	w8, w2
	b.ls	LBB0_7
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_get_bits_left
	add	w8, w21, w21, lsl #4
	cmp	w0, w8, lsl #1
	b.lo	LBB0_7
; %bb.2:
	mov	w24, w21
	ldrsw	x8, [x20]
	cmp	x24, x8, lsr #2
	b.hs	LBB0_7
; %bb.3:
	lsl	w8, w21, #2
	cmp	w21, #0
	csinc	w0, w8, wzr, ne
	bl	_av_malloc
	str	x0, [x23, #8]
	cbz	x0, LBB0_7
; %bb.4:
	stp	w22, w21, [x23]
	cbz	w21, LBB0_7
; %bb.5:
	mov	x20, x0
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]                        ; 16-byte Folded Spill
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #4
	bl	_get_bits
	mov	x21, x0
	mov	x0, x19
	mov	w1, #15
	bl	_get_bits
	mov	x22, x0
	mov	x0, x19
	mov	w1, #15
	bl	_get_bits
	ldr	x8, [x20], #8
	dup.4s	v0, w21
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	and.16b	v0, v0, v1
	dup.4s	v1, w22
	cmeq.4s	v0, v0, #0
	dup.4s	v2, w0
	bsl.16b	v0, v1, v2
	str	q0, [x8]
	subs	x24, x24, #1
	b.ne	LBB0_6
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_unpack_codebook
.subsections_via_symbols
