	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_start_postmaster               ## -- Begin function start_postmaster
	.p2align	4, 0x90
_start_postmaster:                      ## @start_postmaster
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	1000(,%rbx,4), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	addl	$200, %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	cmpb	$0, _start_postmaster.exit_hook_registered(%rip)
	jne	LBB0_2
## %bb.1:
	movq	_stop_postmaster_atexit@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_atexit
	movb	$1, _start_postmaster.exit_hook_registered(%rip)
LBB0_2:
	movb	$0, (%r15)
	movq	_SERVER_LOG_FILE@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	8(%r14), %rcx
	movq	16(%r14), %r9
	movl	24(%r14), %r10d
	movq	40(%r14), %rax
	movq	_BINARY_UPGRADE_SERVER_FLAG_CAT_VER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r11
	cmovlq	%rax, %r11
	cmpq	_new_cluster@GOTPCREL(%rip), %r14
	leaq	L_.str.3(%rip), %rbx
	leaq	L_.str.4(%rip), %rax
	cmovneq	%rax, %rbx
	movq	32(%r14), %r13
	testq	%r13, %r13
	cmoveq	%rax, %r13
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	xorl	%eax, %eax
	pushq	%r15
	movq	_SERVER_LOG_FILE@GOTPCREL(%rip), %r15
	pushq	%r13
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_snprintf
	addq	$48, %rsp
	movq	_SERVER_START_LOG_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r15), %rdi
	movl	%ebx, %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r15), %rax
LBB0_4:
	leaq	L_.str.5(%rip), %r8
	movl	%ebx, %edi
	movq	%rax, %rsi
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_exec_prog
	movl	%eax, %r12d
	orl	%eax, %ebx
	movl	$0, %eax
	je	LBB0_18
## %bb.5:
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.6:
	movq	_os_info@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
LBB0_7:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_get_db_conn
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	callq	_PQstatus
	movq	_CONNECTION_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.9:
	movq	_PG_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.7(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_pg_log
	movq	%r15, %rdi
	callq	_PQfinish
	cmpq	_old_cluster@GOTPCREL(%rip), %r14
	jne	LBB0_12
LBB0_15:
	leaq	L_.str.8(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_pg_fatal
	movq	%r15, %rdi
	callq	_PQfinish
	movl	$1, %eax
	testl	%r12d, %r12d
	jne	LBB0_18
## %bb.16:
	leaq	L_.str.10(%rip), %rdi
	jmp	LBB0_17
LBB0_10:
	movq	_PG_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_PQerrorMessage
	leaq	L_.str.7(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_pg_log
	cmpq	_old_cluster@GOTPCREL(%rip), %r14
	je	LBB0_15
LBB0_12:
	leaq	L_.str.9(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_13:
	movq	%r15, %rdi
	callq	_PQfinish
	movl	$1, %eax
	testl	%r12d, %r12d
	jne	LBB0_18
## %bb.14:
	cmpq	_old_cluster@GOTPCREL(%rip), %r14
	leaq	L_.str.10(%rip), %rax
	leaq	L_.str.11(%rip), %rdi
	cmoveq	%rax, %rdi
LBB0_17:
	xorl	%eax, %eax
	callq	_pg_fatal
	movl	$1, %eax
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_20
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
.zerofill __DATA,__bss,_start_postmaster.exit_hook_registered,1,2 ## @start_postmaster.exit_hook_registered
	.comm	_stop_postmaster_atexit,4,2     ## @stop_postmaster_atexit
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\"%s/pg_ctl\" -w -l \"%s\" -D \"%s\" -o \"-p %d%s%s %s%s\" start"

	.comm	_SERVER_LOG_FILE,8,3            ## @SERVER_LOG_FILE
	.comm	_BINARY_UPGRADE_SERVER_FLAG_CAT_VER,8,3 ## @BINARY_UPGRADE_SERVER_FLAG_CAT_VER
L_.str.1:                               ## @.str.1
	.asciz	" -b"

L_.str.2:                               ## @.str.2
	.asciz	" -c autovacuum=off -c autovacuum_freeze_max_age=2000000000"

	.comm	_new_cluster,56,3               ## @new_cluster
L_.str.3:                               ## @.str.3
	.asciz	" -c synchronous_commit=off -c fsync=off -c full_page_writes=off"

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

	.comm	_SERVER_START_LOG_FILE,4,2      ## @SERVER_START_LOG_FILE
L_.str.5:                               ## @.str.5
	.asciz	"%s"

	.comm	_os_info,8,3                    ## @os_info
L_.str.6:                               ## @.str.6
	.asciz	"template1"

	.comm	_CONNECTION_OK,8,3              ## @CONNECTION_OK
	.comm	_PG_REPORT,4,2                  ## @PG_REPORT
L_.str.7:                               ## @.str.7
	.asciz	"\nconnection to database failed: %s"

	.comm	_old_cluster,56,3               ## @old_cluster
L_.str.8:                               ## @.str.8
	.asciz	"could not connect to source postmaster started with the command:\n%s\n"

L_.str.9:                               ## @.str.9
	.asciz	"could not connect to target postmaster started with the command:\n%s\n"

L_.str.10:                              ## @.str.10
	.asciz	"pg_ctl failed to start the source server, or connection failed\n"

L_.str.11:                              ## @.str.11
	.asciz	"pg_ctl failed to start the target server, or connection failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_start_postmaster               ; -- Begin function start_postmaster
	.p2align	2
_start_postmaster:                      ; @start_postmaster
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w9, w8, #2
	add	w22, w9, #1000
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x22, #15
	and	x10, x10, #0x1fffffff0
	sub	x20, x9, x10
	mov	sp, x20
	add	w8, w8, #200
	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	x23, x9, x8
	mov	sp, x23
	adrp	x24, _start_postmaster.exit_hook_registered@PAGE
	ldrb	w8, [x24, _start_postmaster.exit_hook_registered@PAGEOFF]
	tbnz	w8, #0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _stop_postmaster_atexit@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stop_postmaster_atexit@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_atexit
	mov	w8, #1
	strb	w8, [x24, _start_postmaster.exit_hook_registered@PAGEOFF]
LBB0_2:
	strb	wzr, [x23]
Lloh13:
	adrp	x24, _SERVER_LOG_FILE@GOTPAGE
Lloh14:
	ldr	x24, [x24, _SERVER_LOG_FILE@GOTPAGEOFF]
	ldr	x4, [x24]
Lloh15:
	adrp	x8, _BINARY_UPGRADE_SERVER_FLAG_CAT_VER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BINARY_UPGRADE_SERVER_FLAG_CAT_VER@GOTPAGEOFF]
Lloh17:
	adrp	x9, l_.str.1@PAGE
Lloh18:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh19:
	adrp	x10, l_.str.2@PAGE
Lloh20:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x11, _new_cluster@GOTPAGE
Lloh23:
	ldr	x11, [x11, _new_cluster@GOTPAGEOFF]
	ldp	x13, x12, [x19, #32]
	cmp	x12, x8
	csel	x8, x10, x9, lt
Lloh24:
	adrp	x9, l_.str.4@PAGE
Lloh25:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh26:
	adrp	x10, l_.str.3@PAGE
Lloh27:
	add	x10, x10, l_.str.3@PAGEOFF
	ldp	x3, x12, [x19, #8]
	cmp	x19, x11
	csel	x10, x10, x9, eq
	cmp	x13, #0
	csel	x9, x9, x13, eq
	ldr	w11, [x19, #24]
	sub	sp, sp, #48
	stp	x9, x23, [sp, #32]
	stp	x8, x10, [sp, #16]
Lloh28:
	adrp	x2, l_.str@PAGE
Lloh29:
	add	x2, x2, l_.str@PAGEOFF
	stp	x12, x11, [sp]
	mov	x0, x20
	mov	x1, x22
	bl	_snprintf
	add	sp, sp, #48
Lloh30:
	adrp	x8, _SERVER_START_LOG_FILE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SERVER_START_LOG_FILE@GOTPAGEOFF]
Lloh32:
	ldr	w22, [x8]
	ldr	x0, [x24]
	mov	x1, x22
	bl	_strcmp
	ldr	x8, [x24]
	cmp	x0, #0
	csel	x1, xzr, x8, eq
Lloh33:
	adrp	x4, l_.str.5@PAGE
Lloh34:
	add	x4, x4, l_.str.5@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	mov	w3, #0
	mov	x5, x20
	bl	_exec_prog
	orr	w8, w0, w21
	cbz	w8, LBB0_8
; %bb.3:
	mov	x22, x0
	cbz	w0, LBB0_5
; %bb.4:
Lloh35:
	adrp	x8, _os_info@GOTPAGE
Lloh36:
	ldr	x8, [x8, _os_info@GOTPAGEOFF]
Lloh37:
	str	x19, [x8]
LBB0_5:
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_get_db_conn
	mov	x21, x0
	cbz	x0, LBB0_9
; %bb.6:
	mov	x0, x21
	bl	_PQstatus
Lloh40:
	adrp	x8, _CONNECTION_OK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CONNECTION_OK@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.7:
Lloh43:
	adrp	x8, _PG_REPORT@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PG_REPORT@GOTPAGEOFF]
Lloh45:
	ldr	w23, [x8]
	mov	x0, x21
	bl	_PQerrorMessage
	mov	x2, x0
Lloh46:
	adrp	x1, l_.str.7@PAGE
Lloh47:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x23
	bl	_pg_log
	mov	x0, x21
	bl	_PQfinish
	b	LBB0_10
LBB0_8:
	mov	w0, #0
	b	LBB0_18
LBB0_9:
Lloh48:
	adrp	x8, _PG_REPORT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _PG_REPORT@GOTPAGEOFF]
Lloh50:
	ldr	w23, [x8]
	bl	_PQerrorMessage
	mov	x2, x0
Lloh51:
	adrp	x1, l_.str.7@PAGE
Lloh52:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x23
	bl	_pg_log
LBB0_10:
Lloh53:
	adrp	x8, _old_cluster@GOTPAGE
Lloh54:
	ldr	x8, [x8, _old_cluster@GOTPAGEOFF]
	sub	sp, sp, #16
	cmp	x19, x8
	b.eq	LBB0_14
; %bb.11:
	str	x20, [sp]
Lloh55:
	adrp	x0, l_.str.9@PAGE
Lloh56:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_pg_fatal
	add	sp, sp, #16
LBB0_12:
	mov	x0, x21
	bl	_PQfinish
	cbnz	w22, LBB0_17
; %bb.13:
Lloh57:
	adrp	x8, _old_cluster@GOTPAGE
Lloh58:
	ldr	x8, [x8, _old_cluster@GOTPAGEOFF]
Lloh59:
	adrp	x9, l_.str.11@PAGE
Lloh60:
	add	x9, x9, l_.str.11@PAGEOFF
Lloh61:
	adrp	x10, l_.str.10@PAGE
Lloh62:
	add	x10, x10, l_.str.10@PAGEOFF
	cmp	x19, x8
	csel	x0, x10, x9, eq
	b	LBB0_16
LBB0_14:
	str	x20, [sp]
Lloh63:
	adrp	x0, l_.str.8@PAGE
Lloh64:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_pg_fatal
	add	sp, sp, #16
	mov	x0, x21
	bl	_PQfinish
	cbnz	w22, LBB0_17
; %bb.15:
Lloh65:
	adrp	x0, l_.str.10@PAGE
Lloh66:
	add	x0, x0, l_.str.10@PAGEOFF
LBB0_16:
	bl	_pg_fatal
LBB0_17:
	mov	w0, #1
LBB0_18:
	ldur	x8, [x29, #-56]
Lloh67:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh68:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh69:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	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_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh21
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
.zerofill __DATA,__bss,_start_postmaster.exit_hook_registered,1,2 ; @start_postmaster.exit_hook_registered
	.comm	_stop_postmaster_atexit,4,2     ; @stop_postmaster_atexit
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\"%s/pg_ctl\" -w -l \"%s\" -D \"%s\" -o \"-p %d%s%s %s%s\" start"

	.comm	_SERVER_LOG_FILE,8,3            ; @SERVER_LOG_FILE
	.comm	_BINARY_UPGRADE_SERVER_FLAG_CAT_VER,8,3 ; @BINARY_UPGRADE_SERVER_FLAG_CAT_VER
l_.str.1:                               ; @.str.1
	.asciz	" -b"

l_.str.2:                               ; @.str.2
	.asciz	" -c autovacuum=off -c autovacuum_freeze_max_age=2000000000"

	.comm	_new_cluster,56,3               ; @new_cluster
l_.str.3:                               ; @.str.3
	.asciz	" -c synchronous_commit=off -c fsync=off -c full_page_writes=off"

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

	.comm	_SERVER_START_LOG_FILE,4,2      ; @SERVER_START_LOG_FILE
l_.str.5:                               ; @.str.5
	.asciz	"%s"

	.comm	_os_info,8,3                    ; @os_info
l_.str.6:                               ; @.str.6
	.asciz	"template1"

	.comm	_CONNECTION_OK,8,3              ; @CONNECTION_OK
	.comm	_PG_REPORT,4,2                  ; @PG_REPORT
l_.str.7:                               ; @.str.7
	.asciz	"\nconnection to database failed: %s"

	.comm	_old_cluster,56,3               ; @old_cluster
l_.str.8:                               ; @.str.8
	.asciz	"could not connect to source postmaster started with the command:\n%s\n"

l_.str.9:                               ; @.str.9
	.asciz	"could not connect to target postmaster started with the command:\n%s\n"

l_.str.10:                              ; @.str.10
	.asciz	"pg_ctl failed to start the source server, or connection failed\n"

l_.str.11:                              ; @.str.11
	.asciz	"pg_ctl failed to start the target server, or connection failed\n"

.subsections_via_symbols
