	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup
_setup:                                 ## @setup
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_check_pghost_envvar
	movq	_new_cluster@GOTPCREL(%rip), %r12
	cmpq	$0, 8(%r12)
	jne	LBB0_4
## %bb.1:
	movq	%rsp, %r13
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_find_my_exec
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_3:
	movq	%rbx, %rdi
	callq	_last_dir_separator
	movb	$0, (%rax)
	movq	%rbx, %rdi
	callq	_canonicalize_path
	movq	%rbx, %rdi
	callq	_pg_strdup
	movq	%rax, 8(%r12)
	movq	%r13, %rsp
LBB0_4:
	xorl	%eax, %eax
	callq	_verify_directories
	movq	_old_cluster@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pid_lock_file_exists
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	_old_cluster@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_start_postmaster
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	callq	_stop_postmaster
	jmp	LBB0_10
LBB0_7:
	movq	_user_opts@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.9:
	movl	$1, (%r14)
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_10:
	movl	(%r12), %edi
	callq	_pid_lock_file_exists
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	_new_cluster@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_start_postmaster
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	xorl	%edi, %edi
	callq	_stop_postmaster
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_new_cluster,16,3               ## @new_cluster
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: could not find own program executable\n"

	.comm	_old_cluster,16,3               ## @old_cluster
	.comm	_user_opts,4,2                  ## @user_opts
L_.str.1:                               ## @.str.1
	.asciz	"There seems to be a postmaster servicing the old cluster.\nPlease shutdown that postmaster and try again.\n"

L_.str.2:                               ## @.str.2
	.asciz	"There seems to be a postmaster servicing the new cluster.\nPlease shutdown that postmaster and try again.\n"

	.no_dead_strip	_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup
_setup:                                 ; @setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_check_pghost_envvar
Lloh3:
	adrp	x22, _new_cluster@GOTPAGE
Lloh4:
	ldr	x22, [x22, _new_cluster@GOTPAGEOFF]
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_4
; %bb.1:
	mov	x23, sp
Lloh5:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	x0, x20
	mov	x1, x21
	bl	_find_my_exec
	tbz	x0, #63, LBB0_3
; %bb.2:
	str	x20, [sp, #-16]!
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pg_fatal
	add	sp, sp, #16
LBB0_3:
	mov	x0, x21
	bl	_last_dir_separator
	strb	wzr, [x0]
	mov	x0, x21
	bl	_canonicalize_path
	mov	x0, x21
	bl	_pg_strdup
	str	x0, [x22, #8]
	mov	sp, x23
LBB0_4:
	bl	_verify_directories
Lloh12:
	adrp	x8, _old_cluster@GOTPAGE
Lloh13:
	ldr	x8, [x8, _old_cluster@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_pid_lock_file_exists
	cbz	x0, LBB0_10
; %bb.5:
Lloh15:
	adrp	x0, _old_cluster@GOTPAGE
Lloh16:
	ldr	x0, [x0, _old_cluster@GOTPAGEOFF]
	mov	w1, #0
	bl	_start_postmaster
	cbz	x0, LBB0_7
; %bb.6:
	mov	w0, #0
	bl	_stop_postmaster
	b	LBB0_10
LBB0_7:
Lloh17:
	adrp	x8, _user_opts@GOTPAGE
Lloh18:
	ldr	x8, [x8, _user_opts@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_10
LBB0_9:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pg_fatal
LBB0_10:
	ldr	w0, [x22]
	bl	_pid_lock_file_exists
	cbz	x0, LBB0_14
; %bb.11:
Lloh22:
	adrp	x0, _new_cluster@GOTPAGE
Lloh23:
	ldr	x0, [x0, _new_cluster@GOTPAGEOFF]
	mov	w1, #0
	bl	_start_postmaster
	cbz	x0, LBB0_13
; %bb.12:
	mov	w0, #0
	bl	_stop_postmaster
	b	LBB0_14
LBB0_13:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pg_fatal
LBB0_14:
	ldur	x8, [x29, #-56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_new_cluster,16,3               ; @new_cluster
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: could not find own program executable\n"

	.comm	_old_cluster,16,3               ; @old_cluster
	.comm	_user_opts,4,2                  ; @user_opts
l_.str.1:                               ; @.str.1
	.asciz	"There seems to be a postmaster servicing the old cluster.\nPlease shutdown that postmaster and try again.\n"

l_.str.2:                               ; @.str.2
	.asciz	"There seems to be a postmaster servicing the new cluster.\nPlease shutdown that postmaster and try again.\n"

	.no_dead_strip	_setup
.subsections_via_symbols
