	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _FAT_directory_createAlias
__FAT_directory_createAlias:            ## @_FAT_directory_createAlias
	.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	%rsi, %r13
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -56(%rbp)
	cmpb	$46, (%rsi)
	jne	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$46, 1(%r13,%rbx)
	leaq	1(%rbx), %rbx
	je	LBB0_2
## %bb.3:
	movl	$1, %r12d
	jmp	LBB0_5
LBB0_4:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
LBB0_5:
	movb	$1, -80(%rbp)                   ## 1-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	%ebx, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%r15d, %rax
	movzbl	(%r13,%rax), %ecx
	testb	%cl, %cl
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpb	$46, %cl
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	leaq	(%rax,%r13), %rsi
	movq	_NAME_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	subq	%rax, %rdx
	leaq	-64(%rbp), %rdi
	leaq	-56(%rbp), %rcx
	callq	_mbrtowc
	testl	%eax, %eax
	js	LBB0_28
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	%eax, %ebx
	movl	-64(%rbp), %edi
	callq	_towupper
	movl	%eax, %edi
	callq	_wctob
	movl	%eax, %r14d
	movl	-64(%rbp), %edi
	callq	_wctob
	cmpl	$32, %r14d
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	addl	%ebx, %r15d
	movl	$1, %r12d
	testb	$1, -80(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_7
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r14d, %eax
	movl	$1, %ecx
	cmovnel	%ecx, %r12d
	movq	_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	cmovel	%ecx, %r12d
	movl	$95, %eax
	cmovel	%eax, %r14d
	movq	_ILLEGAL_ALIAS_CHARACTERS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r14d, %esi
	callq	_strchr
	testq	%rax, %rax
	movl	$1, %eax
	cmovnel	%eax, %r12d
	movl	$95, %eax
	cmovnel	%eax, %r14d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%r14b, (%rax,%rcx)
	addl	%r15d, %ebx
	cmpq	$7, %rcx
	leaq	1(%rcx), %rax
	setb	-80(%rbp)                       ## 1-byte Folded Spill
	movq	%rax, %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	$8, %rax
	jne	LBB0_6
## %bb.13:
	movl	$8, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
LBB0_14:
	movl	%r15d, %ebx
LBB0_15:
	movslq	%ebx, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movb	(%r13,%rax), %al
	testb	%al, %al
	je	LBB0_18
## %bb.16:
	cmpb	$46, %al
	je	LBB0_18
## %bb.17:
	movl	$1, %r12d
LBB0_18:
	movq	%r13, %rdi
	movl	$46, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_32
## %bb.19:
	movq	%rax, %r15
	movq	%r13, %rdi
	movl	$46, %esi
	callq	_strchr
	cmpq	%rax, %r15
	movl	$1, %r13d
	cmovel	%r12d, %r13d
	cmpb	$0, 1(%r15)
	je	LBB0_29
## %bb.20:
	incq	%r15
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	%ecx, %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movb	$46, (%rax,%rcx)
	incl	%ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_MAX_ALIAS_EXT_LENGTH@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jg	LBB0_24
LBB0_30:
	movl	%r13d, %ecx
LBB0_31:
	cmpb	$0, (%r15)
	movl	$1, %r12d
	cmovel	%ecx, %r12d
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_24 Depth=1
	cmpl	%r14d, %eax
	movl	$1, %ecx
	cmovnel	%ecx, %r13d
	movq	_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	cmovel	%ecx, %r13d
	movl	$95, %eax
	cmovel	%eax, %r14d
	movq	_ILLEGAL_ALIAS_CHARACTERS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r14d, %esi
	callq	_strchr
	testq	%rax, %rax
	movl	$1, %eax
	cmovnel	%eax, %r13d
	movl	$95, %eax
	cmovnel	%eax, %r14d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	%ecx, %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movb	%r14b, (%rax,%rcx)
	incl	%ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %ecx
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	%ebx, %eax
	addq	%rax, %r15
	incl	%r12d
	movq	_MAX_ALIAS_EXT_LENGTH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_31
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%r15)
	je	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_NAME_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	subq	-80(%rbp), %rdx                 ## 8-byte Folded Reload
	leaq	-64(%rbp), %rdi
	movq	%r15, %rsi
	leaq	-56(%rbp), %rcx
	callq	_mbrtowc
	testl	%eax, %eax
	js	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	%eax, %ebx
	movl	-64(%rbp), %edi
	callq	_towupper
	movl	%eax, %edi
	callq	_wctob
	movl	%eax, %r14d
	movl	-64(%rbp), %edi
	callq	_wctob
	movl	$1, %ecx
	cmpl	$32, %r14d
	jne	LBB0_22
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	%ecx, %r13d
	jmp	LBB0_23
LBB0_28:
	movl	$-1, %eax
	jmp	LBB0_33
LBB0_29:
	movl	%r13d, %r12d
LBB0_32:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cltq
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movb	$0, (%rcx,%rax)
	testl	%r12d, %r12d
	cmovel	%r12d, %eax
LBB0_33:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAME_MAX,8,3                   ## @NAME_MAX
	.comm	_EOF,4,2                        ## @EOF
	.comm	_ILLEGAL_ALIAS_CHARACTERS,8,3   ## @ILLEGAL_ALIAS_CHARACTERS
	.comm	_MAX_ALIAS_EXT_LENGTH,4,2       ## @MAX_ALIAS_EXT_LENGTH
	.no_dead_strip	__FAT_directory_createAlias
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _FAT_directory_createAlias
__FAT_directory_createAlias:            ; @_FAT_directory_createAlias
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x27, x0
	str	wzr, [sp, #16]
	ldrb	w8, [x1]
	cmp	w8, #46
	b.ne	LBB0_4
; %bb.1:
	mov	x28, #0
	add	x8, x20, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8, x28]
	add	x28, x28, #1
	cmp	w9, #46
	b.eq	LBB0_2
; %bb.3:
	mov	w24, #1
	b	LBB0_5
LBB0_4:
	mov	w24, #0
	mov	x28, #0
LBB0_5:
	mov	x23, #0
	mov	w19, #1
Lloh0:
	adrp	x25, _NAME_MAX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NAME_MAX@GOTPAGEOFF]
	mov	w26, #95
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x8, w28
	add	x1, x20, x8
	ldrb	w9, [x1]
	cbz	w9, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, #46
	b.eq	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x25]
	sub	x2, x9, x8
	add	x0, sp, #24
	add	x3, sp, #16
	bl	_mbrtowc
	tbnz	w0, #31, LBB0_24
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	ldr	w0, [sp, #24]
	bl	_towupper
	bl	_wctob
	mov	x22, x0
	ldr	w0, [sp, #24]
	bl	_wctob
	cmp	w22, #32
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w28, w21, w28
	mov	w24, #1
	tbnz	w19, #0, LBB0_6
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w0, w22
	csinc	w8, w24, wzr, eq
Lloh2:
	adrp	x9, _EOF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EOF@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w22, w9
	csel	w22, w26, w22, eq
	csinc	w19, w8, wzr, ne
Lloh5:
	adrp	x8, _ILLEGAL_ALIAS_CHARACTERS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ILLEGAL_ALIAS_CHARACTERS@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	mov	x1, x22
	bl	_strchr
	cmp	x0, #0
	csinc	w24, w19, wzr, eq
	csel	w8, w22, w26, eq
	strb	w8, [x27, x23]
	cmp	x23, #7
	add	x8, x23, #1
	add	w28, w21, w28
	cset	w19, lo
	mov	x23, x8
	cmp	x8, #8
	b.ne	LBB0_6
LBB0_12:
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	sxtw	x28, w28
	ldrb	w8, [x20, x28]
	cbz	w8, LBB0_14
; %bb.13:
	mov	w9, #1
	cmp	w8, #46
	csel	w24, w24, w9, eq
LBB0_14:
	mov	x0, x20
	mov	w1, #46
	bl	_strrchr
	cbz	x0, LBB0_26
; %bb.15:
	mov	x21, x0
	mov	w19, #46
	mov	x0, x20
	mov	w1, #46
	bl	_strchr
	cmp	x21, x0
	csinc	w24, w24, wzr, eq
	ldrb	w8, [x21, #1]!
	cbz	w8, LBB0_26
; %bb.16:
	strb	w19, [x27, w23, sxtw]
	add	w23, w23, #1
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh8:
	adrp	x26, _MAX_ALIAS_EXT_LENGTH@GOTPAGE
Lloh9:
	ldr	x26, [x26, _MAX_ALIAS_EXT_LENGTH@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	b.lt	LBB0_25
; %bb.17:
	mov	w27, #0
	mov	w19, #95
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	cmp	w0, w22
	csinc	w8, w24, wzr, eq
Lloh10:
	adrp	x9, _EOF@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EOF@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w22, w9
	csel	w22, w19, w22, eq
	csinc	w24, w8, wzr, ne
Lloh13:
	adrp	x8, _ILLEGAL_ALIAS_CHARACTERS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ILLEGAL_ALIAS_CHARACTERS@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
	mov	x1, x22
	bl	_strchr
	cmp	x0, #0
	csinc	w24, w24, wzr, eq
	csel	w8, w22, w19, eq
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	strb	w8, [x9, w23, sxtw]
	add	w23, w23, #1
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x21, x21, w20, uxtw
	add	w27, w27, #1
	ldr	w8, [x26]
	cmp	w27, w8
	b.ge	LBB0_25
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x25]
	sub	x2, x8, x28
	add	x0, sp, #24
	add	x3, sp, #16
	mov	x1, x21
	bl	_mbrtowc
	tbnz	w0, #31, LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x20, x0
	ldr	w0, [sp, #24]
	bl	_towupper
	bl	_wctob
	mov	x22, x0
	ldr	w0, [sp, #24]
	bl	_wctob
	cmp	w22, #32
	b.ne	LBB0_18
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	w24, #1
	b	LBB0_19
LBB0_24:
	mov	w0, #-1
	b	LBB0_27
LBB0_25:
	ldrb	w8, [x21]
	cmp	w8, #0
	csinc	w24, w24, wzr, eq
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
LBB0_26:
	strb	wzr, [x27, w23, sxtw]
	cmp	w24, #0
	csel	w0, wzr, w23, eq
LBB0_27:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NAME_MAX,8,3                   ; @NAME_MAX
	.comm	_EOF,4,2                        ; @EOF
	.comm	_ILLEGAL_ALIAS_CHARACTERS,8,3   ; @ILLEGAL_ALIAS_CHARACTERS
	.comm	_MAX_ALIAS_EXT_LENGTH,4,2       ; @MAX_ALIAS_EXT_LENGTH
	.no_dead_strip	__FAT_directory_createAlias
.subsections_via_symbols
