	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsync_pgdata                   ## -- Begin function fsync_pgdata
	.p2align	4, 0x90
_fsync_pgdata:                          ## @fsync_pgdata
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_MINIMUM_VERSION_FOR_PG_WAL@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmovgq	%rax, %r8
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_lstat
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	-56(%rbp), %edi
	callq	_S_ISLNK
	movq	%rax, %rbx
	movq	_fsync_fname@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_walkdir
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:
	movl	(%r13), %esi
	movq	%r12, %rdi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rsi
	callq	_pg_log_error
	movq	_fsync_fname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
LBB0_4:
	xorl	%edx, %edx
	callq	_walkdir
LBB0_5:
	movq	_fsync_fname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_walkdir
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_MINIMUM_VERSION_FOR_PG_WAL,4,2 ## @MINIMUM_VERSION_FOR_PG_WAL
L_.str.1:                               ## @.str.1
	.asciz	"pg_xlog"

L_.str.2:                               ## @.str.2
	.asciz	"pg_wal"

L_.str.3:                               ## @.str.3
	.asciz	"%s/pg_tblspc"

L_.str.4:                               ## @.str.4
	.asciz	"could not stat file \"%s\": %m"

	.comm	_fsync_fname,4,2                ## @fsync_fname
	.comm	_pre_sync_fname,4,2             ## @pre_sync_fname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsync_pgdata                   ; -- Begin function fsync_pgdata
	.p2align	2
_fsync_pgdata:                          ; @fsync_pgdata
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MAXPGPATH@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x21, x9, x12
	mov	sp, x21
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x19, x9, x12
	mov	sp, x19
Lloh9:
	adrp	x9, _MINIMUM_VERSION_FOR_PG_WAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MINIMUM_VERSION_FOR_PG_WAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, l_.str.2@PAGE
Lloh13:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh14:
	adrp	x11, l_.str.1@PAGE
Lloh15:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	w9, w1
	csel	x9, x11, x10, gt
	str	x9, [sp, #-16]!
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x8
	mov	x3, x20
	bl	_snprintf
	add	sp, sp, #16
	ldr	w1, [x22]
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_snprintf
	sub	x1, x29, #64
	mov	x0, x21
	bl	_lstat
Lloh20:
	adrp	x23, _fsync_fname@GOTPAGE
Lloh21:
	ldr	x23, [x23, _fsync_fname@GOTPAGEOFF]
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldur	w0, [x29, #-64]
	bl	_S_ISLNK
	mov	x22, x0
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #0
	bl	_walkdir
	cbz	x22, LBB0_5
; %bb.2:
	ldr	w1, [x23]
	mov	x0, x21
	b	LBB0_4
LBB0_3:
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x21
	bl	_pg_log_error
	ldr	w1, [x23]
	mov	x0, x20
LBB0_4:
	mov	w2, #0
	bl	_walkdir
LBB0_5:
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #1
	bl	_walkdir
	ldur	x8, [x29, #-56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_MINIMUM_VERSION_FOR_PG_WAL,4,2 ; @MINIMUM_VERSION_FOR_PG_WAL
l_.str.1:                               ; @.str.1
	.asciz	"pg_xlog"

l_.str.2:                               ; @.str.2
	.asciz	"pg_wal"

l_.str.3:                               ; @.str.3
	.asciz	"%s/pg_tblspc"

l_.str.4:                               ; @.str.4
	.asciz	"could not stat file \"%s\": %m"

	.comm	_fsync_fname,4,2                ; @fsync_fname
	.comm	_pre_sync_fname,4,2             ; @pre_sync_fname
.subsections_via_symbols
