	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function __WideCharToMultiByte
LCPI0_0:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	___WideCharToMultiByte
	.p2align	4, 0x90
___WideCharToMultiByte:                 ## @__WideCharToMultiByte
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.2:
	movl	%r9d, %r15d
	movq	%r8, %r14
	movq	%rdx, %rbx
	testq	%r8, %r8
	jne	LBB0_5
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_5
LBB0_4:
	movq	_ERROR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
	xorl	%eax, %eax
LBB0_26:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testl	%ecx, %ecx
	js	LBB0_6
## %bb.7:
	testl	%r15d, %r15d
	je	LBB0_8
LBB0_9:
	movq	24(%rbp), %r8
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jle	LBB0_24
## %bb.10:
	testl	%r15d, %r15d
	jle	LBB0_24
## %bb.11:
	decl	%ecx
	decl	%r15d
	cmpl	%r15d, %ecx
	cmovbl	%ecx, %r15d
	leal	1(%r15), %eax
	xorl	%ecx, %ecx
	cmpl	$7, %r15d
	jb	LBB0_20
## %bb.12:
	movq	%r14, %rdx
	subq	%rbx, %rdx
	cmpq	$32, %rdx
	jb	LBB0_20
## %bb.13:
	movl	%eax, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$3, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.15:
	movq	%rdx, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rsi,4), %xmm1
	movups	16(%rbx,%rsi,4), %xmm2
	andps	%xmm0, %xmm1
	andps	%xmm0, %xmm2
	movups	%xmm1, (%r14,%rsi,4)
	movups	%xmm2, 16(%r14,%rsi,4)
	movups	32(%rbx,%rsi,4), %xmm1
	movups	48(%rbx,%rsi,4), %xmm2
	andps	%xmm0, %xmm1
	andps	%xmm0, %xmm2
	movups	%xmm1, 32(%r14,%rsi,4)
	movups	%xmm2, 48(%r14,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rdi
	jne	LBB0_16
	jmp	LBB0_17
LBB0_6:
	movq	%rbx, %rdi
	callq	_strlenW
	movl	%eax, %ecx
	incl	%ecx
	testl	%r15d, %r15d
	jne	LBB0_9
LBB0_8:
	movl	%ecx, %eax
	jmp	LBB0_26
LBB0_14:
	xorl	%esi, %esi
LBB0_17:
	testb	$1, %dl
	je	LBB0_19
## %bb.18:
	movups	(%rbx,%rsi,4), %xmm0
	movups	16(%rbx,%rsi,4), %xmm1
	movaps	LCPI0_0(%rip), %xmm2            ## xmm2 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	andps	%xmm2, %xmm0
	andps	%xmm2, %xmm1
	movups	%xmm0, (%r14,%rsi,4)
	movups	%xmm1, 16(%r14,%rsi,4)
LBB0_19:
	cmpq	%rax, %rcx
	je	LBB0_24
LBB0_20:
	movq	%rcx, %rdx
	notq	%rdx
	addq	%rax, %rdx
	movq	%rax, %rsi
	andq	$3, %rsi
	je	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rcx,4), %edi
	movl	%edi, (%r14,%rcx,4)
	incq	%rcx
	decq	%rsi
	jne	LBB0_21
LBB0_22:
	cmpq	$3, %rdx
	jb	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rcx,4), %edx
	movl	%edx, (%r14,%rcx,4)
	movzbl	4(%rbx,%rcx,4), %edx
	movl	%edx, 4(%r14,%rcx,4)
	movzbl	8(%rbx,%rcx,4), %edx
	movl	%edx, 8(%r14,%rcx,4)
	movzbl	12(%rbx,%rcx,4), %edx
	movl	%edx, 12(%r14,%rcx,4)
	addq	$4, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_23
LBB0_24:
	testq	%r8, %r8
	je	LBB0_26
## %bb.25:
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r8)
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_INVALID_PARAMETER,4,2    ## @ERROR_INVALID_PARAMETER
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___WideCharToMultiByte          ; -- Begin function __WideCharToMultiByte
	.p2align	2
___WideCharToMultiByte:                 ; @__WideCharToMultiByte
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x2, LBB0_4
; %bb.1:
	cbz	w3, LBB0_4
; %bb.2:
	mov	x19, x7
	mov	x22, x5
	mov	x21, x4
	mov	x20, x2
	cbnz	x4, LBB0_6
; %bb.3:
	cbz	w22, LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _ERROR_INVALID_PARAMETER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR_INVALID_PARAMETER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SetLastError
	mov	w0, #0
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	tbnz	w3, #31, LBB0_19
; %bb.7:
	cbz	w22, LBB0_20
LBB0_8:
	mov	w0, #0
	subs	w9, w3, #1
	b.lt	LBB0_17
; %bb.9:
	subs	w10, w22, #1
	b.lt	LBB0_17
; %bb.10:
	mov	x8, #0
	cmp	w9, w10
	csel	w9, w9, w10, lo
	add	w0, w9, #1
	cmp	w9, #15
	b.lo	LBB0_15
; %bb.11:
	sub	x9, x21, x20
	cmp	x9, #64
	b.lo	LBB0_15
; %bb.12:
	and	x8, x0, #0xfffffff0
	add	x9, x21, #32
	add	x10, x20, #32
	movi.2d	v0, #0x0000ff000000ff
	mov	x11, x8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x10, #-32]
	ldp	q3, q4, [x10], #64
	and.16b	v1, v1, v0
	and.16b	v2, v2, v0
	and.16b	v3, v3, v0
	and.16b	v4, v4, v0
	stp	q1, q2, [x9, #-32]
	stp	q3, q4, [x9], #64
	subs	x11, x11, #16
	b.ne	LBB0_13
; %bb.14:
	cmp	x8, x0
	b.eq	LBB0_17
LBB0_15:
	lsl	x10, x8, #2
	add	x9, x21, x10
	add	x10, x20, x10
	sub	x8, x0, x8
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x10], #4
	str	w11, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_16
LBB0_17:
	cbz	x19, LBB0_5
; %bb.18:
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_5
LBB0_19:
	mov	x0, x20
	bl	_strlenW
	add	w3, w0, #1
	cbnz	w22, LBB0_8
LBB0_20:
	mov	x0, x3
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_INVALID_PARAMETER,4,2    ; @ERROR_INVALID_PARAMETER
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
