	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_tls_write                   ## -- Begin function be_tls_write
	.p2align	4, 0x90
_be_tls_write:                          ## @be_tls_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
	pushq	%rax
	.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, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_ERR_clear_error
	movl	(%rbx), %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_SSL_write
	movq	%rax, %r13
	movl	(%rbx), %edi
	movq	%rax, %rsi
	callq	_SSL_get_error
	movl	%eax, %r15d
	testq	%r13, %r13
	js	LBB0_2
## %bb.1:
	cmpl	$133, %r15d
	je	LBB0_13
LBB0_2:
	xorl	%eax, %eax
	callq	_ERR_get_error
	movq	%rax, %r12
	movq	_ECONNRESET@GOTPCREL(%rip), %rbx
	leal	-128(%r15), %eax
	cmpl	$5, %eax
	ja	LBB0_9
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	_WL_SOCKET_WRITEABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movq	_COMMERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_PROTOCOL_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	jmp	LBB0_10
LBB0_4:
	movq	_WL_SOCKET_READABLE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_7:
	cmpq	$-1, %r13
	jne	LBB0_11
	jmp	LBB0_12
LBB0_8:
	movq	_COMMERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_PROTOCOL_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r12, %rdi
	callq	_SSLerrmessage
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
LBB0_10:
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_11:
	movq	(%rbx), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_12:
	movq	$-1, %r13
LBB0_13:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_WL_SOCKET_READABLE,4,2         ## @WL_SOCKET_READABLE
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.comm	_WL_SOCKET_WRITEABLE,4,2        ## @WL_SOCKET_WRITEABLE
	.comm	_ECONNRESET,8,3                 ## @ECONNRESET
	.comm	_COMMERROR,4,2                  ## @COMMERROR
	.comm	_ERRCODE_PROTOCOL_VIOLATION,4,2 ## @ERRCODE_PROTOCOL_VIOLATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSL error: %s"

L_.str.1:                               ## @.str.1
	.asciz	"unrecognized SSL error code: %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_tls_write                   ; -- Begin function be_tls_write
	.p2align	2
_be_tls_write:                          ; @be_tls_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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _errno@GOTPAGE
Lloh1:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	str	xzr, [x23]
	bl	_ERR_clear_error
	ldr	w0, [x22]
	mov	x1, x21
	mov	x2, x20
	bl	_SSL_write
	mov	x20, x0
	ldr	w0, [x22]
	mov	x1, x20
	bl	_SSL_get_error
	mov	x21, x0
	tbnz	x20, #63, LBB0_2
; %bb.1:
	cmp	w21, #133
	b.eq	LBB0_13
LBB0_2:
	bl	_ERR_get_error
	sub	w9, w21, #128
	cmp	w9, #5
	b.hi	LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh4:
	adrp	x10, lJTI0_0@PAGE
Lloh5:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
Lloh6:
	adrp	x8, _WL_SOCKET_WRITEABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WL_SOCKET_WRITEABLE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _COMMERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _COMMERROR@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
Lloh11:
	adrp	x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_errcode
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	b	LBB0_10
LBB0_6:
Lloh16:
	adrp	x8, _WL_SOCKET_READABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WL_SOCKET_READABLE@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh18:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	cmn	x20, #1
	b.ne	LBB0_11
	b	LBB0_13
LBB0_9:
	mov	x22, x0
Lloh20:
	adrp	x8, _COMMERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _COMMERROR@GOTPAGEOFF]
Lloh22:
	ldr	w19, [x8]
Lloh23:
	adrp	x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x22
	bl	_SSLerrmessage
	mov	x1, x0
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
LBB0_10:
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_11:
Lloh28:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
LBB0_12:
	ldr	x8, [x8]
	str	x8, [x23]
	mov	x20, #-1
LBB0_13:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_WL_SOCKET_READABLE,4,2         ; @WL_SOCKET_READABLE
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.comm	_WL_SOCKET_WRITEABLE,4,2        ; @WL_SOCKET_WRITEABLE
	.comm	_ECONNRESET,8,3                 ; @ECONNRESET
	.comm	_COMMERROR,4,2                  ; @COMMERROR
	.comm	_ERRCODE_PROTOCOL_VIOLATION,4,2 ; @ERRCODE_PROTOCOL_VIOLATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSL error: %s"

l_.str.1:                               ; @.str.1
	.asciz	"unrecognized SSL error code: %d"

.subsections_via_symbols
