	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dropDBs
_dropDBs:                               ## @dropDBs
	.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, %r15
	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	%r15, %rdi
	callq	_PQntuples
	testl	%eax, %eax
	jle	LBB0_9
## %bb.3:
	leaq	L_.str.2(%rip), %rbx
	leaq	L_.str.3(%rip), %r14
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	movq	%r15, %rdi
	callq	_PQntuples
	cmpl	%eax, %r13d
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_OPF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_if_exists@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	%r14, %rbx
	leaq	L_.str.6(%rip), %r14
	leaq	L_.str.7(%rip), %rax
	cmoveq	%rax, %r14
	movq	%r12, %rdi
	callq	_fmtId
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %r14
	leaq	L_.str.2(%rip), %rbx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_8
LBB0_9:
	movq	%r15, %rdi
	callq	_PQclear
	movq	_OPF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## 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"

	.comm	_OPF,4,2                        ## @OPF
L_.str.1:                               ## @.str.1
	.asciz	"--\n-- Drop databases (except postgres and template1)\n--\n\n"

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

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

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

L_.str.5:                               ## @.str.5
	.asciz	"DROP DATABASE %s%s;\n"

	.comm	_if_exists,8,3                  ## @if_exists
L_.str.6:                               ## @.str.6
	.asciz	"IF EXISTS "

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

L_.str.8:                               ## @.str.8
	.asciz	"\n\n"

	.no_dead_strip	_dropDBs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dropDBs
_dropDBs:                               ; @dropDBs
	.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	x26, _OPF@GOTPAGE
Lloh3:
	ldr	x26, [x26, _OPF@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x26]
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_9
; %bb.3:
	mov	w20, #0
Lloh6:
	adrp	x21, l_.str.2@PAGE
Lloh7:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh8:
	adrp	x22, l_.str.3@PAGE
Lloh9:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh10:
	adrp	x23, l_.str.4@PAGE
Lloh11:
	add	x23, x23, l_.str.4@PAGEOFF
Lloh12:
	adrp	x24, l_.str.5@PAGE
Lloh13:
	add	x24, x24, l_.str.5@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w20, #1
	mov	x0, x19
	bl	_PQntuples
	cmp	w20, w0
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_PQgetvalue
	mov	x25, x0
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w28, [x26]
Lloh14:
	adrp	x8, _if_exists@GOTPAGE
Lloh15:
	ldr	x8, [x8, _if_exists@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, #0
Lloh17:
	adrp	x8, l_.str.6@PAGE
Lloh18:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh19:
	adrp	x9, l_.str.7@PAGE
Lloh20:
	add	x9, x9, l_.str.7@PAGEOFF
	csel	x27, x9, x8, eq
	mov	x0, x25
	bl	_fmtId
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x27, x0, [sp]
	mov	x0, x28
	mov	x1, x24
	bl	_fprintf
	b	LBB0_4
LBB0_9:
	mov	x0, x19
	bl	_PQclear
	ldr	w0, [x26]
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	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	_fprintf
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT datname FROM pg_database d WHERE datallowconn ORDER BY datname"

	.comm	_OPF,4,2                        ; @OPF
l_.str.1:                               ; @.str.1
	.asciz	"--\n-- Drop databases (except postgres and template1)\n--\n\n"

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

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

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

l_.str.5:                               ; @.str.5
	.asciz	"DROP DATABASE %s%s;\n"

	.comm	_if_exists,8,3                  ; @if_exists
l_.str.6:                               ; @.str.6
	.asciz	"IF EXISTS "

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

l_.str.8:                               ; @.str.8
	.asciz	"\n\n"

	.no_dead_strip	_dropDBs
.subsections_via_symbols
