	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_syncToDisc                ## -- Begin function _FAT_syncToDisc
	.p2align	4, 0x90
__FAT_syncToDisc:                       ## @_FAT_syncToDisc
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_DIR_ENTRY_DATA_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	cmpl	$0, 56(%rbx)
	je	LBB0_6
## %bb.2:
	cmpq	$0, 48(%rbx)
	je	LBB0_5
## %bb.3:
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rdi
	movl	(%rdi), %r15d
	movl	32(%rbx), %esi
	callq	__FAT_fat_clusterToSector
	addq	24(%rbx), %rax
	movl	(%r12), %r8d
	movl	16(%rbx), %ecx
	imull	%r8d, %ecx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	__FAT_cache_readPartialSector
	movq	_DIR_ENTRY_fileSize@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%rbx), %edx
	movq	%r14, %rdi
	callq	_u32_to_u8array
	movq	_DIR_ENTRY_cluster@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_u16_to_u8array
	movq	_DIR_ENTRY_clusterHigh@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movswl	6(%rbx), %edx
	movq	%r14, %rdi
	callq	_u16_to_u8array
	movq	_DIR_ENTRY_mTime@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	__FAT_filetime_getTimeFromRTC
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_u16_to_u8array
	movq	_DIR_ENTRY_mDate@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	__FAT_filetime_getDateFromRTC
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_u16_to_u8array
	movq	_DIR_ENTRY_aDate@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	__FAT_filetime_getDateFromRTC
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_u16_to_u8array
	movq	_ATTRIB_ARCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DIR_ENTRY_attributes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	%eax, (%r14,%rcx,4)
	movq	8(%rbx), %rdi
	movl	(%rdi), %r15d
	movl	32(%rbx), %esi
	callq	__FAT_fat_clusterToSector
	addq	24(%rbx), %rax
	movl	(%r12), %r8d
	movl	16(%rbx), %ecx
	imull	%r8d, %ecx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	__FAT_cache_writePartialSector
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	__FAT_cache_flush
	testl	%eax, %eax
	je	LBB0_10
LBB0_5:
	movl	$0, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	_EBADF@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_11
## %bb.9:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DIR_ENTRY_DATA_SIZE,4,2        ## @DIR_ENTRY_DATA_SIZE
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_DIR_ENTRY_fileSize,4,2         ## @DIR_ENTRY_fileSize
	.comm	_DIR_ENTRY_cluster,4,2          ## @DIR_ENTRY_cluster
	.comm	_DIR_ENTRY_clusterHigh,4,2      ## @DIR_ENTRY_clusterHigh
	.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_ARCH,4,2                ## @ATTRIB_ARCH
	.comm	_DIR_ENTRY_attributes,8,3       ## @DIR_ENTRY_attributes
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_syncToDisc                ; -- Begin function _FAT_syncToDisc
	.p2align	2
__FAT_syncToDisc:                       ; @_FAT_syncToDisc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x22, _DIR_ENTRY_DATA_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DIR_ENTRY_DATA_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	x8, x8, #2
	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, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	x0, [x19, #8]
	ldr	w21, [x0]
	ldr	w1, [x19, #32]
	bl	__FAT_fat_clusterToSector
	ldr	x8, [x19, #24]
	add	x2, x8, x0
	ldr	w8, [x19, #16]
	ldr	w4, [x22]
	mul	w3, w4, w8
	mov	x0, x21
	mov	x1, x20
	bl	__FAT_cache_readPartialSector
Lloh7:
	adrp	x8, _DIR_ENTRY_fileSize@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DIR_ENTRY_fileSize@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x19, #40]
	mov	x0, x20
	bl	_u32_to_u8array
Lloh10:
	adrp	x8, _DIR_ENTRY_cluster@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DIR_ENTRY_cluster@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	x0, x20
	bl	_u16_to_u8array
Lloh13:
	adrp	x8, _DIR_ENTRY_clusterHigh@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DIR_ENTRY_clusterHigh@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldrsh	w2, [x19, #6]
	mov	x0, x20
	bl	_u16_to_u8array
Lloh16:
	adrp	x8, _DIR_ENTRY_mTime@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DIR_ENTRY_mTime@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	bl	__FAT_filetime_getTimeFromRTC
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_u16_to_u8array
Lloh19:
	adrp	x8, _DIR_ENTRY_mDate@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DIR_ENTRY_mDate@GOTPAGEOFF]
Lloh21:
	ldr	w21, [x8]
	bl	__FAT_filetime_getDateFromRTC
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_u16_to_u8array
Lloh22:
	adrp	x8, _DIR_ENTRY_aDate@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DIR_ENTRY_aDate@GOTPAGEOFF]
Lloh24:
	ldr	w21, [x8]
	bl	__FAT_filetime_getDateFromRTC
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_u16_to_u8array
Lloh25:
	adrp	x8, _ATTRIB_ARCH@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ATTRIB_ARCH@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _DIR_ENTRY_attributes@GOTPAGE
Lloh29:
	ldr	x9, [x9, _DIR_ENTRY_attributes@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w10, [x20, x9]
	orr	w8, w10, w8
	str	w8, [x20, x9]
	ldr	x0, [x19, #8]
	ldr	w21, [x0]
	ldr	w1, [x19, #32]
	bl	__FAT_fat_clusterToSector
	ldr	x8, [x19, #24]
	add	x2, x8, x0
	ldr	w8, [x19, #16]
	ldr	w4, [x22]
	mul	w3, w4, w8
	mov	x0, x21
	mov	x1, x20
	bl	__FAT_cache_writePartialSector
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	__FAT_cache_flush
	cbz	w0, LBB0_10
LBB0_5:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_8
LBB0_6:
Lloh31:
	adrp	x8, _EBADF@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.9:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh36:
	adrp	x8, _EIO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_DIR_ENTRY_DATA_SIZE,4,2        ; @DIR_ENTRY_DATA_SIZE
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_DIR_ENTRY_fileSize,4,2         ; @DIR_ENTRY_fileSize
	.comm	_DIR_ENTRY_cluster,4,2          ; @DIR_ENTRY_cluster
	.comm	_DIR_ENTRY_clusterHigh,4,2      ; @DIR_ENTRY_clusterHigh
	.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_ARCH,4,2                ; @ATTRIB_ARCH
	.comm	_DIR_ENTRY_attributes,8,3       ; @DIR_ENTRY_attributes
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
