	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_new_objects
_create_new_objects:                    ## @create_new_objects
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_prep_status
	movq	_old_cluster@GOTPCREL(%rip), %rbx
	cmpl	$0, 8(%rbx)
	jle	LBB0_10
## %bb.1:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	movq	_MAXPGPATH@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movl	(%r12), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %r13
	movl	(%r13,%r14,8), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	incq	%r14
	movslq	8(%r15), %rax
	cmpq	%rax, %r14
	movq	%r15, %rbx
	jl	LBB0_2
## %bb.5:
	testl	%eax, %eax
	jg	LBB0_6
	jmp	LBB0_10
LBB0_3:
	movq	_PG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13,%r14,8), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_pg_log
	movq	_DB_DUMP_FILE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	4(%r13,%r14,8), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_snprintf
	movq	_DB_DUMP_LOG_FILE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	4(%r13,%r14,8), %ecx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_snprintf
	movq	_new_cluster@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r14d
	callq	_cluster_conn_opts
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %r10
	leaq	L_.str.4(%rip), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	movl	%r14d, %r9d
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r10
	pushq	%rax
	callq	_exec_prog
	addq	$32, %rsp
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	movl	8(%r15), %eax
	movq	%r15, %rbx
	testl	%eax, %eax
	jle	LBB0_10
LBB0_6:
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	incq	%r14
	movq	_old_cluster@GOTPCREL(%rip), %rbx
	movslq	8(%rbx), %rax
	cmpq	%rax, %r14
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_MAXPGPATH@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	16(%rbx), %rbx
	movl	(%rbx,%r14,8), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_PG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx,%r14,8), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_pg_log
	movq	_DB_DUMP_FILE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	4(%rbx,%r14,8), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_snprintf
	movq	_DB_DUMP_LOG_FILE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	4(%rbx,%r14,8), %ecx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_snprintf
	movl	(%rbx,%r14,8), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	leaq	L_.str.6(%rip), %rbx
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %rbx
	movq	_new_cluster@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r12d
	callq	_cluster_conn_opts
	subq	$8, %rsp
	movq	%r15, %rdi
	xorl	%esi, %esi
	leaq	L_.str.7(%rip), %rdx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	movq	%rbx, %r9
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_parallel_exec_prog
	addq	$16, %rsp
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_reap_child
	cmpl	$1, %eax
	je	LBB0_10
## %bb.11:
	xorl	%eax, %eax
	callq	_end_progress_output
	xorl	%eax, %eax
	callq	_check_ok
	movl	(%rbx), %edi
	callq	_GET_MAJOR_VERSION
	cmpl	$902, %eax                      ## imm = 0x386
	jg	LBB0_13
## %bb.12:
	movl	$1, %edi
	callq	_set_frozenxids
LBB0_13:
	movq	_new_cluster@GOTPCREL(%rip), %rdi
	callq	_get_db_and_rel_infos
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Restoring database schemas in the new cluster\n"

	.comm	_old_cluster,24,3               ## @old_cluster
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
L_.str.1:                               ## @.str.1
	.asciz	"template1"

	.comm	_PG_STATUS,4,2                  ## @PG_STATUS
L_.str.2:                               ## @.str.2
	.asciz	"%s"

	.comm	_DB_DUMP_FILE_MASK,8,3          ## @DB_DUMP_FILE_MASK
	.comm	_DB_DUMP_LOG_FILE_MASK,8,3      ## @DB_DUMP_LOG_FILE_MASK
L_.str.3:                               ## @.str.3
	.asciz	"--clean --create"

L_.str.4:                               ## @.str.4
	.asciz	"\"%s/pg_restore\" %s %s --exit-on-error --verbose --dbname postgres \"%s\""

	.comm	_new_cluster,4,2                ## @new_cluster
L_.str.5:                               ## @.str.5
	.asciz	"postgres"

L_.str.6:                               ## @.str.6
	.asciz	"--create"

L_.str.7:                               ## @.str.7
	.asciz	"\"%s/pg_restore\" %s %s --exit-on-error --verbose --dbname template1 \"%s\""

	.no_dead_strip	_create_new_objects
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_new_objects
_create_new_objects:                    ; @create_new_objects
	.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, #16
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	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_prep_status
Lloh5:
	adrp	x28, _old_cluster@GOTPAGE
Lloh6:
	ldr	x28, [x28, _old_cluster@GOTPAGEOFF]
	ldr	w8, [x28, #8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x26, #0
	mov	x27, #0
Lloh7:
	adrp	x19, _MAXPGPATH@GOTPAGE
Lloh8:
	ldr	x19, [x19, _MAXPGPATH@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, sp
	ldr	w22, [x19]
	mov	x9, x22
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	ldr	w23, [x19]
	mov	x9, x23
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	ldr	x24, [x28, #16]
	ldr	w0, [x24, x26]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	sp, x25
	add	x27, x27, #1
	ldrsw	x8, [x28, #8]
	add	x26, x26, #8
	cmp	x27, x8
	b.lt	LBB0_2
; %bb.4:
	cmp	w8, #1
	b.ge	LBB0_6
	b	LBB0_10
LBB0_5:
Lloh15:
	adrp	x8, _PG_STATUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PG_STATUS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x24, x24, x26
	ldr	w2, [x24]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_pg_log
Lloh20:
	adrp	x8, _DB_DUMP_FILE_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DB_DUMP_FILE_MASK@GOTPAGEOFF]
Lloh22:
	ldr	x2, [x8]
	ldr	w3, [x24, #4]
	mov	x0, x20
	mov	x1, x22
	bl	_snprintf
Lloh23:
	adrp	x8, _DB_DUMP_LOG_FILE_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DB_DUMP_LOG_FILE_MASK@GOTPAGEOFF]
Lloh25:
	ldr	x2, [x8]
	ldr	w3, [x24, #4]
	mov	x0, x21
	mov	x1, x23
	bl	_snprintf
Lloh26:
	adrp	x0, _new_cluster@GOTPAGE
Lloh27:
	ldr	x0, [x0, _new_cluster@GOTPAGEOFF]
	ldr	w22, [x0]
	bl	_cluster_conn_opts
	mov	x6, x0
	str	x20, [sp, #-16]!
Lloh28:
	adrp	x4, l_.str.4@PAGE
Lloh29:
	add	x4, x4, l_.str.4@PAGEOFF
Lloh30:
	adrp	x7, l_.str.3@PAGE
Lloh31:
	add	x7, x7, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x1, #0
	mov	w2, #1
	mov	w3, #1
	mov	x5, x22
	bl	_exec_prog
	add	sp, sp, #16
	mov	sp, x25
	ldr	w8, [x28, #8]
	cmp	w8, #1
	b.lt	LBB0_10
LBB0_6:
	mov	x21, #0
	mov	x22, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	sp, x23
	add	x22, x22, #1
	ldrsw	x8, [x28, #8]
	add	x21, x21, #8
	cmp	x22, x8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, sp
	ldr	w26, [x19]
	mov	x9, x26
Lloh32:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh33:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x26, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	ldr	w27, [x19]
	mov	x9, x27
Lloh34:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh35:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x27, #15
	and	x9, x9, #0x1fffffff0
	sub	x25, x8, x9
	mov	sp, x25
	ldr	x20, [x28, #16]
	ldr	w0, [x20, x21]
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh38:
	adrp	x8, _PG_STATUS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PG_STATUS@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	add	x20, x20, x21
	ldr	w2, [x20]
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_pg_log
Lloh43:
	adrp	x8, _DB_DUMP_FILE_MASK@GOTPAGE
Lloh44:
	ldr	x8, [x8, _DB_DUMP_FILE_MASK@GOTPAGEOFF]
Lloh45:
	ldr	x2, [x8]
	ldr	w3, [x20, #4]
	mov	x0, x24
	mov	x1, x26
	bl	_snprintf
Lloh46:
	adrp	x8, _DB_DUMP_LOG_FILE_MASK@GOTPAGE
Lloh47:
	ldr	x8, [x8, _DB_DUMP_LOG_FILE_MASK@GOTPAGEOFF]
Lloh48:
	ldr	x2, [x8]
	ldr	w3, [x20, #4]
	mov	x0, x25
	mov	x1, x27
	bl	_snprintf
	ldr	w0, [x20]
Lloh49:
	adrp	x1, l_.str.5@PAGE
Lloh50:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
Lloh51:
	adrp	x8, l_.str.6@PAGE
Lloh52:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh53:
	adrp	x9, l_.str.3@PAGE
Lloh54:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x26, x9, x8, eq
Lloh55:
	adrp	x0, _new_cluster@GOTPAGE
Lloh56:
	ldr	x0, [x0, _new_cluster@GOTPAGEOFF]
	ldr	w27, [x0]
	bl	_cluster_conn_opts
	mov	x4, x0
	mov	x0, x25
	mov	x1, #0
Lloh57:
	adrp	x2, l_.str.7@PAGE
Lloh58:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x3, x27
	mov	x5, x26
	mov	x6, x24
	bl	_parallel_exec_prog
	b	LBB0_7
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_reap_child
	cmp	w0, #1
	b.eq	LBB0_10
; %bb.11:
	bl	_end_progress_output
	bl	_check_ok
	ldr	w0, [x28]
	bl	_GET_MAJOR_VERSION
	cmp	w0, #902
	b.gt	LBB0_13
; %bb.12:
	mov	w0, #1
	bl	_set_frozenxids
LBB0_13:
Lloh59:
	adrp	x0, _new_cluster@GOTPAGE
Lloh60:
	ldr	x0, [x0, _new_cluster@GOTPAGEOFF]
	bl	_get_db_and_rel_infos
	ldur	x8, [x29, #-88]
Lloh61:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh62:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh63:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	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_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Restoring database schemas in the new cluster\n"

	.comm	_old_cluster,24,3               ; @old_cluster
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
l_.str.1:                               ; @.str.1
	.asciz	"template1"

	.comm	_PG_STATUS,4,2                  ; @PG_STATUS
l_.str.2:                               ; @.str.2
	.asciz	"%s"

	.comm	_DB_DUMP_FILE_MASK,8,3          ; @DB_DUMP_FILE_MASK
	.comm	_DB_DUMP_LOG_FILE_MASK,8,3      ; @DB_DUMP_LOG_FILE_MASK
l_.str.3:                               ; @.str.3
	.asciz	"--clean --create"

l_.str.4:                               ; @.str.4
	.asciz	"\"%s/pg_restore\" %s %s --exit-on-error --verbose --dbname postgres \"%s\""

	.comm	_new_cluster,4,2                ; @new_cluster
l_.str.5:                               ; @.str.5
	.asciz	"postgres"

l_.str.6:                               ; @.str.6
	.asciz	"--create"

l_.str.7:                               ; @.str.7
	.asciz	"\"%s/pg_restore\" %s %s --exit-on-error --verbose --dbname template1 \"%s\""

	.no_dead_strip	_create_new_objects
.subsections_via_symbols
