	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function utf8toutf32
_utf8toutf32:                           ## @utf8toutf32
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movzbl	(%rax), %ecx
	testb	$-128, %cl
	je	LBB0_13
## %bb.1:
	movl	%ecx, %edx
	andl	$-32, %edx
	cmpl	$192, %edx
	jne	LBB0_4
## %bb.2:
	movzbl	1(%rax), %r8d
	movl	%r8d, %edx
	andl	$-64, %edx
	cmpl	$128, %edx
	jne	LBB0_15
## %bb.3:
	incq	%rax
	andl	$31, %ecx
	shll	$6, %ecx
	andl	$63, %r8d
	orl	%r8d, %ecx
	jmp	LBB0_13
LBB0_4:
	movl	%ecx, %edx
	andl	$-16, %edx
	cmpl	$224, %edx
	jne	LBB0_8
## %bb.5:
	movzbl	1(%rax), %r9d
	movl	%r9d, %edx
	andl	$-64, %edx
	cmpl	$128, %edx
	jne	LBB0_15
## %bb.6:
	movzbl	2(%rax), %r8d
	movl	%r8d, %edx
	andl	$-64, %edx
	cmpl	$128, %edx
	jne	LBB0_15
## %bb.7:
	addq	$2, %rax
	shll	$12, %ecx
	movzwl	%cx, %ecx
	andl	$63, %r9d
	shll	$6, %r9d
	orl	%ecx, %r9d
	andl	$63, %r8d
	orl	%r9d, %r8d
	movl	%r8d, %ecx
	jmp	LBB0_13
LBB0_8:
	movl	%ecx, %edx
	andl	$-8, %edx
	cmpl	$240, %edx
	jne	LBB0_15
## %bb.9:
	movzbl	1(%rax), %r10d
	movl	%r10d, %edx
	andl	$-64, %edx
	cmpl	$128, %edx
	jne	LBB0_15
## %bb.10:
	movzbl	2(%rax), %r8d
	movl	%r8d, %edx
	andl	$-64, %edx
	cmpl	$128, %edx
	jne	LBB0_15
## %bb.11:
	movzbl	3(%rax), %r9d
	movl	%r9d, %edx
	andl	$-64, %edx
	cmpl	$128, %edx
	jne	LBB0_15
## %bb.12:
	addq	$3, %rax
	andl	$7, %ecx
	shll	$18, %ecx
	andl	$63, %r10d
	shll	$12, %r10d
	orl	%ecx, %r10d
	andl	$63, %r8d
	shll	$6, %r8d
	orl	%r10d, %r8d
	andl	$63, %r9d
	orl	%r8d, %r9d
	movl	%r9d, %ecx
LBB0_13:
	movl	%ecx, (%rsi)
	movq	%rax, (%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_15:
	movq	_WIND_ERR_INVALID_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIND_ERR_INVALID_UTF8,4,2      ## @WIND_ERR_INVALID_UTF8
	.no_dead_strip	_utf8toutf32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function utf8toutf32
_utf8toutf32:                           ; @utf8toutf32
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	ldrb	w10, [x9]
	tbz	w10, #7, LBB0_13
; %bb.1:
	and	w8, w10, #0xe0
	cmp	w8, #192
	b.ne	LBB0_4
; %bb.2:
	ldrb	w8, [x9, #1]!
	and	w11, w8, #0xc0
	cmp	w11, #128
	b.ne	LBB0_14
; %bb.3:
	and	w8, w8, #0x3f
	bfi	w8, w10, #6, #5
	mov	x10, x8
	b	LBB0_13
LBB0_4:
	and	w8, w10, #0xf0
	cmp	w8, #224
	b.ne	LBB0_8
; %bb.5:
	ldrb	w8, [x9, #1]
	and	w11, w8, #0xc0
	cmp	w11, #128
	b.ne	LBB0_14
; %bb.6:
	ldrb	w11, [x9, #2]!
	and	w12, w11, #0xc0
	cmp	w12, #128
	b.ne	LBB0_14
; %bb.7:
	ubfiz	w10, w10, #12, #4
	bfi	w10, w8, #6, #6
	bfxil	w10, w11, #0, #6
	b	LBB0_13
LBB0_8:
	and	w8, w10, #0xf8
	cmp	w8, #240
	b.ne	LBB0_14
; %bb.9:
	ldrb	w8, [x9, #1]
	and	w11, w8, #0xc0
	cmp	w11, #128
	b.ne	LBB0_14
; %bb.10:
	ldrb	w11, [x9, #2]
	and	w12, w11, #0xc0
	cmp	w12, #128
	b.ne	LBB0_14
; %bb.11:
	ldrb	w12, [x9, #3]!
	and	w13, w12, #0xc0
	cmp	w13, #128
	b.ne	LBB0_14
; %bb.12:
	ubfiz	w10, w10, #18, #3
	bfi	w10, w8, #12, #6
	bfi	w10, w11, #6, #6
	bfxil	w10, w12, #0, #6
LBB0_13:
	str	w10, [x1]
	str	x9, [x0]
	mov	w0, #0
	ret
LBB0_14:
Lloh0:
	adrp	x8, _WIND_ERR_INVALID_UTF8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WIND_ERR_INVALID_UTF8@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WIND_ERR_INVALID_UTF8,4,2      ; @WIND_ERR_INVALID_UTF8
	.no_dead_strip	_utf8toutf32
.subsections_via_symbols
