	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_fsync_r                   ## -- Begin function _FAT_fsync_r
	.p2align	4, 0x90
__FAT_fsync_r:                          ## @_FAT_fsync_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	cmpl	$0, 8(%rsi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	(%rsi), %rdi
	callq	__FAT_lock
	movq	%rbx, %rdi
	callq	__FAT_syncToDisc
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, (%r14)
	movl	$-1, %r14d
	jmp	LBB0_5
LBB0_1:
	movq	_EBADF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	$-1, %r14d
	jmp	LBB0_6
LBB0_3:
	xorl	%r14d, %r14d
LBB0_5:
	movq	(%rbx), %rdi
	callq	__FAT_unlock
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBADF,4,2                      ## @EBADF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_fsync_r                   ; -- Begin function _FAT_fsync_r
	.p2align	2
__FAT_fsync_r:                          ; @_FAT_fsync_r
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	w8, [x1, #8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	x0, [x1]
	bl	__FAT_lock
	mov	x0, x19
	bl	__FAT_syncToDisc
	cbz	w0, LBB0_4
; %bb.2:
	str	w0, [x20]
	mov	w20, #-1
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EBADF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	w20, #-1
	b	LBB0_6
LBB0_4:
	mov	w20, #0
LBB0_5:
	ldr	x0, [x19]
	bl	__FAT_unlock
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBADF,4,2                      ; @EBADF
.subsections_via_symbols
