	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_mkdir_r                   ## -- Begin function _FAT_mkdir_r
	.p2align	4, 0x90
__FAT_mkdir_r:                          ## @_FAT_mkdir_r
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DIR_ENTRY_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rdi
	callq	__FAT_partition_getPartitionFromPath
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strchr
	leaq	1(%rax), %r13
	testq	%rax, %rax
	cmoveq	%rbx, %r13
	movq	%r13, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	jmp	LBB0_20
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rbx
	jmp	LBB0_20
LBB0_4:
	movq	%r12, %rdi
	addq	$8, %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	__FAT_lock
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	__FAT_directory_entryFromPath
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	_EEXIST@GOTPCREL(%rip), %rbx
	jmp	LBB0_6
LBB0_7:
	cmpq	$0, 16(%r12)
	je	LBB0_9
## %bb.8:
	movq	_EROFS@GOTPCREL(%rip), %rbx
LBB0_6:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	__FAT_unlock
LBB0_20:
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	movl	$-1, %r13d
LBB0_21:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_DIR_SEPARATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	movq	%rax, %r13
	movq	%rax, %rcx
	callq	__FAT_directory_entryFromPath
	movq	_ENOTDIR@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_6
## %bb.12:
	leaq	-64(%rbp), %rdi
	callq	__FAT_directory_isDirectory
	testl	%eax, %eax
	je	LBB0_6
## %bb.13:
	movq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	__FAT_directory_entryGetCluster
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	incq	%r13
	jmp	LBB0_14
LBB0_10:
	movl	(%r12), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
LBB0_14:
	movl	-56(%rbp), %edi
	movq	_NAME_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	decq	%rdx
	movq	%r13, %rsi
	callq	_strncpy
	movq	-64(%rbp), %rdi
	movq	_DIR_ENTRY_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	-64(%rbp), %rax
	movq	_DIR_ENTRY_cTime_ms@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	$0, (%rax,%rcx)
	movq	-64(%rbp), %r13
	movq	_DIR_ENTRY_cTime@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	__FAT_filetime_getTimeFromRTC
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_u16_to_u8array
	movq	-64(%rbp), %r13
	movq	_DIR_ENTRY_cDate@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	__FAT_filetime_getDateFromRTC
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_u16_to_u8array
	movq	-64(%rbp), %r13
	movq	_DIR_ENTRY_mTime@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	__FAT_filetime_getTimeFromRTC
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_u16_to_u8array
	movq	-64(%rbp), %r13
	movq	_DIR_ENTRY_mDate@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	__FAT_filetime_getDateFromRTC
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_u16_to_u8array
	movq	-64(%rbp), %r13
	movq	_DIR_ENTRY_aDate@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	__FAT_filetime_getDateFromRTC
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_u16_to_u8array
	movq	_ATTRIB_DIR@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	-64(%rbp), %rcx
	movq	_DIR_ENTRY_attributes@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movb	%al, (%rcx,%rdx)
	movq	_CLUSTER_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	__FAT_fat_linkFreeClusterCleared
	movl	%eax, %r13d
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	__FAT_fat_isValidCluster
	movq	_ENOSPC@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_6
## %bb.15:
	movq	-64(%rbp), %rdi
	movq	_DIR_ENTRY_cluster@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edx
	callq	_u16_to_u8array
	movq	-64(%rbp), %rdi
	movq	_DIR_ENTRY_clusterHigh@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edx
	sarl	$16, %edx
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	callq	_u16_to_u8array
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	__FAT_directory_addEntry
	testl	%eax, %eax
	je	LBB0_6
## %bb.16:
	movq	_DIR_ENTRY_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, -72(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	$11, %edx
	callq	_memset
	movq	_DIR_ENTRY_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	$46, (%rbx,%rax)
	movq	_ATTRIB_DIR@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_DIR_ENTRY_attributes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	%al, (%rbx,%rcx)
	movq	_DIR_ENTRY_cluster@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_u16_to_u8array
	movq	_DIR_ENTRY_clusterHigh@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_u16_to_u8array
	movl	12(%r12), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	__FAT_fat_clusterToSector
	movq	_DIR_ENTRY_DATA_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	__FAT_cache_eraseWritePartialSector
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	cmpl	4(%r12), %ebx
	jne	LBB0_18
## %bb.17:
	movq	_FAT16_ROOT_DIR_CLUSTER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_18:
	movq	_DIR_ENTRY_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movb	$46, 1(%rax,%rdi)
	movq	_DIR_ENTRY_cluster@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_u16_to_u8array
	movq	_DIR_ENTRY_clusterHigh@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sarl	$16, %ebx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_u16_to_u8array
	movl	12(%r12), %ebx
	movq	%r12, %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	__FAT_fat_clusterToSector
	movq	_DIR_ENTRY_DATA_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	movl	%ecx, %r8d
	callq	__FAT_cache_writePartialSector
	movl	12(%r12), %edi
	callq	__FAT_cache_flush
	movl	%eax, %ebx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	__FAT_unlock
	testl	%ebx, %ebx
	jne	LBB0_21
## %bb.19:
	movq	_EIO@GOTPCREL(%rip), %rbx
	jmp	LBB0_20
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DIR_ENTRY_DATA_SIZE,4,2        ## @DIR_ENTRY_DATA_SIZE
	.comm	_ENODEV,8,3                     ## @ENODEV
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_EEXIST,8,3                     ## @EEXIST
	.comm	_EROFS,8,3                      ## @EROFS
	.comm	_DIR_SEPARATOR,4,2              ## @DIR_SEPARATOR
	.comm	_ENOTDIR,8,3                    ## @ENOTDIR
	.comm	_NAME_MAX,8,3                   ## @NAME_MAX
	.comm	_DIR_ENTRY_cTime_ms,8,3         ## @DIR_ENTRY_cTime_ms
	.comm	_DIR_ENTRY_cTime,4,2            ## @DIR_ENTRY_cTime
	.comm	_DIR_ENTRY_cDate,4,2            ## @DIR_ENTRY_cDate
	.comm	_DIR_ENTRY_mTime,4,2            ## @DIR_ENTRY_mTime
	.comm	_DIR_ENTRY_mDate,4,2            ## @DIR_ENTRY_mDate
	.comm	_DIR_ENTRY_aDate,4,2            ## @DIR_ENTRY_aDate
	.comm	_ATTRIB_DIR,8,3                 ## @ATTRIB_DIR
	.comm	_DIR_ENTRY_attributes,8,3       ## @DIR_ENTRY_attributes
	.comm	_CLUSTER_FREE,4,2               ## @CLUSTER_FREE
	.comm	_ENOSPC,8,3                     ## @ENOSPC
	.comm	_DIR_ENTRY_cluster,4,2          ## @DIR_ENTRY_cluster
	.comm	_DIR_ENTRY_clusterHigh,4,2      ## @DIR_ENTRY_clusterHigh
	.comm	_DIR_ENTRY_name,8,3             ## @DIR_ENTRY_name
	.comm	_FAT16_ROOT_DIR_CLUSTER,4,2     ## @FAT16_ROOT_DIR_CLUSTER
	.comm	_EIO,8,3                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_mkdir_r                   ; -- Begin function _FAT_mkdir_r
	.p2align	2
__FAT_mkdir_r:                          ; @_FAT_mkdir_r
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x20, x1
	mov	x19, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x27, _DIR_ENTRY_DATA_SIZE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _DIR_ENTRY_DATA_SIZE@GOTPAGEOFF]
	ldr	w8, [x27]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	x0, x1
	bl	__FAT_partition_getPartitionFromPath
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x0, x20
	mov	w1, #58
	bl	_strchr
	cmp	x0, #0
	csinc	x24, x20, x0, eq
	mov	x0, x24
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.2:
Lloh7:
	adrp	x21, _EINVAL@GOTPAGE
Lloh8:
	ldr	x21, [x21, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
Lloh9:
	adrp	x21, _ENODEV@GOTPAGE
Lloh10:
	ldr	x21, [x21, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	add	x20, x22, #8
	mov	x0, x20
	bl	__FAT_lock
	sub	x1, x29, #104
	mov	x0, x22
	mov	x2, x24
	mov	x3, #0
	bl	__FAT_directory_entryFromPath
	cbz	w0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x21, _EEXIST@GOTPAGE
Lloh12:
	ldr	x21, [x21, _EEXIST@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_12
; %bb.7:
Lloh13:
	adrp	x21, _EROFS@GOTPAGE
Lloh14:
	ldr	x21, [x21, _EROFS@GOTPAGEOFF]
LBB0_8:
	mov	x0, x20
	bl	__FAT_unlock
LBB0_9:
	ldr	x8, [x21]
	str	x8, [x19]
	mov	w0, #-1
LBB0_10:
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.11:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh18:
	adrp	x8, _DIR_SEPARATOR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DIR_SEPARATOR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_strrchr
	cbz	x0, LBB0_17
; %bb.13:
	mov	x25, x0
	sub	x1, x29, #104
	mov	x0, x22
	mov	x2, x24
	mov	x3, x25
	bl	__FAT_directory_entryFromPath
	cbz	w0, LBB0_16
; %bb.14:
	sub	x0, x29, #104
	bl	__FAT_directory_isDirectory
	cbz	w0, LBB0_16
; %bb.15:
	ldur	x1, [x29, #-104]
	mov	x0, x22
	bl	__FAT_directory_entryGetCluster
	stur	w0, [x29, #-108]                ; 4-byte Folded Spill
	add	x24, x25, #1
	b	LBB0_18
LBB0_16:
Lloh21:
	adrp	x21, _ENOTDIR@GOTPAGE
Lloh22:
	ldr	x21, [x21, _ENOTDIR@GOTPAGEOFF]
	b	LBB0_8
LBB0_17:
	ldr	w8, [x22]
	stur	w8, [x29, #-108]                ; 4-byte Folded Spill
LBB0_18:
	ldur	w0, [x29, #-96]
Lloh23:
	adrp	x8, _NAME_MAX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NAME_MAX@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	sub	x2, x8, #1
	mov	x1, x24
	bl	_strncpy
	ldur	x0, [x29, #-104]
	ldr	w2, [x27]
	mov	w1, #0
	bl	_memset
	ldur	x8, [x29, #-104]
Lloh26:
	adrp	x9, _DIR_ENTRY_cTime_ms@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DIR_ENTRY_cTime_ms@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	strb	wzr, [x8, x9]
	ldur	x24, [x29, #-104]
Lloh29:
	adrp	x8, _DIR_ENTRY_cTime@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DIR_ENTRY_cTime@GOTPAGEOFF]
Lloh31:
	ldr	w25, [x8]
	bl	__FAT_filetime_getTimeFromRTC
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_u16_to_u8array
	ldur	x24, [x29, #-104]
Lloh32:
	adrp	x8, _DIR_ENTRY_cDate@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DIR_ENTRY_cDate@GOTPAGEOFF]
Lloh34:
	ldr	w25, [x8]
	bl	__FAT_filetime_getDateFromRTC
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_u16_to_u8array
	ldur	x24, [x29, #-104]
Lloh35:
	adrp	x8, _DIR_ENTRY_mTime@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DIR_ENTRY_mTime@GOTPAGEOFF]
Lloh37:
	ldr	w25, [x8]
	bl	__FAT_filetime_getTimeFromRTC
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_u16_to_u8array
	ldur	x24, [x29, #-104]
Lloh38:
	adrp	x8, _DIR_ENTRY_mDate@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DIR_ENTRY_mDate@GOTPAGEOFF]
Lloh40:
	ldr	w25, [x8]
	bl	__FAT_filetime_getDateFromRTC
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_u16_to_u8array
	ldur	x24, [x29, #-104]
Lloh41:
	adrp	x8, _DIR_ENTRY_aDate@GOTPAGE
Lloh42:
	ldr	x8, [x8, _DIR_ENTRY_aDate@GOTPAGEOFF]
Lloh43:
	ldr	w25, [x8]
	bl	__FAT_filetime_getDateFromRTC
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_u16_to_u8array
Lloh44:
	adrp	x8, _ATTRIB_DIR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ATTRIB_DIR@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	ldur	x9, [x29, #-104]
Lloh47:
	adrp	x23, _DIR_ENTRY_attributes@GOTPAGE
Lloh48:
	ldr	x23, [x23, _DIR_ENTRY_attributes@GOTPAGEOFF]
	ldr	x10, [x23]
	strb	w8, [x9, x10]
Lloh49:
	adrp	x8, _CLUSTER_FREE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _CLUSTER_FREE@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x22
	bl	__FAT_fat_linkFreeClusterCleared
	mov	x24, x0
	mov	x0, x22
	mov	x1, x24
	bl	__FAT_fat_isValidCluster
	cbz	w0, LBB0_22
; %bb.19:
	ldur	x0, [x29, #-104]
Lloh52:
	adrp	x8, _DIR_ENTRY_cluster@GOTPAGE
Lloh53:
	ldr	x8, [x8, _DIR_ENTRY_cluster@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x2, x24
	bl	_u16_to_u8array
	ldur	x0, [x29, #-104]
Lloh55:
	adrp	x8, _DIR_ENTRY_clusterHigh@GOTPAGE
Lloh56:
	ldr	x8, [x8, _DIR_ENTRY_clusterHigh@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	asr	w25, w24, #16
	mov	x2, x25
	bl	_u16_to_u8array
	sub	x1, x29, #104
	mov	x0, x22
	ldur	w28, [x29, #-108]               ; 4-byte Folded Reload
	mov	x2, x28
	bl	__FAT_directory_addEntry
	cbz	w0, LBB0_22
; %bb.20:
	ldr	w2, [x27]
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	mov	x0, x21
	mov	w1, #32
	mov	w2, #11
	bl	_memset
Lloh58:
	adrp	x8, _DIR_ENTRY_name@GOTPAGE
Lloh59:
	ldr	x8, [x8, _DIR_ENTRY_name@GOTPAGEOFF]
Lloh60:
	ldr	x8, [x8]
	mov	w9, #46
	strb	w9, [x21, x8]
Lloh61:
	adrp	x8, _ATTRIB_DIR@GOTPAGE
Lloh62:
	ldr	x8, [x8, _ATTRIB_DIR@GOTPAGEOFF]
Lloh63:
	ldr	x8, [x8]
	ldr	x9, [x23]
	strb	w8, [x21, x9]
Lloh64:
	adrp	x8, _DIR_ENTRY_cluster@GOTPAGE
Lloh65:
	ldr	x8, [x8, _DIR_ENTRY_cluster@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x24
	bl	_u16_to_u8array
Lloh67:
	adrp	x8, _DIR_ENTRY_clusterHigh@GOTPAGE
Lloh68:
	ldr	x8, [x8, _DIR_ENTRY_clusterHigh@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x25
	bl	_u16_to_u8array
	ldr	w25, [x22, #12]
	mov	x0, x22
	mov	x1, x24
	bl	__FAT_fat_clusterToSector
	mov	x2, x0
	ldr	w4, [x27]
	mov	x0, x25
	mov	x1, x21
	mov	w3, #0
	bl	__FAT_cache_eraseWritePartialSector
	ldr	w8, [x22, #4]
Lloh70:
	adrp	x9, _FAT16_ROOT_DIR_CLUSTER@GOTPAGE
Lloh71:
	ldr	x9, [x9, _FAT16_ROOT_DIR_CLUSTER@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
	cmp	w28, w8
	csel	w23, w9, w28, eq
Lloh73:
	adrp	x8, _DIR_ENTRY_name@GOTPAGE
Lloh74:
	ldr	x8, [x8, _DIR_ENTRY_name@GOTPAGEOFF]
Lloh75:
	ldr	x8, [x8]
	add	x8, x8, x21
	mov	w9, #46
	strb	w9, [x8, #1]
Lloh76:
	adrp	x8, _DIR_ENTRY_cluster@GOTPAGE
Lloh77:
	ldr	x8, [x8, _DIR_ENTRY_cluster@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x23
	bl	_u16_to_u8array
Lloh79:
	adrp	x8, _DIR_ENTRY_clusterHigh@GOTPAGE
Lloh80:
	ldr	x8, [x8, _DIR_ENTRY_clusterHigh@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
	asr	w2, w23, #16
	mov	x0, x21
	bl	_u16_to_u8array
	ldr	w23, [x22, #12]
	mov	x0, x22
	mov	x1, x24
	bl	__FAT_fat_clusterToSector
	mov	x2, x0
	ldr	w3, [x27]
	mov	x0, x23
	mov	x1, x21
	mov	x4, x3
	bl	__FAT_cache_writePartialSector
	ldr	w0, [x22, #12]
	bl	__FAT_cache_flush
	mov	x21, x0
	mov	x0, x20
	bl	__FAT_unlock
	mov	w0, #0
	cbnz	w21, LBB0_10
; %bb.21:
Lloh82:
	adrp	x21, _EIO@GOTPAGE
Lloh83:
	ldr	x21, [x21, _EIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_22:
Lloh84:
	adrp	x21, _ENOSPC@GOTPAGE
Lloh85:
	ldr	x21, [x21, _ENOSPC@GOTPAGEOFF]
	b	LBB0_8
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh84, Lloh85
	.cfi_endproc
                                        ; -- End function
	.comm	_DIR_ENTRY_DATA_SIZE,4,2        ; @DIR_ENTRY_DATA_SIZE
	.comm	_ENODEV,8,3                     ; @ENODEV
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_EEXIST,8,3                     ; @EEXIST
	.comm	_EROFS,8,3                      ; @EROFS
	.comm	_DIR_SEPARATOR,4,2              ; @DIR_SEPARATOR
	.comm	_ENOTDIR,8,3                    ; @ENOTDIR
	.comm	_NAME_MAX,8,3                   ; @NAME_MAX
	.comm	_DIR_ENTRY_cTime_ms,8,3         ; @DIR_ENTRY_cTime_ms
	.comm	_DIR_ENTRY_cTime,4,2            ; @DIR_ENTRY_cTime
	.comm	_DIR_ENTRY_cDate,4,2            ; @DIR_ENTRY_cDate
	.comm	_DIR_ENTRY_mTime,4,2            ; @DIR_ENTRY_mTime
	.comm	_DIR_ENTRY_mDate,4,2            ; @DIR_ENTRY_mDate
	.comm	_DIR_ENTRY_aDate,4,2            ; @DIR_ENTRY_aDate
	.comm	_ATTRIB_DIR,8,3                 ; @ATTRIB_DIR
	.comm	_DIR_ENTRY_attributes,8,3       ; @DIR_ENTRY_attributes
	.comm	_CLUSTER_FREE,4,2               ; @CLUSTER_FREE
	.comm	_ENOSPC,8,3                     ; @ENOSPC
	.comm	_DIR_ENTRY_cluster,4,2          ; @DIR_ENTRY_cluster
	.comm	_DIR_ENTRY_clusterHigh,4,2      ; @DIR_ENTRY_clusterHigh
	.comm	_DIR_ENTRY_name,8,3             ; @DIR_ENTRY_name
	.comm	_FAT16_ROOT_DIR_CLUSTER,4,2     ; @FAT16_ROOT_DIR_CLUSTER
	.comm	_EIO,8,3                        ; @EIO
.subsections_via_symbols
