	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ClosePostmasterPorts           ## -- Begin function ClosePostmasterPorts
	.p2align	4, 0x90
_ClosePostmasterPorts:                  ## @ClosePostmasterPorts
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_postmaster_alive_fds@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_POSTMASTER_FD_OWN@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_close
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	(%r15), %rax
	movq	(%r12), %rcx
	movl	$-1, (%rax,%rcx,4)
	movq	_MAXLISTEN@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	_ListenSocket@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	xorl	%ebx, %ebx
	movq	_PGINVALID_SOCKET@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	%eax, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rdi
	cmpq	(%r13), %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_StreamClose
	movq	(%r13), %rax
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	(%r15), %eax
	jmp	LBB0_6
LBB0_7:
	testl	%r14d, %r14d
	jne	LBB0_11
## %bb.8:
	movq	_syslogPipe@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	js	LBB0_10
## %bb.9:
	callq	_close
	movq	(%rbx), %rax
LBB0_10:
	movl	$-1, (%rax)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_postmaster_alive_fds,8,3       ## @postmaster_alive_fds
	.comm	_POSTMASTER_FD_OWN,8,3          ## @POSTMASTER_FD_OWN
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not close postmaster death monitoring pipe in child process: %m"

	.comm	_MAXLISTEN,4,2                  ## @MAXLISTEN
	.comm	_ListenSocket,8,3               ## @ListenSocket
	.comm	_PGINVALID_SOCKET,8,3           ## @PGINVALID_SOCKET
	.comm	_syslogPipe,8,3                 ## @syslogPipe
	.comm	_bonjour_sdref,8,3              ## @bonjour_sdref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ClosePostmasterPorts           ; -- Begin function ClosePostmasterPorts
	.p2align	2
_ClosePostmasterPorts:                  ; @ClosePostmasterPorts
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, _postmaster_alive_fds@GOTPAGE
Lloh1:
	ldr	x21, [x21, _postmaster_alive_fds@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x22, _POSTMASTER_FD_OWN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _POSTMASTER_FD_OWN@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	w0, [x8, x9, lsl #2]
	bl	_close
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _FATAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_2:
	ldr	x8, [x21]
	ldr	x9, [x22]
	mov	w10, #-1
	str	w10, [x8, x9, lsl #2]
Lloh9:
	adrp	x20, _MAXLISTEN@GOTPAGE
Lloh10:
	ldr	x20, [x20, _MAXLISTEN@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x21, #0
Lloh11:
	adrp	x22, _ListenSocket@GOTPAGE
Lloh12:
	ldr	x22, [x22, _ListenSocket@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh13:
	adrp	x23, _PGINVALID_SOCKET@GOTPAGE
Lloh14:
	ldr	x23, [x23, _PGINVALID_SOCKET@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x9, x21, lsl #3]
	ldr	x10, [x23]
	cmp	x0, x10
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_StreamClose
	ldr	x8, [x23]
	ldr	x9, [x22]
	str	x8, [x9, x21, lsl #3]
	ldr	w8, [x20]
	b	LBB0_4
LBB0_7:
	cbnz	w19, LBB0_11
; %bb.8:
Lloh15:
	adrp	x19, _syslogPipe@GOTPAGE
Lloh16:
	ldr	x19, [x19, _syslogPipe@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w0, [x8]
	tbnz	w0, #31, LBB0_10
; %bb.9:
	bl	_close
	ldr	x8, [x19]
LBB0_10:
	mov	w9, #-1
	str	w9, [x8]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_postmaster_alive_fds,8,3       ; @postmaster_alive_fds
	.comm	_POSTMASTER_FD_OWN,8,3          ; @POSTMASTER_FD_OWN
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not close postmaster death monitoring pipe in child process: %m"

	.comm	_MAXLISTEN,4,2                  ; @MAXLISTEN
	.comm	_ListenSocket,8,3               ; @ListenSocket
	.comm	_PGINVALID_SOCKET,8,3           ; @PGINVALID_SOCKET
	.comm	_syslogPipe,8,3                 ; @syslogPipe
	.comm	_bonjour_sdref,8,3              ; @bonjour_sdref
.subsections_via_symbols
