	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_durable_link_or_rename         ## -- Begin function durable_link_or_rename
	.p2align	4, 0x90
_durable_link_or_rename:                ## @durable_link_or_rename
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	callq	_fsync_fname_ext
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_rename
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	callq	_fsync_fname_ext
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_fsync_parent_path
	negq	%rax
	sbbl	%ebx, %ebx
	movl	%ebx, %r14d
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not rename file \"%s\" to \"%s\": %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_durable_link_or_rename         ; -- Begin function durable_link_or_rename
	.p2align	2
_durable_link_or_rename:                ; @durable_link_or_rename
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w1, #0
	mov	w2, #0
	mov	x3, x19
	bl	_fsync_fname_ext
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
	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_3:
	mov	x0, x21
	mov	x1, x20
	bl	_rename
	tbnz	x0, #63, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	mov	x3, x19
	bl	_fsync_fname_ext
	cbnz	x0, LBB0_1
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_fsync_parent_path
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_2
LBB0_6:
	bl	_errcode_for_file_access
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not rename file \"%s\" to \"%s\": %m"

.subsections_via_symbols
