	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PostmasterIsAliveInternal      ## -- Begin function PostmasterIsAliveInternal
	.p2align	4, 0x90
_PostmasterIsAliveInternal:             ## @PostmasterIsAliveInternal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_postmaster_alive_fds@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_POSTMASTER_FD_WATCH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	leaq	-9(%rbp), %rsi
	movl	$1, %ebx
	movl	$1, %edx
	callq	_read
	testq	%rax, %rax
	js	LBB0_1
## %bb.4:
	je	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.2:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.3:
	leaq	L_.str(%rip), %rsi
LBB0_6:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_elog
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_postmaster_alive_fds,8,3       ## @postmaster_alive_fds
	.comm	_POSTMASTER_FD_WATCH,8,3        ## @POSTMASTER_FD_WATCH
	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read on postmaster death monitoring pipe failed: %m"

L_.str.1:                               ## @.str.1
	.asciz	"unexpected data in postmaster death monitoring pipe"

	.comm	_PostmasterHandle,4,2           ## @PostmasterHandle
	.comm	_WAIT_TIMEOUT,8,3               ## @WAIT_TIMEOUT
	.comm	_postmaster_possibly_dead,4,2   ## @postmaster_possibly_dead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PostmasterIsAliveInternal      ; -- Begin function PostmasterIsAliveInternal
	.p2align	2
_PostmasterIsAliveInternal:             ; @PostmasterIsAliveInternal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _postmaster_alive_fds@GOTPAGE
Lloh1:
	ldr	x8, [x8, _postmaster_alive_fds@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _POSTMASTER_FD_WATCH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POSTMASTER_FD_WATCH@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	sub	x1, x29, #1
	mov	w2, #1
	bl	_read
	tbnz	x0, #63, LBB0_3
; %bb.1:
	cbz	x0, LBB0_7
; %bb.2:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _EWOULDBLOCK@GOTPAGE
Lloh15:
	ldr	x10, [x10, _EWOULDBLOCK@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #1
	b	LBB0_7
LBB0_5:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
Lloh19:
	adrp	x8, _FATAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_elog
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_postmaster_alive_fds,8,3       ; @postmaster_alive_fds
	.comm	_POSTMASTER_FD_WATCH,8,3        ; @POSTMASTER_FD_WATCH
	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read on postmaster death monitoring pipe failed: %m"

l_.str.1:                               ; @.str.1
	.asciz	"unexpected data in postmaster death monitoring pipe"

	.comm	_PostmasterHandle,4,2           ; @PostmasterHandle
	.comm	_WAIT_TIMEOUT,8,3               ; @WAIT_TIMEOUT
	.comm	_postmaster_possibly_dead,4,2   ; @postmaster_possibly_dead
.subsections_via_symbols
