	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_client_SSL
_open_client_SSL:                       ## @open_client_SSL
	.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
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_ERR_clear_error
	movl	16(%r14), %edi
	callq	_SSL_connect
	movl	16(%r14), %edi
	testl	%eax, %eax
	jle	LBB0_1
## %bb.12:
	callq	_SSL_get_peer_certificate
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%r14, %rdi
	callq	_pq_verify_peer_name_matches_certificate
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movq	_PGRES_POLLING_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_1:
	movl	%eax, %ebx
	movl	%eax, %esi
	callq	_SSL_get_error
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_ERR_get_error
	leal	-128(%r15), %ecx
	cmpl	$3, %ecx
	ja	LBB0_11
## %bb.2:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	_PGRES_POLLING_WRITING@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_13:
	xorl	%eax, %eax
	callq	_ERR_get_error
	movq	%rax, %rdi
	callq	_SSLerrmessage
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_10
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	callq	_libpq_gettext
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	jmp	LBB0_15
LBB0_3:
	movq	_PGRES_POLLING_READING@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_5:
	movq	%rsp, %r13
	movq	_PG_STRERROR_R_BUFLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	cmpl	$-1, %ebx
	je	LBB0_6
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_libpq_gettext
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	jmp	LBB0_8
LBB0_9:
	movq	%rax, %rdi
	callq	_SSLerrmessage
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
LBB0_10:
	callq	_libpq_gettext
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	movq	%rbx, %rdi
	callq	_SSLerrfree
LBB0_15:
	movq	%r14, %rdi
	callq	_pgtls_close
	movq	_PGRES_POLLING_FAILED@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_20
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_libpq_gettext
	movl	%eax, %ebx
	movq	_SOCK_ERRNO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_SOCK_STRERROR
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
LBB0_8:
	movq	%r14, %rdi
	callq	_pgtls_close
	movq	_PGRES_POLLING_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r13, %rsp
	jmp	LBB0_18
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_PGRES_POLLING_READING,4,2      ## @PGRES_POLLING_READING
	.comm	_PGRES_POLLING_WRITING,4,2      ## @PGRES_POLLING_WRITING
	.comm	_PG_STRERROR_R_BUFLEN,4,2       ## @PG_STRERROR_R_BUFLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSL SYSCALL error: %s\n"

	.comm	_SOCK_ERRNO,4,2                 ## @SOCK_ERRNO
L_.str.1:                               ## @.str.1
	.asciz	"SSL SYSCALL error: EOF detected\n"

	.comm	_PGRES_POLLING_FAILED,4,2       ## @PGRES_POLLING_FAILED
L_.str.2:                               ## @.str.2
	.asciz	"SSL error: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"unrecognized SSL error code: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"certificate could not be obtained: %s\n"

	.comm	_PGRES_POLLING_OK,4,2           ## @PGRES_POLLING_OK
	.no_dead_strip	_open_client_SSL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_client_SSL
_open_client_SSL:                       ; @open_client_SSL
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_ERR_clear_error
	ldr	w0, [x19, #16]
	bl	_SSL_connect
	mov	x20, x0
	ldr	w0, [x19, #16]
	cmp	w20, #0
	b.le	LBB0_4
; %bb.1:
	bl	_SSL_get_peer_certificate
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_pq_verify_peer_name_matches_certificate
	cbz	w0, LBB0_14
; %bb.3:
Lloh3:
	adrp	x8, _PGRES_POLLING_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PGRES_POLLING_OK@GOTPAGEOFF]
	b	LBB0_15
LBB0_4:
	mov	x1, x20
	bl	_SSL_get_error
	mov	x21, x0
	bl	_ERR_get_error
	sub	w8, w21, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.5:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
Lloh7:
	adrp	x8, _PGRES_POLLING_WRITING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PGRES_POLLING_WRITING@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
	bl	_ERR_get_error
	bl	_SSLerrmessage
	mov	x20, x0
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_8:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	str	x21, [sp, #-16]!
	mov	x0, x19
	bl	_printfPQExpBuffer
	add	sp, sp, #16
	b	LBB0_14
LBB0_9:
Lloh13:
	adrp	x8, _PGRES_POLLING_READING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PGRES_POLLING_READING@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
	mov	x23, sp
Lloh15:
	adrp	x8, _PG_STRERROR_R_BUFLEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PG_STRERROR_R_BUFLEN@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
	mov	x9, x21
Lloh18:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh19:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	cmn	w20, #1
	b.eq	LBB0_18
; %bb.11:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	mov	x0, x19
	bl	_printfPQExpBuffer
	b	LBB0_19
LBB0_12:
	bl	_SSLerrmessage
	mov	x20, x0
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_libpq_gettext
	mov	x1, x0
	str	x20, [sp, #-16]!
	mov	x0, x19
	bl	_printfPQExpBuffer
	add	sp, sp, #16
	mov	x0, x20
	bl	_SSLerrfree
LBB0_14:
	mov	x0, x19
	bl	_pgtls_close
Lloh24:
	adrp	x8, _PGRES_POLLING_FAILED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PGRES_POLLING_FAILED@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
LBB0_16:
	ldur	x8, [x29, #-56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.17:
	sub	sp, x29, #48
	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
LBB0_18:
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	bl	_libpq_gettext
	mov	x20, x0
Lloh31:
	adrp	x8, _SOCK_ERRNO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SOCK_ERRNO@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x21
	bl	_SOCK_STRERROR
	str	x0, [sp, #-16]!
	mov	x0, x19
	mov	x1, x20
	bl	_printfPQExpBuffer
	add	sp, sp, #16
LBB0_19:
	mov	x0, x19
	bl	_pgtls_close
Lloh34:
	adrp	x8, _PGRES_POLLING_FAILED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PGRES_POLLING_FAILED@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	mov	sp, x23
	b	LBB0_16
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
                                        ; -- End function
	.comm	_PGRES_POLLING_READING,4,2      ; @PGRES_POLLING_READING
	.comm	_PGRES_POLLING_WRITING,4,2      ; @PGRES_POLLING_WRITING
	.comm	_PG_STRERROR_R_BUFLEN,4,2       ; @PG_STRERROR_R_BUFLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSL SYSCALL error: %s\n"

	.comm	_SOCK_ERRNO,4,2                 ; @SOCK_ERRNO
l_.str.1:                               ; @.str.1
	.asciz	"SSL SYSCALL error: EOF detected\n"

	.comm	_PGRES_POLLING_FAILED,4,2       ; @PGRES_POLLING_FAILED
l_.str.2:                               ; @.str.2
	.asciz	"SSL error: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"unrecognized SSL error code: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"certificate could not be obtained: %s\n"

	.comm	_PGRES_POLLING_OK,4,2           ; @PGRES_POLLING_OK
	.no_dead_strip	_open_client_SSL
.subsections_via_symbols
