	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mbssep
_mbssep:                                ## @mbssep
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	movq	_MB_LEN_MAX@GOTPCREL(%rip), %rax
	leaq	-56(%rbp), %rdi
	movq	%r13, %r12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	(%rax), %edx
	movq	%rdi, %r15
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_mbrtowc
	movq	%rax, %rbx
	cmpq	$-2, %rax
	jb	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	xorl	%edx, %edx
	callq	_errc
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r12, %rbx
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx), %rdx
	cmpq	%rax, %rdx
	je	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	addq	$8, %rcx
	testq	%rdx, %rdx
	jne	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r12
	movq	_MB_LEN_MAX@GOTPCREL(%rip), %rax
	movq	%r15, %rdi
	jmp	LBB0_2
LBB0_6:
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movb	$0, (%r12)
	jmp	LBB0_9
LBB0_7:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, (%r14)
LBB0_10:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_LEN_MAX,4,2                 ## @MB_LEN_MAX
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.no_dead_strip	_mbssep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mbssep
_mbssep:                                ; @mbssep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x19, [x0]
	cbz	x19, LBB0_12
; %bb.1:
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _MB_LEN_MAX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MB_LEN_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x25, _EILSEQ@GOTPAGE
Lloh3:
	ldr	x25, [x25, _EILSEQ@GOTPAGEOFF]
	mov	x22, x19
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w2, [x24]
	add	x0, sp, #8
	mov	x1, x22
	mov	x3, #0
	bl	_mbrtowc
	mov	x23, x0
	cmn	x0, #2
	b.lo	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x25]
	mov	w0, #1
	mov	x2, #0
	bl	_errc
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x22, x23
	ldr	x9, [sp, #8]
	mov	x10, x21
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x10]
	cmp	x11, x9
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x10, x10, #8
	cbnz	x11, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x8
	b	LBB0_2
LBB0_8:
	cbz	x9, LBB0_10
; %bb.9:
	strb	wzr, [x22]
	b	LBB0_11
LBB0_10:
	mov	x8, #0
LBB0_11:
	str	x8, [x20]
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_LEN_MAX,4,2                 ; @MB_LEN_MAX
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.no_dead_strip	_mbssep
.subsections_via_symbols
