	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intl_convert_utf8_to_utf16     ## -- Begin function intl_convert_utf8_to_utf16
	.p2align	4, 0x90
_intl_convert_utf8_to_utf16:            ## @intl_convert_utf8_to_utf16
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	$0, -48(%rbp)
	movq	_U_ZERO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r8)
	movq	_INT32_MAX@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jae	LBB0_2
## %bb.1:
	movq	_U_BUFFER_OVERFLOW_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_11
LBB0_2:
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movq	%rsi, %r15
	movq	(%rsi), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rcx
	movq	%r12, %r8
	movq	%rbx, %r9
	callq	_u_strFromUTF8
	movq	_U_ZERO_ERROR@GOTPCREL(%rip), %rdx
	movq	(%rbx), %rax
	cmpq	(%rdx), %rax
	jne	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	movq	-48(%rbp), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	-48(%rbp), %rax
	movq	%rax, (%r15)
	jmp	LBB0_11
LBB0_4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_U_BUFFER_OVERFLOW_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_U_STRING_NOT_TERMINATED_WARNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_6:
	movq	-48(%rbp), %rdi
	incq	%rdi
	movq	%rdx, %r14
	callq	_eumalloc
	movq	%rax, %r15
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	-48(%rbp), %rsi
	incq	%rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movq	%r13, %rcx
	movq	%r12, %r8
	movq	%rbx, %r9
	callq	_u_strFromUTF8
	movq	(%rbx), %rdi
	callq	_U_FAILURE
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_efree
	jmp	LBB0_11
LBB0_8:
	movq	-48(%rbp), %rax
	movq	$0, (%r15,%rax,8)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_efree
LBB0_10:
	movq	%r15, (%rbx)
	movq	-48(%rbp), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_U_ZERO_ERROR,8,3               ## @U_ZERO_ERROR
	.comm	_INT32_MAX,8,3                  ## @INT32_MAX
	.comm	_U_BUFFER_OVERFLOW_ERROR,8,3    ## @U_BUFFER_OVERFLOW_ERROR
	.comm	_U_STRING_NOT_TERMINATED_WARNING,8,3 ## @U_STRING_NOT_TERMINATED_WARNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intl_convert_utf8_to_utf16     ; -- Begin function intl_convert_utf8_to_utf16
	.p2align	2
_intl_convert_utf8_to_utf16:            ; @intl_convert_utf8_to_utf16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x4
	str	xzr, [sp, #8]
Lloh0:
	adrp	x25, _U_ZERO_ERROR@GOTPAGE
Lloh1:
	ldr	x25, [x25, _U_ZERO_ERROR@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [x4]
Lloh2:
	adrp	x8, _INT32_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INT32_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x3
	b.hs	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _U_BUFFER_OVERFLOW_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _U_BUFFER_OVERFLOW_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x21]
	b	LBB0_8
LBB0_2:
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0]
	ldr	x1, [x1]
	add	x2, sp, #8
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	bl	_u_strFromUTF8
	ldr	x8, [x21]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x20]
	ldr	x9, [sp, #8]
	str	xzr, [x8, x9, lsl #3]
LBB0_4:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_8
LBB0_5:
Lloh8:
	adrp	x9, _U_BUFFER_OVERFLOW_ERROR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _U_BUFFER_OVERFLOW_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _U_STRING_NOT_TERMINATED_WARNING@GOTPAGE
Lloh12:
	ldr	x10, [x10, _U_STRING_NOT_TERMINATED_WARNING@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [sp, #8]
	add	x0, x8, #1
	bl	_eumalloc
	mov	x24, x0
	ldr	x8, [x25]
	str	x8, [x21]
	ldr	x8, [sp, #8]
	add	x1, x8, #1
	mov	x2, #0
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	bl	_u_strFromUTF8
	ldr	x0, [x21]
	bl	_U_FAILURE
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x24
	bl	_efree
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	ldr	x8, [sp, #8]
	str	xzr, [x24, x8, lsl #3]
	ldr	x0, [x20]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_efree
LBB0_11:
	str	x24, [x20]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_U_ZERO_ERROR,8,3               ; @U_ZERO_ERROR
	.comm	_INT32_MAX,8,3                  ; @INT32_MAX
	.comm	_U_BUFFER_OVERFLOW_ERROR,8,3    ; @U_BUFFER_OVERFLOW_ERROR
	.comm	_U_STRING_NOT_TERMINATED_WARNING,8,3 ; @U_STRING_NOT_TERMINATED_WARNING
.subsections_via_symbols
