	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function one_utf8_to_cppchar
_one_utf8_to_cppchar:                   ## @one_utf8_to_cppchar
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	(%rdi), %r15
	movl	(%r15), %ebx
	cmpl	$128, %ebx
	jge	LBB0_3
## %bb.2:
	movl	%ebx, (%rdx)
	decq	%rax
	movq	%rax, (%rsi)
	addq	$4, %r15
	movq	%r15, (%rdi)
	xorl	%eax, %eax
	jmp	LBB0_39
LBB0_3:
	movl	%ebx, %r10d
	andl	$-32, %r10d
	cmpl	$192, %r10d
	jne	LBB0_5
## %bb.4:
	movl	$31, %r12d
	movl	$2, %ecx
	xorl	%r9d, %r9d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%r8d, %r8d
	xorl	%r11d, %r11d
	jmp	LBB0_13
LBB0_5:
	movl	%ebx, %ecx
	andl	$-16, %ecx
	cmpl	$224, %ecx
	jne	LBB0_7
## %bb.6:
	movl	$15, %r12d
	movl	$3, %ecx
	movb	$1, %r11b
	xorl	%r9d, %r9d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%r8d, %r8d
LBB0_13:
	xorl	%r14d, %r14d
LBB0_14:
	xorl	%r13d, %r13d
LBB0_15:
	cmpl	$192, %r10d
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	subq	%rcx, %rax
	jae	LBB0_17
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_38
LBB0_17:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %r9d
	movl	%r9d, %ecx
	andl	$192, %ecx
	cmpl	$128, %ecx
	jne	LBB0_37
## %bb.18:
	andl	%ebx, %r12d
	movl	%r12d, %ecx
	shll	$6, %ecx
	andl	$63, %r9d
	orl	%ecx, %r9d
	cmpl	$192, %r10d
	jne	LBB0_20
LBB0_19:
	movl	%r9d, %ebx
	cmpl	$127, %ebx
	jle	LBB0_37
	jmp	LBB0_24
LBB0_7:
	movl	%ebx, %ecx
	andl	$-8, %ecx
	cmpl	$240, %ecx
	jne	LBB0_9
## %bb.8:
	movl	$7, %r12d
	movl	$4, %ecx
	movb	$1, %r9b
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%r8d, %r8d
	xorl	%r11d, %r11d
	movb	$1, %r14b
	jmp	LBB0_14
LBB0_9:
	movl	%ebx, %ecx
	andl	$-3, %ecx
	cmpl	$248, %ecx
	jne	LBB0_11
## %bb.10:
	movl	$2, %r12d
	movb	$1, %r9b
	xorl	%r8d, %r8d
	movb	$1, %cl
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	$5, %ecx
	xorl	%r11d, %r11d
	xorl	%r14d, %r14d
	movb	$1, %r13b
	jmp	LBB0_15
LBB0_20:
	movl	8(%r15), %r12d
	movl	%r12d, %ecx
	andl	$192, %ecx
	cmpl	$128, %ecx
	jne	LBB0_37
## %bb.21:
	movl	%r9d, %ecx
	shll	$6, %ecx
	andl	$63, %r12d
	orl	%ecx, %r12d
	testb	%r11b, %r11b
	je	LBB0_30
LBB0_22:
	movl	%r12d, %ebx
	movl	%r9d, %r12d
	cmpl	$127, %ebx
	jle	LBB0_37
LBB0_24:
	cmpl	$2048, %ebx                     ## imm = 0x800
	setb	%cl
	andb	-41(%rbp), %cl                  ## 1-byte Folded Reload
	cmpb	$1, %cl
	je	LBB0_37
## %bb.25:
	cmpl	$65536, %ebx                    ## imm = 0x10000
	setae	%r9b
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	xorb	$1, %cl
	orb	%r9b, %cl
	je	LBB0_37
## %bb.26:
	cmpl	$2097152, %ebx                  ## imm = 0x200000
	setae	%r8b
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	xorb	$1, %cl
	orb	%r8b, %cl
	je	LBB0_37
## %bb.27:
	cmpl	$67108864, %ebx                 ## imm = 0x4000000
	setae	%r9b
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	xorb	$1, %cl
	orb	%r9b, %cl
	je	LBB0_37
## %bb.28:
	andl	$67108832, %r12d                ## imm = 0x3FFFFE0
	cmpl	$864, %r12d                     ## imm = 0x360
	je	LBB0_37
## %bb.29:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%r15,%rcx,4), %rcx
	movl	%ebx, (%rdx)
	movq	%rcx, (%rdi)
	movq	%rax, (%rsi)
	xorl	%eax, %eax
	jmp	LBB0_39
LBB0_11:
	movl	%ebx, %ecx
	andl	$-2, %ecx
	cmpl	$252, %ecx
	jne	LBB0_37
## %bb.12:
	movl	$1, %r12d
	movb	$1, %r9b
	xorl	%r11d, %r11d
	movb	$1, %cl
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	$6, %ecx
	movb	$1, %r8b
	jmp	LBB0_13
LBB0_30:
	movl	12(%r15), %r9d
	movl	%r9d, %ecx
	andl	$192, %ecx
	cmpl	$128, %ecx
	jne	LBB0_37
## %bb.31:
	movl	%r12d, %ecx
	shll	$6, %ecx
	andl	$63, %r9d
	orl	%ecx, %r9d
	testb	%r14b, %r14b
	jne	LBB0_19
## %bb.33:
	movl	16(%r15), %r12d
	movl	%r12d, %ecx
	andl	$192, %ecx
	cmpl	$128, %ecx
	jne	LBB0_37
## %bb.34:
	movl	%r9d, %ecx
	shll	$6, %ecx
	andl	$63, %r12d
	orl	%ecx, %r12d
	testb	%r13b, %r13b
	jne	LBB0_22
## %bb.35:
	movl	20(%r15), %ebx
	movl	%ebx, %ecx
	andl	$192, %ecx
	cmpl	$128, %ecx
	jne	LBB0_37
## %bb.36:
	movl	%r12d, %ecx
	shll	$6, %ecx
	andl	$63, %ebx
	orl	%ecx, %ebx
	cmpl	$127, %ebx
	jg	LBB0_24
LBB0_37:
	movq	_EILSEQ@GOTPCREL(%rip), %rax
LBB0_38:
	movl	(%rax), %eax
LBB0_39:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.no_dead_strip	_one_utf8_to_cppchar
.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_cppchar
_one_utf8_to_cppchar:                   ; @one_utf8_to_cppchar
	.cfi_startproc
; %bb.0:
	ldr	x15, [x1]
	cbz	x15, LBB0_14
; %bb.1:
	ldr	x9, [x0]
	ldr	w13, [x9]
	cmp	w13, #128
	b.ge	LBB0_3
; %bb.2:
	str	w13, [x2]
	sub	x10, x15, #1
	str	x10, [x1]
	add	x9, x9, #4
	str	x9, [x0]
	mov	w0, #0
	ret
LBB0_3:
	and	w14, w13, #0xffffffe0
	cmp	w14, #192
	b.ne	LBB0_5
; %bb.4:
	mov	w11, #0
	mov	w12, #0
	mov	w8, #0
	mov	w3, #0
	mov	w17, #0
	mov	w16, #0
	mov	w5, #31
	mov	w10, #2
	b	LBB0_13
LBB0_5:
	and	w8, w13, #0xfffffff0
	cmp	w8, #224
	b.ne	LBB0_7
; %bb.6:
	mov	w11, #0
	mov	w12, #0
	mov	w8, #0
	mov	w17, #0
	mov	w16, #0
	mov	w5, #15
	mov	w3, #1
	mov	w10, #3
	b	LBB0_13
LBB0_7:
	and	w8, w13, #0xfffffff8
	cmp	w8, #240
	b.ne	LBB0_9
; %bb.8:
	mov	w12, #0
	mov	w8, #0
	mov	w3, #0
	mov	w16, #0
	mov	w5, #7
	mov	w11, #1
	mov	w10, #4
	mov	w17, #1
	b	LBB0_13
LBB0_9:
	and	w8, w13, #0xfffffffd
	cmp	w8, #248
	b.ne	LBB0_11
; %bb.10:
	mov	w8, #0
	mov	w3, #0
	mov	w17, #0
	mov	w5, #2
	mov	w11, #1
	mov	w10, #5
	mov	w12, #1
	mov	w16, #1
	b	LBB0_13
LBB0_11:
	and	w8, w13, #0xfffffffe
	cmp	w8, #252
	b.ne	LBB0_35
; %bb.12:
	mov	w3, #0
	mov	w17, #0
	mov	w16, #0
	mov	w11, #1
	mov	w10, #6
	mov	w12, #1
	mov	w8, #1
	mov	w5, #1
LBB0_13:
	cmp	w14, #192
	cset	w4, ne
	subs	x15, x15, x10
	b.hs	LBB0_15
LBB0_14:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
LBB0_15:
	ldr	w6, [x9, #4]
	and	w7, w6, #0xc0
	cmp	w7, #128
	b.ne	LBB0_35
; %bb.16:
	and	w13, w5, w13
	and	w5, w6, #0x3f
	bfi	w5, w13, #6, #5
	cmp	w14, #192
	b.ne	LBB0_18
; %bb.17:
	mov	x14, x5
	b	LBB0_29
LBB0_18:
	ldr	w13, [x9, #8]
	and	w14, w13, #0xc0
	cmp	w14, #128
	b.ne	LBB0_35
; %bb.19:
	and	w13, w13, #0x3f
	bfi	w13, w5, #6, #11
	tbz	w3, #0, LBB0_21
; %bb.20:
	mov	x14, x13
	mov	x13, x5
	b	LBB0_29
LBB0_21:
	ldr	w14, [x9, #12]
	and	w3, w14, #0xc0
	cmp	w3, #128
	b.ne	LBB0_35
; %bb.22:
	and	w3, w14, #0x3f
	bfi	w3, w13, #6, #17
	tbz	w17, #0, LBB0_24
; %bb.23:
	mov	x14, x3
	b	LBB0_29
LBB0_24:
	ldr	w13, [x9, #16]
	and	w14, w13, #0xc0
	cmp	w14, #128
	b.ne	LBB0_35
; %bb.25:
	and	w13, w13, #0x3f
	bfi	w13, w3, #6, #23
	tbz	w16, #0, LBB0_27
; %bb.26:
	mov	x14, x13
	mov	x13, x3
	b	LBB0_29
LBB0_27:
	ldr	w14, [x9, #20]
	and	w16, w14, #0xc0
	cmp	w16, #128
	b.ne	LBB0_35
; %bb.28:
	bfi	w14, w13, #6, #26
LBB0_29:
	cmp	w14, #127
	b.le	LBB0_35
; %bb.30:
	cmp	w14, #2048
	cset	w16, lo
	and	w16, w16, w4
	cmp	w16, #1
	b.eq	LBB0_35
; %bb.31:
	tst	w14, #0xffff0000
	cset	w16, ne
	eor	w11, w11, #0x1
	orr	w11, w16, w11
	tbz	w11, #0, LBB0_35
; %bb.32:
	tst	w14, #0xffe00000
	cset	w11, ne
	eor	w12, w12, #0x1
	orr	w11, w11, w12
	tbz	w11, #0, LBB0_35
; %bb.33:
	tst	w14, #0xfc000000
	cset	w11, ne
	eor	w8, w8, #0x1
	orr	w8, w11, w8
	tbz	w8, #0, LBB0_35
; %bb.34:
	and	w8, w13, #0x3ffffe0
	cmp	w8, #864
	b.ne	LBB0_36
LBB0_35:
Lloh3:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_36:
	str	w14, [x2]
	add	x9, x9, x10, lsl #2
	str	x9, [x0]
	str	x15, [x1]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.no_dead_strip	_one_utf8_to_cppchar
.subsections_via_symbols
