	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Utf16_To_Char
_Utf16_To_Char:                         ## @Utf16_To_Char
	.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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$-1, %ebx
	movl	$97, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	addl	$3, %r13d
	cmpq	$0, (%r15,%rbx,8)
	jne	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_Buf_EnsureSize
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	(%r14), %r8
	movq	$0, (%r8)
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.5:
	movb	$95, -41(%rbp)
	leaq	-48(%rbp), %rax
	leaq	-41(%rbp), %r10
	movl	%r12d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r13d, %r9d
	pushq	%rax
	pushq	%r10
	callq	_WideCharToMultiByte
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	cmpl	%r13d, %eax
	jae	LBB0_10
## %bb.7:
	movq	(%r14), %rcx
	movl	%eax, %eax
	movq	$0, (%rcx,%rax,8)
LBB0_8:
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_SZ_ERROR_MEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_10:
	movq	_SZ_ERROR_FAIL@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_ERROR_MEM,4,2               ## @SZ_ERROR_MEM
	.comm	_SZ_ERROR_FAIL,4,2              ## @SZ_ERROR_FAIL
	.comm	_SZ_OK,4,2                      ## @SZ_OK
	.no_dead_strip	_Utf16_To_Char
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Utf16_To_Char
_Utf16_To_Char:                         ; @Utf16_To_Char
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	w23, #-1
	mov	w20, #97
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w23, #1
	ldr	x8, [x22, w23, uxtw #3]
	add	w20, w20, #3
	cbnz	x8, LBB0_1
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_Buf_EnsureSize
	cbz	w0, LBB0_8
; %bb.3:
	ldr	x4, [x19]
	str	xzr, [x4]
	cbz	w23, LBB0_7
; %bb.4:
	mov	w8, #95
	strb	w8, [sp, #15]
	add	x6, sp, #15
	add	x7, sp, #8
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	mov	x3, x23
	mov	x5, x20
	bl	_WideCharToMultiByte
	cbz	w0, LBB0_9
; %bb.5:
	cmp	w0, w20
	b.hs	LBB0_9
; %bb.6:
	ldr	x8, [x19]
	str	xzr, [x8, w0, uxtw #3]
LBB0_7:
Lloh0:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh2:
	adrp	x8, _SZ_ERROR_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SZ_ERROR_MEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh4:
	adrp	x8, _SZ_ERROR_FAIL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SZ_ERROR_FAIL@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_ERROR_MEM,4,2               ; @SZ_ERROR_MEM
	.comm	_SZ_ERROR_FAIL,4,2              ; @SZ_ERROR_FAIL
	.comm	_SZ_OK,4,2                      ; @SZ_OK
	.no_dead_strip	_Utf16_To_Char
.subsections_via_symbols
