	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unpack_alpha
_unpack_alpha:                          ## @unpack_alpha
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	$-1, %r15d
	shll	%cl, %r15d
	notl	%r15d
	xorl	%eax, %eax
	cmpl	$16, %ecx
	sete	%al
	leal	(%rax,%rax,2), %eax
	orl	$4, %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movslq	%edx, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	%r15d, -84(%rbp)                ## 4-byte Spill
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_1 Depth=1
	addl	%ebx, %r12d
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
LBB0_33:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpl	%edx, %r12d
	jge	LBB0_34
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_26 Depth 2
	movslq	%r12d, %r14
	leal	1(%r14), %eax
	cmpl	%eax, %edx
	cmovgl	%edx, %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	incq	%r14
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rdi, %rbx
	callq	_get_bits1
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	%r13d, %esi
	callq	_get_bits
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=2
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	callq	_get_bits
	movl	%eax, %ecx
	leal	2(%rcx), %edx
	sarl	%edx
	movl	%edx, %eax
	negl	%eax
	testb	$1, %cl
	cmovel	%edx, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=2
	addl	%eax, %r15d
	andl	-84(%rbp), %r15d                ## 4-byte Folded Reload
	cmpl	$16, %r13d
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=2
	cmpl	$10, -44(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	%r15d, %edi
	callq	_ALPHA_SHIFT_16_TO_10
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=2
	cmpl	$10, -44(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=2
	movl	%r15d, %edi
	callq	_ALPHA_SHIFT_8_TO_10
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=2
	movl	%r15d, %edi
	callq	_ALPHA_SHIFT_16_TO_12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=2
	movl	%r15d, %edi
	callq	_ALPHA_SHIFT_8_TO_12
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=2
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, -4(%rcx,%r14,4)
	cmpq	-96(%rbp), %r14                 ## 8-byte Folded Reload
	jge	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=2
	movl	%r13d, %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_get_bits_left
	testq	%rax, %rax
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=2
	movq	%r13, %rdi
	callq	_get_bits1
	incq	%r14
	incl	%r12d
	testq	%rax, %rax
	movq	%r13, %rdi
	movl	%ebx, %r13d
	jne	LBB0_2
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	%r12d
	movq	%r13, %rdi
	movl	%ebx, %r13d
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$4, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$11, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	leal	(%rax,%r12), %ecx
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %r14d
	subl	%r12d, %r14d
	cmpl	%edx, %ecx
	cmovlel	%eax, %r14d
	cmpl	$16, %r13d
	jne	LBB0_20
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	jle	LBB0_33
## %bb.25:                              ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r12d, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_26 Depth=2
	movl	%r15d, %edi
	callq	_ALPHA_SHIFT_16_TO_12
LBB0_29:                                ##   in Loop: Header=BB0_26 Depth=2
	movl	%eax, (%r13,%rbx,4)
	incq	%rbx
	cmpl	%r14d, %ebx
	jge	LBB0_32
LBB0_26:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$10, -44(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=2
	movl	%r15d, %edi
	callq	_ALPHA_SHIFT_16_TO_10
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	jle	LBB0_33
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r12d, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_22 Depth=2
	movl	%r15d, %edi
	callq	_ALPHA_SHIFT_8_TO_12
LBB0_31:                                ##   in Loop: Header=BB0_22 Depth=2
	movl	%eax, (%r13,%rbx,4)
	incq	%rbx
	cmpl	%r14d, %ebx
	jge	LBB0_32
LBB0_22:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$10, -44(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_30
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	movl	%r15d, %edi
	callq	_ALPHA_SHIFT_8_TO_10
	jmp	LBB0_31
LBB0_34:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_unpack_alpha
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unpack_alpha
_unpack_alpha:                          ; @unpack_alpha
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	w24, #0
	mov	w8, #-1
	lsl	w8, w8, w3
	mvn	w26, w8
	mov	w8, #4
	mov	w9, #7
	cmp	w3, #16
	csel	w8, w9, w8, eq
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	sxtw	x28, w21
	mov	x25, x26
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x24, [sp, #16]                  ; 8-byte Folded Reload
	add	w24, w24, w21
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, w21
	b.ge	LBB0_34
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_32 Depth 2
                                        ;     Child Loop BB0_26 Depth 2
	sxtw	x27, w24
	add	w8, w24, #1
	cmp	w21, w8
	csinc	w24, w21, w24, gt
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_get_bits1
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x23
	mov	x1, x20
	bl	_get_bits
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x23
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	bl	_get_bits
	add	w8, w0, #2
	asr	w8, w8, #1
	tst	w0, #0x1
	cneg	w0, w8, ne
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	w8, w0, w25
	and	w25, w8, w26
	mov	x0, x25
	cmp	w20, #16
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=2
	cmp	w19, #10
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=2
	bl	_ALPHA_SHIFT_16_TO_10
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=2
	cmp	w19, #10
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=2
	bl	_ALPHA_SHIFT_8_TO_10
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=2
	bl	_ALPHA_SHIFT_16_TO_12
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=2
	bl	_ALPHA_SHIFT_8_TO_12
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=2
	str	w0, [x22, x27, lsl #2]
	add	x8, x27, #1
	cmp	x8, x28
	b.ge	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x23
	bl	_get_bits_left
	cmp	x0, #1
	b.lt	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x23
	bl	_get_bits1
	add	x27, x27, #1
	cbnz	x0, LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x27
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w27, #1
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	w1, #4
	bl	_get_bits
	cbnz	w0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	w1, #11
	bl	_get_bits
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w21, w24
	add	w9, w0, w24
	cmp	w9, w21
	csel	w27, w8, w0, gt
	cmp	w20, #16
	b.ne	LBB0_28
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w27, #1
	b.lt	LBB0_2
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
	add	x24, x22, w24, sxtw #2
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_26 Depth=2
	bl	_ALPHA_SHIFT_16_TO_12
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=2
	str	w0, [x24, x21, lsl #2]
	add	x21, x21, #1
	cmp	w21, w27
	b.ge	LBB0_1
LBB0_26:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x25
	cmp	w19, #10
	b.ne	LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	bl	_ALPHA_SHIFT_16_TO_10
	b	LBB0_25
LBB0_28:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w27, #1
	b.lt	LBB0_2
; %bb.29:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
	add	x24, x22, w24, sxtw #2
	b	LBB0_32
LBB0_30:                                ;   in Loop: Header=BB0_32 Depth=2
	bl	_ALPHA_SHIFT_8_TO_12
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=2
	str	w0, [x24, x21, lsl #2]
	add	x21, x21, #1
	cmp	w21, w27
	b.ge	LBB0_1
LBB0_32:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x25
	cmp	w19, #10
	b.ne	LBB0_30
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=2
	bl	_ALPHA_SHIFT_8_TO_10
	b	LBB0_31
LBB0_34:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_unpack_alpha
.subsections_via_symbols
