	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function UnicodeToAnsi
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_UnicodeToAnsi
	.p2align	4, 0x90
_UnicodeToAnsi:                         ## @UnicodeToAnsi
	.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
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movl	%edi, %r14d
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WC_COMPOSITECHECK@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_WideCharToMultiByte
	movl	%eax, %r15d
	leal	(,%r15,4), %esi
	xorl	%edi, %edi
	callq	_MemAlloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r12
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movl	%r14d, %edx
	movl	$-1, %ecx
	movq	%r12, %r8
	movl	%r15d, %r9d
	callq	_WideCharToMultiByte
	movq	%r12, %rbx
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.comm	_WC_COMPOSITECHECK,4,2          ## @WC_COMPOSITECHECK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UnicodeToAnsi                  ; -- Begin function UnicodeToAnsi
	.p2align	2
_UnicodeToAnsi:                         ; @UnicodeToAnsi
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	w0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _CP_ACP@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CP_ACP@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x23, _WC_COMPOSITECHECK@GOTPAGE
Lloh3:
	ldr	x23, [x23, _WC_COMPOSITECHECK@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x2, x19
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	mov	x21, x0
	lsl	w1, w0, #2
	mov	w0, #0
	bl	_MemAlloc
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x22]
	ldr	w1, [x23]
	mov	x2, x19
	mov	w3, #-1
	mov	x4, x20
	mov	x5, x21
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	b	LBB0_4
LBB0_3:
	mov	x20, #0
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.comm	_WC_COMPOSITECHECK,4,2          ; @WC_COMPOSITECHECK
.subsections_via_symbols
