	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitializeLatchSupport         ## -- Begin function InitializeLatchSupport
	.p2align	4, 0x90
_InitializeLatchSupport:                ## @InitializeLatchSupport
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_IsUnderPostmaster@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_selfpipe_owner_pid@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_MyProcPid@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_Assert
	movq	_selfpipe_readfd@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_close
	movq	_selfpipe_writefd@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_close
	movl	$-1, (%rbx)
	movl	$-1, (%r15)
	movq	$0, (%r14)
	jmp	LBB0_6
LBB0_4:
	movq	_selfpipe_readfd@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$-1, (%rax)
	sete	%dil
	callq	_Assert
	movq	_selfpipe_owner_pid@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	jmp	LBB0_5
LBB0_3:
	movq	_selfpipe_readfd@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$-1, (%rax)
LBB0_5:
	sete	%dil
	callq	_Assert
LBB0_6:
	leaq	-40(%rbp), %rdi
	callq	_pipe
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_8:
	movl	-40(%rbp), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_fcntl
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_10:
	movl	-36(%rbp), %edi
	movl	(%r14), %esi
	movl	(%rbx), %edx
	callq	_fcntl
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.11:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_elog
LBB0_12:
	movl	-40(%rbp), %edi
	movq	_F_SETFD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_fcntl
	cmpl	$-1, %eax
	jne	LBB0_14
## %bb.13:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_elog
LBB0_14:
	movl	-36(%rbp), %edi
	movl	(%r14), %esi
	movl	(%rbx), %edx
	callq	_fcntl
	cmpl	$-1, %eax
	jne	LBB0_16
## %bb.15:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_elog
LBB0_16:
	movq	_selfpipe_readfd@GOTPCREL(%rip), %rax
	movl	-40(%rbp), %ecx
	movl	-36(%rbp), %edx
	movl	%ecx, (%rax)
	movq	_selfpipe_writefd@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	movq	_MyProcPid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_selfpipe_owner_pid@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IsUnderPostmaster,8,3          ## @IsUnderPostmaster
	.comm	_selfpipe_owner_pid,8,3         ## @selfpipe_owner_pid
	.comm	_MyProcPid,8,3                  ## @MyProcPid
	.comm	_selfpipe_readfd,4,2            ## @selfpipe_readfd
	.comm	_selfpipe_writefd,4,2           ## @selfpipe_writefd
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pipe() failed: %m"

	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
L_.str.1:                               ## @.str.1
	.asciz	"fcntl(F_SETFL) failed on read-end of self-pipe: %m"

L_.str.2:                               ## @.str.2
	.asciz	"fcntl(F_SETFL) failed on write-end of self-pipe: %m"

	.comm	_F_SETFD,4,2                    ## @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ## @FD_CLOEXEC
L_.str.3:                               ## @.str.3
	.asciz	"fcntl(F_SETFD) failed on read-end of self-pipe: %m"

L_.str.4:                               ## @.str.4
	.asciz	"fcntl(F_SETFD) failed on write-end of self-pipe: %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitializeLatchSupport         ; -- Begin function InitializeLatchSupport
	.p2align	2
_InitializeLatchSupport:                ; @InitializeLatchSupport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _IsUnderPostmaster@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IsUnderPostmaster@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x19, _selfpipe_readfd@GOTPAGE
Lloh7:
	ldr	x19, [x19, _selfpipe_readfd@GOTPAGEOFF]
Lloh8:
	adrp	x20, _selfpipe_writefd@GOTPAGE
Lloh9:
	ldr	x20, [x20, _selfpipe_writefd@GOTPAGEOFF]
Lloh10:
	adrp	x21, _MyProcPid@GOTPAGE
Lloh11:
	ldr	x21, [x21, _MyProcPid@GOTPAGEOFF]
Lloh12:
	adrp	x22, _selfpipe_owner_pid@GOTPAGE
Lloh13:
	ldr	x22, [x22, _selfpipe_owner_pid@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, ne
	bl	_Assert
	ldr	w0, [x19]
	bl	_close
	ldr	w0, [x20]
	bl	_close
	mov	w8, #-1
	str	w8, [x20]
	str	w8, [x19]
	str	xzr, [x22]
	b	LBB0_6
LBB0_3:
	ldr	w8, [x19]
	cmn	w8, #1
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x22]
	cmp	x8, #0
	b	LBB0_5
LBB0_4:
	ldr	w8, [x19]
	cmn	w8, #1
LBB0_5:
	cset	w0, eq
	bl	_Assert
LBB0_6:
	mov	x0, sp
	bl	_pipe
	tbz	x0, #63, LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _FATAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_8:
	ldr	w0, [sp]
Lloh19:
	adrp	x23, _F_SETFL@GOTPAGE
Lloh20:
	ldr	x23, [x23, _F_SETFL@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh21:
	adrp	x24, _O_NONBLOCK@GOTPAGE
Lloh22:
	ldr	x24, [x24, _O_NONBLOCK@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_fcntl
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
Lloh23:
	adrp	x8, _FATAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_10:
	ldr	w0, [sp, #4]
	ldr	w1, [x23]
	ldr	w2, [x24]
	bl	_fcntl
	cmn	w0, #1
	b.ne	LBB0_12
; %bb.11:
Lloh28:
	adrp	x8, _FATAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_12:
	ldr	w0, [sp]
Lloh33:
	adrp	x23, _F_SETFD@GOTPAGE
Lloh34:
	ldr	x23, [x23, _F_SETFD@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh35:
	adrp	x24, _FD_CLOEXEC@GOTPAGE
Lloh36:
	ldr	x24, [x24, _FD_CLOEXEC@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_fcntl
	cmn	w0, #1
	b.ne	LBB0_14
; %bb.13:
Lloh37:
	adrp	x8, _FATAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_elog
LBB0_14:
	ldr	w0, [sp, #4]
	ldr	w1, [x23]
	ldr	w2, [x24]
	bl	_fcntl
	cmn	w0, #1
	b.ne	LBB0_16
; %bb.15:
Lloh42:
	adrp	x8, _FATAL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x1, l_.str.4@PAGE
Lloh46:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_elog
LBB0_16:
	ldp	w8, w9, [sp]
	str	w8, [x19]
	str	w9, [x20]
	ldr	x8, [x21]
	str	x8, [x22]
	ldr	x8, [sp, #8]
Lloh47:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh48:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_IsUnderPostmaster,8,3          ; @IsUnderPostmaster
	.comm	_selfpipe_owner_pid,8,3         ; @selfpipe_owner_pid
	.comm	_MyProcPid,8,3                  ; @MyProcPid
	.comm	_selfpipe_readfd,4,2            ; @selfpipe_readfd
	.comm	_selfpipe_writefd,4,2           ; @selfpipe_writefd
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pipe() failed: %m"

	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
l_.str.1:                               ; @.str.1
	.asciz	"fcntl(F_SETFL) failed on read-end of self-pipe: %m"

l_.str.2:                               ; @.str.2
	.asciz	"fcntl(F_SETFL) failed on write-end of self-pipe: %m"

	.comm	_F_SETFD,4,2                    ; @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ; @FD_CLOEXEC
l_.str.3:                               ; @.str.3
	.asciz	"fcntl(F_SETFD) failed on read-end of self-pipe: %m"

l_.str.4:                               ; @.str.4
	.asciz	"fcntl(F_SETFD) failed on write-end of self-pipe: %m"

.subsections_via_symbols
