	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movl	$48, %edi
	callq	_pg_malloc
	movq	%rax, %rbx
	movl	$16, %edi
	callq	_pg_malloc
	movq	%rax, 32(%rbx)
	movl	$16, %edi
	callq	_pg_malloc
	movq	%rax, 24(%rbx)
	movl	$16, %edi
	callq	_pg_malloc
	movq	%rax, 16(%rbx)
	movq	32(%rbx), %rcx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rcx)
	movq	24(%rbx), %rcx
	movups	%xmm0, (%rcx)
	movups	%xmm0, (%rax)
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_get_opts
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rbx)
	movl	$1, 8(%rbx)
LBB0_2:
	movq	%rbx, %rdi
	callq	_sql_conn
	movq	%rax, %r14
	cmpq	$0, 40(%rbx)
	jne	LBB0_3
## %bb.7:
	movq	32(%rbx), %rax
	cmpq	$0, (%rax)
	jg	LBB0_10
## %bb.8:
	movq	24(%rbx), %rax
	cmpq	$0, (%rax)
	jg	LBB0_10
## %bb.9:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	jg	LBB0_10
## %bb.13:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.14:
	cmpl	$0, 8(%rbx)
	je	LBB0_15
LBB0_18:
	cmpl	$0, 12(%rbx)
	jne	LBB0_20
## %bb.19:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_20:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sql_exec_dumpalldbs
	movq	%r14, %rdi
	callq	_PQfinish
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	$0, 12(%rbx)
	jne	LBB0_12
## %bb.11:
	movq	(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sql_exec_searchtables
	jmp	LBB0_6
LBB0_3:
	cmpl	$0, 12(%rbx)
	jne	LBB0_5
## %bb.4:
	leaq	L_str.4(%rip), %rdi
	callq	_puts
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sql_exec_dumpalltbspc
	jmp	LBB0_6
LBB0_15:
	cmpl	$0, 12(%rbx)
	jne	LBB0_17
## %bb.16:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_17:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sql_exec_dumpalltables
LBB0_6:
	movq	%r14, %rdi
	callq	_PQfinish
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"postgres"

L_.str.2:                               ## @.str.2
	.asciz	"From database \"%s\":\n"

L_str:                                  ## @str
	.asciz	"All databases:"

L_str.4:                                ## @str.4
	.asciz	"All tablespaces:"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x21, x0
	mov	w0, #48
	bl	_pg_malloc
	mov	x19, x0
	mov	w0, #16
	bl	_pg_malloc
	str	x0, [x19, #32]
	mov	w0, #16
	bl	_pg_malloc
	str	x0, [x19, #24]
	mov	w0, #16
	bl	_pg_malloc
	str	x0, [x19, #16]
	ldr	x8, [x19, #32]
	stp	xzr, xzr, [x8]
	ldr	x8, [x19, #24]
	stp	xzr, xzr, [x8]
	stp	xzr, xzr, [x0]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_get_opts
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19]
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_2:
	mov	x0, x19
	bl	_sql_conn
	mov	x20, x0
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_14
; %bb.3:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	cmp	x8, #0
	b.gt	LBB0_11
; %bb.4:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cmp	x8, #0
	b.gt	LBB0_11
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cmp	x8, #1
	b.ge	LBB0_11
; %bb.6:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w9, [x19, #8]
	cbz	w9, LBB0_17
LBB0_8:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_10
; %bb.9:
Lloh2:
	adrp	x0, l_str@PAGE
Lloh3:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_sql_exec_dumpalldbs
	mov	x0, x20
	bl	_PQfinish
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_13
; %bb.12:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_sql_exec_searchtables
	b	LBB0_20
LBB0_14:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_16
; %bb.15:
Lloh6:
	adrp	x0, l_str.4@PAGE
Lloh7:
	add	x0, x0, l_str.4@PAGEOFF
	bl	_puts
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_sql_exec_dumpalltbspc
	b	LBB0_20
LBB0_17:
	ldr	w9, [x19, #12]
	cbnz	w9, LBB0_19
; %bb.18:
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_19:
	mov	x0, x20
	mov	x1, x19
	bl	_sql_exec_dumpalltables
LBB0_20:
	mov	x0, x20
	bl	_PQfinish
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"postgres"

l_.str.2:                               ; @.str.2
	.asciz	"From database \"%s\":\n"

l_str:                                  ; @str
	.asciz	"All databases:"

l_str.4:                                ; @str.4
	.asciz	"All tablespaces:"

.subsections_via_symbols
