	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgtls_read                     ## -- Begin function pgtls_read
	.p2align	4, 0x90
_pgtls_read:                            ## @pgtls_read
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PG_STRERROR_R_BUFLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ERR_get_error
	cmpl	$129, %r14d
	jne	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_SOCK_ERRNO_SET
	xorl	%eax, %eax
	callq	_ERR_clear_error
	movl	4(%rbx), %edi
	movq	%r12, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_SSL_read
	movq	%rax, %r15
	movl	4(%rbx), %edi
	movq	%rax, %rsi
	callq	_SSL_get_error
	movl	%eax, %r14d
	testq	%r15, %r15
	js	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$133, %r14d
	jne	LBB0_1
	jmp	LBB0_4
LBB0_5:
	leal	-128(%r14), %ecx
	cmpl	$5, %ecx
	ja	LBB0_14
## %bb.6:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	xorl	%r12d, %r12d
	jmpq	*%rcx
LBB0_7:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_10
LBB0_8:
	testq	%r15, %r15
	js	LBB0_18
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
LBB0_10:
	callq	_libpq_gettext
	movslq	%eax, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	jmp	LBB0_15
LBB0_11:
	movq	%rax, %rdi
	callq	_SSLerrmessage
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rdi
	callq	_libpq_gettext
	movslq	%eax, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	movq	%rbx, %rdi
	callq	_SSLerrfree
	jmp	LBB0_15
LBB0_12:
	testq	%r15, %r15
	js	LBB0_21
LBB0_4:
	movq	%r15, %r12
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str.6(%rip), %rdi
	callq	_libpq_gettext
	movslq	%eax, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
LBB0_15:
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	$-1, %r12
LBB0_16:
	movl	%r13d, %edi
	callq	_SOCK_ERRNO_SET
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.17:
	movq	%r12, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_SOCK_ERRNO@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_EPIPE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_22
## %bb.19:
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_22
## %bb.20:
	leaq	L_.str.2(%rip), %rdi
	callq	_libpq_gettext
	movslq	%eax, %r14
	movl	%r13d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_SOCK_STRERROR
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	movq	%r15, %r12
	jmp	LBB0_16
LBB0_21:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r15, %r12
	jmp	LBB0_16
LBB0_22:
	leaq	L_.str.1(%rip), %rdi
	callq	_libpq_gettext
	movslq	%eax, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	movq	%r15, %r12
	jmp	LBB0_16
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_PG_STRERROR_R_BUFLEN,4,2       ## @PG_STRERROR_R_BUFLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSL_read failed but did not provide error information\n"

	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_SOCK_ERRNO,4,2                 ## @SOCK_ERRNO
	.comm	_EPIPE,4,2                      ## @EPIPE
L_.str.1:                               ## @.str.1
	.asciz	"server closed the connection unexpectedly\n\tThis probably means the server terminated abnormally\n\tbefore or while processing the request.\n"

L_.str.2:                               ## @.str.2
	.asciz	"SSL SYSCALL error: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"SSL SYSCALL error: EOF detected\n"

L_.str.4:                               ## @.str.4
	.asciz	"SSL error: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"SSL connection has been closed unexpectedly\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgtls_read                     ; -- Begin function pgtls_read
	.p2align	2
_pgtls_read:                            ; @pgtls_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x21, x2
	mov	x24, x1
	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, #-72]
Lloh3:
	adrp	x8, _PG_STRERROR_R_BUFLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PG_STRERROR_R_BUFLEN@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_ERR_get_error
	cmp	w25, #129
	b.ne	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	bl	_SOCK_ERRNO_SET
	bl	_ERR_clear_error
	ldr	w0, [x19, #4]
	mov	x1, x24
	mov	x2, x21
	bl	_SSL_read
	mov	x20, x0
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_SSL_get_error
	mov	x25, x0
	tbnz	x20, #63, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, #133
	b.ne	LBB0_1
	b	LBB0_12
LBB0_4:
	sub	w8, w25, #128
	cmp	w8, #5
	b.hi	LBB0_13
; %bb.5:
	mov	w21, #0
	mov	x24, #0
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_7:
	tbnz	x20, #63, LBB0_17
; %bb.8:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	bl	_libpq_gettext
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x19
	bl	_printfPQExpBuffer
	b	LBB0_14
LBB0_10:
	bl	_SSLerrmessage
	mov	x20, x0
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_libpq_gettext
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	str	x20, [sp, #-16]!
	mov	x0, x19
	bl	_printfPQExpBuffer
	add	sp, sp, #16
	mov	x0, x20
	bl	_SSLerrfree
	b	LBB0_14
LBB0_11:
	tbnz	x20, #63, LBB0_19
LBB0_12:
	mov	w21, #0
	mov	x24, x20
	b	LBB0_15
LBB0_13:
Lloh16:
	adrp	x0, l_.str.6@PAGE
Lloh17:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_libpq_gettext
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	str	x25, [sp, #-16]!
	mov	x0, x19
	bl	_printfPQExpBuffer
	add	sp, sp, #16
LBB0_14:
Lloh18:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
	mov	x24, #-1
LBB0_15:
	mov	x0, x21
	bl	_SOCK_ERRNO_SET
	ldur	x8, [x29, #-72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.16:
	mov	x0, x24
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh24:
	adrp	x8, _SOCK_ERRNO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SOCK_ERRNO@GOTPAGEOFF]
Lloh26:
	ldr	w21, [x8]
Lloh27:
	adrp	x8, _EPIPE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _ECONNRESET@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ECONNRESET@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w21, w8
	ccmp	w21, w9, #4, ne
	b.ne	LBB0_20
; %bb.18:
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_libpq_gettext
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x19
	bl	_printfPQExpBuffer
	mov	x24, x20
	b	LBB0_15
LBB0_19:
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_printfPQExpBuffer
Lloh37:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh39:
	ldr	w21, [x8]
	mov	x24, x20
	b	LBB0_15
LBB0_20:
Lloh40:
	adrp	x0, l_.str.2@PAGE
Lloh41:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_libpq_gettext
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x24, w0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_SOCK_STRERROR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
	mov	x0, x19
	mov	x1, x24
	bl	_printfPQExpBuffer
	add	sp, sp, #16
	mov	x24, x20
	b	LBB0_15
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
                                        ; -- End function
	.comm	_PG_STRERROR_R_BUFLEN,4,2       ; @PG_STRERROR_R_BUFLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSL_read failed but did not provide error information\n"

	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_SOCK_ERRNO,4,2                 ; @SOCK_ERRNO
	.comm	_EPIPE,4,2                      ; @EPIPE
l_.str.1:                               ; @.str.1
	.asciz	"server closed the connection unexpectedly\n\tThis probably means the server terminated abnormally\n\tbefore or while processing the request.\n"

l_.str.2:                               ; @.str.2
	.asciz	"SSL SYSCALL error: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"SSL SYSCALL error: EOF detected\n"

l_.str.4:                               ; @.str.4
	.asciz	"SSL error: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"SSL connection has been closed unexpectedly\n"

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

.subsections_via_symbols
