	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __wcsconv
___wcsconv:                             ## @__wcsconv
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MB_LEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	testl	%r15d, %r15d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	js	LBB0_3
## %bb.1:
	cmpl	$127, %r15d
	ja	LBB0_4
## %bb.2:
	movl	%r15d, %ebx
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, -64(%rbp)
	movl	$0, -52(%rbp)
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %rsi
	leaq	-52(%rbp), %rcx
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_wcsrtombs
	movq	%rax, %rbx
	cmpq	$-1, %rax
	jne	LBB0_7
	jmp	LBB0_13
LBB0_4:
	movl	$0, -52(%rbp)
	leaq	4(%rbx), %r14
	xorl	%eax, %eax
	leaq	-52(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	%r14, -64(%rbp)
	movl	-4(%r14), %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_wcrtomb
	leaq	1(%rax), %rcx
	cmpq	$2, %rcx
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%rbx, %rax
	addq	$4, %r14
	cmpl	%r15d, %eax
	jle	LBB0_5
LBB0_7:
	leaq	1(%rbx), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	%rax, %r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -64(%rbp)
	movl	$0, -52(%rbp)
	leaq	-64(%rbp), %rsi
	leaq	-52(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_wcsrtombs
	cmpq	$-1, %rax
	je	LBB0_11
## %bb.9:
	movb	$0, (%r15,%rax)
	jmp	LBB0_13
LBB0_11:
	movq	%r15, %rdi
	callq	_free
LBB0_12:
	xorl	%r15d, %r15d
LBB0_13:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movq	%r15, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_LEN_MAX,4,2                 ## @MB_LEN_MAX
	.no_dead_strip	___wcsconv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __wcsconv
___wcsconv:                             ; @__wcsconv
	.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
	sub	sp, sp, #32
	mov	x20, x1
	mov	x19, x0
	mov	x23, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MB_LEN_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MB_LEN_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	tbnz	w1, #31, LBB0_3
; %bb.1:
	cmp	w20, #127
	b.hi	LBB0_4
; %bb.2:
	mov	w21, w20
	b	LBB0_6
LBB0_3:
	stur	x19, [x29, #-72]
	stur	wzr, [x29, #-60]
	sub	x1, x29, #72
	sub	x3, x29, #60
	mov	x0, #0
	mov	x2, #0
	bl	_wcsrtombs
	mov	x21, x0
	cmn	x0, #1
	b.ne	LBB0_6
	b	LBB0_10
LBB0_4:
	mov	x8, #0
	stur	wzr, [x29, #-60]
	add	x24, x19, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x8
	stur	x24, [x29, #-72]
	ldur	w1, [x24, #-4]
	sub	x2, x29, #60
	mov	x0, x22
	bl	_wcrtomb
	add	x9, x0, #1
	add	x8, x0, x21
	add	x24, x24, #4
	cmp	x9, #2
	ccmp	w8, w20, #0, hs
	b.le	LBB0_5
LBB0_6:
	add	x0, x21, #1
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_11
; %bb.7:
	stur	x19, [x29, #-72]
	stur	wzr, [x29, #-60]
	sub	x1, x29, #72
	sub	x3, x29, #60
	mov	x0, x20
	mov	x2, x21
	bl	_wcsrtombs
	cmn	x0, #1
	b.eq	LBB0_9
; %bb.8:
	strb	wzr, [x20, x0]
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	bl	_free
LBB0_10:
	mov	x20, #0
LBB0_11:
	mov	sp, x23
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	sub	sp, x29, #48
	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
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_LEN_MAX,4,2                 ; @MB_LEN_MAX
	.no_dead_strip	___wcsconv
.subsections_via_symbols
