	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgtls_write                    ## -- Begin function pgtls_write
	.p2align	4, 0x90
_pgtls_write:                           ## @pgtls_write
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PG_STRERROR_R_BUFLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_SOCK_ERRNO_SET
	xorl	%eax, %eax
	callq	_ERR_clear_error
	movl	4(%r14), %edi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_SSL_write
	movq	%rax, %r13
	movl	4(%r14), %edi
	movq	%rax, %rsi
	callq	_SSL_get_error
	movl	%eax, %ebx
	testq	%r13, %r13
	js	LBB0_2
## %bb.1:
	cmpl	$133, %ebx
	jne	LBB0_2
LBB0_4:
	xorl	%r15d, %r15d
	testq	%r13, %r13
	js	LBB0_6
## %bb.5:
	movq	%r13, %rbx
	jmp	LBB0_18
LBB0_2:
	xorl	%eax, %eax
	callq	_ERR_get_error
	leal	-128(%rbx), %ecx
	cmpl	$5, %ecx
	ja	LBB0_16
## %bb.3:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	xorl	%ebx, %ebx
	jmpq	*%rcx
LBB0_15:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_13
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r13, %rbx
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.6(%rip), %rdi
	callq	_libpq_gettext
	movslq	%eax, %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	jmp	LBB0_17
LBB0_7:
	testq	%r13, %r13
	js	LBB0_8
## %bb.12:
	leaq	L_.str.3(%rip), %rdi
LBB0_13:
	callq	_libpq_gettext
	movslq	%eax, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	jmp	LBB0_17
LBB0_14:
	movq	%rax, %rdi
	callq	_SSLerrmessage
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rdi
	callq	_libpq_gettext
	movslq	%eax, %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	movq	%rbx, %rdi
	callq	_SSLerrfree
LBB0_17:
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	$-1, %rbx
LBB0_18:
	movl	%r15d, %edi
	callq	_SOCK_ERRNO_SET
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_SOCK_ERRNO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_EPIPE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_10
## %bb.9:
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_10
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	callq	_libpq_gettext
	movslq	%eax, %rbx
	movl	%r15d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_SOCK_STRERROR
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	movq	%r13, %rbx
	jmp	LBB0_18
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	callq	_libpq_gettext
	movslq	%eax, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	movq	%r13, %rbx
	jmp	LBB0_18
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_7
	.long	L0_0_set_14
	.long	L0_0_set_4
	.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_write 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_write                    ; -- Begin function pgtls_write
	.p2align	2
_pgtls_write:                           ; @pgtls_write
	.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	x20, x2
	mov	x21, 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, #-56]
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
	mov	w0, #0
	bl	_SOCK_ERRNO_SET
	bl	_ERR_clear_error
	ldr	w0, [x19, #4]
	mov	x1, x21
	mov	x2, x20
	bl	_SSL_write
	mov	x20, x0
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_SSL_get_error
	mov	x21, x0
	tbnz	x20, #63, LBB0_4
; %bb.1:
	cmp	w21, #133
	b.ne	LBB0_4
LBB0_2:
	tbnz	x20, #63, LBB0_7
; %bb.3:
	mov	w21, #0
	mov	x24, x20
	b	LBB0_14
LBB0_4:
	bl	_ERR_get_error
	sub	w8, w21, #128
	cmp	w8, #5
	b.hi	LBB0_8
; %bb.5:
	mov	w21, #0
	mov	x24, #0
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	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_11
LBB0_7:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_printfPQExpBuffer
Lloh14:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	mov	x24, x20
	b	LBB0_14
LBB0_8:
Lloh17:
	adrp	x0, l_.str.6@PAGE
Lloh18:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_libpq_gettext
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	str	x21, [sp, #-16]!
	mov	x0, x19
	bl	_printfPQExpBuffer
	add	sp, sp, #16
	b	LBB0_13
LBB0_9:
	tbnz	x20, #63, LBB0_16
; %bb.10:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	bl	_libpq_gettext
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x19
	bl	_printfPQExpBuffer
	b	LBB0_13
LBB0_12:
	bl	_SSLerrmessage
	mov	x20, x0
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	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
LBB0_13:
Lloh23:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh25:
	ldr	w21, [x8]
	mov	x24, #-1
LBB0_14:
	mov	x0, x21
	bl	_SOCK_ERRNO_SET
	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_19
; %bb.15:
	mov	x0, x24
	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_16:
Lloh29:
	adrp	x8, _SOCK_ERRNO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SOCK_ERRNO@GOTPAGEOFF]
Lloh31:
	ldr	w21, [x8]
Lloh32:
	adrp	x8, _EPIPE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _ECONNRESET@GOTPAGE
Lloh36:
	ldr	x9, [x9, _ECONNRESET@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	cmp	w21, w8
	ccmp	w21, w9, #4, ne
	b.ne	LBB0_18
; %bb.17:
Lloh38:
	adrp	x0, l_.str.1@PAGE
Lloh39:
	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_14
LBB0_18:
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_14
LBB0_19:
	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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_PG_STRERROR_R_BUFLEN,4,2       ; @PG_STRERROR_R_BUFLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSL_write 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
