	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gray8aToPacked32
_gray8aToPacked32:                      ## @gray8aToPacked32
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	jle	LBB0_7
## %bb.1:
	movl	%edx, %r8d
	cmpl	$1, %edx
	jne	LBB0_3
## %bb.2:
	xorl	%r10d, %r10d
	jmp	LBB0_5
LBB0_3:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	movl	$3, %edx
	xorl	%ebx, %ebx
	movabsq	$8589934592, %r11               ## imm = 0x200000000
	movabsq	$17179869184, %r14              ## imm = 0x400000000
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	sarq	$29, %rax
	movq	(%rdi,%rax), %r15
	leal	-2(%rdx), %eax
	cltq
	movq	(%rdi,%rax,8), %rax
	shlq	$24, %rax
	orq	(%rcx,%r15,8), %rax
	movq	%rax, (%rsi,%r10,8)
	leaq	(%rbx,%r11), %rax
	sarq	$29, %rax
	movq	(%rdi,%rax), %r15
	movslq	%edx, %rdx
	movq	(%rdi,%rdx,8), %rax
	shlq	$24, %rax
	orq	(%rcx,%r15,8), %rax
	movq	%rax, 8(%rsi,%r10,8)
	addq	$2, %r10
	addq	%r14, %rbx
	addl	$4, %edx
	cmpq	%r10, %r9
	jne	LBB0_4
LBB0_5:
	testb	$1, %r8b
	je	LBB0_7
## %bb.6:
	movq	%r10, %rax
	shlq	$33, %rax
	sarq	$29, %rax
	movq	(%rdi,%rax), %rax
	leal	(%r10,%r10), %edx
	incl	%edx
	movslq	%edx, %rdx
	movq	(%rdi,%rdx,8), %rdx
	shlq	$24, %rdx
	orq	(%rcx,%rax,8), %rdx
	movq	%rdx, (%rsi,%r10,8)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gray8aToPacked32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gray8aToPacked32
_gray8aToPacked32:                      ; @gray8aToPacked32
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
	mov	x9, #0
	mov	w10, w2
	lsl	x10, x10, #1
	mov	x11, #8589934592
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	asr	x12, x8, #29
	ldr	x12, [x0, x12]
	ldr	x12, [x3, x12, lsl #3]
	add	w13, w9, #1
	ldr	x13, [x0, w13, sxtw #3]
	orr	x12, x12, x13, lsl #24
	str	x12, [x1], #8
	add	x9, x9, #2
	add	x8, x8, x11
	cmp	x10, x9
	b.ne	LBB0_2
LBB0_3:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gray8aToPacked32
.subsections_via_symbols
