	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mbsnrtowcs_std               ## -- Begin function __mbsnrtowcs_std
	.p2align	4, 0x90
___mbsnrtowcs_std:                      ## @__mbsnrtowcs_std
	.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
	movq	%r9, %r14
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rdx, %rbx
	movq	(%rsi), %r12
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.5:
	movq	%rcx, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.6:
	movq	%rdi, %r15
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	cmpq	$-2, %rax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$-1, %rax
	je	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	addq	%rax, %r12
	subq	%rax, %rbx
	incq	%r14
	addq	$4, %r15
	cmpq	%r14, %r13
	jne	LBB0_7
LBB0_16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	jmp	LBB0_17
LBB0_1:
	xorl	%r13d, %r13d
	leaq	-68(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	*%r14
	cmpq	$-2, %rax
	je	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$-1, %rax
	je	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	%rax, %r12
	subq	%rax, %rbx
	incq	%r13
	jmp	LBB0_2
LBB0_4:
	movq	%rax, %r13
	jmp	LBB0_17
LBB0_13:
	addq	%rbx, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movq	%r14, %r13
	jmp	LBB0_17
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	%r14, %r13
	jmp	LBB0_17
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movq	$-1, %r13
LBB0_17:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mbsnrtowcs_std               ; -- Begin function __mbsnrtowcs_std
	.p2align	2
___mbsnrtowcs_std:                      ; @__mbsnrtowcs_std
	.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
	mov	x21, x5
	mov	x22, x4
	mov	x23, x2
	ldr	x20, [x1]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x3
	mov	x24, x1
	cbz	x3, LBB0_7
; %bb.2:
	mov	x25, x0
	mov	x26, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	blr	x21
	cmn	x0, #2
	b.eq	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x0, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmn	x0, #1
	b.eq	LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, x0
	sub	x23, x23, x0
	add	x26, x26, #1
	add	x25, x25, #4
	cmp	x19, x26
	b.ne	LBB0_3
LBB0_7:
	str	x20, [x24]
	b	LBB0_17
LBB0_8:
	mov	x19, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	blr	x21
	cmn	x0, #2
	b.eq	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmn	x0, #1
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cbz	x0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x20, x20, x0
	sub	x23, x23, x0
	add	x19, x19, #1
	b	LBB0_9
LBB0_13:
	mov	x19, x0
	b	LBB0_17
LBB0_14:
	add	x8, x20, x23
	str	x8, [x24]
	mov	x19, x26
	b	LBB0_17
LBB0_15:
	str	xzr, [x24]
	mov	x19, x26
	b	LBB0_17
LBB0_16:
	str	x20, [x24]
	mov	x19, #-1
LBB0_17:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
