	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cesu8_to_unicode
_cesu8_to_unicode:                      ## @cesu8_to_unicode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$0, -28(%rbp)
	leaq	-28(%rbp), %rdi
	callq	__utf8_to_unicode
	cmpl	$3, %eax
	jne	LBB0_8
## %bb.1:
	movl	-28(%rbp), %edi
	callq	_IS_HIGH_SURROGATE_LA
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	$0, -32(%rbp)
	addq	$-3, %rbx
	cmpq	$3, %rbx
	jb	LBB0_11
## %bb.3:
	addq	$3, %r15
	leaq	-32(%rbp), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	__utf8_to_unicode
	cmpl	$3, %eax
	jne	LBB0_9
## %bb.4:
	movl	-32(%rbp), %edi
	callq	_IS_LOW_SURROGATE_LA
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movl	-28(%rbp), %edi
	movl	-32(%rbp), %esi
	callq	_combine_surrogate_pair
	movl	%eax, -28(%rbp)
	movl	$6, %eax
	jmp	LBB0_8
LBB0_6:
	movl	-28(%rbp), %edi
	callq	_IS_LOW_SURROGATE_LA
	testq	%rax, %rax
	je	LBB0_7
LBB0_11:
	movq	_UNICODE_R_CHAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	$-3, %eax
	jmp	LBB0_12
LBB0_9:
	movq	_UNICODE_R_CHAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
	testl	%eax, %eax
	jle	LBB0_12
## %bb.10:
	negl	%eax
	jmp	LBB0_12
LBB0_7:
	movl	$3, %eax
LBB0_8:
	movl	-28(%rbp), %ecx
	movl	%ecx, (%r14)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNICODE_R_CHAR,4,2             ## @UNICODE_R_CHAR
	.no_dead_strip	_cesu8_to_unicode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cesu8_to_unicode
_cesu8_to_unicode:                      ; @cesu8_to_unicode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	add	x0, sp, #12
	bl	__utf8_to_unicode
	cmp	w0, #3
	b.ne	LBB0_11
; %bb.1:
	ldr	w0, [sp, #12]
	bl	_IS_HIGH_SURROGATE_LA
	cbz	x0, LBB0_6
; %bb.2:
	str	wzr, [sp, #8]
	sub	x2, x21, #3
	cmp	x2, #3
	b.lo	LBB0_7
; %bb.3:
	add	x1, x20, #3
	add	x0, sp, #8
	bl	__utf8_to_unicode
	cmp	w0, #3
	b.ne	LBB0_8
; %bb.4:
	ldr	w0, [sp, #8]
	bl	_IS_LOW_SURROGATE_LA
	cbz	x0, LBB0_7
; %bb.5:
	ldp	w1, w0, [sp, #8]
	bl	_combine_surrogate_pair
	str	w0, [sp, #12]
	mov	w0, #6
	b	LBB0_11
LBB0_6:
	ldr	w0, [sp, #12]
	bl	_IS_LOW_SURROGATE_LA
	cbz	x0, LBB0_10
LBB0_7:
Lloh0:
	adrp	x8, _UNICODE_R_CHAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNICODE_R_CHAR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #-3
	b	LBB0_12
LBB0_8:
Lloh3:
	adrp	x8, _UNICODE_R_CHAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UNICODE_R_CHAR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
	cmp	w0, #0
	b.le	LBB0_12
; %bb.9:
	neg	w0, w0
	b	LBB0_12
LBB0_10:
	mov	w0, #3
LBB0_11:
	ldr	w8, [sp, #12]
	str	w8, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_UNICODE_R_CHAR,4,2             ; @UNICODE_R_CHAR
	.no_dead_strip	_cesu8_to_unicode
.subsections_via_symbols
