	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _FAT_directory_ucs2tombs
__FAT_directory_ucs2tombs:              ## @_FAT_directory_ucs2tombs
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -56(%rbp)
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	decq	%rbx
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_25
## %bb.1:
	leaq	16(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	7(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	cmpq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	jae	LBB0_30
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
                                        ##     Child Loop BB0_23 Depth 2
	movq	%rax, %r13
	movb	(%r15), %al
	testb	%al, %al
	je	LBB0_29
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movsbl	%al, %esi
	movq	%r12, %rdi
	leaq	-56(%rbp), %rdx
	callq	_wcrtomb
	testl	%eax, %eax
	js	LBB0_27
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	movl	%eax, %r8d
	leaq	(%r8,%r13), %rax
	cmpq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	jae	LBB0_29
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%ecx, %ecx
	je	LBB0_29
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$32, %ecx
	jb	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rcx
	subq	%r12, %rcx
	cmpq	$32, %rcx
	jb	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r8d, %ecx
	andl	$-32, %ecx
	leaq	-32(%rcx), %rdx
	movq	%rdx, %rdi
	shrq	$5, %rdi
	incq	%rdi
	movl	%edi, %r9d
	andl	$3, %r9d
	cmpq	$96, %rdx
	jae	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	andq	$-4, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movaps	(%r12,%rdx), %xmm0
	movaps	16(%r12,%rdx), %xmm1
	movups	%xmm0, (%r14,%rdx)
	movups	%xmm1, 16(%r14,%rdx)
	movaps	32(%r12,%rdx), %xmm0
	movaps	48(%r12,%rdx), %xmm1
	movups	%xmm0, 32(%r14,%rdx)
	movups	%xmm1, 48(%r14,%rdx)
	movaps	64(%r12,%rdx), %xmm0
	movaps	80(%r12,%rdx), %xmm1
	movups	%xmm0, 64(%r14,%rdx)
	movups	%xmm1, 80(%r14,%rdx)
	movaps	96(%r12,%rdx), %xmm0
	movaps	112(%r12,%rdx), %xmm1
	movups	%xmm0, 96(%r14,%rdx)
	movups	%xmm1, 112(%r14,%rdx)
	subq	$-128, %rdx
	addq	$-4, %rdi
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%r9, %r9
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rdx), %rdi
	addq	%r14, %rdx
	addq	$16, %rdx
	shlq	$5, %r9
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movaps	-16(%rdi,%rsi), %xmm0
	movaps	(%rdi,%rsi), %xmm1
	movups	%xmm0, -16(%rdx,%rsi)
	movups	%xmm1, (%rdx,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %r9
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	%rcx, %r14
	cmpq	%r8, %rcx
	je	LBB0_2
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, %rsi
	notq	%rsi
	addq	%r8, %rsi
	movq	%r8, %rdx
	andq	$7, %rdx
	je	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r12,%rcx), %ebx
	movb	%bl, (%r14)
	incq	%r14
	incq	%rcx
	decq	%rdx
	jne	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$7, %rsi
	jb	LBB0_2
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	subq	%rcx, %r8
	addq	-80(%rbp), %rcx                 ## 8-byte Folded Reload
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-7(%rcx,%rdx), %ebx
	movb	%bl, (%r14,%rdx)
	movzbl	-6(%rcx,%rdx), %ebx
	movb	%bl, 1(%r14,%rdx)
	movzbl	-5(%rcx,%rdx), %ebx
	movb	%bl, 2(%r14,%rdx)
	movzbl	-4(%rcx,%rdx), %ebx
	movb	%bl, 3(%r14,%rdx)
	movzbl	-3(%rcx,%rdx), %ebx
	movb	%bl, 4(%r14,%rdx)
	movzbl	-2(%rcx,%rdx), %ebx
	movb	%bl, 5(%r14,%rdx)
	movzbl	-1(%rcx,%rdx), %ebx
	movb	%bl, 6(%r14,%rdx)
	movzbl	(%rcx,%rdx), %ebx
	movb	%bl, 7(%r14,%rdx)
	addq	$8, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	%rdx, %r14
	jmp	LBB0_2
LBB0_25:
	xorl	%eax, %eax
	jmp	LBB0_30
LBB0_29:
	movq	%r13, %rax
LBB0_30:
	movb	$0, (%r14)
LBB0_31:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_33
## %bb.32:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	$-1, %rax
	jmp	LBB0_31
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_CUR_MAX,4,2                 ## @MB_CUR_MAX
	.no_dead_strip	__FAT_directory_ucs2tombs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _FAT_directory_ucs2tombs
__FAT_directory_ucs2tombs:              ; @_FAT_directory_ucs2tombs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x8, x0
	mov	x22, sp
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-72]
	stur	wzr, [x29, #-80]
Lloh3:
	adrp	x9, _MB_CUR_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MB_CUR_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x9]
	mov	x9, x12
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x10, x10, #0x1fffffff0
	sub	x21, x9, x10
	mov	sp, x21
	subs	x23, x2, #1
	b.eq	LBB0_14
; %bb.1:
	mov	x26, #0
	add	x24, x21, #32
	mov	x25, x8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	mov	x25, x8
	mov	x26, x0
	cmp	x0, x23
	b.hs	LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	ldrb	w8, [x20]
	cbz	w8, LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtb	w1, w8
	sub	x2, x29, #80
	mov	x0, x21
	bl	_wcrtomb
	tbnz	w0, #31, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x0
	mov	w9, w0
	add	x0, x26, x9
	cmp	x0, x19
	ccmp	w8, #0, #4, lo
	b.eq	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x10, #0
	cmp	w8, #64
	b.lo	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x8, x25, x21
	cmp	x8, #64
	b.lo	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	and	x10, x9, #0xffffffc0
	add	x8, x25, x10
	add	x11, x25, #32
	mov	x12, x24
	mov	x13, x10
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x13, x13, #64
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	x10, x9
	b.eq	LBB0_2
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x25
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x21, x10
	sub	x9, x9, x10
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w10, [x11], #1
	strb	w10, [x8], #1
	subs	x9, x9, #1
	b.ne	LBB0_13
	b	LBB0_2
LBB0_14:
	mov	x0, #0
	b	LBB0_16
LBB0_15:
	mov	x0, x26
	mov	x8, x25
LBB0_16:
	strb	wzr, [x8]
LBB0_17:
	mov	sp, x22
	ldur	x8, [x29, #-72]
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_20
; %bb.18:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	x0, #-1
	b	LBB0_17
LBB0_20:
	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_CUR_MAX,4,2                 ; @MB_CUR_MAX
	.no_dead_strip	__FAT_directory_ucs2tombs
.subsections_via_symbols
