	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libpqrcv_connect
_libpqrcv_connect:                      ## @libpqrcv_connect
	.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
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rcx
	movq	%rcx, -96(%rbp)
	movq	%rdi, -144(%rbp)
	leaq	L_.str.1(%rip), %rdx
	movq	%rdx, -88(%rbp)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	testl	%r15d, %r15d
	cmoveq	%rax, %rsi
	movq	%rsi, -136(%rbp)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_GetDatabaseEncodingName
	movq	%rbx, %rdx
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str.4(%rip), %rcx
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.4(%rip), %rsi
LBB0_3:
	movq	%rcx, -80(%rbp)
	movq	%rdx, -128(%rbp)
	movq	%rsi, -72(%rbp)
	movq	%rbx, -120(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -112(%rbp)
	movl	$1, %edi
	callq	_Assert
	movl	$8, %edi
	callq	_palloc0
	movq	%rax, %rbx
	leaq	-96(%rbp), %rdi
	leaq	-144(%rbp), %rsi
	movl	$1, %edx
	callq	_PQconnectStartParams
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_PQstatus
	movq	_CONNECTION_BAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	4(%rbx), %edi
	callq	_PQerrorMessage
	movl	%eax, %edi
	callq	_pchomp
	movq	%rax, (%r14)
	jmp	LBB0_17
LBB0_5:
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
	movl	%r15d, -156(%rbp)               ## 4-byte Spill
	movq	%r14, -168(%rbp)                ## 8-byte Spill
	movq	_PGRES_POLLING_WRITING@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_MyLatch@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_WL_SOCKET_WRITEABLE@GOTPCREL(%rip), %rax
	movq	_PGRES_POLLING_READING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_WL_SOCKET_READABLE@GOTPCREL(%rip), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rax), %r15d
	movl	(%r12), %ebx
	movq	_WL_EXIT_ON_PM_DEATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	orl	%r15d, %r14d
	movq	_WL_LATCH_SET@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_PQsocket
	movq	_WAIT_EVENT_LIBPQWALRECEIVER_CONNECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_WaitLatchOrSocket
	movl	%eax, %ebx
	movq	_WL_LATCH_SET@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %edi
	callq	_ResetLatch
	xorl	%eax, %eax
	callq	_ProcessWalRcvInterrupts
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%r15d, %ebx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_PQconnectPoll
	movq	%rax, %r13
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_PGRES_POLLING_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_PGRES_POLLING_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_6
LBB0_14:
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movl	4(%rbx), %edi
	callq	_PQstatus
	movq	_CONNECTION_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movl	-156(%rbp), %eax                ## 4-byte Reload
	movl	%eax, (%rbx)
	jmp	LBB0_18
LBB0_16:
	movl	4(%rbx), %edi
	callq	_PQerrorMessage
	movl	%eax, %edi
	callq	_pchomp
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	%rbx, %rax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dbname"

L_.str.1:                               ## @.str.1
	.asciz	"replication"

L_.str.2:                               ## @.str.2
	.asciz	"database"

L_.str.3:                               ## @.str.3
	.asciz	"true"

L_.str.4:                               ## @.str.4
	.asciz	"fallback_application_name"

L_.str.5:                               ## @.str.5
	.asciz	"client_encoding"

	.comm	_CONNECTION_BAD,8,3             ## @CONNECTION_BAD
	.comm	_PGRES_POLLING_WRITING,8,3      ## @PGRES_POLLING_WRITING
	.comm	_PGRES_POLLING_READING,8,3      ## @PGRES_POLLING_READING
	.comm	_WL_SOCKET_READABLE,4,2         ## @WL_SOCKET_READABLE
	.comm	_WL_SOCKET_WRITEABLE,4,2        ## @WL_SOCKET_WRITEABLE
	.comm	_MyLatch,4,2                    ## @MyLatch
	.comm	_WL_EXIT_ON_PM_DEATH,4,2        ## @WL_EXIT_ON_PM_DEATH
	.comm	_WL_LATCH_SET,4,2               ## @WL_LATCH_SET
	.comm	_WAIT_EVENT_LIBPQWALRECEIVER_CONNECT,4,2 ## @WAIT_EVENT_LIBPQWALRECEIVER_CONNECT
	.comm	_PGRES_POLLING_OK,8,3           ## @PGRES_POLLING_OK
	.comm	_PGRES_POLLING_FAILED,8,3       ## @PGRES_POLLING_FAILED
	.comm	_CONNECTION_OK,8,3              ## @CONNECTION_OK
	.comm	_CONNECTION_STARTED,8,3         ## @CONNECTION_STARTED
	.comm	_WL_SOCKET_CONNECTED,4,2        ## @WL_SOCKET_CONNECTED
	.no_dead_strip	_libpqrcv_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libpqrcv_connect
_libpqrcv_connect:                      ; @libpqrcv_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x19, l_.str@PAGE
Lloh4:
	add	x19, x19, l_.str@PAGEOFF
Lloh5:
	adrp	x8, l_.str.2@PAGE
Lloh6:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh7:
	adrp	x9, l_.str.3@PAGE
Lloh8:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w1, #0
	csel	x9, x9, x8, eq
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
	stp	x19, x8, [sp, #64]
	stp	x0, x9, [sp, #24]
	cbz	w1, LBB0_2
; %bb.1:
Lloh11:
	adrp	x20, l_.str.5@PAGE
Lloh12:
	add	x20, x20, l_.str.5@PAGEOFF
Lloh13:
	adrp	x19, l_.str.4@PAGE
Lloh14:
	add	x19, x19, l_.str.4@PAGEOFF
	bl	_GetDatabaseEncodingName
	mov	x8, x21
	mov	x21, x0
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x20, l_.str.4@PAGE
Lloh16:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_3:
	stp	x19, x20, [sp, #80]
	stp	x8, x21, [sp, #40]
	str	xzr, [sp, #96]
	str	xzr, [sp, #56]
	mov	w0, #1
	bl	_Assert
	mov	w0, #8
	bl	_palloc0
	mov	x21, x0
	add	x0, sp, #64
	add	x1, sp, #24
	mov	w2, #1
	bl	_PQconnectStartParams
	str	w0, [x21, #4]
	bl	_PQstatus
Lloh17:
	adrp	x8, _CONNECTION_BAD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CONNECTION_BAD@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x21, #4]
	bl	_PQerrorMessage
	bl	_pchomp
	mov	x21, #0
	str	x0, [x22]
	b	LBB0_14
LBB0_5:
	str	w23, [sp, #12]                  ; 4-byte Folded Spill
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
Lloh20:
	adrp	x8, _PGRES_POLLING_WRITING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PGRES_POLLING_WRITING@GOTPAGEOFF]
Lloh22:
	ldr	x22, [x8]
Lloh23:
	adrp	x28, _MyLatch@GOTPAGE
Lloh24:
	ldr	x28, [x28, _MyLatch@GOTPAGEOFF]
Lloh25:
	adrp	x20, _WL_LATCH_SET@GOTPAGE
Lloh26:
	ldr	x20, [x20, _WL_LATCH_SET@GOTPAGEOFF]
Lloh27:
	adrp	x25, _WAIT_EVENT_LIBPQWALRECEIVER_CONNECT@GOTPAGE
Lloh28:
	ldr	x25, [x25, _WAIT_EVENT_LIBPQWALRECEIVER_CONNECT@GOTPAGEOFF]
Lloh29:
	adrp	x26, _PGRES_POLLING_OK@GOTPAGE
Lloh30:
	ldr	x26, [x26, _PGRES_POLLING_OK@GOTPAGEOFF]
Lloh31:
	adrp	x27, _PGRES_POLLING_FAILED@GOTPAGE
Lloh32:
	ldr	x27, [x27, _PGRES_POLLING_FAILED@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x22, x8
	ccmp	x22, x9, #4, ne
	b.eq	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
Lloh33:
	adrp	x8, _PGRES_POLLING_READING@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PGRES_POLLING_READING@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cmp	x22, x8
Lloh36:
	adrp	x8, _WL_SOCKET_READABLE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _WL_SOCKET_READABLE@GOTPAGEOFF]
Lloh38:
	adrp	x9, _WL_SOCKET_WRITEABLE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _WL_SOCKET_WRITEABLE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w19, [x8]
	ldr	w23, [x28]
Lloh40:
	adrp	x8, _WL_EXIT_ON_PM_DEATH@GOTPAGE
Lloh41:
	ldr	x8, [x8, _WL_EXIT_ON_PM_DEATH@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w8, w19
	orr	w24, w8, w9
	ldr	w0, [x21, #4]
	bl	_PQsocket
	mov	x2, x0
	ldr	w4, [x25]
	mov	x0, x23
	mov	x1, x24
	mov	w3, #0
	bl	_WaitLatchOrSocket
	mov	x23, x0
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x28]
	bl	_ResetLatch
	bl	_ProcessWalRcvInterrupts
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	tst	w23, w19
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x21, #4]
	bl	_PQconnectPoll
	mov	x22, x0
	b	LBB0_6
LBB0_11:
	ldr	w0, [x21, #4]
	bl	_PQstatus
Lloh43:
	adrp	x8, _CONNECTION_OK@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CONNECTION_OK@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.12:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	str	w8, [x21]
	b	LBB0_14
LBB0_13:
	ldr	w0, [x21, #4]
	bl	_PQerrorMessage
	bl	_pchomp
	mov	x21, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	x0, [x8]
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x21
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dbname"

l_.str.1:                               ; @.str.1
	.asciz	"replication"

l_.str.2:                               ; @.str.2
	.asciz	"database"

l_.str.3:                               ; @.str.3
	.asciz	"true"

l_.str.4:                               ; @.str.4
	.asciz	"fallback_application_name"

l_.str.5:                               ; @.str.5
	.asciz	"client_encoding"

	.comm	_CONNECTION_BAD,8,3             ; @CONNECTION_BAD
	.comm	_PGRES_POLLING_WRITING,8,3      ; @PGRES_POLLING_WRITING
	.comm	_PGRES_POLLING_READING,8,3      ; @PGRES_POLLING_READING
	.comm	_WL_SOCKET_READABLE,4,2         ; @WL_SOCKET_READABLE
	.comm	_WL_SOCKET_WRITEABLE,4,2        ; @WL_SOCKET_WRITEABLE
	.comm	_MyLatch,4,2                    ; @MyLatch
	.comm	_WL_EXIT_ON_PM_DEATH,4,2        ; @WL_EXIT_ON_PM_DEATH
	.comm	_WL_LATCH_SET,4,2               ; @WL_LATCH_SET
	.comm	_WAIT_EVENT_LIBPQWALRECEIVER_CONNECT,4,2 ; @WAIT_EVENT_LIBPQWALRECEIVER_CONNECT
	.comm	_PGRES_POLLING_OK,8,3           ; @PGRES_POLLING_OK
	.comm	_PGRES_POLLING_FAILED,8,3       ; @PGRES_POLLING_FAILED
	.comm	_CONNECTION_OK,8,3              ; @CONNECTION_OK
	.comm	_CONNECTION_STARTED,8,3         ; @CONNECTION_STARTED
	.comm	_WL_SOCKET_CONNECTED,4,2        ; @WL_SOCKET_CONNECTED
	.no_dead_strip	_libpqrcv_connect
.subsections_via_symbols
