	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wstr2cstr
_wstr2cstr:                             ## @wstr2cstr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_wcslen
	testl	%eax, %eax
	js	LBB0_25
## %bb.1:
	movl	%eax, %r10d
	cmpl	$7, %eax
	jb	LBB0_19
## %bb.2:
	leaq	(%rbx,%r10), %rcx
	subq	%r14, %rcx
	subq	%r10, %rcx
	cmpq	$32, %rcx
	jae	LBB0_3
LBB0_19:
	movq	%r10, %r11
LBB0_20:
	leal	1(%r11), %ecx
	movq	%r11, %rax
	andq	$3, %rcx
	je	LBB0_23
## %bb.21:
	movq	%r11, %rax
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rax), %edx
	movb	%dl, (%r14,%rax)
	decq	%rax
	decq	%rcx
	jne	LBB0_22
LBB0_23:
	cmpq	$3, %r11
	jb	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rax), %ecx
	movb	%cl, (%r14,%rax)
	movzbl	-1(%rbx,%rax), %ecx
	movb	%cl, -1(%r14,%rax)
	movzbl	-2(%rbx,%rax), %ecx
	movb	%cl, -2(%r14,%rax)
	movzbl	-3(%rbx,%rax), %ecx
	movb	%cl, -3(%r14,%rax)
	addq	$-4, %rax
	cmpq	$-1, %rax
	jne	LBB0_24
LBB0_25:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	leaq	1(%r10), %r8
	movabsq	$8589934560, %r9                ## imm = 0x1FFFFFFE0
	cmpl	$31, %eax
	jae	LBB0_8
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_8:
	movq	%r8, %rax
	andq	%r9, %rax
	leaq	-32(%rax), %rcx
	movq	%rcx, %rdi
	shrq	$5, %rdi
	incq	%rdi
	movl	%edi, %r11d
	andl	$3, %r11d
	cmpq	$96, %rcx
	jae	LBB0_10
## %bb.9:
	xorl	%esi, %esi
	jmp	LBB0_13
LBB0_10:
	andq	$-4, %rdi
	leaq	(%r14,%r10), %rcx
	addq	$-15, %rcx
	leaq	(%rbx,%r10), %rdx
	addq	$-15, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rdx,%rsi), %xmm0
	movups	(%rdx,%rsi), %xmm1
	movups	%xmm1, (%rcx,%rsi)
	movups	%xmm0, -16(%rcx,%rsi)
	movups	-48(%rdx,%rsi), %xmm0
	movups	-32(%rdx,%rsi), %xmm1
	movups	%xmm1, -32(%rcx,%rsi)
	movups	%xmm0, -48(%rcx,%rsi)
	movups	-80(%rdx,%rsi), %xmm0
	movups	-64(%rdx,%rsi), %xmm1
	movups	%xmm1, -64(%rcx,%rsi)
	movups	%xmm0, -80(%rcx,%rsi)
	movups	-112(%rdx,%rsi), %xmm0
	movups	-96(%rdx,%rsi), %xmm1
	movups	%xmm1, -96(%rcx,%rsi)
	movups	%xmm0, -112(%rcx,%rsi)
	addq	$-128, %rsi
	addq	$-4, %rdi
	jne	LBB0_11
## %bb.12:
	negq	%rsi
LBB0_13:
	testq	%r11, %r11
	je	LBB0_16
## %bb.14:
	movq	%r10, %rdx
	subq	%rsi, %rdx
	leaq	(%r14,%rdx), %rcx
	addq	$-15, %rcx
	addq	%rbx, %rdx
	addq	$-15, %rdx
	shlq	$5, %r11
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rdx,%rsi), %xmm0
	movups	(%rdx,%rsi), %xmm1
	movups	%xmm1, (%rcx,%rsi)
	movups	%xmm0, -16(%rcx,%rsi)
	addq	$-32, %rsi
	movq	%r11, %rdi
	addq	%rsi, %rdi
	jne	LBB0_15
LBB0_16:
	cmpq	%rax, %r8
	je	LBB0_25
## %bb.17:
	testb	$24, %r8b
	je	LBB0_18
LBB0_5:
	addq	$24, %r9
	andq	%r8, %r9
	movq	%r10, %r11
	subq	%r9, %r11
	movq	%r8, %rcx
	andq	$-8, %rcx
	negq	%rcx
	negq	%rax
	leaq	(%r14,%r10), %rdx
	addq	$-7, %rdx
	leaq	(%rbx,%r10), %rsi
	addq	$-7, %rsi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rax), %rdi
	movq	%rdi, (%rdx,%rax)
	addq	$-8, %rax
	cmpq	%rax, %rcx
	jne	LBB0_6
## %bb.7:
	cmpq	%r9, %r8
	jne	LBB0_20
	jmp	LBB0_25
LBB0_18:
	subq	%rax, %r10
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wstr2cstr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wstr2cstr
_wstr2cstr:                             ; @wstr2cstr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_wcslen
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	w8, w0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x19, x8]
	strb	w9, [x20, x8]
	sub	x8, x8, #1
	cmn	x8, #1
	b.ne	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wstr2cstr
.subsections_via_symbols
