	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function one_cppchar_to_utf8
_one_cppchar_to_utf8:                   ## @one_cppchar_to_utf8
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$128, %edi
	jge	LBB0_2
## %bb.1:
	leaq	-60(%rbp), %r13
	movl	%edi, -60(%rbp)
	movl	$1, %eax
	jmp	LBB0_7
LBB0_2:
	leaq	-64(%rbp), %r13
	movl	$2, %eax
	leaq	_one_cppchar_to_utf8.limits(%rip), %r8
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
	addq	$-4, %r13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %ecx
	movl	%edi, %ebx
	andl	$63, %ebx
	orl	$128, %ebx
	movl	%ebx, 4(%r13)
	sarl	$6, %edi
	cmpl	$4031, %ecx                     ## imm = 0xFBF
	jg	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%edi, -4(%r8,%rax,4)
	jne	LBB0_3
## %bb.6:
	leaq	_one_cppchar_to_utf8.masks(%rip), %rcx
	orl	-4(%rcx,%rax,4), %edi
	movl	%edi, (%r13)
LBB0_7:
	movq	(%rdx), %r9
	subq	%rax, %r9
	jae	LBB0_9
## %bb.8:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_27
LBB0_9:
	leaq	-56(%rbp), %r8
	movq	(%rsi), %rax
	cmpq	%r8, %r13
	jae	LBB0_26
## %bb.10:
	leaq	4(%r13), %r11
	leaq	4(%rax), %r10
	movl	%edi, (%rax)
	cmpq	%r8, %r11
	jae	LBB0_15
## %bb.11:
	leaq	8(%r13), %r15
	cmpq	%r15, %r8
	cmovaq	%r8, %r15
	subq	%r13, %r15
	addq	$-5, %r15
	cmpq	$28, %r15
	jb	LBB0_24
## %bb.12:
	movq	%rax, %rcx
	subq	%r13, %rcx
	cmpq	$32, %rcx
	jb	LBB0_24
## %bb.13:
	shrq	$2, %r15
	incq	%r15
	movq	%r15, %r14
	andq	$-8, %r14
	leaq	-8(%r14), %rcx
	movq	%rcx, %rbx
	shrq	$3, %rbx
	incq	%rbx
	movl	%ebx, %r12d
	andl	$3, %r12d
	cmpq	$24, %rcx
	jae	LBB0_16
## %bb.14:
	xorl	%edi, %edi
	jmp	LBB0_18
LBB0_16:
	andq	$-4, %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movups	4(%r13,%rdi,4), %xmm0
	movups	20(%r13,%rdi,4), %xmm1
	movups	%xmm0, 4(%rax,%rdi,4)
	movups	%xmm1, 20(%rax,%rdi,4)
	movups	36(%r13,%rdi,4), %xmm0
	movups	52(%r13,%rdi,4), %xmm1
	movups	%xmm0, 36(%rax,%rdi,4)
	movups	%xmm1, 52(%rax,%rdi,4)
	movups	68(%r13,%rdi,4), %xmm0
	movups	84(%r13,%rdi,4), %xmm1
	movups	%xmm0, 68(%rax,%rdi,4)
	movups	%xmm1, 84(%rax,%rdi,4)
	movups	100(%r13,%rdi,4), %xmm0
	movups	116(%r13,%rdi,4), %xmm1
	movups	%xmm0, 100(%rax,%rdi,4)
	movups	%xmm1, 116(%rax,%rdi,4)
	addq	$32, %rdi
	addq	$-4, %rbx
	jne	LBB0_17
LBB0_18:
	testq	%r12, %r12
	je	LBB0_21
## %bb.19:
	leaq	20(,%rdi,4), %rcx
	addq	%r13, %rcx
	leaq	(%rax,%rdi,4), %rax
	addq	$20, %rax
	shlq	$5, %r12
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rcx,%rdi), %xmm0
	movups	(%rcx,%rdi), %xmm1
	movups	%xmm0, -16(%rax,%rdi)
	movups	%xmm1, (%rax,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r12
	jne	LBB0_20
LBB0_21:
	leaq	(%r10,%r14,4), %r10
	cmpq	%r14, %r15
	jne	LBB0_23
LBB0_15:
	movq	%r10, %rax
	jmp	LBB0_26
LBB0_23:
	leaq	(%r11,%r14,4), %r11
LBB0_24:
	movq	%r10, %rax
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r11), %ecx
	addq	$4, %r11
	movl	%ecx, (%rax)
	addq	$4, %rax
	cmpq	%r8, %r11
	jb	LBB0_25
LBB0_26:
	movq	%r9, (%rdx)
	movq	%rax, (%rsi)
	xorl	%eax, %eax
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_29
## %bb.28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @one_cppchar_to_utf8.masks
_one_cppchar_to_utf8.masks:
	.long	0                               ## 0x0
	.long	192                             ## 0xc0
	.long	224                             ## 0xe0
	.long	240                             ## 0xf0
	.long	248                             ## 0xf8
	.long	252                             ## 0xfc

	.p2align	4                               ## @one_cppchar_to_utf8.limits
_one_cppchar_to_utf8.limits:
	.long	128                             ## 0x80
	.long	224                             ## 0xe0
	.long	240                             ## 0xf0
	.long	248                             ## 0xf8
	.long	252                             ## 0xfc
	.long	254                             ## 0xfe

	.comm	_E2BIG,4,2                      ## @E2BIG
	.no_dead_strip	_one_cppchar_to_utf8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function one_cppchar_to_utf8
_one_cppchar_to_utf8:                   ; @one_cppchar_to_utf8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	mov	x10, sp
	cmp	w0, #128
	b.ge	LBB0_2
; %bb.1:
	add	x9, x10, #20
	str	w0, [sp, #20]
	mov	w8, #1
	b	LBB0_7
LBB0_2:
	add	x9, x10, #16
	mov	w8, #1
Lloh3:
	adrp	x11, _one_cppchar_to_utf8.limits@PAGE
Lloh4:
	add	x11, x11, _one_cppchar_to_utf8.limits@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x9, x9, #4
	add	x8, x8, #1
	mov	x0, x12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w12, #128
	bfxil	w12, w0, #0, #6
	str	w12, [x9, #4]
	asr	w12, w0, #6
	cmp	w0, #4031
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w13, [x11, x8, lsl #2]
	tst	w13, w12
	b.ne	LBB0_3
; %bb.6:
Lloh5:
	adrp	x11, _one_cppchar_to_utf8.masks@PAGE
Lloh6:
	add	x11, x11, _one_cppchar_to_utf8.masks@PAGEOFF
	ldr	w11, [x11, x8, lsl #2]
	orr	w0, w11, w12
	str	w0, [x9]
	add	x8, x8, #1
LBB0_7:
	ldr	x11, [x2]
	subs	x8, x11, x8
	b.hs	LBB0_9
; %bb.8:
Lloh7:
	adrp	x8, _E2BIG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_19
LBB0_9:
	ldr	x13, [x1]
	add	x11, x10, #24
	cmp	x9, x11
	b.hs	LBB0_17
; %bb.10:
	add	x12, x9, #4
	mov	x10, x13
	str	w0, [x10], #4
	cmp	x12, x11
	b.hs	LBB0_18
; %bb.11:
	mov	x14, sp
	add	x14, x14, #24
	add	x15, x9, #8
	cmp	x14, x15
	csel	x14, x14, x15, hi
	sub	x14, x14, x9
	sub	x14, x14, #5
	cmp	x14, #60
	b.lo	LBB0_16
; %bb.12:
	sub	x15, x13, x9
	cmp	x15, #64
	b.lo	LBB0_16
; %bb.13:
	lsr	x14, x14, #2
	add	x14, x14, #1
	and	x15, x14, #0x7ffffffffffffff0
	lsl	x16, x15, #2
	add	x10, x10, x16
	add	x12, x12, x16
	add	x13, x13, #36
	add	x9, x9, #36
	mov	x16, x15
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x9, #-32]
	ldp	q2, q3, [x9], #64
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x16, x16, #16
	b.ne	LBB0_14
; %bb.15:
	cmp	x14, x15
	b.eq	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x12], #4
	str	w9, [x10], #4
	cmp	x12, x11
	b.lo	LBB0_16
	b	LBB0_18
LBB0_17:
	mov	x10, x13
LBB0_18:
	mov	w0, #0
	str	x8, [x2]
	str	x10, [x1]
LBB0_19:
	ldur	x8, [x29, #-8]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @one_cppchar_to_utf8.masks
_one_cppchar_to_utf8.masks:
	.long	0                               ; 0x0
	.long	192                             ; 0xc0
	.long	224                             ; 0xe0
	.long	240                             ; 0xf0
	.long	248                             ; 0xf8
	.long	252                             ; 0xfc

	.p2align	2                               ; @one_cppchar_to_utf8.limits
_one_cppchar_to_utf8.limits:
	.long	128                             ; 0x80
	.long	224                             ; 0xe0
	.long	240                             ; 0xf0
	.long	248                             ; 0xf8
	.long	252                             ; 0xfc
	.long	254                             ; 0xfe

	.comm	_E2BIG,4,2                      ; @E2BIG
	.no_dead_strip	_one_cppchar_to_utf8
.subsections_via_symbols
