	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConvertUTF16toUTF32            ## -- Begin function ConvertUTF16toUTF32
	.p2align	4, 0x90
_ConvertUTF16toUTF32:                   ## @ConvertUTF16toUTF32
	.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	_conversionOK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %r11
	movq	(%rdx), %r10
	cmpq	%rsi, %r11
	jae	LBB0_19
## %bb.1:
	movq	%rcx, %r9
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_UNI_SUR_HIGH_START@GOTPCREL(%rip), %rdi
	movq	_UNI_SUR_HIGH_END@GOTPCREL(%rip), %rbx
	movq	_strictConversion@GOTPCREL(%rip), %r14
	movq	_UNI_SUR_LOW_START@GOTPCREL(%rip), %r12
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	8(%r11), %rcx
	movq	(%r11), %r15
	movq	%r15, %r13
	subq	(%rdi), %r13
	jl	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%rbx), %r15
	jg	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rsi, %rcx
	jae	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rdx
	movq	%rdx, %rax
	subq	(%r12), %rax
	jl	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r9, %rsi
	movq	%rdi, %r9
	movq	_UNI_SUR_LOW_END@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	movq	%r9, %rdi
	movq	%rsi, %r9
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_halfShift@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shlq	%cl, %r13
	addq	%r13, %rax
	movq	_halfBase@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	leaq	16(%r11), %rcx
	movq	%rax, %r15
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r8, (%r14)
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r12), %r15
	jl	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_UNI_SUR_LOW_END@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jg	LBB0_15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r8, (%r14)
	je	LBB0_9
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r9, %r10
	jae	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, (%r10)
	addq	$8, %r10
	movq	%rcx, %r11
	cmpq	%rsi, %rcx
	jb	LBB0_2
## %bb.18:
	movq	%rcx, %r11
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_16:
	movq	_targetExhausted@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_sourceIllegal@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movq	_sourceExhausted@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_19:
	movq	%r11, (%rdi)
	movq	%r10, (%rdx)
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_conversionOK,8,3               ## @conversionOK
	.comm	_UNI_SUR_HIGH_START,8,3         ## @UNI_SUR_HIGH_START
	.comm	_UNI_SUR_HIGH_END,8,3           ## @UNI_SUR_HIGH_END
	.comm	_UNI_SUR_LOW_START,8,3          ## @UNI_SUR_LOW_START
	.comm	_UNI_SUR_LOW_END,8,3            ## @UNI_SUR_LOW_END
	.comm	_halfShift,8,3                  ## @halfShift
	.comm	_halfBase,8,3                   ## @halfBase
	.comm	_strictConversion,8,3           ## @strictConversion
	.comm	_sourceIllegal,8,3              ## @sourceIllegal
	.comm	_sourceExhausted,8,3            ## @sourceExhausted
	.comm	_targetExhausted,8,3            ## @targetExhausted
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConvertUTF16toUTF32            ; -- Begin function ConvertUTF16toUTF32
	.p2align	2
_ConvertUTF16toUTF32:                   ; @ConvertUTF16toUTF32
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	ldr	x10, [x0]
Lloh0:
	adrp	x8, _conversionOK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _conversionOK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x2]
	cmp	x10, x1
	b.hs	LBB0_15
; %bb.1:
Lloh3:
	adrp	x11, _UNI_SUR_HIGH_START@GOTPAGE
Lloh4:
	ldr	x11, [x11, _UNI_SUR_HIGH_START@GOTPAGEOFF]
Lloh5:
	adrp	x12, _UNI_SUR_HIGH_END@GOTPAGE
Lloh6:
	ldr	x12, [x12, _UNI_SUR_HIGH_END@GOTPAGEOFF]
Lloh7:
	adrp	x13, _strictConversion@GOTPAGE
Lloh8:
	ldr	x13, [x13, _strictConversion@GOTPAGEOFF]
Lloh9:
	adrp	x14, _UNI_SUR_LOW_START@GOTPAGE
Lloh10:
	ldr	x14, [x14, _UNI_SUR_LOW_START@GOTPAGEOFF]
Lloh11:
	adrp	x15, _UNI_SUR_LOW_END@GOTPAGE
Lloh12:
	ldr	x15, [x15, _UNI_SUR_LOW_END@GOTPAGEOFF]
Lloh13:
	adrp	x16, _halfShift@GOTPAGE
Lloh14:
	ldr	x16, [x16, _halfShift@GOTPAGEOFF]
	mov	x5, x10
Lloh15:
	adrp	x17, _halfBase@GOTPAGE
Lloh16:
	ldr	x17, [x17, _halfBase@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x6, [x5], #8
	ldr	x7, [x11]
	ldr	x19, [x12]
	subs	x7, x6, x7
	ccmp	x6, x19, #0, ge
	b.le	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x7, [x13]
	ldr	x19, [x14]
	ldr	x20, [x15]
	cmp	x7, x4
	ccmp	x6, x19, #8, eq
	ccmp	x6, x20, #0, ge
	b.gt	LBB0_7
	b	LBB0_12
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x5, x1
	b.hs	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [x5]
	ldr	x19, [x14]
	ldr	x21, [x15]
	subs	x19, x20, x19
	ccmp	x20, x21, #0, ge
	b.le	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x7, [x13]
	cmp	x7, x4
	b.eq	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x9, x3
	b.lo	LBB0_9
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x5, [x16]
	lsl	x5, x7, x5
	ldr	x6, [x17]
	add	x5, x19, x5
	add	x6, x5, x6
	add	x5, x10, #16
	cmp	x9, x3
	b.hs	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	x6, [x9], #8
	mov	x10, x5
	cmp	x5, x1
	b.lo	LBB0_2
; %bb.10:
	mov	x10, x5
	b	LBB0_15
LBB0_11:
Lloh17:
	adrp	x8, _targetExhausted@GOTPAGE
Lloh18:
	ldr	x8, [x8, _targetExhausted@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh19:
	adrp	x8, _sourceIllegal@GOTPAGE
Lloh20:
	ldr	x8, [x8, _sourceIllegal@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh21:
	adrp	x8, _sourceExhausted@GOTPAGE
Lloh22:
	ldr	x8, [x8, _sourceExhausted@GOTPAGEOFF]
LBB0_14:
	ldr	x8, [x8]
LBB0_15:
	str	x10, [x0]
	str	x9, [x2]
	mov	x0, x8
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_conversionOK,8,3               ; @conversionOK
	.comm	_UNI_SUR_HIGH_START,8,3         ; @UNI_SUR_HIGH_START
	.comm	_UNI_SUR_HIGH_END,8,3           ; @UNI_SUR_HIGH_END
	.comm	_UNI_SUR_LOW_START,8,3          ; @UNI_SUR_LOW_START
	.comm	_UNI_SUR_LOW_END,8,3            ; @UNI_SUR_LOW_END
	.comm	_halfShift,8,3                  ; @halfShift
	.comm	_halfBase,8,3                   ; @halfBase
	.comm	_strictConversion,8,3           ; @strictConversion
	.comm	_sourceIllegal,8,3              ; @sourceIllegal
	.comm	_sourceExhausted,8,3            ; @sourceExhausted
	.comm	_targetExhausted,8,3            ; @targetExhausted
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
