	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function InitPostmasterDeathWatchHandle
_InitPostmasterDeathWatchHandle:        ## @InitPostmasterDeathWatchHandle
	.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	_MyProcPid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PostmasterPid@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	_postmaster_alive_fds@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_pipe
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	(%rbx), %rax
	movq	_POSTMASTER_FD_WATCH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_socket_access
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MyProcPid,8,3                  ## @MyProcPid
	.comm	_PostmasterPid,8,3              ## @PostmasterPid
	.comm	_postmaster_alive_fds,8,3       ## @postmaster_alive_fds
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not create pipe to monitor postmaster death: %m"

	.comm	_POSTMASTER_FD_WATCH,8,3        ## @POSTMASTER_FD_WATCH
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
L_.str.1:                               ## @.str.1
	.asciz	"could not set postmaster death monitoring pipe to nonblocking mode: %m"

	.comm	_DUPLICATE_SAME_ACCESS,4,2      ## @DUPLICATE_SAME_ACCESS
	.comm	_PostmasterHandle,4,2           ## @PostmasterHandle
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_InitPostmasterDeathWatchHandle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function InitPostmasterDeathWatchHandle
_InitPostmasterDeathWatchHandle:        ; @InitPostmasterDeathWatchHandle
	.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	x8, _MyProcPid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MyProcPid@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _PostmasterPid@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PostmasterPid@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
Lloh6:
	adrp	x20, _postmaster_alive_fds@GOTPAGE
Lloh7:
	ldr	x20, [x20, _postmaster_alive_fds@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_pipe
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _FATAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	bl	_errcode_for_file_access
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_2:
	ldr	x8, [x20]
Lloh13:
	adrp	x9, _POSTMASTER_FD_WATCH@GOTPAGE
Lloh14:
	ldr	x9, [x9, _POSTMASTER_FD_WATCH@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
Lloh16:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh22:
	adrp	x8, _FATAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh24:
	ldr	w19, [x8]
	bl	_errcode_for_socket_access
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ereport
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MyProcPid,8,3                  ; @MyProcPid
	.comm	_PostmasterPid,8,3              ; @PostmasterPid
	.comm	_postmaster_alive_fds,8,3       ; @postmaster_alive_fds
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not create pipe to monitor postmaster death: %m"

	.comm	_POSTMASTER_FD_WATCH,8,3        ; @POSTMASTER_FD_WATCH
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
l_.str.1:                               ; @.str.1
	.asciz	"could not set postmaster death monitoring pipe to nonblocking mode: %m"

	.comm	_DUPLICATE_SAME_ACCESS,4,2      ; @DUPLICATE_SAME_ACCESS
	.comm	_PostmasterHandle,4,2           ; @PostmasterHandle
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_InitPostmasterDeathWatchHandle
.subsections_via_symbols
