	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pq_init                        ## -- Begin function pq_init
	.p2align	4, 0x90
_pq_init:                               ## @pq_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PQ_SEND_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PqSendBufferSize@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movq	_TopMemoryContext@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_MemoryContextAlloc
	movq	_PqSendBuffer@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_PqRecvLength@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_PqRecvPointer@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_PqSendStart@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_PqSendPointer@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_PqCommBusy@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_PqCommReadingMsg@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_DoingCopyOut@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_socket_close@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_on_proc_exit
	movq	_MyProcPort@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_pg_set_noblock
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_COMMERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movl	(%r14), %edi
	movl	$3, %esi
	callq	_CreateWaitEventSet
	movq	_FeBeWaitSet@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movq	_WL_SOCKET_WRITEABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%r12), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_AddWaitEventToSet
	movl	(%rbx), %edi
	movq	_WL_LATCH_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MyLatch@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_AddWaitEventToSet
	movl	(%rbx), %edi
	movq	_WL_POSTMASTER_DEATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AddWaitEventToSet              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PQ_SEND_BUFFER_SIZE,4,2        ## @PQ_SEND_BUFFER_SIZE
	.comm	_PqSendBufferSize,4,2           ## @PqSendBufferSize
	.comm	_TopMemoryContext,4,2           ## @TopMemoryContext
	.comm	_PqSendBuffer,4,2               ## @PqSendBuffer
	.comm	_PqRecvLength,8,3               ## @PqRecvLength
	.comm	_PqRecvPointer,8,3              ## @PqRecvPointer
	.comm	_PqSendStart,8,3                ## @PqSendStart
	.comm	_PqSendPointer,8,3              ## @PqSendPointer
	.comm	_PqCommBusy,4,2                 ## @PqCommBusy
	.comm	_PqCommReadingMsg,4,2           ## @PqCommReadingMsg
	.comm	_DoingCopyOut,4,2               ## @DoingCopyOut
	.comm	_socket_close,4,2               ## @socket_close
	.comm	_MyProcPort,8,3                 ## @MyProcPort
	.comm	_COMMERROR,4,2                  ## @COMMERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not set socket to nonblocking mode: %m"

	.comm	_FeBeWaitSet,4,2                ## @FeBeWaitSet
	.comm	_WL_SOCKET_WRITEABLE,4,2        ## @WL_SOCKET_WRITEABLE
	.comm	_WL_LATCH_SET,4,2               ## @WL_LATCH_SET
	.comm	_MyLatch,8,3                    ## @MyLatch
	.comm	_WL_POSTMASTER_DEATH,4,2        ## @WL_POSTMASTER_DEATH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pq_init                        ; -- Begin function pq_init
	.p2align	2
_pq_init:                               ; @pq_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _PQ_SEND_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PQ_SEND_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _PqSendBufferSize@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PqSendBufferSize@GOTPAGEOFF]
Lloh5:
	str	w1, [x8]
Lloh6:
	adrp	x20, _TopMemoryContext@GOTPAGE
Lloh7:
	ldr	x20, [x20, _TopMemoryContext@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_MemoryContextAlloc
Lloh8:
	adrp	x8, _PqSendBuffer@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PqSendBuffer@GOTPAGEOFF]
Lloh10:
	str	w0, [x8]
Lloh11:
	adrp	x8, _PqRecvLength@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PqRecvLength@GOTPAGEOFF]
Lloh13:
	str	xzr, [x8]
Lloh14:
	adrp	x8, _PqRecvPointer@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PqRecvPointer@GOTPAGEOFF]
Lloh16:
	str	xzr, [x8]
Lloh17:
	adrp	x8, _PqSendStart@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PqSendStart@GOTPAGEOFF]
Lloh19:
	str	xzr, [x8]
Lloh20:
	adrp	x8, _PqSendPointer@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PqSendPointer@GOTPAGEOFF]
Lloh22:
	str	xzr, [x8]
Lloh23:
	adrp	x8, _PqCommBusy@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PqCommBusy@GOTPAGEOFF]
Lloh25:
	str	wzr, [x8]
Lloh26:
	adrp	x8, _PqCommReadingMsg@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PqCommReadingMsg@GOTPAGEOFF]
Lloh28:
	str	wzr, [x8]
Lloh29:
	adrp	x8, _DoingCopyOut@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DoingCopyOut@GOTPAGEOFF]
Lloh31:
	str	wzr, [x8]
Lloh32:
	adrp	x8, _socket_close@GOTPAGE
Lloh33:
	ldr	x8, [x8, _socket_close@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_on_proc_exit
Lloh35:
	adrp	x21, _MyProcPort@GOTPAGE
Lloh36:
	ldr	x21, [x21, _MyProcPort@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_pg_set_noblock
	cbnz	w0, LBB0_2
; %bb.1:
Lloh37:
	adrp	x8, _COMMERROR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _COMMERROR@GOTPAGEOFF]
Lloh39:
	ldr	w19, [x8]
Lloh40:
	adrp	x0, l_.str@PAGE
Lloh41:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_2:
	ldr	w0, [x20]
	mov	w1, #3
	bl	_CreateWaitEventSet
Lloh42:
	adrp	x19, _FeBeWaitSet@GOTPAGE
Lloh43:
	ldr	x19, [x19, _FeBeWaitSet@GOTPAGEOFF]
	str	w0, [x19]
Lloh44:
	adrp	x8, _WL_SOCKET_WRITEABLE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _WL_SOCKET_WRITEABLE@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	ldr	x8, [x21]
	ldr	w2, [x8]
	mov	x3, #0
	mov	x4, #0
	bl	_AddWaitEventToSet
	ldr	w0, [x19]
Lloh47:
	adrp	x8, _WL_LATCH_SET@GOTPAGE
Lloh48:
	ldr	x8, [x8, _WL_LATCH_SET@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x8, _MyLatch@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MyLatch@GOTPAGEOFF]
Lloh52:
	ldr	x3, [x8]
	mov	w2, #-1
	mov	x4, #0
	bl	_AddWaitEventToSet
	ldr	w0, [x19]
Lloh53:
	adrp	x8, _WL_POSTMASTER_DEATH@GOTPAGE
Lloh54:
	ldr	x8, [x8, _WL_POSTMASTER_DEATH@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	mov	w2, #-1
	mov	x3, #0
	mov	x4, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AddWaitEventToSet
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_PQ_SEND_BUFFER_SIZE,4,2        ; @PQ_SEND_BUFFER_SIZE
	.comm	_PqSendBufferSize,4,2           ; @PqSendBufferSize
	.comm	_TopMemoryContext,4,2           ; @TopMemoryContext
	.comm	_PqSendBuffer,4,2               ; @PqSendBuffer
	.comm	_PqRecvLength,8,3               ; @PqRecvLength
	.comm	_PqRecvPointer,8,3              ; @PqRecvPointer
	.comm	_PqSendStart,8,3                ; @PqSendStart
	.comm	_PqSendPointer,8,3              ; @PqSendPointer
	.comm	_PqCommBusy,4,2                 ; @PqCommBusy
	.comm	_PqCommReadingMsg,4,2           ; @PqCommReadingMsg
	.comm	_DoingCopyOut,4,2               ; @DoingCopyOut
	.comm	_socket_close,4,2               ; @socket_close
	.comm	_MyProcPort,8,3                 ; @MyProcPort
	.comm	_COMMERROR,4,2                  ; @COMMERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not set socket to nonblocking mode: %m"

	.comm	_FeBeWaitSet,4,2                ; @FeBeWaitSet
	.comm	_WL_SOCKET_WRITEABLE,4,2        ; @WL_SOCKET_WRITEABLE
	.comm	_WL_LATCH_SET,4,2               ; @WL_LATCH_SET
	.comm	_MyLatch,8,3                    ; @MyLatch
	.comm	_WL_POSTMASTER_DEATH,4,2        ; @WL_POSTMASTER_DEATH
.subsections_via_symbols
