	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_templates_1
_copy_templates_1:                      ## @copy_templates_1
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	(%rsi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	8(%rdi), %edi
	movl	$1, %esi
	callq	_safe_create_dir
	movq	%r14, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_24
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strbuf_addch
	movq	%r13, %rdi
	movl	$47, %esi
	callq	_strbuf_addch
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_copy_templates_1
	movq	%rbx, %rdi
	callq	_closedir
	movq	%r14, %r12
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_readdir
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_24
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_strbuf_setlen
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_strbuf_setlen
	movq	(%rbx), %rsi
	cmpb	$46, (%rsi)
	je	LBB0_23
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %r14
	movq	%r15, %rdi
	callq	_strbuf_addstr
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_strbuf_addstr
	movl	8(%r15), %edi
	leaq	-96(%rbp), %rsi
	callq	_lstat
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	8(%r15), %esi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die_errno
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r13), %edi
	leaq	-48(%rbp), %rsi
	callq	_lstat
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	8(%r13), %esi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die_errno
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r13), %edi
	callq	_opendir
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	8(%r13), %esi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die_errno
	jmp	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r12, %r12
	movq	%r14, %r12
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_23
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	8(%r13), %esi
	movl	-44(%rbp), %edx
	leaq	-80(%rbp), %rdi
	callq	_strbuf_readlink
	testq	%rax, %rax
	jns	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	8(%r13), %esi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die_errno
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-72(%rbp), %edi
	movl	8(%r15), %esi
	callq	_symlink
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	-72(%rbp), %esi
	movl	8(%r15), %edx
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die_errno
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-80(%rbp), %rdi
	callq	_strbuf_release
	jmp	LBB0_23
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15), %edi
	movl	8(%r13), %esi
	movl	-48(%rbp), %edx
	callq	_copy_file
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	8(%r13), %esi
	movl	8(%r15), %edx
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die_errno
	jmp	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movl	8(%r13), %esi
	movl	%eax, %edi
	callq	_error
	jmp	LBB0_23
LBB0_24:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot stat '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"cannot stat template '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"cannot opendir '%s'"

	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
L_.str.3:                               ## @.str.3
	.asciz	"cannot readlink '%s'"

L_.str.4:                               ## @.str.4
	.asciz	"cannot symlink '%s' '%s'"

L_.str.5:                               ## @.str.5
	.asciz	"cannot copy '%s' to '%s'"

L_.str.6:                               ## @.str.6
	.asciz	"ignoring template %s"

	.no_dead_strip	_copy_templates_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_templates_1
_copy_templates_1:                      ; @copy_templates_1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
	ldr	x23, [x1]
	ldr	w0, [x0, #8]
	mov	w1, #1
	bl	_safe_create_dir
	mov	x0, x19
	bl	_readdir
	cbz	x0, LBB0_24
; %bb.1:
	mov	x26, x0
Lloh0:
	adrp	x24, l_.str.1@PAGE
Lloh1:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh2:
	adrp	x27, _errno@GOTPAGE
Lloh3:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x28, _ENOENT@GOTPAGE
Lloh5:
	ldr	x28, [x28, _ENOENT@GOTPAGEOFF]
Lloh6:
	adrp	x25, l_.str@PAGE
Lloh7:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	w1, #47
	bl	_strbuf_addch
	mov	x0, x20
	mov	w1, #47
	bl	_strbuf_addch
	mov	x0, x21
	mov	x1, x20
	mov	x2, x26
	bl	_copy_templates_1
	mov	x0, x26
	bl	_closedir
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_readdir
	mov	x26, x0
	cbz	x0, LBB0_24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_strbuf_setlen
	mov	x0, x20
	mov	x1, x23
	bl	_strbuf_setlen
	ldr	x1, [x26]
	ldrb	w8, [x1]
	cmp	w8, #46
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_strbuf_addstr
	ldr	x1, [x26]
	mov	x0, x20
	bl	_strbuf_addstr
	ldr	w0, [x21, #8]
	add	x1, sp, #40
	bl	_lstat
	mov	x26, x0
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	__
	ldr	w1, [x21, #8]
	bl	_die_errno
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #8]
	add	x1, sp, #32
	bl	_lstat
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	__
	ldr	w1, [x20, #8]
	bl	_die_errno
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #32]
	bl	_S_ISDIR
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #8]
	bl	_opendir
	mov	x26, x0
	cbnz	x0, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	ldr	w1, [x20, #8]
	bl	_die_errno
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x26, LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #32]
	bl	_S_ISLNK
	cbz	x0, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh10:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh12:
	ldr	q0, [x8]
	str	q0, [sp, #16]
	ldr	w1, [x20, #8]
	ldr	w2, [sp, #36]
	add	x0, sp, #16
	bl	_strbuf_readlink
	tbz	x0, #63, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	ldr	w1, [x20, #8]
	bl	_die_errno
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #24]
	ldr	w1, [x21, #8]
	bl	_symlink
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	ldr	w1, [sp, #24]
	ldr	w8, [x21, #8]
	str	x8, [sp]
	bl	_die_errno
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #16
	bl	_strbuf_release
	b	LBB0_3
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #32]
	bl	_S_ISREG
	cbz	x0, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21, #8]
	ldr	w1, [x20, #8]
	ldr	w2, [sp, #32]
	bl	_copy_file
	cbz	x0, LBB0_3
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	ldr	w1, [x20, #8]
	ldr	w8, [x21, #8]
	str	x8, [sp]
	bl	_die_errno
	b	LBB0_3
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh19:
	adrp	x0, l_.str.6@PAGE
Lloh20:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	ldr	w1, [x20, #8]
	bl	_error
	b	LBB0_3
LBB0_24:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot stat '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"cannot stat template '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"cannot opendir '%s'"

	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
l_.str.3:                               ; @.str.3
	.asciz	"cannot readlink '%s'"

l_.str.4:                               ; @.str.4
	.asciz	"cannot symlink '%s' '%s'"

l_.str.5:                               ; @.str.5
	.asciz	"cannot copy '%s' to '%s'"

l_.str.6:                               ; @.str.6
	.asciz	"ignoring template %s"

	.no_dead_strip	_copy_templates_1
.subsections_via_symbols
