	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_pgpid
_get_pgpid:                             ## @get_pgpid
	.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	%edi, %r13d
	movq	_pg_data@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-48(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_1
## %bb.6:
	movq	_version_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
LBB0_9:
	movq	_pid_file@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:
	movq	%rax, %rbx
	leaq	L_.str.5(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movq	%rax, %rdi
	callq	_fscanf
	cmpl	$1, %eax
	jne	LBB0_13
## %bb.18:
	movq	%rbx, %rdi
	callq	_fclose
	movl	-64(%rbp), %eax
	jmp	LBB0_19
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	_ENOENT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_11
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
LBB0_3:
	callq	__
	movq	_progname@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rbx), %edx
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_write_stderr
	jmp	LBB0_5
LBB0_13:
	movq	%rbx, %rdi
	callq	_ftell
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:
	movq	%rbx, %rdi
	callq	_feof
	testq	%rax, %rax
	jne	LBB0_15
LBB0_16:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_17
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_progname@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rbx), %r12d
	movq	(%r14), %rdi
	callq	_strerror
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_write_stderr
LBB0_5:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	setne	%al
	leal	(%rax,%rax,2), %edi
	incl	%edi
	callq	_exit
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %r14d
	movq	_progname@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r15), %r15d
	movq	(%rbx), %rdi
	callq	_strerror
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_write_stderr
	movl	$1, %edi
	callq	_exit
LBB0_15:
	leaq	L_.str.6(%rip), %rdi
LBB0_17:
	callq	__
	movq	_progname@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r15), %edx
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_write_stderr
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_pg_data,4,2                    ## @pg_data
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: directory \"%s\" does not exist\n"

	.comm	_progname,4,2                   ## @progname
L_.str.1:                               ## @.str.1
	.asciz	"%s: could not access directory \"%s\": %s\n"

	.comm	_version_file,4,2               ## @version_file
L_.str.2:                               ## @.str.2
	.asciz	"%s: directory \"%s\" is not a database cluster directory\n"

	.comm	_pid_file,4,2                   ## @pid_file
L_.str.3:                               ## @.str.3
	.asciz	"r"

L_.str.4:                               ## @.str.4
	.asciz	"%s: could not open PID file \"%s\": %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"%ld"

L_.str.6:                               ## @.str.6
	.asciz	"%s: the PID file \"%s\" is empty\n"

L_.str.7:                               ## @.str.7
	.asciz	"%s: invalid data in PID file \"%s\"\n"

	.no_dead_strip	_get_pgpid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_pgpid
_get_pgpid:                             ; @get_pgpid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
Lloh0:
	adrp	x22, _pg_data@GOTPAGE
Lloh1:
	ldr	x22, [x22, _pg_data@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x1, sp, #16
	bl	_stat
	cbnz	x0, LBB0_9
; %bb.1:
Lloh2:
	adrp	x8, _version_file@GOTPAGE
Lloh3:
	ldr	x8, [x8, _version_file@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, sp, #16
	bl	_stat
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _ENOENT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
LBB0_3:
Lloh11:
	adrp	x21, _pid_file@GOTPAGE
Lloh12:
	ldr	x21, [x21, _pid_file@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_6
; %bb.4:
	mov	x19, x0
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #24
	bl	_fscanf
	cmp	w0, #1
	b.ne	LBB0_13
; %bb.5:
	mov	x0, x19
	bl	_fclose
	ldr	w0, [sp, #24]
	b	LBB0_8
LBB0_6:
Lloh17:
	adrp	x22, _errno@GOTPAGE
Lloh18:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh19:
	adrp	x9, _ENOENT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.7:
	mov	w0, #0
LBB0_8:
	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
	add	sp, sp, #96
	ret
LBB0_9:
Lloh22:
	adrp	x23, _errno@GOTPAGE
Lloh23:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh24:
	adrp	x9, _ENOENT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.10:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_12:
	bl	__
Lloh31:
	adrp	x8, _progname@GOTPAGE
Lloh32:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldr	w2, [x22]
	b	LBB0_17
LBB0_13:
	mov	x0, x19
	bl	_ftell
	cbnz	x0, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_feof
	cbnz	x0, LBB0_19
LBB0_15:
Lloh34:
	adrp	x0, l_.str.7@PAGE
Lloh35:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_20
LBB0_16:
Lloh36:
	adrp	x0, l_.str.1@PAGE
Lloh37:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x20, x0
Lloh38:
	adrp	x8, _progname@GOTPAGE
Lloh39:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh40:
	ldr	w21, [x8]
	ldr	w22, [x22]
	ldr	x0, [x23]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
LBB0_17:
	bl	_write_stderr
	cmp	w19, #0
	mov	w8, #4
	csinc	w0, w8, wzr, ne
	bl	_exit
LBB0_18:
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x19, x0
Lloh43:
	adrp	x8, _progname@GOTPAGE
Lloh44:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh45:
	ldr	w20, [x8]
	ldr	w21, [x21]
	ldr	x0, [x22]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	b	LBB0_21
LBB0_19:
Lloh46:
	adrp	x0, l_.str.6@PAGE
Lloh47:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_20:
	bl	__
Lloh48:
	adrp	x8, _progname@GOTPAGE
Lloh49:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	ldr	w2, [x21]
LBB0_21:
	bl	_write_stderr
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_pg_data,4,2                    ; @pg_data
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: directory \"%s\" does not exist\n"

	.comm	_progname,4,2                   ; @progname
l_.str.1:                               ; @.str.1
	.asciz	"%s: could not access directory \"%s\": %s\n"

	.comm	_version_file,4,2               ; @version_file
l_.str.2:                               ; @.str.2
	.asciz	"%s: directory \"%s\" is not a database cluster directory\n"

	.comm	_pid_file,4,2                   ; @pid_file
l_.str.3:                               ; @.str.3
	.asciz	"r"

l_.str.4:                               ; @.str.4
	.asciz	"%s: could not open PID file \"%s\": %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"%ld"

l_.str.6:                               ; @.str.6
	.asciz	"%s: the PID file \"%s\" is empty\n"

l_.str.7:                               ; @.str.7
	.asciz	"%s: invalid data in PID file \"%s\"\n"

	.no_dead_strip	_get_pgpid
.subsections_via_symbols
