	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nb_char_encode
_nb_char_encode:                        ## @nb_char_encode
	.cfi_startproc
## %bb.0:
                                        ## kill: def $edx killed $edx def $rdx
	testl	%edx, %edx
	je	LBB0_12
## %bb.1:
	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
	movl	%esi, %r11d
	sarl	$4, %r11d
	addl	$65, %r11d
	andl	$15, %esi
	addl	$65, %esi
	movq	(%rdi), %rcx
	leal	-1(%rdx), %r8d
	cmpl	$3, %r8d
	jb	LBB0_10
## %bb.2:
	incq	%r8
	movq	%r8, %r9
	andq	$-4, %r9
	movd	%r11d, %xmm0
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movd	%esi, %xmm1
	pshufd	$80, %xmm1, %xmm1               ## xmm1 = xmm1[0,0,1,1]
	punpckldq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	leaq	-4(%r9), %rax
	movq	%rax, %r10
	shrq	$2, %r10
	incq	%r10
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r10, %rbx
	andq	$-2, %rbx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rcx,%rax,4)
	movdqu	%xmm0, 16(%rcx,%rax,4)
	movdqu	%xmm0, 32(%rcx,%rax,4)
	movdqu	%xmm0, 48(%rcx,%rax,4)
	addq	$16, %rax
	addq	$-2, %rbx
	jne	LBB0_5
## %bb.6:
	testb	$1, %r10b
	je	LBB0_8
LBB0_7:
	leaq	(,%rax,4), %rbx
	orq	$16, %rbx
	movdqu	%xmm0, (%rcx,%rax,4)
	movdqu	%xmm0, (%rcx,%rbx)
LBB0_8:
	leaq	(%rcx,%r9,8), %rcx
	cmpq	%r9, %r8
	je	LBB0_11
## %bb.9:
	subl	%r9d, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%r11d, (%rcx)
	movl	%esi, 4(%rcx)
	addq	$8, %rcx
	decl	%edx
	jne	LBB0_10
LBB0_11:
	movq	%rcx, (%rdi)
	popq	%rbx
	popq	%rbp
LBB0_12:
	retq
LBB0_3:
	xorl	%eax, %eax
	testb	$1, %r10b
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nb_char_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nb_char_encode
_nb_char_encode:                        ; @nb_char_encode
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_9
; %bb.1:
	asr	w8, w1, #4
	add	w8, w8, #65
	and	w9, w1, #0xf
	add	w9, w9, #65
	ldr	x13, [x0]
	sub	w10, w2, #1
	cmp	w10, #15
	b.hs	LBB0_3
; %bb.2:
	mov	x10, x13
	b	LBB0_6
LBB0_3:
	add	x11, x10, #1
	and	x12, x11, #0x1fffffff0
	add	x10, x13, x12, lsl #3
	sub	w2, w2, w12
	dup.4s	v0, w8
	dup.4s	v1, w9
	add	x14, x13, #64
	mov	x13, x12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x15, x14, #64
	st2.4s	{ v0, v1 }, [x15]
	sub	x15, x14, #32
	st2.4s	{ v0, v1 }, [x15]
	add	x15, x14, #128
	st2.4s	{ v0, v1 }, [x14], #32
	st2.4s	{ v0, v1 }, [x14]
	mov	x14, x15
	subs	x13, x13, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x11, x12
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x10, #8
	stp	w8, w9, [x10]
	mov	x10, x11
	subs	w2, w2, #1
	b.ne	LBB0_6
; %bb.7:
	mov	x10, x11
LBB0_8:
	str	x10, [x0]
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nb_char_encode
.subsections_via_symbols
