	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_unicode_to_ACP
_convert_unicode_to_ACP:                ## @convert_unicode_to_ACP
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rsi
	movq	_mcset_codepage_out@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	leaq	-20(%rbp), %rdi
	leaq	-16(%rbp), %rdx
	callq	_codepage_from_unicode
	movq	-16(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_fatal
	movq	-16(%rbp), %rax
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mcset_codepage_out,8,3         ## @mcset_codepage_out
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unicode string not mappable to ASCII codepage 0x%lx.\n"

	.no_dead_strip	_convert_unicode_to_ACP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_unicode_to_ACP
_convert_unicode_to_ACP:                ; @convert_unicode_to_ACP
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x0
Lloh0:
	adrp	x19, _mcset_codepage_out@GOTPAGE
Lloh1:
	ldr	x19, [x19, _mcset_codepage_out@GOTPAGEOFF]
	ldr	x3, [x19]
	add	x0, sp, #4
	add	x2, sp, #8
	bl	_codepage_from_unicode
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x1, [x19]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
	ldr	x0, [sp, #8]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_mcset_codepage_out,8,3         ; @mcset_codepage_out
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unicode string not mappable to ASCII codepage 0x%lx.\n"

	.no_dead_strip	_convert_unicode_to_ACP
.subsections_via_symbols
