	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generate_old_dump              ## -- Begin function generate_old_dump
	.p2align	4, 0x90
_generate_old_dump:                     ## @generate_old_dump
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_prep_status
	movq	_UTILITY_LOG_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_new_cluster@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_old_cluster@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_cluster_conn_opts
                                        ## kill: def $eax killed $eax def $rax
	movq	_log_opts@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.2(%rip), %rbx
	cmoveq	%rcx, %rbx
	movq	_GLOBALS_DUMP_FILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %r8
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	movl	%r14d, %r9d
	pushq	%r10
	pushq	%rbx
	pushq	%rax
	callq	_exec_prog
	addq	$32, %rsp
	xorl	%eax, %eax
	callq	_check_ok
	leaq	L_.str.4(%rip), %rdi
	callq	_prep_status
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	_MAXPGPATH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rbx
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	callq	_initPQExpBuffer
	movq	%r14, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_appendPQExpBufferStr
	movl	4(%rbx,%r13,8), %esi
	movq	%r14, %rdi
	callq	_appendConnStrVal
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	callq	_initPQExpBuffer
	movl	-64(%rbp), %esi
	movq	%r15, %rdi
	callq	_appendShellString
	movq	%r14, %rdi
	callq	_termPQExpBuffer
	movq	_PG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx,%r13,8), %edx
	leaq	L_.str.6(%rip), %rsi
	callq	_pg_log
	movq	_DB_DUMP_FILE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	(%rbx,%r13,8), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	_new_cluster@GOTPCREL(%rip), %r14
	callq	_snprintf
	movq	_DB_DUMP_LOG_FILE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	(%rbx,%r13,8), %ecx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_snprintf
	movl	(%r14), %r14d
	movq	%r12, %rdi
	callq	_cluster_conn_opts
	movq	_log_opts@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	leaq	L_.str.2(%rip), %r9
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rcx, %r9
	movl	-56(%rbp), %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	leaq	L_.str.7(%rip), %rdx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	pushq	%rbx
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_parallel_exec_prog
	addq	$16, %rsp
	leaq	-56(%rbp), %rdi
	callq	_termPQExpBuffer
	movq	-104(%rbp), %rsp                ## 8-byte Reload
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jl	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_reap_child
	cmpl	$1, %eax
	je	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	callq	_end_progress_output
	xorl	%eax, %eax
	callq	_check_ok
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Creating dump of global objects"

	.comm	_UTILITY_LOG_FILE,4,2           ## @UTILITY_LOG_FILE
L_.str.1:                               ## @.str.1
	.asciz	"\"%s/pg_dumpall\" %s --globals-only --quote-all-identifiers --binary-upgrade %s -f %s"

	.comm	_new_cluster,4,2                ## @new_cluster
	.comm	_old_cluster,16,3               ## @old_cluster
	.comm	_log_opts,8,3                   ## @log_opts
L_.str.2:                               ## @.str.2
	.asciz	"--verbose"

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_GLOBALS_DUMP_FILE,4,2          ## @GLOBALS_DUMP_FILE
L_.str.4:                               ## @.str.4
	.asciz	"Creating dump of database schemas\n"

	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
L_.str.5:                               ## @.str.5
	.asciz	"dbname="

	.comm	_PG_STATUS,4,2                  ## @PG_STATUS
L_.str.6:                               ## @.str.6
	.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.7:                               ## @.str.7
	.asciz	"\"%s/pg_dump\" %s --schema-only --quote-all-identifiers --binary-upgrade --format=custom %s --file=\"%s\" %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generate_old_dump              ; -- Begin function generate_old_dump
	.p2align	2
_generate_old_dump:                     ; @generate_old_dump
	.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
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	x8, _UTILITY_LOG_FILE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UTILITY_LOG_FILE@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
Lloh8:
	adrp	x22, _new_cluster@GOTPAGE
Lloh9:
	ldr	x22, [x22, _new_cluster@GOTPAGEOFF]
	ldr	w21, [x22]
Lloh10:
	adrp	x19, _old_cluster@GOTPAGE
Lloh11:
	ldr	x19, [x19, _old_cluster@GOTPAGEOFF]
	mov	x0, x19
	bl	_cluster_conn_opts
	mov	x6, x0
Lloh12:
	adrp	x26, _log_opts@GOTPAGE
Lloh13:
	ldr	x26, [x26, _log_opts@GOTPAGEOFF]
Lloh14:
	adrp	x9, l_.str.2@PAGE
Lloh15:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh16:
	adrp	x10, l_.str.3@PAGE
Lloh17:
	add	x10, x10, l_.str.3@PAGEOFF
	ldr	x8, [x26]
	cmp	x8, #0
	csel	x7, x10, x9, eq
Lloh18:
	adrp	x8, _GLOBALS_DUMP_FILE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GLOBALS_DUMP_FILE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #-16]!
Lloh21:
	adrp	x4, l_.str.1@PAGE
Lloh22:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, #0
	mov	w2, #1
	mov	w3, #1
	mov	x5, x21
	bl	_exec_prog
	add	sp, sp, #16
	bl	_check_ok
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_prep_status
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, x19
	mov	x27, #0
	mov	x28, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, sp
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
Lloh25:
	adrp	x12, _MAXPGPATH@GOTPAGE
Lloh26:
	ldr	x12, [x12, _MAXPGPATH@GOTPAGEOFF]
	ldr	w25, [x12]
	mov	x9, x25
Lloh27:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh28:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x25, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	mov	x19, x26
	ldr	w26, [x12]
	mov	x9, x26
Lloh29:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh30:
	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
	mov	x20, x22
	ldr	x22, [x21, #8]
	sub	x0, x29, #96
	bl	_initPQExpBuffer
	sub	x0, x29, #96
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_appendPQExpBufferStr
	add	x22, x22, x27
	ldr	w1, [x22, #4]
	sub	x0, x29, #96
	bl	_appendConnStrVal
	sub	x0, x29, #104
	bl	_initPQExpBuffer
	ldur	w1, [x29, #-96]
	sub	x0, x29, #104
	bl	_appendShellString
	sub	x0, x29, #96
	bl	_termPQExpBuffer
Lloh33:
	adrp	x8, _PG_STATUS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PG_STATUS@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	w2, [x22, #4]
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_pg_log
Lloh38:
	adrp	x8, _DB_DUMP_FILE_MASK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DB_DUMP_FILE_MASK@GOTPAGEOFF]
Lloh40:
	ldr	x2, [x8]
	ldr	w3, [x22]
	mov	x0, x23
	mov	x1, x25
	bl	_snprintf
Lloh41:
	adrp	x8, _DB_DUMP_LOG_FILE_MASK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _DB_DUMP_LOG_FILE_MASK@GOTPAGEOFF]
Lloh43:
	ldr	x2, [x8]
	ldr	w3, [x22]
	mov	x22, x20
	mov	x0, x24
	mov	x1, x26
	mov	x26, x19
	bl	_snprintf
	ldr	w25, [x20]
	mov	x0, x21
	bl	_cluster_conn_opts
	mov	x4, x0
	ldr	x8, [x19]
	cmp	x8, #0
Lloh44:
	adrp	x8, l_.str.2@PAGE
Lloh45:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh46:
	adrp	x9, l_.str.3@PAGE
Lloh47:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x5, x9, x8, eq
	ldur	w7, [x29, #-104]
	mov	x0, x24
	mov	x1, #0
Lloh48:
	adrp	x2, l_.str.7@PAGE
Lloh49:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x3, x25
	mov	x6, x23
	bl	_parallel_exec_prog
	sub	x0, x29, #104
	bl	_termPQExpBuffer
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	mov	sp, x8
	add	x28, x28, #1
	ldrsw	x8, [x21]
	add	x27, x27, #8
	cmp	x28, x8
	b.lt	LBB0_2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_reap_child
	cmp	w0, #1
	b.eq	LBB0_3
; %bb.4:
	bl	_end_progress_output
	bl	_check_ok
	ldur	x8, [x29, #-88]
Lloh50:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh51:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	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_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Creating dump of global objects"

	.comm	_UTILITY_LOG_FILE,4,2           ; @UTILITY_LOG_FILE
l_.str.1:                               ; @.str.1
	.asciz	"\"%s/pg_dumpall\" %s --globals-only --quote-all-identifiers --binary-upgrade %s -f %s"

	.comm	_new_cluster,4,2                ; @new_cluster
	.comm	_old_cluster,16,3               ; @old_cluster
	.comm	_log_opts,8,3                   ; @log_opts
l_.str.2:                               ; @.str.2
	.asciz	"--verbose"

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_GLOBALS_DUMP_FILE,4,2          ; @GLOBALS_DUMP_FILE
l_.str.4:                               ; @.str.4
	.asciz	"Creating dump of database schemas\n"

	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
l_.str.5:                               ; @.str.5
	.asciz	"dbname="

	.comm	_PG_STATUS,4,2                  ; @PG_STATUS
l_.str.6:                               ; @.str.6
	.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.7:                               ; @.str.7
	.asciz	"\"%s/pg_dump\" %s --schema-only --quote-all-identifiers --binary-upgrade --format=custom %s --file=\"%s\" %s"

.subsections_via_symbols
