	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Utf16_To_Utf8
_Utf16_To_Utf8:                         ## @Utf16_To_Utf8
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	cmpq	%rdx, %rsi
	je	LBB0_13
## %bb.1:
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movsbl	%bl, %eax
	movl	%eax, (%r15)
	addq	$4, %r15
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %r12
	cmpq	%r13, %r14
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	4(%r12), %r14
	movl	(%r12), %ebx
	cmpl	$127, %ebx
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	__UTF8_RANGE
	cmpl	%eax, %ebx
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	movl	%ebx, %esi
	callq	__UTF8_HEAD
	movl	%eax, (%r15)
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	__UTF8_CHAR
	movl	%eax, 4(%r15)
	addq	$8, %r15
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	andl	$-1024, %eax                    ## imm = 0xFC00
	cmpl	$55296, %eax                    ## imm = 0xD800
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %r13d
	movl	%r13d, %eax
	andl	$-1024, %eax                    ## imm = 0xFC00
	cmpl	$56320, %eax                    ## imm = 0xDC00
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %r12
	shll	$10, %ebx
	addl	$-56623104, %ebx                ## imm = 0xFCA00000
	addl	$-56320, %r13d                  ## imm = 0xFFFF2400
	orl	%ebx, %r13d
	addl	$65536, %r13d                   ## imm = 0x10000
	movl	$3, %edi
	movl	%r13d, %esi
	callq	__UTF8_HEAD
	movl	%eax, (%r15)
	movl	$2, %edi
	movl	%r13d, %esi
	callq	__UTF8_CHAR
	movl	%eax, 4(%r15)
	movl	$1, %edi
	movl	%r13d, %esi
	callq	__UTF8_CHAR
	movl	%eax, 8(%r15)
	xorl	%edi, %edi
	movl	%r13d, %esi
	callq	__UTF8_CHAR
	movl	%eax, 12(%r15)
	addq	$16, %r15
	movq	%r12, %r14
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$2, %edi
	movl	%ebx, %esi
	callq	__UTF8_HEAD
	movl	%eax, (%r15)
	movl	$1, %edi
	movl	%ebx, %esi
	callq	__UTF8_CHAR
	movl	%eax, 4(%r15)
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	__UTF8_CHAR
	movl	%eax, 8(%r15)
	addq	$12, %r15
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_13:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_Utf16_To_Utf8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Utf16_To_Utf8
_Utf16_To_Utf8:                         ; @Utf16_To_Utf8
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	cmp	x1, x2
	b.eq	LBB0_11
; %bb.1:
	mov	x20, x2
	mov	x22, x1
	mov	w23, #-56623104
	mov	w24, #-56320
	mov	x25, x1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtb	w8, w21
	str	w8, [x19], #4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x25
	cmp	x25, x20
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x25], #4
	cmp	w21, #127
	b.le	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	__UTF8_RANGE
	cmp	w21, w0
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	mov	x1, x21
	bl	__UTF8_HEAD
	str	w0, [x19]
	mov	w0, #0
	mov	x1, x21
	bl	__UTF8_CHAR
	str	w0, [x19, #4]
	add	x19, x19, #8
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsr	w8, w21, #10
	cmp	w8, #54
	ccmp	x25, x20, #4, eq
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	lsr	w9, w8, #10
	cmp	w9, #55
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x22, #8
	add	w9, w23, w21, lsl #10
	add	w8, w8, w24
	orr	w8, w8, w9
	add	w21, w8, #16, lsl #12           ; =65536
	mov	w0, #3
	mov	x1, x21
	bl	__UTF8_HEAD
	str	w0, [x19]
	mov	w0, #2
	mov	x1, x21
	bl	__UTF8_CHAR
	str	w0, [x19, #4]
	mov	w0, #1
	mov	x1, x21
	bl	__UTF8_CHAR
	str	w0, [x19, #8]
	mov	w0, #0
	mov	x1, x21
	bl	__UTF8_CHAR
	str	w0, [x19, #12]
	add	x19, x19, #16
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #2
	mov	x1, x21
	bl	__UTF8_HEAD
	str	w0, [x19]
	mov	w0, #1
	mov	x1, x21
	bl	__UTF8_CHAR
	str	w0, [x19, #4]
	mov	w0, #0
	mov	x1, x21
	bl	__UTF8_CHAR
	str	w0, [x19, #8]
	add	x19, x19, #12
	b	LBB0_3
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_Utf16_To_Utf8
.subsections_via_symbols
