	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_io_file_flush_to_disk      ## -- Begin function svn_io_file_flush_to_disk
	.p2align	4, 0x90
_svn_io_file_flush_to_disk:             ## @svn_io_file_flush_to_disk
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_apr_file_name_get
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_svn_error_wrap_apr
	jmp	LBB0_8
LBB0_2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_svn_io_file_flush
	movl	%eax, %edi
	callq	_SVN_ERR
	leaq	-28(%rbp), %rdi
	movq	%r15, %rsi
	callq	_apr_os_file_get
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-28(%rbp), %edi
	callq	_fsync
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_apr_get_os_error
	movl	%eax, %edi
	callq	_APR_STATUS_IS_EINTR
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:
	xorl	%eax, %eax
	callq	_apr_get_os_error
	movl	%eax, %edi
	callq	_APR_STATUS_IS_EINVAL
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	callq	_apr_get_os_error
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	-40(%rbp), %rdi
	movq	%r14, %rsi
	callq	_try_utf8_from_internal_style
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_svn_error_wrap_apr
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't get file name"

	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Can't flush file '%s' to disk"

	.comm	_F_FULLFSYNC,4,2                ## @F_FULLFSYNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_io_file_flush_to_disk      ; -- Begin function svn_io_file_flush_to_disk
	.p2align	2
_svn_io_file_flush_to_disk:             ; @svn_io_file_flush_to_disk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #16
	mov	x1, x20
	bl	_apr_file_name_get
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x21
	bl	_svn_error_wrap_apr
	b	LBB0_7
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_svn_io_file_flush
	bl	_SVN_ERR
	add	x0, sp, #28
	mov	x1, x20
	bl	_apr_os_file_get
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #28]
	bl	_fsync
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_apr_get_os_error
	bl	_APR_STATUS_IS_EINTR
	cbnz	x0, LBB0_3
; %bb.5:
	bl	_apr_get_os_error
	bl	_APR_STATUS_IS_EINVAL
	cbz	x0, LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	bl	_apr_get_os_error
	mov	x20, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x21, x0
	ldr	x0, [sp, #16]
	mov	x1, x19
	bl	_try_utf8_from_internal_style
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_svn_error_wrap_apr
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't get file name"

	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Can't flush file '%s' to disk"

	.comm	_F_FULLFSYNC,4,2                ; @F_FULLFSYNC
.subsections_via_symbols
