	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dumpDatabases
_dumpDatabases:                         ## @dumpDatabases
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rsi
	callq	_executeQuery
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_PQntuples
	testl	%eax, %eax
	jle	LBB0_2
## %bb.1:
	movq	_OPF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movq	%r14, %rdi
	callq	_PQntuples
	testl	%eax, %eax
	jle	LBB0_19
## %bb.3:
	leaq	L_.str.2(%rip), %rbx
	movq	_database_exclude_names@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movq	%r13, %rsi
	callq	_pg_log_info
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%r12d
	movq	%r14, %rdi
	callq	_PQntuples
	cmpl	%eax, %r12d
	jge	LBB0_19
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_simple_string_list_member
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rbx
	leaq	L_.str.4(%rip), %rdi
	movq	%r13, %rsi
	callq	_pg_log_info
	movq	_OPF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r13, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strcmp
	leaq	L_.str.11(%rip), %r15
	testq	%rax, %rax
	jne	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_output_clean@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.8(%rip), %r15
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_OPF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	leaq	L_.str.9(%rip), %r15
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_filename@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_OPF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fclose
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_runPgDump
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.12(%rip), %rdi
	movq	%r13, %rsi
	callq	_pg_log_error
	movl	$1, %edi
	callq	_exit_nicely
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_filename@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	movq	%rbx, %r15
	leaq	L_.str.2(%rip), %rbx
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_PG_BINARY_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fopen
	movq	_OPF@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_filename@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.13(%rip), %rdi
	callq	_pg_log_error
	movl	$1, %edi
	callq	_exit_nicely
	jmp	LBB0_18
LBB0_19:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PQclear                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELECT datname FROM pg_database d WHERE datallowconn ORDER BY (datname <> 'template1'), datname"

	.comm	_OPF,4,2                        ## @OPF
L_.str.1:                               ## @.str.1
	.asciz	"--\n-- Databases\n--\n\n"

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

	.comm	_database_exclude_names,4,2     ## @database_exclude_names
L_.str.3:                               ## @.str.3
	.asciz	"excluding database \"%s\""

L_.str.4:                               ## @.str.4
	.asciz	"dumping database \"%s\""

L_.str.5:                               ## @.str.5
	.asciz	"--\n-- Database \"%s\" dump\n--\n\n"

L_.str.6:                               ## @.str.6
	.asciz	"template1"

L_.str.7:                               ## @.str.7
	.asciz	"postgres"

	.comm	_output_clean,8,3               ## @output_clean
L_.str.8:                               ## @.str.8
	.asciz	"--clean --create"

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

L_.str.10:                              ## @.str.10
	.asciz	"\\connect %s\n\n"

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

	.comm	_filename,8,3                   ## @filename
L_.str.12:                              ## @.str.12
	.asciz	"pg_dump failed on database \"%s\", exiting"

	.comm	_PG_BINARY_A,4,2                ## @PG_BINARY_A
L_.str.13:                              ## @.str.13
	.asciz	"could not re-open the output file \"%s\": %m"

	.no_dead_strip	_dumpDatabases
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dumpDatabases
_dumpDatabases:                         ; @dumpDatabases
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_executeQuery
	mov	x19, x0
	bl	_PQntuples
Lloh2:
	adrp	x23, _OPF@GOTPAGE
Lloh3:
	ldr	x23, [x23, _OPF@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x23]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_2:
	mov	x0, x19
	bl	_PQntuples
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.3:
	mov	w20, #0
Lloh6:
	adrp	x21, l_.str.2@PAGE
Lloh7:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh8:
	adrp	x22, _database_exclude_names@GOTPAGE
Lloh9:
	ldr	x22, [x22, _database_exclude_names@GOTPAGEOFF]
Lloh10:
	adrp	x25, l_.str.6@PAGE
Lloh11:
	add	x25, x25, l_.str.6@PAGEOFF
Lloh12:
	adrp	x24, _filename@GOTPAGE
Lloh13:
	ldr	x24, [x24, _filename@GOTPAGEOFF]
Lloh14:
	adrp	x27, l_.str.3@PAGE
Lloh15:
	add	x27, x27, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
	mov	x1, x28
	bl	_pg_log_info
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, #1
	mov	x0, x19
	bl	_PQntuples
	cmp	w20, w0
	b.ge	LBB0_19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_PQgetvalue
	mov	x28, x0
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, x28
	bl	_simple_string_list_member
	cbnz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x28
	bl	_pg_log_info
	ldr	w0, [x23]
	str	x28, [sp]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	mov	x0, x28
	mov	x1, x25
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
Lloh22:
	adrp	x26, l_.str.11@PAGE
Lloh23:
	add	x26, x26, l_.str.11@PAGEOFF
	cbnz	x0, LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh24:
	adrp	x8, _output_clean@GOTPAGE
Lloh25:
	ldr	x8, [x8, _output_clean@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
Lloh27:
	adrp	x26, l_.str.8@PAGE
Lloh28:
	add	x26, x26, l_.str.8@PAGEOFF
	cbz	x8, LBB0_18
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x23]
	bl	_fclose
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
	mov	x1, x26
	bl	_runPgDump
	cbz	w0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh29:
	adrp	x0, l_.str.12@PAGE
Lloh30:
	add	x0, x0, l_.str.12@PAGEOFF
	mov	x1, x28
	bl	_pg_log_error
	mov	w0, #1
	bl	_exit_nicely
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x24]
	cbz	x0, LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh31:
	adrp	x8, _PG_BINARY_A@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PG_BINARY_A@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_fopen
	str	w0, [x23]
	cbnz	w0, LBB0_5
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x24]
Lloh34:
	adrp	x0, l_.str.13@PAGE
Lloh35:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_pg_log_error
	mov	w0, #1
	bl	_exit_nicely
	b	LBB0_5
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x23]
	str	x28, [sp]
Lloh36:
	adrp	x1, l_.str.10@PAGE
Lloh37:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_fprintf
Lloh38:
	adrp	x26, l_.str.9@PAGE
Lloh39:
	add	x26, x26, l_.str.9@PAGEOFF
	ldr	x8, [x24]
	cbnz	x8, LBB0_12
	b	LBB0_13
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PQclear
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT datname FROM pg_database d WHERE datallowconn ORDER BY (datname <> 'template1'), datname"

	.comm	_OPF,4,2                        ; @OPF
l_.str.1:                               ; @.str.1
	.asciz	"--\n-- Databases\n--\n\n"

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

	.comm	_database_exclude_names,4,2     ; @database_exclude_names
l_.str.3:                               ; @.str.3
	.asciz	"excluding database \"%s\""

l_.str.4:                               ; @.str.4
	.asciz	"dumping database \"%s\""

l_.str.5:                               ; @.str.5
	.asciz	"--\n-- Database \"%s\" dump\n--\n\n"

l_.str.6:                               ; @.str.6
	.asciz	"template1"

l_.str.7:                               ; @.str.7
	.asciz	"postgres"

	.comm	_output_clean,8,3               ; @output_clean
l_.str.8:                               ; @.str.8
	.asciz	"--clean --create"

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

l_.str.10:                              ; @.str.10
	.asciz	"\\connect %s\n\n"

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

	.comm	_filename,8,3                   ; @filename
l_.str.12:                              ; @.str.12
	.asciz	"pg_dump failed on database \"%s\", exiting"

	.comm	_PG_BINARY_A,4,2                ; @PG_BINARY_A
l_.str.13:                              ; @.str.13
	.asciz	"could not re-open the output file \"%s\": %m"

	.no_dead_strip	_dumpDatabases
.subsections_via_symbols
