	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_open_r                    ## -- Begin function _FAT_open_r
	.p2align	4, 0x90
__FAT_open_r:                           ## @_FAT_open_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	__FAT_partition_getPartitionFromPath
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	$58, %esi
	callq	_strchr
	leaq	1(%rax), %r15
	testq	%rax, %rax
	cmoveq	%r13, %r15
	movq	%r15, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movl	$-1, %ebx
LBB0_49:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %r13
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	andl	$3, %eax
	movq	_O_RDONLY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.11:
	movq	$1, (%rbx)
	leaq	4(%rbx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	$0, 8(%rbx)
	jmp	LBB0_12
LBB0_6:
	movq	_O_WRONLY@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpl	(%rdx), %eax
	je	LBB0_9
## %bb.7:
	movq	_O_RDWR@GOTPCREL(%rip), %rdx
	movl	$1, %ecx
	cmpl	(%rdx), %eax
	jne	LBB0_8
LBB0_9:
	movl	%ecx, (%rbx)
	movq	$1, 4(%rbx)
	cmpq	$0, 40(%r13)
	jne	LBB0_21
## %bb.10:
	leaq	4(%rbx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
LBB0_12:
	addq	$16, %r14
	movq	%r14, %rdi
	callq	__FAT_lock
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	__FAT_directory_entryFromPath
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, (%rcx)
	je	LBB0_31
## %bb.13:
	movq	_O_EXCL@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_16
## %bb.14:
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	__FAT_unlock
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_31:
	testl	%eax, %eax
	jne	LBB0_17
## %bb.32:
	movl	$0, 12(%rbx)
	movq	%r14, %rdi
	callq	__FAT_unlock
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_16:
	testl	%eax, %eax
	je	LBB0_19
LBB0_17:
	leaq	-72(%rbp), %rdi
	callq	__FAT_directory_isDirectory
	testq	%rax, %rax
	je	LBB0_33
## %bb.18:
	movq	%r14, %rdi
	callq	__FAT_unlock
	movq	_EISDIR@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movq	_EACCES@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_33:
	movl	$0, 12(%rbx)
LBB0_34:
	movq	-64(%rbp), %rdi
	movq	_DIR_ENTRY_fileSize@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_u8array_to_u32
	movl	%eax, 16(%rbx)
	cmpl	$0, 4(%rbx)
	je	LBB0_36
## %bb.35:
	leaq	-72(%rbp), %rdi
	callq	__FAT_directory_isWritable
	testl	%eax, %eax
	je	LBB0_20
LBB0_36:
	movq	%r13, 104(%rbx)
	movq	-64(%rbp), %rsi
	movq	%r13, %r15
	movq	%r13, %rdi
	callq	__FAT_directory_entryGetCluster
	movq	%rax, 24(%rbx)
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, (%rcx)
	je	LBB0_40
## %bb.37:
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	cmpl	$0, (%rcx)
	je	LBB0_40
## %bb.38:
	testq	%rax, %rax
	je	LBB0_40
## %bb.39:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	__FAT_fat_clearLinks
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	_CLUSTER_FREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	$1, 12(%rbx)
LBB0_40:
	movl	-68(%rbp), %ecx
	movl	%ecx, 100(%rbx)
	movl	-72(%rbp), %ecx
	movl	%ecx, 96(%rbx)
	movq	$0, 88(%rbx)
	movq	%rax, 56(%rbx)
	movq	$0, 64(%rbx)
	movq	_O_APPEND@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_44
## %bb.41:
	movl	$1, 8(%rbx)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	__FAT_fat_lastCluster
	movq	%rax, 72(%rbx)
	movl	16(%rbx), %esi
	movl	%esi, %eax
	cltd
	idivl	(%r15)
	movl	%edx, %ecx
	movl	4(%r15), %edi
	movl	%edx, %eax
	cltd
	idivl	%edi
	movl	%eax, 80(%rbx)
	movl	%esi, %eax
	cltd
	idivl	%edi
	movl	%edx, 84(%rbx)
	testl	%esi, %esi
	jle	LBB0_45
## %bb.42:
	testl	%ecx, %ecx
	jne	LBB0_45
## %bb.43:
	movl	8(%r15), %eax
	movl	%eax, 80(%rbx)
	movl	$0, 84(%rbx)
	jmp	LBB0_45
LBB0_19:
	movl	$0, 12(%rbx)
	cmpq	$0, 40(%r13)
	je	LBB0_22
LBB0_20:
	movq	%r14, %rdi
	callq	__FAT_unlock
LBB0_21:
	movq	_EROFS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_44:
	leaq	56(%rbx), %rax
	movl	$0, 8(%rbx)
	movups	(%rax), %xmm0
	movups	%xmm0, 72(%rbx)
LBB0_45:
	movl	$1, 32(%rbx)
	incl	12(%r15)
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_47
## %bb.46:
	movq	%rax, 48(%rbx)
	movq	%rbx, 40(%rax)
	jmp	LBB0_48
LBB0_47:
	movq	$0, 48(%rbx)
LBB0_48:
	movq	$0, 40(%rbx)
	movq	%rbx, 24(%r15)
	movq	%r14, %rdi
	callq	__FAT_unlock
	jmp	LBB0_49
LBB0_22:
	movq	_DIR_SEPARATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	movq	%rax, %r15
	movq	%rax, %rcx
	callq	__FAT_directory_entryFromPath
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	leaq	-72(%rbp), %rdi
	callq	__FAT_directory_isDirectory
	testq	%rax, %rax
	je	LBB0_26
## %bb.27:
	movq	-64(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	callq	__FAT_directory_entryGetCluster
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	incq	%r15
	jmp	LBB0_28
LBB0_26:
	movq	%r14, %rdi
	callq	__FAT_unlock
	movq	_ENOTDIR@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_23:
	movq	%r13, %rax
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	32(%r13), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
LBB0_28:
	movl	-56(%rbp), %edi
	movq	_NAME_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	decq	%rdx
	movq	%r15, %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), %r15
	movq	_DIR_ENTRY_cTime_ms@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%r15,%rax,8)
	movq	_DIR_ENTRY_cTime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	__FAT_filetime_getTimeFromRTC
	movq	%r15, %rdi
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_u16_to_u8array
	movq	-64(%rbp), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_DIR_ENTRY_cDate@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	__FAT_filetime_getDateFromRTC
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_u16_to_u8array
	leaq	-72(%rbp), %rsi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	__FAT_directory_addEntry
	testl	%eax, %eax
	je	LBB0_29
## %bb.30:
	movl	$1, 12(%rbx)
	jmp	LBB0_34
LBB0_29:
	movq	%r14, %rdi
	callq	__FAT_unlock
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,8,3                     ## @ENODEV
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_EACCES,8,3                     ## @EACCES
	.comm	_EROFS,8,3                      ## @EROFS
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_EXCL,4,2                     ## @O_EXCL
	.comm	_EEXIST,8,3                     ## @EEXIST
	.comm	_EISDIR,8,3                     ## @EISDIR
	.comm	_DIR_SEPARATOR,4,2              ## @DIR_SEPARATOR
	.comm	_ENOTDIR,8,3                    ## @ENOTDIR
	.comm	_NAME_MAX,8,3                   ## @NAME_MAX
	.comm	_DIR_ENTRY_DATA_SIZE,4,2        ## @DIR_ENTRY_DATA_SIZE
	.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	_ENOSPC,8,3                     ## @ENOSPC
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_DIR_ENTRY_fileSize,4,2         ## @DIR_ENTRY_fileSize
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_CLUSTER_FREE,8,3               ## @CLUSTER_FREE
	.comm	_O_APPEND,4,2                   ## @O_APPEND
	.comm	_EFBIG,8,3                      ## @EFBIG
	.comm	_O_LARGEFILE,4,2                ## @O_LARGEFILE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function _FAT_open_r
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	__FAT_open_r
	.p2align	2
__FAT_open_r:                           ; @_FAT_open_r
	.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	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x2
	bl	__FAT_partition_getPartitionFromPath
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x23
	mov	w1, #58
	bl	_strchr
	cmp	x0, #0
	csinc	x24, x23, x0, eq
	mov	x0, x24
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x8]
	str	x8, [x21]
	mov	w19, #-1
LBB0_5:
	mov	x0, x19
	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
LBB0_6:
	and	w8, w22, #0x3
Lloh4:
	adrp	x9, _O_RDONLY@GOTPAGE
Lloh5:
	ldr	x9, [x9, _O_RDONLY@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	add	x27, x19, #4
	str	d0, [x19]
	str	wzr, [x19, #8]
	b	LBB0_13
LBB0_8:
Lloh9:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:
	mov	w8, #0
	b	LBB0_12
LBB0_10:
Lloh12:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_25
; %bb.11:
	mov	w8, #1
LBB0_12:
	str	w8, [x19]
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	mov	x27, x19
	str	d0, [x27, #4]!
	ldr	x8, [x20, #40]
	cbnz	x8, LBB0_39
LBB0_13:
	add	x23, x20, #16
	mov	x0, x23
	bl	__FAT_lock
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x24
	mov	x3, #0
	bl	__FAT_directory_entryFromPath
Lloh17:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_21
; %bb.14:
Lloh20:
	adrp	x8, _O_EXCL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _O_EXCL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	and	w8, w8, w22
	cmp	w8, #0
	ccmp	w0, #0, #4, ne
	b.ne	LBB0_24
; %bb.15:
	cbnz	w0, LBB0_22
; %bb.16:
	str	wzr, [x19, #12]
	ldr	x8, [x20, #40]
	cbnz	x8, LBB0_38
; %bb.17:
Lloh23:
	adrp	x8, _DIR_SEPARATOR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DIR_SEPARATOR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_strrchr
	cbz	x0, LBB0_46
; %bb.18:
	mov	x26, x0
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x24
	mov	x3, x26
	bl	__FAT_directory_entryFromPath
	cbz	w0, LBB0_45
; %bb.19:
	add	x0, sp, #8
	bl	__FAT_directory_isDirectory
	cbz	x0, LBB0_45
; %bb.20:
	ldr	x1, [sp, #16]
	mov	x0, x20
	bl	__FAT_directory_entryGetCluster
	mov	x25, x0
	add	x24, x26, #1
	b	LBB0_47
LBB0_21:
	cbz	w0, LBB0_37
LBB0_22:
	add	x0, sp, #8
	bl	__FAT_directory_isDirectory
	cbz	x0, LBB0_26
; %bb.23:
	mov	x0, x23
	bl	__FAT_unlock
Lloh26:
	adrp	x8, _EISDIR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EISDIR@GOTPAGEOFF]
	b	LBB0_4
LBB0_24:
	mov	x0, x23
	bl	__FAT_unlock
Lloh28:
	adrp	x8, _EEXIST@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_4
LBB0_25:
Lloh30:
	adrp	x8, _EACCES@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_4
LBB0_26:
	str	wzr, [x19, #12]
LBB0_27:
	ldr	x0, [sp, #16]
Lloh32:
	adrp	x8, _DIR_ENTRY_fileSize@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DIR_ENTRY_fileSize@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_u8array_to_u32
	str	w0, [x19, #16]
	ldr	w8, [x27]
	cbz	w8, LBB0_29
; %bb.28:
	add	x0, sp, #8
	bl	__FAT_directory_isWritable
	cbz	w0, LBB0_38
LBB0_29:
	str	x20, [x19, #104]
	ldr	x1, [sp, #16]
	mov	x0, x20
	bl	__FAT_directory_entryGetCluster
	mov	x1, x0
	str	x0, [x19, #24]
Lloh35:
	adrp	x8, _O_TRUNC@GOTPAGE
Lloh36:
	ldr	x8, [x8, _O_TRUNC@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_33
; %bb.30:
	ldr	w8, [x27]
	cbz	w8, LBB0_33
; %bb.31:
	cbz	x1, LBB0_33
; %bb.32:
	mov	x0, x20
	bl	__FAT_fat_clearLinks
Lloh38:
	adrp	x8, _CLUSTER_FREE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _CLUSTER_FREE@GOTPAGEOFF]
Lloh40:
	ldr	x1, [x8]
	str	x1, [x19, #24]
	mov	w8, #1
	stur	x8, [x19, #12]
LBB0_33:
	ldr	d0, [sp, #8]
	mov	x8, x19
	str	x1, [x8, #56]!
	str	d0, [x8, #40]
	str	xzr, [x8, #32]
	str	xzr, [x8, #8]
Lloh41:
	adrp	x9, _O_APPEND@GOTPAGE
Lloh42:
	ldr	x9, [x9, _O_APPEND@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w22
	b.eq	LBB0_40
; %bb.34:
	mov	w8, #1
	str	w8, [x19, #8]
	mov	x0, x20
	bl	__FAT_fat_lastCluster
	str	x0, [x19, #72]
	ldr	w9, [x19, #16]
	ldp	w8, w10, [x20]
	sdiv	w11, w9, w8
	msub	w8, w11, w8, w9
	sdiv	w11, w8, w10
	sdiv	w12, w9, w10
	msub	w10, w12, w10, w9
	stp	w11, w10, [x19, #80]
	cmp	w9, #1
	b.lt	LBB0_41
; %bb.35:
	cbnz	w8, LBB0_41
; %bb.36:
	ldr	w8, [x20, #8]
	stp	w8, wzr, [x19, #80]
	b	LBB0_41
LBB0_37:
	str	wzr, [x19, #12]
	mov	x0, x23
	bl	__FAT_unlock
Lloh44:
	adrp	x8, _ENOENT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_4
LBB0_38:
	mov	x0, x23
	bl	__FAT_unlock
LBB0_39:
Lloh46:
	adrp	x8, _EROFS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EROFS@GOTPAGEOFF]
	b	LBB0_4
LBB0_40:
	str	wzr, [x19, #8]
	ldr	q0, [x8]
	stur	q0, [x19, #72]
LBB0_41:
	mov	w8, #1
	str	w8, [x19, #32]
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_43
; %bb.42:
	str	x8, [x19, #48]
	str	x19, [x8, #40]
	b	LBB0_44
LBB0_43:
	str	xzr, [x19, #48]
LBB0_44:
	str	xzr, [x19, #40]
	str	x19, [x20, #24]
	mov	x0, x23
	bl	__FAT_unlock
	b	LBB0_5
LBB0_45:
	mov	x0, x23
	bl	__FAT_unlock
Lloh48:
	adrp	x8, _ENOTDIR@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ENOTDIR@GOTPAGEOFF]
	b	LBB0_4
LBB0_46:
	ldr	x25, [x20, #32]
LBB0_47:
	ldr	w0, [sp, #24]
Lloh50:
	adrp	x8, _NAME_MAX@GOTPAGE
Lloh51:
	ldr	x8, [x8, _NAME_MAX@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	sub	x2, x8, #1
	mov	x1, x24
	bl	_strncpy
	ldr	x0, [sp, #16]
Lloh53:
	adrp	x8, _DIR_ENTRY_DATA_SIZE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _DIR_ENTRY_DATA_SIZE@GOTPAGEOFF]
Lloh55:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	ldr	x24, [sp, #16]
Lloh56:
	adrp	x8, _DIR_ENTRY_cTime_ms@GOTPAGE
Lloh57:
	ldr	x8, [x8, _DIR_ENTRY_cTime_ms@GOTPAGEOFF]
Lloh58:
	ldr	x8, [x8]
	str	xzr, [x24, x8, lsl #3]
Lloh59:
	adrp	x8, _DIR_ENTRY_cTime@GOTPAGE
Lloh60:
	ldr	x8, [x8, _DIR_ENTRY_cTime@GOTPAGEOFF]
Lloh61:
	ldr	w26, [x8]
	bl	__FAT_filetime_getTimeFromRTC
	mov	x2, x0
	mov	x0, x24
	mov	x1, x26
	bl	_u16_to_u8array
	ldr	x24, [sp, #16]
Lloh62:
	adrp	x8, _DIR_ENTRY_cDate@GOTPAGE
Lloh63:
	ldr	x8, [x8, _DIR_ENTRY_cDate@GOTPAGEOFF]
Lloh64:
	ldr	w26, [x8]
	bl	__FAT_filetime_getDateFromRTC
	mov	x2, x0
	mov	x0, x24
	mov	x1, x26
	bl	_u16_to_u8array
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x25
	bl	__FAT_directory_addEntry
	cbz	w0, LBB0_49
; %bb.48:
	mov	w8, #1
	str	w8, [x19, #12]
	b	LBB0_27
LBB0_49:
	mov	x0, x23
	bl	__FAT_unlock
Lloh65:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,8,3                     ; @ENODEV
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_EACCES,8,3                     ; @EACCES
	.comm	_EROFS,8,3                      ; @EROFS
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_EXCL,4,2                     ; @O_EXCL
	.comm	_EEXIST,8,3                     ; @EEXIST
	.comm	_EISDIR,8,3                     ; @EISDIR
	.comm	_DIR_SEPARATOR,4,2              ; @DIR_SEPARATOR
	.comm	_ENOTDIR,8,3                    ; @ENOTDIR
	.comm	_NAME_MAX,8,3                   ; @NAME_MAX
	.comm	_DIR_ENTRY_DATA_SIZE,4,2        ; @DIR_ENTRY_DATA_SIZE
	.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	_ENOSPC,8,3                     ; @ENOSPC
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_DIR_ENTRY_fileSize,4,2         ; @DIR_ENTRY_fileSize
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_CLUSTER_FREE,8,3               ; @CLUSTER_FREE
	.comm	_O_APPEND,4,2                   ; @O_APPEND
	.comm	_EFBIG,8,3                      ; @EFBIG
	.comm	_O_LARGEFILE,4,2                ; @O_LARGEFILE
.subsections_via_symbols
