	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Encode
_Encode:                                ## @Encode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
                                        ## kill: def $edx killed $edx def $rdx
	testl	%edx, %edx
	jle	LBB0_3
## %bb.1:
	decl	%edx
	andl	$-4, %edx
	addq	$4, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rax), %ebx
	movzbl	%bl, %ecx
	movq	%rcx, (%rdi,%rax,8)
	movzbl	%bh, %ecx
	movq	%rcx, 8(%rdi,%rax,8)
	movl	%ebx, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movq	%rcx, 16(%rdi,%rax,8)
	shrq	$24, %rbx
	movq	%rbx, 24(%rdi,%rax,8)
	addq	$4, %rax
	cmpq	%rax, %rdx
	jne	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_Encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Encode
_Encode:                                ; @Encode
	.cfi_startproc
; %bb.0:
	subs	w8, w2, #1
	b.lt	LBB0_8
; %bb.1:
	cmp	w8, #28
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	lsr	w9, w8, #2
	add	w11, w9, #1
	and	x9, x11, #0x7ffffff8
	lsl	x10, x9, #2
	add	x13, x0, #128
	add	x12, x1, #16
	movi	d0, #0x0000ff000000ff
	mov	x14, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	d1, d2, [x12, #-16]
	and.8b	v3, v1, v0
	and.8b	v4, v2, v0
	ldp	d5, d6, [x12], #32
	and.8b	v7, v5, v0
	and.8b	v16, v6, v0
	ushll.2d	v17, v3, #0
	ushr.2s	v3, v1, #8
	and.8b	v3, v3, v0
	ushll.2d	v18, v3, #0
	ushr.2s	v3, v1, #16
	and.8b	v3, v3, v0
	ushll.2d	v19, v3, #0
	ushr.2s	v1, v1, #24
	ushll.2d	v20, v1, #0
	ushll.2d	v21, v4, #0
	ushr.2s	v1, v2, #8
	and.8b	v1, v1, v0
	ushll.2d	v22, v1, #0
	ushr.2s	v1, v2, #16
	and.8b	v1, v1, v0
	ushll.2d	v23, v1, #0
	ushr.2s	v1, v2, #24
	ushll.2d	v24, v1, #0
	ushll.2d	v1, v7, #0
	ushr.2s	v7, v5, #8
	and.8b	v7, v7, v0
	ushll.2d	v2, v7, #0
	ushr.2s	v7, v5, #16
	and.8b	v7, v7, v0
	ushll.2d	v3, v7, #0
	ushr.2s	v5, v5, #24
	ushll.2d	v4, v5, #0
	ushll.2d	v25, v16, #0
	ushr.2s	v5, v6, #8
	and.8b	v5, v5, v0
	ushll.2d	v26, v5, #0
	ushr.2s	v5, v6, #16
	sub	x15, x13, #128
	sub	x16, x13, #64
	st4.2d	{ v17, v18, v19, v20 }, [x15]
	st4.2d	{ v21, v22, v23, v24 }, [x16]
	and.8b	v5, v5, v0
	ushll.2d	v27, v5, #0
	ushr.2s	v5, v6, #24
	ushll.2d	v28, v5, #0
	add	x15, x13, #256
	st4.2d	{ v1, v2, v3, v4 }, [x13], #64
	st4.2d	{ v25, v26, v27, v28 }, [x13]
	mov	x13, x15
	subs	x14, x14, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x11
	b.eq	LBB0_8
LBB0_6:
	add	x11, x1, x9, lsl #2
	lsr	x8, x8, #2
	sub	x8, x8, x9
	add	x8, x8, #1
	add	x9, x0, x10, lsl #3
	add	x9, x9, #16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x11], #4
	and	x12, x10, #0xff
	ubfx	x13, x10, #8, #8
	stp	x12, x13, [x9, #-16]
	ubfx	x12, x10, #16, #8
	lsr	x10, x10, #24
	stp	x12, x10, [x9], #32
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_Encode
.subsections_via_symbols
