	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copydir                        ## -- Begin function copydir
	.p2align	4, 0x90
_copydir:                               ## @copydir
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -92(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	%ebx, %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_MakePGDirectory
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_AllocateDir
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_ReadDir
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %r12
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_ReadDir
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	(%r15), %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %r8
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %esi
	leaq	L_.str.3(%rip), %r13
	movq	%r13, %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	callq	_snprintf
	movq	(%r15), %r8
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r13, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_snprintf
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	callq	_lstat
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.4(%rip), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-56(%rbp), %ebx
	movl	%ebx, %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -92(%rbp)                   ## 4-byte Folded Reload
	movq	-104(%rbp), %r14                ## 8-byte Reload
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_copydir
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
	callq	_S_ISREG
	testq	%rax, %rax
	movq	-104(%rbp), %r14                ## 8-byte Reload
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_copy_file
	jmp	LBB0_13
LBB0_14:
	movq	%r14, %rdi
	callq	_FreeDir
	movq	_enableFsync@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_25
## %bb.15:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_AllocateDir
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_ReadDir
	testq	%rax, %rax
	je	LBB0_24
## %bb.16:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %r14
	leaq	L_.str.2(%rip), %r12
	movq	_ERROR@GOTPCREL(%rip), %r13
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_ReadDir
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_24
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%rbx), %r8
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	leaq	L_.str.3(%rip), %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_snprintf
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rsi
	callq	_lstat
	testq	%rax, %rax
	jns	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	(%r13), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.4(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	-56(%rbp), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_fsync_fname
	jmp	LBB0_23
LBB0_24:
	movq	%r15, %rdi
	callq	_FreeDir
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_fsync_fname
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not create directory \"%s\": %m"

L_.str.1:                               ## @.str.1
	.asciz	"."

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

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

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

	.comm	_enableFsync,4,2                ## @enableFsync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copydir                        ; -- Begin function copydir
	.p2align	2
_copydir:                               ; @copydir
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	stur	w2, [x29, #-100]                ; 4-byte Folded Spill
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w20, w8, #1
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x12, x9, #0x1fffffff0
	sub	x24, x8, x12
	mov	sp, x24
	mov	x9, x20
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x12
	mov	sp, x21
	mov	x0, x1
	bl	_MakePGDirectory
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w22, [x8]
	bl	_errcode_for_file_access
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_2:
	mov	x0, x23
	bl	_AllocateDir
	mov	x25, x0
	mov	x1, x23
	bl	_ReadDir
	cbz	x0, LBB0_14
; %bb.3:
	mov	x22, x0
Lloh14:
	adrp	x26, l_.str.1@PAGE
Lloh15:
	add	x26, x26, l_.str.1@PAGEOFF
Lloh16:
	adrp	x27, l_.str.2@PAGE
Lloh17:
	add	x27, x27, l_.str.2@PAGEOFF
Lloh18:
	adrp	x28, l_.str.3@PAGE
Lloh19:
	add	x28, x28, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	mov	x1, x23
	bl	_ReadDir
	mov	x22, x0
	cbz	x0, LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	ldr	x0, [x22]
	mov	x1, x26
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x22]
	mov	x1, x27
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x4, [x22]
	mov	x0, x24
	mov	x1, x20
	mov	x2, x28
	mov	x3, x23
	bl	_snprintf
	ldr	x4, [x22]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x28
	mov	x3, x19
	bl	_snprintf
	sub	x1, x29, #96
	mov	x0, x24
	bl	_lstat
	tbz	x0, #63, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh20:
	adrp	x8, _ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w22, [x8]
	bl	_errcode_for_file_access
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x24
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldur	w22, [x29, #-96]
	mov	x0, x22
	bl	_S_ISDIR
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cbz	w8, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	mov	x1, x21
	mov	w2, #1
	bl	_copydir
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_S_ISREG
	cbz	x0, LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	mov	x1, x21
	bl	_copy_file
	b	LBB0_4
LBB0_14:
	mov	x0, x25
	bl	_FreeDir
Lloh25:
	adrp	x8, _enableFsync@GOTPAGE
Lloh26:
	ldr	x8, [x8, _enableFsync@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cbz	w8, LBB0_25
; %bb.15:
	mov	x0, x19
	bl	_AllocateDir
	mov	x22, x0
	mov	x1, x19
	bl	_ReadDir
Lloh28:
	adrp	x28, _ERROR@GOTPAGE
Lloh29:
	ldr	x28, [x28, _ERROR@GOTPAGEOFF]
	cbz	x0, LBB0_24
; %bb.16:
	mov	x27, x0
Lloh30:
	adrp	x23, l_.str.1@PAGE
Lloh31:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh32:
	adrp	x24, l_.str.2@PAGE
Lloh33:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh34:
	adrp	x25, l_.str.3@PAGE
Lloh35:
	add	x25, x25, l_.str.3@PAGEOFF
Lloh36:
	adrp	x26, l_.str.4@PAGE
Lloh37:
	add	x26, x26, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_ReadDir
	mov	x27, x0
	cbz	x0, LBB0_24
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x27]
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [x27]
	mov	x1, x24
	bl	_strcmp
	cbz	x0, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x4, [x27]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x25
	mov	x3, x19
	bl	_snprintf
	sub	x1, x29, #96
	mov	x0, x21
	bl	_lstat
	tbz	x0, #63, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w27, [x28]
	bl	_errcode_for_file_access
	mov	x0, x26
	mov	x1, x21
	bl	_errmsg
	mov	x1, x0
	mov	x0, x27
	bl	_ereport
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=1
	ldur	w0, [x29, #-96]
	bl	_S_ISREG
	cbz	x0, LBB0_17
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x21
	mov	w1, #0
	bl	_fsync_fname
	b	LBB0_17
LBB0_24:
	mov	x0, x22
	bl	_FreeDir
	mov	x0, x19
	mov	w1, #1
	bl	_fsync_fname
LBB0_25:
	ldur	x8, [x29, #-88]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not create directory \"%s\": %m"

l_.str.1:                               ; @.str.1
	.asciz	"."

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

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

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

	.comm	_enableFsync,4,2                ; @enableFsync
.subsections_via_symbols
