	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_start
_do_start:                              ## @do_start
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_ctl_command@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_RESTART_COMMAND@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_3
## %bb.1:
	xorl	%edi, %edi
	callq	_get_pgpid
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	_progname@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_write_stderr
LBB0_3:
	xorl	%eax, %eax
	callq	_read_post_opts
	movq	(%rbx), %rcx
	movq	_pgdata_opt@GOTPCREL(%rip), %rax
	cmpq	(%r14), %rcx
	je	LBB0_5
## %bb.4:
	cmpq	$0, (%rax)
	jne	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, (%rax)
LBB0_6:
	movq	_exec_path@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_8
## %bb.7:
	movq	_argv0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PG_BACKEND_VERSIONSTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_find_other_exec_or_die
	movq	%rax, (%rbx)
LBB0_8:
	xorl	%eax, %eax
	callq	_getppid
	leaq	_do_start.env_var(%rip), %rbx
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	%eax, %ecx
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_putenv
	xorl	%eax, %eax
	callq	_start_postmaster
	movq	%rax, %rbx
	movq	_do_wait@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.10:
	movq	_postmasterPID@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_trap_sigint_during_startup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pqsignal
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_print_msg
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wait_for_postmaster
	cmpl	$129, %eax
	je	LBB0_16
## %bb.11:
	cmpl	$128, %eax
	je	LBB0_14
## %bb.12:
	cmpl	$130, %eax
	je	LBB0_13
## %bb.18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.10(%rip), %rdi
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_print_msg
	leaq	L_.str.6(%rip), %rdi
LBB0_17:
	callq	__
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_print_msg                      ## TAILCALL
LBB0_14:
	leaq	L_.str.7(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_print_msg
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.7(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_print_msg
	leaq	L_.str.9(%rip), %rdi
LBB0_15:
	callq	__
	movq	_progname@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_write_stderr
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_ctl_command,8,3                ## @ctl_command
	.comm	_RESTART_COMMAND,8,3            ## @RESTART_COMMAND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: another server might be running; trying to start server anyway\n"

	.comm	_progname,4,2                   ## @progname
	.comm	_pgdata_opt,8,3                 ## @pgdata_opt
L_.str.1:                               ## @.str.1
	.space	1

	.comm	_exec_path,8,3                  ## @exec_path
	.comm	_argv0,4,2                      ## @argv0
L_.str.2:                               ## @.str.2
	.asciz	"postgres"

	.comm	_PG_BACKEND_VERSIONSTR,4,2      ## @PG_BACKEND_VERSIONSTR
.zerofill __DATA,__bss,_do_start.env_var,32,4 ## @do_start.env_var
L_.str.3:                               ## @.str.3
	.asciz	"PG_GRANDPARENT_PID=%d"

	.comm	_do_wait,8,3                    ## @do_wait
	.comm	_postmasterPID,8,3              ## @postmasterPID
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_trap_sigint_during_startup,4,2 ## @trap_sigint_during_startup
L_.str.4:                               ## @.str.4
	.asciz	"waiting for server to start..."

L_.str.5:                               ## @.str.5
	.asciz	" done\n"

L_.str.6:                               ## @.str.6
	.asciz	"server started\n"

L_.str.7:                               ## @.str.7
	.asciz	" stopped waiting\n"

L_.str.8:                               ## @.str.8
	.asciz	"%s: server did not start in time\n"

L_.str.9:                               ## @.str.9
	.asciz	"%s: could not start server\nExamine the log output.\n"

L_.str.10:                              ## @.str.10
	.asciz	"server starting\n"

	.comm	_INVALID_HANDLE_VALUE,4,2       ## @INVALID_HANDLE_VALUE
	.comm	_allow_core_files,8,3           ## @allow_core_files
	.comm	_postmasterProcess,4,2          ## @postmasterProcess
	.no_dead_strip	_do_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_start
_do_start:                              ; @do_start
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _ctl_command@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ctl_command@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _RESTART_COMMAND@GOTPAGE
Lloh3:
	ldr	x20, [x20, _RESTART_COMMAND@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
	mov	w0, #0
	bl	_get_pgpid
	cbz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
Lloh6:
	adrp	x8, _progname@GOTPAGE
Lloh7:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_write_stderr
LBB0_3:
	bl	_read_post_opts
	ldr	x9, [x19]
	ldr	x10, [x20]
Lloh9:
	adrp	x8, _pgdata_opt@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pgdata_opt@GOTPAGEOFF]
	ldr	x11, [x8]
	cmp	x9, x10
	ccmp	x11, #0, #4, ne
	b.ne	LBB0_5
; %bb.4:
Lloh11:
	adrp	x9, l_.str.1@PAGE
Lloh12:
	add	x9, x9, l_.str.1@PAGEOFF
	str	x9, [x8]
LBB0_5:
Lloh13:
	adrp	x19, _exec_path@GOTPAGE
Lloh14:
	ldr	x19, [x19, _exec_path@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _argv0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _argv0@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _PG_BACKEND_VERSIONSTR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PG_BACKEND_VERSIONSTR@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_find_other_exec_or_die
	str	x0, [x19]
LBB0_7:
	bl	_getppid
	mov	x3, x0
Lloh23:
	adrp	x19, _do_start.env_var@PAGE
Lloh24:
	add	x19, x19, _do_start.env_var@PAGEOFF
Lloh25:
	adrp	x2, l_.str.3@PAGE
Lloh26:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #32
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_snprintf
	mov	x0, x19
	bl	_putenv
	bl	_start_postmaster
Lloh27:
	adrp	x8, _do_wait@GOTPAGE
Lloh28:
	ldr	x8, [x8, _do_wait@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.8:
	mov	x19, x0
Lloh30:
	adrp	x8, _postmasterPID@GOTPAGE
Lloh31:
	ldr	x8, [x8, _postmasterPID@GOTPAGEOFF]
Lloh32:
	str	x0, [x8]
Lloh33:
	adrp	x8, _SIGINT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x8, _trap_sigint_during_startup@GOTPAGE
Lloh37:
	ldr	x8, [x8, _trap_sigint_during_startup@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	bl	_pqsignal
Lloh39:
	adrp	x0, l_.str.4@PAGE
Lloh40:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	bl	_print_msg
	mov	x0, x19
	mov	w1, #0
	bl	_wait_for_postmaster
	cmp	w0, #129
	b.eq	LBB0_13
; %bb.9:
	cmp	w0, #128
	b.eq	LBB0_15
; %bb.10:
	cmp	w0, #130
	b.eq	LBB0_16
; %bb.11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh41:
	adrp	x0, l_.str.10@PAGE
Lloh42:
	add	x0, x0, l_.str.10@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh43:
	adrp	x0, l_.str.5@PAGE
Lloh44:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	bl	_print_msg
Lloh45:
	adrp	x0, l_.str.6@PAGE
Lloh46:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_14:
	bl	__
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_print_msg
LBB0_15:
Lloh47:
	adrp	x0, l_.str.7@PAGE
Lloh48:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	__
	bl	_print_msg
Lloh49:
	adrp	x0, l_.str.8@PAGE
Lloh50:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh51:
	adrp	x0, l_.str.7@PAGE
Lloh52:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	__
	bl	_print_msg
Lloh53:
	adrp	x0, l_.str.9@PAGE
Lloh54:
	add	x0, x0, l_.str.9@PAGEOFF
LBB0_17:
	bl	__
Lloh55:
	adrp	x8, _progname@GOTPAGE
Lloh56:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	bl	_write_stderr
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_ctl_command,8,3                ; @ctl_command
	.comm	_RESTART_COMMAND,8,3            ; @RESTART_COMMAND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: another server might be running; trying to start server anyway\n"

	.comm	_progname,4,2                   ; @progname
	.comm	_pgdata_opt,8,3                 ; @pgdata_opt
l_.str.1:                               ; @.str.1
	.space	1

	.comm	_exec_path,8,3                  ; @exec_path
	.comm	_argv0,4,2                      ; @argv0
l_.str.2:                               ; @.str.2
	.asciz	"postgres"

	.comm	_PG_BACKEND_VERSIONSTR,4,2      ; @PG_BACKEND_VERSIONSTR
.zerofill __DATA,__bss,_do_start.env_var,32,0 ; @do_start.env_var
l_.str.3:                               ; @.str.3
	.asciz	"PG_GRANDPARENT_PID=%d"

	.comm	_do_wait,8,3                    ; @do_wait
	.comm	_postmasterPID,8,3              ; @postmasterPID
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_trap_sigint_during_startup,4,2 ; @trap_sigint_during_startup
l_.str.4:                               ; @.str.4
	.asciz	"waiting for server to start..."

l_.str.5:                               ; @.str.5
	.asciz	" done\n"

l_.str.6:                               ; @.str.6
	.asciz	"server started\n"

l_.str.7:                               ; @.str.7
	.asciz	" stopped waiting\n"

l_.str.8:                               ; @.str.8
	.asciz	"%s: server did not start in time\n"

l_.str.9:                               ; @.str.9
	.asciz	"%s: could not start server\nExamine the log output.\n"

l_.str.10:                              ; @.str.10
	.asciz	"server starting\n"

	.comm	_INVALID_HANDLE_VALUE,4,2       ; @INVALID_HANDLE_VALUE
	.comm	_allow_core_files,8,3           ; @allow_core_files
	.comm	_postmasterProcess,4,2          ; @postmasterProcess
	.no_dead_strip	_do_start
.subsections_via_symbols
