	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cluster_all_databases
_cluster_all_databases:                 ## @cluster_all_databases
	.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
	movl	%r9d, %eax
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movl	24(%rbp), %r15d
	movq	16(%rbp), %r9
	subq	$8, %rsp
	movq	%rsi, %rdi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rsi
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdx
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, %rcx
	movq	%rax, %rbx
	movl	%eax, %r8d
	pushq	%r15
	callq	_connectMaintenanceDatabase
	addq	$16, %rsp
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	%r15d, %edx
	callq	_executeQuery
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_PQfinish
	leaq	-48(%rbp), %rdi
	callq	_initPQExpBuffer
	movq	%r13, %rdi
	callq	_PQntuples
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_resetPQExpBuffer
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_appendPQExpBufferStr
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_appendConnStrVal
	movl	-48(%rbp), %edi
	subq	$8, %rsp
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	movl	24(%rbp), %eax
	pushq	%rax
	pushq	16(%rbp)
	pushq	%rbx
	callq	_cluster_one_database
	addq	$32, %rsp
	incl	%r14d
	movq	%r13, %rdi
	callq	_PQntuples
	cmpl	%eax, %r14d
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movq	%rax, %r12
	cmpl	$0, 32(%rbp)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	16(%rbp), %rsi
	movq	%r12, %rdx
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	jmp	LBB0_4
LBB0_5:
	leaq	-48(%rbp), %rdi
	callq	_termPQExpBuffer
	movq	%r13, %rdi
	callq	_PQclear
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELECT datname FROM pg_database WHERE datallowconn ORDER BY 1;"

L_.str.1:                               ## @.str.1
	.asciz	"%s: clustering database \"%s\"\n"

	.comm	_stdout,4,2                     ## @stdout
L_.str.2:                               ## @.str.2
	.asciz	"dbname="

	.no_dead_strip	_cluster_all_databases
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cluster_all_databases
_cluster_all_databases:                 ; @cluster_all_databases
	.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
	mov	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	mov	x4, x5
	mov	x5, x6
	mov	x6, x7
	bl	_connectMaintenanceDatabase
	mov	x27, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_executeQuery
	mov	x26, x0
	mov	x0, x27
	bl	_PQfinish
	add	x0, sp, #8
	bl	_initPQExpBuffer
	mov	x0, x26
	bl	_PQntuples
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w27, #0
	ldr	w25, [x29, #16]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #8
	bl	_resetPQExpBuffer
	add	x0, sp, #8
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_appendPQExpBufferStr
	add	x0, sp, #8
	mov	x1, x28
	bl	_appendConnStrVal
	ldp	w1, w0, [sp, #4]                ; 4-byte Folded Reload
	str	w19, [sp]
	mov	x2, #0
	mov	x3, x24
	mov	x4, x23
	mov	x5, x22
	mov	x6, x21
	mov	x7, x20
	bl	_cluster_one_database
	add	w27, w27, #1
	mov	x0, x26
	bl	_PQntuples
	cmp	w27, w0
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	mov	x1, x27
	mov	w2, #0
	bl	_PQgetvalue
	mov	x28, x0
	cbnz	w25, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x20
	mov	x2, x28
	bl	_printf
Lloh6:
	adrp	x8, _stdout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_fflush
	b	LBB0_2
LBB0_5:
	add	x0, sp, #8
	bl	_termPQExpBuffer
	mov	x0, x26
	bl	_PQclear
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT datname FROM pg_database WHERE datallowconn ORDER BY 1;"

l_.str.1:                               ; @.str.1
	.asciz	"%s: clustering database \"%s\"\n"

	.comm	_stdout,4,2                     ; @stdout
l_.str.2:                               ; @.str.2
	.asciz	"dbname="

	.no_dead_strip	_cluster_all_databases
.subsections_via_symbols
