	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConvertUTF32toUTF16            ## -- Begin function ConvertUTF32toUTF16
	.p2align	4, 0x90
_ConvertUTF32toUTF16:                   ## @ConvertUTF32toUTF16
	.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
	movl	(%rax), %eax
	movq	(%rdi), %r11
	movq	(%rdx), %r10
	cmpq	%rsi, %r11
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jae	LBB0_18
## %bb.1:
	movq	%rcx, %r9
	movq	_UNI_MAX_BMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movq	_UNI_SUR_HIGH_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	_strictConversion@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	_UNI_MAX_LEGAL_UTF32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movq	_halfBase@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	_halfShift@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_halfMask@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	_UNI_SUR_LOW_START@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	_sourceIllegal@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, (%r10)
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %r10
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %r11
	cmpq	%rsi, %r11
	jae	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r9, %r10
	jae	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%r11), %r13
	cmpl	%r15d, %r13d
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, %r13d
	jle	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r8, %rdi
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r14d, %r13d
	jl	LBB0_2
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_UNI_SUR_LOW_END@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r13d
	jg	LBB0_2
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r8, %rdi
	je	LBB0_19
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_UNI_REPLACEMENT_CHAR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rbx
	movq	%rbx, (%r10)
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	8(%r10), %rbx
	cmpq	%r9, %rbx
	jae	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	subl	-48(%rbp), %r13d                ## 4-byte Folded Reload
	movslq	%r13d, %rbx
	sarl	%cl, %r13d
	addl	%r14d, %r13d
	movslq	%r13d, %rdx
	movq	%rdx, (%r10)
	andq	-80(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%rbx, 8(%r10)
	addq	$16, %r10
	jmp	LBB0_4
LBB0_16:
	movq	_targetExhausted@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
LBB0_18:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r11, (%rcx)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r10, (%rcx)
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_sourceIllegal@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_conversionOK,4,2               ## @conversionOK
	.comm	_targetExhausted,4,2            ## @targetExhausted
	.comm	_UNI_MAX_BMP,4,2                ## @UNI_MAX_BMP
	.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	_sourceIllegal,4,2              ## @sourceIllegal
	.comm	_UNI_REPLACEMENT_CHAR,8,3       ## @UNI_REPLACEMENT_CHAR
	.comm	_UNI_MAX_LEGAL_UTF32,4,2        ## @UNI_MAX_LEGAL_UTF32
	.comm	_halfBase,8,3                   ## @halfBase
	.comm	_halfShift,4,2                  ## @halfShift
	.comm	_halfMask,4,2                   ## @halfMask
	.comm	_UNI_SUR_LOW_START,8,3          ## @UNI_SUR_LOW_START
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConvertUTF32toUTF16            ; -- Begin function ConvertUTF32toUTF16
	.p2align	2
_ConvertUTF32toUTF16:                   ; @ConvertUTF32toUTF16
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	.cfi_offset w23, -40
	.cfi_offset w24, -48
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _conversionOK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _conversionOK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x2]
	cmp	x21, x1
	b.hs	LBB0_15
; %bb.1:
Lloh3:
	adrp	x10, _UNI_MAX_BMP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _UNI_MAX_BMP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _UNI_SUR_HIGH_START@GOTPAGE
Lloh7:
	ldr	x11, [x11, _UNI_SUR_HIGH_START@GOTPAGEOFF]
Lloh8:
	adrp	x12, _strictConversion@GOTPAGE
Lloh9:
	ldr	x12, [x12, _strictConversion@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
Lloh11:
	ldr	x12, [x12]
Lloh12:
	adrp	x13, _UNI_MAX_LEGAL_UTF32@GOTPAGE
Lloh13:
	ldr	x13, [x13, _UNI_MAX_LEGAL_UTF32@GOTPAGEOFF]
Lloh14:
	adrp	x14, _halfBase@GOTPAGE
Lloh15:
	ldr	x14, [x14, _halfBase@GOTPAGEOFF]
Lloh16:
	ldr	w13, [x13]
Lloh17:
	ldr	w14, [x14]
Lloh18:
	adrp	x15, _halfShift@GOTPAGE
Lloh19:
	ldr	x15, [x15, _halfShift@GOTPAGEOFF]
Lloh20:
	adrp	x17, _halfMask@GOTPAGE
Lloh21:
	ldr	x17, [x17, _halfMask@GOTPAGEOFF]
Lloh22:
	ldr	w16, [x15]
Lloh23:
	ldrsw	x17, [x17]
Lloh24:
	adrp	x15, _UNI_SUR_LOW_START@GOTPAGE
Lloh25:
	ldr	x15, [x15, _UNI_SUR_LOW_START@GOTPAGEOFF]
Lloh26:
	adrp	x5, _sourceIllegal@GOTPAGE
Lloh27:
	ldr	x5, [x5, _sourceIllegal@GOTPAGEOFF]
Lloh28:
	ldr	x6, [x15]
	ldr	w7, [x5]
Lloh29:
	adrp	x19, _UNI_REPLACEMENT_CHAR@GOTPAGE
Lloh30:
	ldr	x19, [x19, _UNI_REPLACEMENT_CHAR@GOTPAGEOFF]
Lloh31:
	adrp	x20, _UNI_SUR_LOW_END@GOTPAGE
Lloh32:
	ldr	x20, [x20, _UNI_SUR_LOW_END@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x22, [x9], #8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x15
	cmp	x15, x1
	b.hs	LBB0_16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x3
	b.hs	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x15, x21
	ldrsw	x22, [x15], #4
	cmp	w22, w10
	b.le	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w22, w13
	b.le	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x12, x4
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x7
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x20]
	cmp	w22, w11
	ccmp	w22, w23, #0, ge
	b.gt	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x12, x4
	b.eq	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x19]
	str	x21, [x9], #8
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x9, #8
	cmp	x23, x3
	b.hs	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	w21, w22, w14
	asr	w22, w21, w16
	add	w22, w22, w11
	sxtw	x22, w22
	sxtw	x21, w21
	and	x21, x17, x21
	add	x21, x6, x21
	stp	x22, x21, [x9], #16
	b	LBB0_3
LBB0_14:
Lloh33:
	adrp	x8, _targetExhausted@GOTPAGE
Lloh34:
	ldr	x8, [x8, _targetExhausted@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
LBB0_15:
	mov	x15, x21
LBB0_16:
	str	x15, [x0]
	str	x9, [x2]
	mov	x0, x8
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:
	ldr	w8, [x5]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_conversionOK,4,2               ; @conversionOK
	.comm	_targetExhausted,4,2            ; @targetExhausted
	.comm	_UNI_MAX_BMP,4,2                ; @UNI_MAX_BMP
	.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	_sourceIllegal,4,2              ; @sourceIllegal
	.comm	_UNI_REPLACEMENT_CHAR,8,3       ; @UNI_REPLACEMENT_CHAR
	.comm	_UNI_MAX_LEGAL_UTF32,4,2        ; @UNI_MAX_LEGAL_UTF32
	.comm	_halfBase,8,3                   ; @halfBase
	.comm	_halfShift,4,2                  ; @halfShift
	.comm	_halfMask,4,2                   ; @halfMask
	.comm	_UNI_SUR_LOW_START,8,3          ; @UNI_SUR_LOW_START
.subsections_via_symbols
