	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g_Ctoc
_g_Ctoc:                                ## @g_Ctoc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	-44(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpq	%r14, (%rcx)
	ja	LBB0_8
## %bb.1:
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_CHAR
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r13, %rdx
	callq	_wcrtomb
	movq	%rax, %r12
	cmpq	$-1, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	callq	_CHAR
	movb	%al, (%r15)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$1, %r12d
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	callq	_CHAR
	movq	_EOS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rbx
	addq	%r12, %r15
	subq	%r12, %r14
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jae	LBB0_2
## %bb.7:
	movl	$1, %eax
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_CUR_MAX,8,3                 ## @MB_CUR_MAX
	.comm	_EOS,8,3                        ## @EOS
	.no_dead_strip	_g_Ctoc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g_Ctoc
_g_Ctoc:                                ; @g_Ctoc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x23, _MB_CUR_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MB_CUR_MAX@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, x19
	b.hi	LBB0_6
; %bb.1:
Lloh2:
	adrp	x24, _EOS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EOS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_CHAR
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_wcrtomb
	mov	x22, x0
	cmn	x0, #1
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21]
	bl	_CHAR
	strb	w0, [x20]
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w22, #1
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21]
	bl	_CHAR
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #4
	add	x20, x20, x22
	ldr	x8, [x23]
	sub	x19, x19, x22
	cmp	x19, x8
	b.hs	LBB0_2
LBB0_6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_CUR_MAX,8,3                 ; @MB_CUR_MAX
	.comm	_EOS,8,3                        ; @EOS
	.no_dead_strip	_g_Ctoc
.subsections_via_symbols
