	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_write
_ssl_write:                             ## @ssl_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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_BIO_get_data
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	40(%rax), %r12
	movq	%r14, %rdi
	callq	_BIO_clear_retry_flags
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_ssl_write_internal
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_SSL_get_error
                                        ## kill: def $eax killed $eax def $rax
	xorl	%r13d, %r13d
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_16
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	movq	%r14, %rdi
	callq	_BIO_set_retry_special
	movq	_BIO_RR_SSL_X509_LOOKUP@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_11:
	movq	%r14, %rdi
	callq	_BIO_set_retry_write
	jmp	LBB0_16
LBB0_12:
	movq	%r14, %rdi
	callq	_BIO_set_retry_read
	jmp	LBB0_16
LBB0_14:
	movq	%r14, %rdi
	callq	_BIO_set_retry_special
	movq	_BIO_RR_CONNECT@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %r13d
	jmp	LBB0_16
LBB0_4:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	8(%rdx), %rcx
	addq	(%r15), %rcx
	movq	%rcx, 8(%rdx)
	cmpq	%rax, %rcx
	jbe	LBB0_8
## %bb.6:
	movq	$0, 8(%rdx)
	jmp	LBB0_7
LBB0_8:
	cmpq	$0, 16(%rdx)
	je	LBB0_16
## %bb.9:
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_time
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx), %rcx
	addq	24(%rdx), %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_16
## %bb.10:
	movq	%rax, 24(%rdx)
LBB0_7:
	incl	32(%rdx)
	movq	%r12, %rdi
	callq	_SSL_renegotiate
LBB0_16:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_BIO_set_retry_reason
LBB0_17:
	movl	%ebx, %eax
	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_13, LBB0_13-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_BIO_RR_SSL_X509_LOOKUP,4,2     ## @BIO_RR_SSL_X509_LOOKUP
	.comm	_BIO_RR_CONNECT,4,2             ## @BIO_RR_CONNECT
	.no_dead_strip	_ssl_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_write
_ssl_write:                             ; @ssl_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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x23, x3
	mov	x20, x2
	mov	x24, x1
	mov	x19, x0
	bl	_BIO_get_data
	mov	x22, x0
	ldr	x21, [x0, #40]
	mov	x0, x19
	bl	_BIO_clear_retry_flags
	mov	x0, x21
	mov	x1, x24
	mov	x2, x20
	mov	x3, x23
	bl	_ssl_write_internal
	mov	x20, x0
	mov	x0, x21
	mov	x1, x20
	bl	_SSL_get_error
	mov	w1, #0
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_17
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	x0, x19
	bl	_BIO_set_retry_special
Lloh2:
	adrp	x8, _BIO_RR_SSL_X509_LOOKUP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BIO_RR_SSL_X509_LOOKUP@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	mov	w20, #0
	b	LBB0_18
LBB0_5:
	mov	x0, x19
	bl	_BIO_set_retry_write
	b	LBB0_16
LBB0_6:
	mov	x0, x19
	bl	_BIO_set_retry_read
	b	LBB0_16
LBB0_7:
	mov	x0, x19
	bl	_BIO_set_retry_special
Lloh4:
	adrp	x8, _BIO_RR_CONNECT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BIO_RR_CONNECT@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
	b	LBB0_17
LBB0_9:
	ldr	x8, [x22]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	x9, [x23]
	ldr	x10, [x22, #8]
	add	x9, x10, x9
	cmp	x9, x8
	str	x9, [x22, #8]
	b.ls	LBB0_12
; %bb.11:
	str	xzr, [x22, #8]
	b	LBB0_15
LBB0_12:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_16
; %bb.13:
	mov	x0, #0
	bl	_time
	ldp	x9, x8, [x22, #16]
	add	x8, x9, x8
	cmp	x0, x8
	b.ls	LBB0_16
; %bb.14:
	str	x0, [x22, #24]
LBB0_15:
	ldr	w8, [x22, #32]
	add	w8, w8, #1
	str	w8, [x22, #32]
	mov	x0, x21
	bl	_SSL_renegotiate
LBB0_16:
	mov	w1, #0
LBB0_17:
	mov	x0, x19
	bl	_BIO_set_retry_reason
LBB0_18:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
                                        ; -- End function
	.comm	_BIO_RR_SSL_X509_LOOKUP,4,2     ; @BIO_RR_SSL_X509_LOOKUP
	.comm	_BIO_RR_CONNECT,4,2             ; @BIO_RR_CONNECT
	.no_dead_strip	_ssl_write
.subsections_via_symbols
