	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function one_utf8_to_utf16
_one_utf8_to_utf16:                     ## @one_utf8_to_utf16
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)
	movq	(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r12
	movq	(%rcx), %r15
	leaq	-44(%rbp), %rdx
	movq	%rsi, %rdi
	movq	%r13, %rsi
	callq	_one_utf8_to_cppchar
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %ecx
	cmpl	$1114112, %ecx                  ## imm = 0x110000
	jl	LBB0_3
## %bb.2:
	movq	%rdi, (%rbx)
	movq	%rsi, (%r13)
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_3:
	movq	%r12, %r9
	movq	(%r12), %rax
	cmpl	$65534, %ecx                    ## imm = 0xFFFE
	jg	LBB0_7
## %bb.4:
	cmpq	$1, %rax
	jbe	LBB0_5
## %bb.6:
	movq	%rdx, %r8
	movzbl	%cl, %ecx
	xorl	%edx, %edx
	xorl	%esi, %esi
	testq	%r8, %r8
	sete	%dl
	setne	%sil
	movl	%ecx, (%r15,%rsi,4)
	movzbl	-43(%rbp), %ecx
	movl	%ecx, (%r15,%rdx,4)
	addq	$8, (%r14)
	addq	$-2, %rax
	jmp	LBB0_9
LBB0_7:
	cmpq	$3, %rax
	ja	LBB0_8
LBB0_5:
	movq	%rdi, (%rbx)
	movq	%rsi, (%r13)
	movq	_E2BIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_8:
	movq	%r14, %r10
	movq	%rdx, %r14
	leal	-65536(%rcx), %edx
	leal	-64513(%rcx), %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	movl	%esi, %edi
	sarl	$10, %edi
	leal	55296(%rdi), %ebx
	andl	$-1024, %esi                    ## imm = 0xFC00
	subl	%esi, %edx
	negl	%esi
	addl	%esi, %ecx
	addl	$-9216, %ecx                    ## imm = 0xDC00
	movzbl	%dil, %r8d
	xorl	%edi, %edi
	xorl	%esi, %esi
	testq	%r14, %r14
	sete	%dil
	setne	%sil
	movl	%r8d, (%r15,%rsi,4)
	shrl	$8, %ebx
	movl	%ebx, (%r15,%rdi,4)
	movzbl	%dl, %edx
	movl	%edx, 8(%r15,%rsi,4)
	shrl	$8, %ecx
	movl	%ecx, 8(%r15,%rdi,4)
	addq	$16, (%r10)
	addq	$-4, %rax
LBB0_9:
	movq	%rax, (%r9)
	xorl	%eax, %eax
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_E2BIG,4,2                      ## @E2BIG
	.no_dead_strip	_one_utf8_to_utf16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function one_utf8_to_utf16
_one_utf8_to_utf16:                     ; @one_utf8_to_utf16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	str	wzr, [sp, #12]
	ldr	x26, [x1]
	ldr	x25, [x2]
	ldr	x24, [x3]
	add	x2, sp, #12
	mov	x0, x1
	mov	x1, x22
	bl	_one_utf8_to_cppchar
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	w9, [sp, #12]
	cmp	w9, #272, lsl #12               ; =1114112
	b.lt	LBB0_3
; %bb.2:
	str	x26, [x23]
	str	x25, [x22]
Lloh0:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_3:
	ldr	x8, [x19]
	mov	w10, #65534
	cmp	w9, w10
	b.gt	LBB0_6
; %bb.4:
	cmp	x8, #1
	b.ls	LBB0_7
; %bb.5:
	mov	w0, #0
	and	w9, w9, #0xff
	cmp	x21, #0
	cset	w10, eq
	cset	w11, ne
	str	w9, [x24, w11, uxtw #2]
	ldrb	w9, [sp, #13]
	str	w9, [x24, w10, uxtw #2]
	ldr	x9, [x20]
	add	x9, x9, #8
	str	x9, [x20]
	sub	x8, x8, #2
	str	x8, [x19]
	b	LBB0_9
LBB0_6:
	cmp	x8, #3
	b.hi	LBB0_8
LBB0_7:
	str	x26, [x23]
	str	x25, [x22]
Lloh3:
	adrp	x8, _E2BIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
	sub	w9, w9, #16, lsl #12            ; =65536
	add	w10, w9, #1023
	cmp	w9, #0
	csel	w10, w10, w9, lt
	asr	w11, w10, #10
	and	w12, w11, #0xff
	mov	w13, #12
	mov	w14, #8
	cmp	x21, #0
	csel	x15, x14, x13, eq
	cset	w16, ne
	str	w12, [x24, w16, uxtw #2]
	mov	w12, #55296
	add	w11, w11, w12
	cset	w12, eq
	lsr	w11, w11, #8
	str	w11, [x24, w12, uxtw #2]
	and	w10, w10, #0xfffffc00
	mov	w11, #56320
	sub	w9, w9, w10
	add	w10, w9, w11
	and	w9, w9, #0xff
	str	w9, [x24, x15]
	lsr	w9, w10, #8
	csel	x10, x13, x14, eq
	ldr	x11, [x20]
	add	x11, x11, #16
	str	x11, [x20]
	sub	x8, x8, #4
	str	x8, [x19]
	str	w9, [x24, x10]
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_E2BIG,4,2                      ; @E2BIG
	.no_dead_strip	_one_utf8_to_utf16
.subsections_via_symbols
