	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_tablespace_paths
_get_tablespace_paths:                  ## @get_tablespace_paths
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_old_cluster@GOTPCREL(%rip), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_connectToServer
	movq	%rax, %r12
	movq	_QUERY_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%r14), %edi
	callq	_GET_MAJOR_VERSION
	cmpl	$902, %eax                      ## imm = 0x386
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmovlq	%rax, %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snprintf
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_executeQueryOrDie
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_PQntuples
	movq	_os_info@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	shll	$3, %eax
	movl	%eax, %edi
	callq	_pg_malloc
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, 8(%r15)
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_PQfnumber
	cmpl	$0, (%r15)
	jle	LBB0_12
## %bb.4:
	movl	%eax, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	callq	_strerror
	movl	%r12d, %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_report_status
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-64(%rbp), %edi
	callq	_S_ISDIR
	testl	%eax, %eax
	je	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	movslq	(%r15), %rax
	cmpq	%rax, %r14
	jge	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_pg_strdup
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %rdi
	leaq	-64(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_PG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %r13
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_report_status
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_PG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %rdx
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_report_status
	jmp	LBB0_11
LBB0_12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_PQclear
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_PQfinish
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_old_cluster,4,2                ## @old_cluster
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"template1"

	.comm	_QUERY_ALLOC,4,2                ## @QUERY_ALLOC
L_.str.1:                               ## @.str.1
	.asciz	"SELECT\t%s FROM\tpg_catalog.pg_tablespace WHERE\tspcname != 'pg_default' AND \t\tspcname != 'pg_global'"

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

L_.str.3:                               ## @.str.3
	.asciz	"pg_catalog.pg_tablespace_location(oid) AS spclocation"

L_.str.4:                               ## @.str.4
	.asciz	"%s"

	.comm	_os_info,16,3                   ## @os_info
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_PG_FATAL,4,2                   ## @PG_FATAL
L_.str.5:                               ## @.str.5
	.asciz	"tablespace directory \"%s\" does not exist\n"

L_.str.6:                               ## @.str.6
	.asciz	"could not stat tablespace directory \"%s\": %s\n"

L_.str.7:                               ## @.str.7
	.asciz	"tablespace path \"%s\" is not a directory\n"

	.no_dead_strip	_get_tablespace_paths
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_tablespace_paths
_get_tablespace_paths:                  ; @get_tablespace_paths
	.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	x20, _old_cluster@GOTPAGE
Lloh4:
	ldr	x20, [x20, _old_cluster@GOTPAGEOFF]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_connectToServer
	mov	x19, x0
Lloh7:
	adrp	x8, _QUERY_ALLOC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _QUERY_ALLOC@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	mov	x9, x21
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	ldr	w0, [x20]
	bl	_GET_MAJOR_VERSION
Lloh12:
	adrp	x8, l_.str.3@PAGE
Lloh13:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh14:
	adrp	x9, l_.str.2@PAGE
Lloh15:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w0, #902
	csel	x3, x9, x8, lt
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	bl	_snprintf
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	stur	x19, [x29, #-104]               ; 8-byte Folded Spill
	mov	x0, x19
	mov	x2, x22
	bl	_executeQueryOrDie
	mov	x20, x0
	bl	_PQntuples
Lloh20:
	adrp	x28, _os_info@GOTPAGE
Lloh21:
	ldr	x28, [x28, _os_info@GOTPAGEOFF]
	str	w0, [x28]
	cbz	w0, LBB0_2
; %bb.1:
	lsl	w0, w0, #3
	bl	_pg_malloc
	b	LBB0_3
LBB0_2:
	mov	x0, #0
LBB0_3:
	str	x0, [x28, #8]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_PQfnumber
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x21, x0
	mov	x22, #0
Lloh24:
	adrp	x19, _PG_FATAL@GOTPAGE
Lloh25:
	ldr	x19, [x19, _PG_FATAL@GOTPAGEOFF]
Lloh26:
	adrp	x23, l_.str.7@PAGE
Lloh27:
	add	x23, x23, l_.str.7@PAGEOFF
Lloh28:
	adrp	x24, _errno@GOTPAGE
Lloh29:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh30:
	adrp	x25, _ENOENT@GOTPAGE
Lloh31:
	ldr	x25, [x25, _ENOENT@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
	mov	x0, x27
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x26
	bl	_report_status
	add	sp, sp, #16
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldur	w0, [x29, #-96]
	bl	_S_ISDIR
	cbz	w0, LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x28]
	cmp	x22, x8
	b.ge	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_PQgetvalue
	bl	_pg_strdup
	ldr	x8, [x28, #8]
	lsl	x9, x22, #3
	str	x0, [x8, x9]
	ldr	x8, [x28, #8]
	ldr	x0, [x8, x9]
	sub	x1, x29, #96
	bl	_stat
	cbz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x24]
	ldr	x8, [x25]
	ldr	w27, [x19]
	ldr	x9, [x28, #8]
	ldr	x26, [x9, x22, lsl #3]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x27
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x26
	bl	_report_status
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19]
	ldr	x8, [x28, #8]
	ldr	x2, [x8, x22, lsl #3]
	mov	x1, x23
	bl	_report_status
	b	LBB0_7
LBB0_12:
	mov	x0, x20
	bl	_PQclear
	ldur	x0, [x29, #-104]                ; 8-byte Folded Reload
	bl	_PQfinish
	ldur	x8, [x29, #-88]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	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_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_old_cluster,4,2                ; @old_cluster
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"template1"

	.comm	_QUERY_ALLOC,4,2                ; @QUERY_ALLOC
l_.str.1:                               ; @.str.1
	.asciz	"SELECT\t%s FROM\tpg_catalog.pg_tablespace WHERE\tspcname != 'pg_default' AND \t\tspcname != 'pg_global'"

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

l_.str.3:                               ; @.str.3
	.asciz	"pg_catalog.pg_tablespace_location(oid) AS spclocation"

l_.str.4:                               ; @.str.4
	.asciz	"%s"

	.comm	_os_info,16,3                   ; @os_info
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_PG_FATAL,4,2                   ; @PG_FATAL
l_.str.5:                               ; @.str.5
	.asciz	"tablespace directory \"%s\" does not exist\n"

l_.str.6:                               ; @.str.6
	.asciz	"could not stat tablespace directory \"%s\": %s\n"

l_.str.7:                               ; @.str.7
	.asciz	"tablespace path \"%s\" is not a directory\n"

	.no_dead_strip	_get_tablespace_paths
.subsections_via_symbols
