	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConvertUTF8toUTF32             ## -- Begin function ConvertUTF8toUTF32
	.p2align	4, 0x90
_ConvertUTF8toUTF32:                    ## @ConvertUTF8toUTF32
	.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, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	_conversionOK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r15
	cmpq	%rsi, %rbx
	jae	LBB0_25
## %bb.1:
	movq	%rsi, %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_sourceIllegal@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_UNI_REPLACEMENT_CHAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%r15)
	addq	$4, %r15
	cmpq	%r14, %rbx
	jae	LBB0_25
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_trailingBytesForUTF8@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movzwl	(%rax,%rcx,2), %r13d
	leaq	(%rbx,%r13,8), %rax
	cmpq	%r14, %rax
	jae	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r13), %r12
	movzwl	%r12w, %esi
	movq	%rbx, %rdi
	callq	_isLegalUTF8
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	cmpw	$5, %r13w
	ja	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%r13,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	addq	$8, %rbx
	shlq	$6, %rax
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	(%rbx), %rax
	addq	$8, %rbx
	shlq	$6, %rax
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	andl	$-64, %eax
	addq	(%rbx), %rax
	addq	$8, %rbx
	shlq	$6, %rax
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	(%rbx), %rax
	addq	$8, %rbx
	shlq	$6, %rax
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	andl	$-64, %eax
	addq	(%rbx), %rax
	addq	$8, %rbx
	shlq	$6, %rax
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	(%rbx), %eax
	addq	$8, %rbx
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	-80(%rbp), %r15                 ## 8-byte Folded Reload
	jae	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_offsetsFromUTF8@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subl	(%rcx,%r13,4), %eax
	movq	_UNI_MAX_LEGAL_UTF32@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_UNI_SUR_HIGH_START@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_UNI_SUR_LOW_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_strictConversion@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_23
## %bb.21:
	movl	%r12d, %eax
	shlq	$3, %rax
	subq	%rax, %rbx
	movq	_sourceIllegal@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_sourceExhausted@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_sourceIllegal@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_16:
	shlq	$3, %r12
	subq	%r12, %rbx
	movq	_targetExhausted@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_25:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_conversionOK,4,2               ## @conversionOK
	.comm	_trailingBytesForUTF8,8,3       ## @trailingBytesForUTF8
	.comm	_sourceExhausted,4,2            ## @sourceExhausted
	.comm	_sourceIllegal,4,2              ## @sourceIllegal
	.comm	_offsetsFromUTF8,8,3            ## @offsetsFromUTF8
	.comm	_targetExhausted,4,2            ## @targetExhausted
	.comm	_UNI_MAX_LEGAL_UTF32,4,2        ## @UNI_MAX_LEGAL_UTF32
	.comm	_UNI_SUR_HIGH_START,4,2         ## @UNI_SUR_HIGH_START
	.comm	_UNI_SUR_LOW_END,4,2            ## @UNI_SUR_LOW_END
	.comm	_strictConversion,8,3           ## @strictConversion
	.comm	_UNI_REPLACEMENT_CHAR,8,3       ## @UNI_REPLACEMENT_CHAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConvertUTF8toUTF32             ; -- Begin function ConvertUTF8toUTF32
	.p2align	2
_ConvertUTF8toUTF32:                    ; @ConvertUTF8toUTF32
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x4, [sp, #8]                    ; 8-byte Folded Spill
	mov	x19, x2
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _conversionOK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _conversionOK@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x26, [x2]
	cmp	x21, x1
	b.hs	LBB0_24
; %bb.1:
	mov	x24, x3
	mov	x25, x1
Lloh3:
	adrp	x28, _trailingBytesForUTF8@GOTPAGE
Lloh4:
	ldr	x28, [x28, _trailingBytesForUTF8@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh5:
	adrp	x8, _sourceIllegal@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sourceIllegal@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh8:
	adrp	x8, _UNI_REPLACEMENT_CHAR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UNI_REPLACEMENT_CHAR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w8, [x26], #4
	cmp	x21, x25
	b.hs	LBB0_24
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	ldr	x9, [x21]
	ldrh	w23, [x8, x9, lsl #1]
	add	x8, x21, x23, lsl #3
	cmp	x8, x25
	b.hs	LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x23, #1
	and	w1, w27, #0xffff
	mov	x0, x21
	bl	_isLegalUTF8
	cbz	w0, LBB0_22
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w23, #5
	b.hi	LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, #0
	mov	x9, #0
	mov	x11, #0
	mov	x12, #0
	mov	x10, #0
Lloh11:
	adrp	x15, lJTI0_0@PAGE
Lloh12:
	add	x15, x15, lJTI0_0@PAGEOFF
	adr	x13, LBB0_9
	ldrb	w14, [x15, x23]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21], #8
	lsl	x8, x8, #6
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x21], #8
	add	x8, x9, x8
	lsl	x9, x8, #6
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21], #8
	and	x9, x9, #0xffffffc0
	add	x8, x8, x9
	lsl	x11, x8, #6
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21], #8
	add	x8, x8, x11
	lsl	x12, x8, #6
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21], #8
	and	x9, x12, #0xffffffc0
	add	x8, x8, x9
	lsl	x10, x8, #6
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21], #8
	add	w8, w8, w10
	cmp	x26, x24
	b.hs	LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh13:
	adrp	x9, _offsetsFromUTF8@GOTPAGE
Lloh14:
	ldr	x9, [x9, _offsetsFromUTF8@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	w9, [x9, x23, lsl #2]
Lloh16:
	adrp	x10, _UNI_MAX_LEGAL_UTF32@GOTPAGE
Lloh17:
	ldr	x10, [x10, _UNI_MAX_LEGAL_UTF32@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	sub	w8, w8, w9
	cmp	w8, w10
	b.gt	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh19:
	adrp	x9, _UNI_SUR_HIGH_START@GOTPAGE
Lloh20:
	ldr	x9, [x9, _UNI_SUR_HIGH_START@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _UNI_SUR_LOW_END@GOTPAGE
Lloh23:
	ldr	x10, [x10, _UNI_SUR_LOW_END@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.gt	LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh25:
	adrp	x8, _strictConversion@GOTPAGE
Lloh26:
	ldr	x8, [x8, _strictConversion@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, x9
	b.ne	LBB0_3
	b	LBB0_21
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
	cmp	x26, x24
	b.lo	LBB0_15
LBB0_19:
	sub	x21, x21, x27, lsl #3
Lloh28:
	adrp	x8, _targetExhausted@GOTPAGE
Lloh29:
	ldr	x8, [x8, _targetExhausted@GOTPAGEOFF]
	b	LBB0_23
LBB0_20:
Lloh30:
	adrp	x8, _sourceExhausted@GOTPAGE
Lloh31:
	ldr	x8, [x8, _sourceExhausted@GOTPAGEOFF]
	b	LBB0_23
LBB0_21:
	sub	x21, x21, w27, uxtw #3
LBB0_22:
Lloh32:
	adrp	x8, _sourceIllegal@GOTPAGE
Lloh33:
	ldr	x8, [x8, _sourceIllegal@GOTPAGEOFF]
LBB0_23:
	ldr	w22, [x8]
LBB0_24:
	str	x21, [x20]
	str	x26, [x19]
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_9)>>2
	.byte	(LBB0_13-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
                                        ; -- End function
	.comm	_conversionOK,4,2               ; @conversionOK
	.comm	_trailingBytesForUTF8,8,3       ; @trailingBytesForUTF8
	.comm	_sourceExhausted,4,2            ; @sourceExhausted
	.comm	_sourceIllegal,4,2              ; @sourceIllegal
	.comm	_offsetsFromUTF8,8,3            ; @offsetsFromUTF8
	.comm	_targetExhausted,4,2            ; @targetExhausted
	.comm	_UNI_MAX_LEGAL_UTF32,4,2        ; @UNI_MAX_LEGAL_UTF32
	.comm	_UNI_SUR_HIGH_START,4,2         ; @UNI_SUR_HIGH_START
	.comm	_UNI_SUR_LOW_END,4,2            ; @UNI_SUR_LOW_END
	.comm	_strictConversion,8,3           ; @strictConversion
	.comm	_UNI_REPLACEMENT_CHAR,8,3       ; @UNI_REPLACEMENT_CHAR
.subsections_via_symbols
