	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _FAT_directory_mbstoucs2
__FAT_directory_mbstoucs2:              ## @_FAT_directory_mbstoucs2
	.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	%rdx, %r12
	movq	%rdi, %r14
	movl	$0, -48(%rbp)
	decq	%r12
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	xorl	%r15d, %r15d
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rbx)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r13, %rcx
	callq	_mbrtowc
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	-56(%rbp), %ecx
	movb	%cl, (%r14,%r15)
	movl	%eax, %eax
	addq	%rax, %rbx
	incq	%r15
	cmpq	%r15, %r12
	jne	LBB0_3
## %bb.6:
	addq	%r15, %r14
	movq	%r12, %r15
	jmp	LBB0_9
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_7:
	movq	$-1, %rax
	jne	LBB0_10
LBB0_8:
	addq	%r15, %r14
LBB0_9:
	movb	$0, (%r14)
	movq	%r15, %rax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_CUR_MAX,4,2                 ## @MB_CUR_MAX
	.no_dead_strip	__FAT_directory_mbstoucs2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _FAT_directory_mbstoucs2
__FAT_directory_mbstoucs2:              ; @_FAT_directory_mbstoucs2
	.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, x0
	str	wzr, [sp, #8]
	subs	x22, x2, #1
	b.eq	LBB0_6
; %bb.1:
	mov	x21, x1
	mov	x20, #0
Lloh0:
	adrp	x23, _MB_CUR_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MB_CUR_MAX@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x23]
	mov	x0, sp
	add	x3, sp, #8
	mov	x1, x21
	bl	_mbrtowc
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp]
	strb	w8, [x19, x20]
	add	x21, x21, w0, uxtw
	add	x20, x20, #1
	cmp	x22, x20
	b.ne	LBB0_2
; %bb.5:
	add	x19, x19, x20
	mov	x20, x22
	b	LBB0_10
LBB0_6:
	mov	x20, #0
	b	LBB0_10
LBB0_7:
	cbz	w0, LBB0_9
; %bb.8:
	mov	x20, #-1
	b	LBB0_11
LBB0_9:
	add	x19, x19, x20
LBB0_10:
	strb	wzr, [x19]
LBB0_11:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_CUR_MAX,4,2                 ; @MB_CUR_MAX
	.no_dead_strip	__FAT_directory_mbstoucs2
.subsections_via_symbols
