	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xwcstoutf                      ## -- Begin function xwcstoutf
	.p2align	4, 0x90
_xwcstoutf:                             ## @xwcstoutf
	.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_3
## %bb.1:
	movq	%rdx, %r9
	movq	%rsi, %rdx
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	testq	%r9, %r9
	je	LBB0_3
## %bb.4:
	movq	%rdi, %r8
	movq	_CP_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movl	$-1, %ebx
	xorl	%esi, %esi
	movl	$-1, %ecx
	callq	_WideCharToMultiByte
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	decl	%eax
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_CP_UTF8,4,2                    ## @CP_UTF8
	.comm	_ERANGE,4,2                     ## @ERANGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xwcstoutf                      ; -- Begin function xwcstoutf
	.p2align	2
_xwcstoutf:                             ; @xwcstoutf
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_5
; %bb.1:
	mov	x5, x2
	mov	x2, x1
	cbz	x1, LBB0_5
; %bb.2:
	cbz	x5, LBB0_5
; %bb.3:
	mov	x4, x0
Lloh0:
	adrp	x8, _CP_UTF8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CP_UTF8@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w3, #-1
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	cbz	x0, LBB0_6
; %bb.4:
	sub	w0, w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _ERANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _errno@GOTPAGE
Lloh8:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_CP_UTF8,4,2                    ; @CP_UTF8
	.comm	_ERANGE,4,2                     ; @ERANGE
.subsections_via_symbols
