	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_ssl3_write                  ## -- Begin function do_ssl3_write
	.p2align	4, 0x90
_do_ssl3_write:                         ## @do_ssl3_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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -108(%rbp)                ## 4-byte Spill
	movq	%r8, %rbx
	movq	%rcx, %r12
	movq	%rdx, -168(%rbp)                ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	16(%rbp), %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SSL_MAX_PIPELINES@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	(,%r13,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	leaq	(,%r13,8), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -160(%rbp)                ## 8-byte Spill
	movq	$0, -184(%rbp)
	testq	%rbx, %rbx
	movq	%r14, -192(%rbp)                ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	cmpq	$4, %rbx
	jae	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_4:
	movq	%rbx, %rax
	andq	$-4, %rax
	leaq	-4(%rax), %rdx
	movq	%rdx, %rsi
	shrq	$2, %rsi
	incq	%rsi
	movl	%esi, %ecx
	andl	$3, %ecx
	cmpq	$12, %rdx
	jae	LBB0_6
## %bb.5:
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	jmp	LBB0_8
LBB0_6:
	andq	$-4, %rsi
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%r12,%rdx,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%r12,%rdx,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	32(%r12,%rdx,8), %xmm1
	movdqu	48(%r12,%rdx,8), %xmm3
	movdqu	64(%r12,%rdx,8), %xmm4
	paddq	%xmm1, %xmm4
	paddq	%xmm2, %xmm4
	movdqu	80(%r12,%rdx,8), %xmm2
	paddq	%xmm3, %xmm2
	paddq	%xmm0, %xmm2
	movdqu	96(%r12,%rdx,8), %xmm0
	paddq	%xmm4, %xmm0
	movdqu	112(%r12,%rdx,8), %xmm1
	paddq	%xmm2, %xmm1
	addq	$16, %rdx
	addq	$-4, %rsi
	jne	LBB0_7
LBB0_8:
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.9:
	leaq	(%r12,%rdx,8), %rdx
	addq	$16, %rdx
	shlq	$5, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rdx,%rsi), %xmm2
	paddq	%xmm2, %xmm0
	movdqu	(%rdx,%rsi), %xmm2
	paddq	%xmm2, %xmm1
	addq	$32, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_10
LBB0_11:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %r14
	cmpq	%rbx, %rax
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addq	(%r12,%rax,8), %r14
	incq	%rax
	cmpq	%rax, %rbx
	jne	LBB0_12
LBB0_13:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	leaq	32(%r15), %r13
	movq	%r13, %rdi
	callq	_RECORD_LAYER_write_pending
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	jne	LBB0_161
## %bb.15:
	movq	%r15, %rdi
	movq	-168(%rbp), %rdx                ## 8-byte Reload
	movq	%r14, %rcx
	movq	-192(%rbp), %r8                 ## 8-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ssl3_write_pending             ## TAILCALL
LBB0_16:
	movq	144(%r15), %rax
	cmpq	$0, 16(%rax)
	movq	%r15, %rbx
	je	LBB0_18
## %bb.17:
	movq	104(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	jle	LBB0_141
LBB0_18:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	cmpq	%rsi, (%r13)
	jae	LBB0_20
## %bb.19:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_ssl3_setup_write_buffer
	testl	%eax, %eax
	je	LBB0_30
LBB0_20:
	cmpl	$0, -108(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_22
## %bb.21:
	xorl	%r15d, %r15d
	testq	%r14, %r14
	je	LBB0_157
LBB0_22:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 160(%rbx)
	je	LBB0_27
## %bb.23:
	cmpq	$0, 96(%rbx)
	je	LBB0_27
## %bb.24:
	movl	152(%rbx), %edi
	callq	_EVP_MD_CTX_md
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	movl	152(%rbx), %edi
	callq	_EVP_MD_CTX_size
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	js	LBB0_41
## %bb.26:
	xorl	%eax, %eax
	jmp	LBB0_28
LBB0_27:
	xorl	%eax, %eax
	cmpq	$0, 96(%rbx)
	sete	%al
	movl	$0, -88(%rbp)                   ## 4-byte Folded Spill
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_28:
	orl	-108(%rbp), %eax                ## 4-byte Folded Reload
	jne	LBB0_32
## %bb.31:
	movq	144(%rbx), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_35
LBB0_32:
	xorl	%eax, %eax
	cmpl	$0, -108(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_44
LBB0_33:
	movq	72(%rbx), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_SSL3_BUFFER_set_offset
	movq	%rbx, %rdi
	callq	_SSL3_BUFFER_get_buf
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_SSL3_BUFFER_get_len
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_WPACKET_init_static_len
	testl	%eax, %eax
	je	LBB0_53
## %bb.34:
	movq	%r13, %rdi
	xorl	%esi, %esi
	jmp	LBB0_47
LBB0_35:
	xorl	%eax, %eax
	cmpq	$0, 8(%rcx)
	je	LBB0_43
## %bb.36:
	movq	_SSL3_RT_APPLICATION_DATA@GOTPCREL(%rip), %rdx
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	cmpl	%esi, (%rdx)
	jne	LBB0_43
## %bb.37:
	movq	$0, -128(%rbp)
	subq	$8, %rsp
	leaq	-184(%rbp), %rax
	leaq	-128(%rbp), %rcx
	movl	$1, %r8d
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-168(%rbp), %rdx                ## 8-byte Reload
	movl	$1, %r9d
	pushq	%rax
	callq	_do_ssl3_write
	addq	$16, %rsp
	testl	%eax, %eax
	jle	LBB0_30
## %bb.38:
	movq	-184(%rbp), %rax
	movq	_SSL3_RT_HEADER_LENGTH@GOTPCREL(%rip), %rcx
	movq	_SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jbe	LBB0_42
## %bb.39:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DO_SSL3_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
LBB0_30:
	movl	$-1, %r15d
	jmp	LBB0_157
LBB0_41:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DO_SSL3_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	jmp	LBB0_54
LBB0_42:
	movq	144(%rbx), %rcx
LBB0_43:
	movl	$1, (%rcx)
	cmpl	$0, -108(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_33
LBB0_44:
	testq	%rax, %rax
	je	LBB0_111
## %bb.45:
	movq	72(%rbx), %rbx
	movq	%rbx, %rdi
	callq	_SSL3_BUFFER_get_buf
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_SSL3_BUFFER_get_len
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_WPACKET_init_static_len
	testl	%eax, %eax
	je	LBB0_53
## %bb.46:
	movq	%rbx, %rdi
	callq	_SSL3_BUFFER_get_offset
	addl	-184(%rbp), %eax
	movq	%r13, %rdi
	movl	%eax, %esi
LBB0_47:
	xorl	%edx, %edx
	callq	_WPACKET_allocate_bytes
	movl	$1, %ecx
	testl	%eax, %eax
	je	LBB0_53
LBB0_48:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	cmpq	$0, 96(%r15)
	je	LBB0_55
## %bb.49:
	movq	%r15, %rdi
	callq	_SSL_USE_EXPLICIT_IV
	testq	%rax, %rax
	movq	-160(%rbp), %r14                ## 8-byte Reload
	je	LBB0_56
## %bb.50:
	movq	%r15, %rdi
	callq	_SSL_TREAT_AS_TLS13
	testq	%rax, %rax
	jne	LBB0_56
## %bb.51:
	movq	96(%r15), %rdi
	callq	_EVP_CIPHER_CTX_mode
	movq	_EVP_CIPH_CBC_MODE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_147
## %bb.52:
	movq	96(%r15), %rdi
	callq	_EVP_CIPHER_CTX_iv_length
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	cmovgel	%eax, %ecx
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	jmp	LBB0_56
LBB0_53:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DO_SSL3_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
LBB0_54:
	callq	_SSLfatal
	movl	$-1, %r15d
	jmp	LBB0_157
LBB0_55:
	movq	-160(%rbp), %r14                ## 8-byte Reload
LBB0_56:
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	shll	$3, %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	cmpq	$0, -104(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_108
## %bb.57:
	xorl	%eax, %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
LBB0_58:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %r13d
	movq	_TLS1_3_VERSION@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_60
## %bb.59:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	_TLS1_2_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_60:                                ##   in Loop: Header=BB0_58 Depth=1
	movq	$0, -176(%rbp)
	movq	%r15, %rdi
	callq	_SSL_TREAT_AS_TLS13
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %r14d
	testq	%rax, %rax
	je	LBB0_63
## %bb.61:                              ##   in Loop: Header=BB0_58 Depth=1
	cmpq	$0, 96(%r15)
	movl	%ecx, %r14d
	je	LBB0_63
## %bb.62:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	_SSL3_RT_ALERT@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	movq	112(%r15), %rax
	movq	_SSL3_RT_APPLICATION_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %r14d
	cmovel	-52(%rbp), %r14d                ## 4-byte Folded Reload
	movq	_ENC_WRITE_STATE_WRITE_PLAIN_ALERTS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	cmovnel	%ecx, %r14d
LBB0_63:                                ##   in Loop: Header=BB0_58 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_SSL3_RECORD_set_type
	movq	%r15, %rdi
	callq	_SSL_get_state
	movq	_TLS_ST_CW_CLNT_HELLO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_67
## %bb.64:                              ##   in Loop: Header=BB0_58 Depth=1
	cmpl	$0, 136(%r15)
	jne	LBB0_67
## %bb.65:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	%r15, %rdi
	callq	_TLS1_get_version
	movq	_TLS1_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jbe	LBB0_67
## %bb.66:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	8(%r15), %rax
	movq	_SSL_HRR_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	cmovel	%ecx, %r13d
LBB0_67:                                ##   in Loop: Header=BB0_58 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_SSL3_RECORD_set_rec_version
	movq	128(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_69
## %bb.68:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	_SSL3_RT_MAX_COMPRESSED_OVERHEAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_69:                                ##   in Loop: Header=BB0_58 Depth=1
	movq	-152(%rbp), %rax                ## 8-byte Reload
	addq	(%r12,%rax,8), %rbx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %esi
	movq	%rdi, %r14
	callq	_WPACKET_put_bytes_u8
	testl	%eax, %eax
	je	LBB0_117
## %bb.70:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_WPACKET_put_bytes_u16
	testl	%eax, %eax
	je	LBB0_117
## %bb.71:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	%r14, %rdi
	callq	_WPACKET_start_sub_packet_u16
	testl	%eax, %eax
	je	LBB0_117
## %bb.72:                              ##   in Loop: Header=BB0_58 Depth=1
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_74
## %bb.73:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	%r14, %rdi
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_WPACKET_allocate_bytes
	testl	%eax, %eax
	je	LBB0_117
LBB0_74:                                ##   in Loop: Header=BB0_58 Depth=1
	testq	%rbx, %rbx
	je	LBB0_76
## %bb.75:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	leaq	-176(%rbp), %rdx
	callq	_WPACKET_reserve_bytes
	testl	%eax, %eax
	je	LBB0_117
LBB0_76:                                ##   in Loop: Header=BB0_58 Depth=1
	movq	-176(%rbp), %rsi
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_SSL3_RECORD_set_data
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movq	(%r12,%rbx,8), %rsi
	movq	%r15, %rdi
	callq	_SSL3_RECORD_set_length
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movq	-144(%rbp), %r13                ## 8-byte Reload
	leaq	(%rax,%r13), %rsi
	movq	%r15, %rdi
	callq	_SSL3_RECORD_set_input
	addq	(%r12,%rbx,8), %r13
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	cmpq	$0, 128(%rdi)
	je	LBB0_79
## %bb.77:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	%rdi, %r14
	movq	%r15, %rsi
	callq	_ssl3_do_compress
	testl	%eax, %eax
	je	LBB0_146
## %bb.78:                              ##   in Loop: Header=BB0_58 Depth=1
	movl	(%r15), %esi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	xorl	%edx, %edx
	callq	_WPACKET_allocate_bytes
	testl	%eax, %eax
	jne	LBB0_81
	jmp	LBB0_146
LBB0_79:                                ##   in Loop: Header=BB0_58 Depth=1
	movq	%rdi, %r14
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_WPACKET_memcpy
	testl	%eax, %eax
	je	LBB0_152
## %bb.80:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	%r15, %rdi
	callq	_SSL3_RECORD_reset_input
LBB0_81:                                ##   in Loop: Header=BB0_58 Depth=1
	movq	%r13, -144(%rbp)                ## 8-byte Spill
	movq	%r14, %r15
	movq	%r14, %rdi
	callq	_SSL_TREAT_AS_TLS13
	testq	%rax, %rax
	je	LBB0_101
## %bb.82:                              ##   in Loop: Header=BB0_58 Depth=1
	cmpq	$0, 96(%r15)
	je	LBB0_101
## %bb.83:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	112(%r15), %rax
	movq	_ENC_WRITE_STATE_WRITE_PLAIN_ALERTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_85
## %bb.84:                              ##   in Loop: Header=BB0_58 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movq	_SSL3_RT_ALERT@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_101
LBB0_85:                                ##   in Loop: Header=BB0_58 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_WPACKET_put_bytes_u8
	testl	%eax, %eax
	je	LBB0_160
## %bb.86:                              ##   in Loop: Header=BB0_58 Depth=1
	movl	$1, %esi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_SSL3_RECORD_add_length
	movq	%r15, %rdi
	callq	_ssl_get_max_send_fragment
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_SSL3_RECORD_get_length
	subq	%rax, %r13
	jbe	LBB0_101
## %bb.87:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	16(%r15), %r8
	testq	%r8, %r8
	je	LBB0_93
## %bb.88:                              ##   in Loop: Header=BB0_58 Depth=1
	movl	120(%r15), %ecx
	movq	%r15, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%rax, %rdx
	callq	*%r8
	movq	%rax, %r14
	testq	%r14, %r14
	je	LBB0_101
LBB0_89:                                ##   in Loop: Header=BB0_58 Depth=1
	cmpq	%r13, %r14
	jb	LBB0_91
## %bb.90:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	%r13, %r14
LBB0_91:                                ##   in Loop: Header=BB0_58 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_WPACKET_memset
	testl	%eax, %eax
	je	LBB0_160
## %bb.92:                              ##   in Loop: Header=BB0_58 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_SSL3_RECORD_add_length
	jmp	LBB0_101
LBB0_93:                                ##   in Loop: Header=BB0_58 Depth=1
	movl	24(%r15), %r14d
	testl	%r14d, %r14d
	jle	LBB0_101
## %bb.94:                              ##   in Loop: Header=BB0_58 Depth=1
	leal	-1(%r14), %ecx
	testl	%ecx, %r14d
	jne	LBB0_96
## %bb.95:                              ##   in Loop: Header=BB0_58 Depth=1
	leal	-1(%r14), %edx
	andl	%eax, %edx
	jmp	LBB0_99
LBB0_96:                                ##   in Loop: Header=BB0_58 Depth=1
	movq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_98
## %bb.97:                              ##   in Loop: Header=BB0_58 Depth=1
	xorl	%edx, %edx
	divq	%r14
	jmp	LBB0_99
LBB0_98:                                ##   in Loop: Header=BB0_58 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r14d
                                        ## kill: def $edx killed $edx def $rdx
LBB0_99:                                ##   in Loop: Header=BB0_58 Depth=1
	testq	%rdx, %rdx
	je	LBB0_101
## %bb.100:                             ##   in Loop: Header=BB0_58 Depth=1
	subq	%rdx, %r14
	testq	%r14, %r14
	jne	LBB0_89
LBB0_101:                               ##   in Loop: Header=BB0_58 Depth=1
	movq	%r15, %rdi
	callq	_SSL_WRITE_ETM
	testq	%rax, %rax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_105
## %bb.102:                             ##   in Loop: Header=BB0_58 Depth=1
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_105
## %bb.103:                             ##   in Loop: Header=BB0_58 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	leaq	-136(%rbp), %rdx
	callq	_WPACKET_allocate_bytes
	testl	%eax, %eax
	je	LBB0_143
## %bb.104:                             ##   in Loop: Header=BB0_58 Depth=1
	movq	104(%r15), %rax
	movq	8(%rax), %rax
	movq	-136(%rbp), %rdx
	movq	%r15, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_143
LBB0_105:                               ##   in Loop: Header=BB0_58 Depth=1
	movq	_SSL_RT_MAX_CIPHER_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WPACKET_reserve_bytes
	testl	%eax, %eax
	je	LBB0_143
## %bb.106:                             ##   in Loop: Header=BB0_58 Depth=1
	movq	%rbx, %rdi
	leaq	-128(%rbp), %rsi
	callq	_WPACKET_get_length
	testl	%eax, %eax
	je	LBB0_143
## %bb.107:                             ##   in Loop: Header=BB0_58 Depth=1
	movq	%rbx, %rdi
	callq	_WPACKET_get_curr
	subq	-128(%rbp), %rax
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_SSL3_RECORD_set_data
	movq	%r14, %rdi
	callq	_SSL3_RECORD_reset_input
	movq	-128(%rbp), %rsi
	movq	%r14, %rdi
	callq	_SSL3_RECORD_set_length
	movq	-152(%rbp), %rax                ## 8-byte Reload
	incq	%rax
	addq	$8, %r14
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	addq	$4, %rbx
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%rax, %rcx
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	cmpq	%rax, -104(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_58
	jmp	LBB0_109
LBB0_108:
	xorl	%eax, %eax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
LBB0_109:
	movq	112(%r15), %rax
	movq	_ENC_WRITE_STATE_WRITE_PLAIN_ALERTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_118
## %bb.110:
	movq	%r15, %rdi
	movq	-160(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rsi
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	_tls13_enc
	jmp	LBB0_119
LBB0_111:
	cmpq	$0, -104(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_145
## %bb.112:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
LBB0_113:                               ## =>This Inner Loop Header: Depth=1
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %r14
	movq	72(%rbx), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_SSL3_BUFFER_set_offset
	movq	%rbx, %rdi
	callq	_SSL3_BUFFER_get_buf
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_SSL3_BUFFER_get_len
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_WPACKET_init_static_len
	testl	%eax, %eax
	je	LBB0_117
## %bb.114:                             ##   in Loop: Header=BB0_113 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_WPACKET_allocate_bytes
	testl	%eax, %eax
	je	LBB0_117
## %bb.115:                             ##   in Loop: Header=BB0_113 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	addq	$4, %r13
	cmpq	%rax, -104(%rbp)                ## 8-byte Folded Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_113
## %bb.116:
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_48
LBB0_117:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DO_SSL3_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_154
LBB0_118:
	movq	104(%r15), %rax
	movq	8(%rax), %rax
	movq	%r15, %rdi
	movq	-160(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rsi
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	*(%rax)
LBB0_119:
	testl	%eax, %eax
	jle	LBB0_142
## %bb.120:
	testq	%r14, %r14
	movq	%r15, %rbx
	je	LBB0_140
## %bb.121:
	movslq	-88(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
LBB0_122:                               ## =>This Inner Loop Header: Depth=1
	addq	%r15, %r13
	movq	%r13, %rdi
	leaq	-176(%rbp), %rsi
	callq	_WPACKET_get_length
	testl	%eax, %eax
	je	LBB0_144
## %bb.123:                             ##   in Loop: Header=BB0_122 Depth=1
	movq	-176(%rbp), %rax
	movslq	(%r12), %rsi
	cmpq	%rsi, %rax
	ja	LBB0_144
## %bb.124:                             ##   in Loop: Header=BB0_122 Depth=1
	jae	LBB0_126
## %bb.125:                             ##   in Loop: Header=BB0_122 Depth=1
	subl	%eax, %esi
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_WPACKET_allocate_bytes
	testl	%eax, %eax
	je	LBB0_144
LBB0_126:                               ##   in Loop: Header=BB0_122 Depth=1
	movq	%rbx, %rdi
	callq	_SSL_WRITE_ETM
	testq	%rax, %rax
	je	LBB0_131
## %bb.127:                             ##   in Loop: Header=BB0_122 Depth=1
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_131
## %bb.128:                             ##   in Loop: Header=BB0_122 Depth=1
	movq	%r13, %rdi
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	leaq	-136(%rbp), %rdx
	callq	_WPACKET_allocate_bytes
	testl	%eax, %eax
	je	LBB0_144
## %bb.129:                             ##   in Loop: Header=BB0_122 Depth=1
	movq	104(%rbx), %rax
	movq	8(%rax), %rax
	movq	-136(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %ecx
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_144
## %bb.130:                             ##   in Loop: Header=BB0_122 Depth=1
	movq	%r12, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_SSL3_RECORD_add_length
LBB0_131:                               ##   in Loop: Header=BB0_122 Depth=1
	movq	%r13, %rdi
	leaq	-128(%rbp), %rsi
	callq	_WPACKET_get_length
	testl	%eax, %eax
	je	LBB0_144
## %bb.132:                             ##   in Loop: Header=BB0_122 Depth=1
	movq	%r13, %rdi
	callq	_WPACKET_close
	testl	%eax, %eax
	je	LBB0_144
## %bb.133:                             ##   in Loop: Header=BB0_122 Depth=1
	cmpq	$0, 88(%rbx)
	je	LBB0_137
## %bb.134:                             ##   in Loop: Header=BB0_122 Depth=1
	movq	%r13, %rdi
	callq	_WPACKET_get_curr
	movq	_SSL3_RT_HEADER_LENGTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	-128(%rbp), %rcx
	addq	%r8, %rcx
	subq	%rcx, %rax
	movq	_SSL3_RT_HEADER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	80(%rcx), %ebx
	subq	$8, %rsp
	movl	$1, %edi
	xorl	%esi, %esi
	movq	%rax, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	pushq	%rbx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	callq	*88(%rbx)
	addq	$16, %rsp
	movq	%rbx, %rdi
	callq	_SSL_TREAT_AS_TLS13
	testq	%rax, %rax
	je	LBB0_137
## %bb.135:                             ##   in Loop: Header=BB0_122 Depth=1
	cmpq	$0, 96(%rbx)
	je	LBB0_137
## %bb.136:                             ##   in Loop: Header=BB0_122 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movb	%al, -136(%rbp)
	movq	_SSL3_RT_INNER_CONTENT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %esi
	movl	80(%rbx), %eax
	subq	$8, %rsp
	movl	$1, %edi
	leaq	-136(%rbp), %rcx
	movl	$1, %r8d
	movq	%rbx, %r9
	pushq	%rax
	callq	*88(%rbx)
	addq	$16, %rsp
LBB0_137:                               ##   in Loop: Header=BB0_122 Depth=1
	movq	%r13, %rdi
	callq	_WPACKET_finish
	testl	%eax, %eax
	je	LBB0_144
## %bb.138:                             ##   in Loop: Header=BB0_122 Depth=1
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_SSL3_RECORD_set_type
	movq	_SSL3_RT_HEADER_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_SSL3_RECORD_add_length
	cmpl	$0, -108(%rbp)                  ## 4-byte Folded Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_159
## %bb.139:                             ##   in Loop: Header=BB0_122 Depth=1
	movq	72(%rbx), %r14
	addq	%r15, %r14
	movq	-184(%rbp), %rbx
	movq	%r12, %rdi
	callq	_SSL3_RECORD_get_length
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	callq	_SSL3_BUFFER_set_left
	addq	$4, %r15
	addq	$8, %r12
	decq	-104(%rbp)                      ## 8-byte Folded Spill
	jne	LBB0_122
LBB0_140:
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, 40(%rbx)
	movq	-168(%rbp), %rdx                ## 8-byte Reload
	movq	%rdx, 48(%rbx)
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, 56(%rbx)
	movq	%rcx, 64(%rbx)
	movq	%rbx, %rdi
	movq	-192(%rbp), %r8                 ## 8-byte Reload
	callq	_ssl3_write_pending
LBB0_141:
	movl	%eax, %r15d
	jmp	LBB0_157
LBB0_142:
	movq	%r15, %rdi
	callq	_ossl_statem_in_error
	testl	%eax, %eax
	jne	LBB0_155
LBB0_143:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DO_SSL3_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	jmp	LBB0_155
LBB0_144:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DO_SSL3_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	jmp	LBB0_154
LBB0_145:
	xorl	%ecx, %ecx
	jmp	LBB0_48
LBB0_146:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DO_SSL3_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_COMPRESSION_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_153
LBB0_147:
	movq	_EVP_CIPH_GCM_MODE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_149
## %bb.148:
	movq	_EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_151
LBB0_149:
	movq	_EVP_CIPH_CCM_MODE@GOTPCREL(%rip), %rcx
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	cmpl	(%rcx), %eax
	jne	LBB0_56
## %bb.150:
	movq	_EVP_CCM_TLS_EXPLICIT_IV_LEN@GOTPCREL(%rip), %rax
LBB0_151:
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	jmp	LBB0_56
LBB0_152:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DO_SSL3_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_153:
	movl	(%rax), %ecx
	movq	%r14, %rdi
LBB0_154:
	callq	_SSLfatal
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_155:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	$-1, %r15d
	testq	%rbx, %rbx
	je	LBB0_157
	.p2align	4, 0x90
LBB0_156:                               ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_WPACKET_cleanup
	addq	$4, %r13
	decq	%rbx
	jne	LBB0_156
LBB0_157:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_161
## %bb.158:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_159:
	movq	%r12, %rdi
	callq	_SSL3_RECORD_get_length
	movq	-192(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	$1, %r15d
	jmp	LBB0_157
LBB0_160:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DO_SSL3_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	jmp	LBB0_154
LBB0_161:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_MAX_PIPELINES,4,2          ## @SSL_MAX_PIPELINES
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_DO_SSL3_WRITE,4,2        ## @SSL_F_DO_SSL3_WRITE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL3_RT_APPLICATION_DATA,4,2   ## @SSL3_RT_APPLICATION_DATA
	.comm	_SSL3_RT_HEADER_LENGTH,8,3      ## @SSL3_RT_HEADER_LENGTH
	.comm	_SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD,8,3 ## @SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD
	.comm	_EVP_CIPH_CBC_MODE,4,2          ## @EVP_CIPH_CBC_MODE
	.comm	_EVP_CIPH_GCM_MODE,4,2          ## @EVP_CIPH_GCM_MODE
	.comm	_EVP_GCM_TLS_EXPLICIT_IV_LEN,4,2 ## @EVP_GCM_TLS_EXPLICIT_IV_LEN
	.comm	_EVP_CIPH_CCM_MODE,4,2          ## @EVP_CIPH_CCM_MODE
	.comm	_EVP_CCM_TLS_EXPLICIT_IV_LEN,4,2 ## @EVP_CCM_TLS_EXPLICIT_IV_LEN
	.comm	_TLS1_3_VERSION,4,2             ## @TLS1_3_VERSION
	.comm	_TLS1_2_VERSION,4,2             ## @TLS1_2_VERSION
	.comm	_ENC_WRITE_STATE_WRITE_PLAIN_ALERTS,8,3 ## @ENC_WRITE_STATE_WRITE_PLAIN_ALERTS
	.comm	_SSL3_RT_ALERT,4,2              ## @SSL3_RT_ALERT
	.comm	_TLS_ST_CW_CLNT_HELLO,8,3       ## @TLS_ST_CW_CLNT_HELLO
	.comm	_TLS1_VERSION,4,2               ## @TLS1_VERSION
	.comm	_SSL_HRR_NONE,8,3               ## @SSL_HRR_NONE
	.comm	_SSL3_RT_MAX_COMPRESSED_OVERHEAD,8,3 ## @SSL3_RT_MAX_COMPRESSED_OVERHEAD
	.comm	_SSL_R_COMPRESSION_FAILURE,4,2  ## @SSL_R_COMPRESSION_FAILURE
	.comm	_SSL_RT_MAX_CIPHER_BLOCK_SIZE,8,3 ## @SSL_RT_MAX_CIPHER_BLOCK_SIZE
	.comm	_SSL3_RT_HEADER,4,2             ## @SSL3_RT_HEADER
	.comm	_SSL3_RT_INNER_CONTENT_TYPE,4,2 ## @SSL3_RT_INNER_CONTENT_TYPE
	.comm	_SSL3_ALIGN_PAYLOAD,4,2         ## @SSL3_ALIGN_PAYLOAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_ssl3_write                  ; -- Begin function do_ssl3_write
	.p2align	2
_do_ssl3_write:                         ; @do_ssl3_write
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #128
	mov	x24, x6
	mov	x26, x5
	mov	x22, x4
	mov	x28, x2
	mov	x25, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _SSL_MAX_PIPELINES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_MAX_PIPELINES@GOTPAGEOFF]
Lloh5:
	ldr	w27, [x8]
	lsl	x8, x27, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	lsl	x8, x27, #3
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x8, x9, x8
	mov	sp, x8
	stur	xzr, [x29, #-96]
	stur	x8, [x29, #-136]                ; 8-byte Folded Spill
	cbz	x4, LBB0_3
; %bb.1:
	cmp	x22, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x8, #0
	mov	x21, #0
	b	LBB0_7
LBB0_3:
	mov	x21, #0
	b	LBB0_9
LBB0_4:
	and	x8, x22, #0xfffffffffffffff8
	add	x9, x3, #32
	movi.2d	v0, #0000000000000000
	mov	x10, x8
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x9, #-32]
	ldp	q6, q7, [x9], #64
	add.2d	v0, v4, v0
	add.2d	v1, v5, v1
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	subs	x10, x10, #8
	b.ne	LBB0_5
; %bb.6:
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x21, d0
	cmp	x8, x22
	b.eq	LBB0_9
LBB0_7:
	sub	x9, x22, x8
	add	x8, x3, x8, lsl #3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8], #8
	add	x21, x10, x21
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	stur	x3, [x29, #-128]                ; 8-byte Folded Spill
	add	x23, x20, #32
	mov	x0, x23
	bl	_RECORD_LAYER_write_pending
	cbz	x0, LBB0_12
; %bb.10:
	ldur	x8, [x29, #-88]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_138
; %bb.11:
	mov	x0, x20
	mov	x1, x25
	mov	x2, x28
	mov	x3, x21
	mov	x4, x24
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ssl3_write_pending
LBB0_12:
	ldr	x8, [x20, #144]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	x8, [x20, #104]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	cmp	w0, #1
	b.lt	LBB0_127
LBB0_14:
	ldr	x8, [x23]
	cmp	x8, x22
	b.hs	LBB0_16
; %bb.15:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_ssl3_setup_write_buffer
	cbz	w0, LBB0_126
LBB0_16:
	cbnz	w26, LBB0_19
; %bb.17:
	cbnz	x21, LBB0_19
; %bb.18:
	mov	w0, #0
	b	LBB0_127
LBB0_19:
	ldr	x8, [x20, #160]
	cbz	x8, LBB0_24
; %bb.20:
	ldr	x8, [x20, #96]
	cbz	x8, LBB0_24
; %bb.21:
	ldr	w0, [x20, #152]
	bl	_EVP_MD_CTX_md
	cbz	x0, LBB0_24
; %bb.22:
	ldr	w0, [x20, #152]
	bl	_EVP_MD_CTX_size
                                        ; kill: def $w0 killed $w0 def $x0
	stur	x0, [x29, #-152]                ; 8-byte Folded Spill
	tbnz	w0, #31, LBB0_91
; %bb.23:
	mov	w8, #0
	b	LBB0_25
LBB0_24:
	stur	xzr, [x29, #-152]               ; 8-byte Folded Spill
	ldr	x8, [x20, #96]
	cmp	x8, #0
	cset	w8, eq
LBB0_25:
	orr	w8, w8, w26
	cbnz	w8, LBB0_27
; %bb.26:
	ldr	x9, [x20, #144]
	ldr	w8, [x9]
	cbz	w8, LBB0_30
LBB0_27:
	mov	x8, #0
	stur	w25, [x29, #-140]               ; 4-byte Folded Spill
	cbz	w26, LBB0_36
LBB0_28:
	ldr	x21, [x20, #72]
	mov	x0, x21
	mov	x1, #0
	bl	_SSL3_BUFFER_set_offset
	mov	x0, x21
	bl	_SSL3_BUFFER_get_buf
	mov	x23, x0
	mov	x0, x21
	bl	_SSL3_BUFFER_get_len
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	mov	w3, #0
	bl	_WPACKET_init_static_len
	cbz	w0, LBB0_91
; %bb.29:
	mov	x0, x19
	mov	w1, #0
	b	LBB0_39
LBB0_30:
	mov	x8, #0
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_35
; %bb.31:
Lloh13:
	adrp	x10, _SSL3_RT_APPLICATION_DATA@GOTPAGE
Lloh14:
	ldr	x10, [x10, _SSL3_RT_APPLICATION_DATA@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	cmp	w10, w25
	b.ne	LBB0_35
; %bb.32:
	stur	xzr, [x29, #-104]
	sub	x3, x29, #104
	sub	x6, x29, #96
	mov	x0, x20
	mov	x1, x25
	mov	x2, x28
	mov	w4, #1
	mov	w5, #1
	bl	_do_ssl3_write
	cmp	w0, #1
	b.lt	LBB0_126
; %bb.33:
	ldur	x8, [x29, #-96]
Lloh16:
	adrp	x9, _SSL3_RT_HEADER_LENGTH@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SSL3_RT_HEADER_LENGTH@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
Lloh19:
	adrp	x10, _SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	add	x9, x10, x9
	cmp	x8, x9
	b.hi	LBB0_91
; %bb.34:
	ldr	x9, [x20, #144]
LBB0_35:
	mov	w10, #1
	str	w10, [x9]
	stur	w25, [x29, #-140]               ; 4-byte Folded Spill
	cbnz	w26, LBB0_28
LBB0_36:
	cbz	x8, LBB0_92
; %bb.37:
	ldr	x21, [x20, #72]
	mov	x0, x21
	bl	_SSL3_BUFFER_get_buf
	mov	x23, x0
	mov	x0, x21
	bl	_SSL3_BUFFER_get_len
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	mov	w3, #0
	bl	_WPACKET_init_static_len
	cbz	w0, LBB0_91
; %bb.38:
	mov	x0, x21
	bl	_SSL3_BUFFER_get_offset
	ldur	w8, [x29, #-96]
	add	w1, w8, w0
	mov	x0, x19
LBB0_39:
	mov	x2, #0
	bl	_WPACKET_allocate_bytes
	cbz	w0, LBB0_91
; %bb.40:
	stur	x24, [x29, #-200]               ; 8-byte Folded Spill
	mov	w25, #1
LBB0_41:
	ldr	x8, [x20, #96]
	ldp	x21, x23, [x29, #-136]          ; 16-byte Folded Reload
	cbz	x8, LBB0_44
; %bb.42:
	mov	x0, x20
	bl	_SSL_USE_EXPLICIT_IV
	cbz	x0, LBB0_44
; %bb.43:
	mov	x0, x20
	bl	_SSL_TREAT_AS_TLS13
	cbz	x0, LBB0_129
LBB0_44:
	stur	wzr, [x29, #-164]               ; 4-byte Folded Spill
LBB0_45:
	stur	w26, [x29, #-188]               ; 4-byte Folded Spill
	lsl	w2, w27, #3
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	stur	x28, [x29, #-184]               ; 8-byte Folded Spill
	mov	x24, #0
	cbz	x22, LBB0_89
; %bb.46:
	mov	x27, x19
	mov	x26, x21
	mov	x8, x22
LBB0_47:                                ; =>This Inner Loop Header: Depth=1
	stur	x8, [x29, #-176]                ; 8-byte Folded Spill
	stur	x23, [x29, #-128]               ; 8-byte Folded Spill
	ldr	w8, [x20]
Lloh22:
	adrp	x9, _TLS1_3_VERSION@GOTPAGE
Lloh23:
	ldr	x9, [x9, _TLS1_3_VERSION@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _TLS1_2_VERSION@GOTPAGE
Lloh26:
	ldr	x10, [x10, _TLS1_2_VERSION@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w21, w10, w8, eq
	stur	xzr, [x29, #-112]
	mov	x0, x20
	bl	_SSL_TREAT_AS_TLS13
	ldur	w11, [x29, #-140]               ; 4-byte Folded Reload
	mov	x23, x11
	cbz	x0, LBB0_50
; %bb.48:                               ;   in Loop: Header=BB0_47 Depth=1
	ldr	x8, [x20, #96]
	mov	x23, x11
	cbz	x8, LBB0_50
; %bb.49:                               ;   in Loop: Header=BB0_47 Depth=1
	ldr	x8, [x20, #112]
Lloh28:
	adrp	x9, _ENC_WRITE_STATE_WRITE_PLAIN_ALERTS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _ENC_WRITE_STATE_WRITE_PLAIN_ALERTS@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
Lloh31:
	adrp	x10, _SSL3_RT_ALERT@GOTPAGE
Lloh32:
	ldr	x10, [x10, _SSL3_RT_ALERT@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	cmp	w10, w11
	ccmp	x8, x9, #0, eq
Lloh34:
	adrp	x8, _SSL3_RT_APPLICATION_DATA@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SSL3_RT_APPLICATION_DATA@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	csel	w23, w11, w8, eq
LBB0_50:                                ;   in Loop: Header=BB0_47 Depth=1
	mov	x0, x26
	mov	x1, x23
	bl	_SSL3_RECORD_set_type
	mov	x0, x20
	bl	_SSL_get_state
Lloh37:
	adrp	x8, _TLS_ST_CW_CLNT_HELLO@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TLS_ST_CW_CLNT_HELLO@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	cmp	x0, x8
	stur	x24, [x29, #-160]               ; 8-byte Folded Spill
	b.ne	LBB0_54
; %bb.51:                               ;   in Loop: Header=BB0_47 Depth=1
	ldr	w8, [x20, #136]
	cbnz	w8, LBB0_54
; %bb.52:                               ;   in Loop: Header=BB0_47 Depth=1
	mov	x0, x20
	bl	_TLS1_get_version
Lloh40:
	adrp	x8, _TLS1_VERSION@GOTPAGE
Lloh41:
	ldr	x8, [x8, _TLS1_VERSION@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ls	LBB0_54
; %bb.53:                               ;   in Loop: Header=BB0_47 Depth=1
	ldr	x9, [x20, #8]
Lloh43:
	adrp	x10, _SSL_HRR_NONE@GOTPAGE
Lloh44:
	ldr	x10, [x10, _SSL_HRR_NONE@GOTPAGEOFF]
Lloh45:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	w21, w8, w21, eq
LBB0_54:                                ;   in Loop: Header=BB0_47 Depth=1
	mov	x0, x26
	mov	x1, x21
	bl	_SSL3_RECORD_set_rec_version
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	ldr	x24, [x8]
	ldr	x8, [x20, #128]
Lloh46:
	adrp	x9, _SSL3_RT_MAX_COMPRESSED_OVERHEAD@GOTPAGE
Lloh47:
	ldr	x9, [x9, _SSL3_RT_MAX_COMPRESSED_OVERHEAD@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x28, xzr, x9, eq
	mov	x0, x27
	mov	x1, x23
	bl	_WPACKET_put_bytes_u8
	cbz	w0, LBB0_122
; %bb.55:                               ;   in Loop: Header=BB0_47 Depth=1
	mov	x0, x27
	mov	x1, x21
	bl	_WPACKET_put_bytes_u16
	cbz	w0, LBB0_122
; %bb.56:                               ;   in Loop: Header=BB0_47 Depth=1
	mov	x0, x27
	bl	_WPACKET_start_sub_packet_u16
	cbz	w0, LBB0_122
; %bb.57:                               ;   in Loop: Header=BB0_47 Depth=1
	ldur	w8, [x29, #-164]                ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_59
; %bb.58:                               ;   in Loop: Header=BB0_47 Depth=1
	mov	x0, x27
	ldur	w1, [x29, #-164]                ; 4-byte Folded Reload
	mov	x2, #0
	bl	_WPACKET_allocate_bytes
	cbz	w0, LBB0_122
LBB0_59:                                ;   in Loop: Header=BB0_47 Depth=1
	add	x1, x28, x24
	cbz	x1, LBB0_61
; %bb.60:                               ;   in Loop: Header=BB0_47 Depth=1
	sub	x2, x29, #112
	mov	x0, x27
	bl	_WPACKET_reserve_bytes
	cbz	w0, LBB0_122
LBB0_61:                                ;   in Loop: Header=BB0_47 Depth=1
	ldur	x1, [x29, #-112]
	mov	x0, x26
	bl	_SSL3_RECORD_set_data
	ldur	x21, [x29, #-128]               ; 8-byte Folded Reload
	ldr	x1, [x21]
	mov	x0, x26
	bl	_SSL3_RECORD_set_length
	ldur	x8, [x29, #-184]                ; 8-byte Folded Reload
	ldur	x24, [x29, #-160]               ; 8-byte Folded Reload
	add	x1, x8, x24
	mov	x0, x26
	bl	_SSL3_RECORD_set_input
	ldr	x23, [x21]
	ldr	x8, [x20, #128]
	cbz	x8, LBB0_64
; %bb.62:                               ;   in Loop: Header=BB0_47 Depth=1
	mov	x0, x20
	mov	x1, x26
	bl	_ssl3_do_compress
	cbz	w0, LBB0_132
; %bb.63:                               ;   in Loop: Header=BB0_47 Depth=1
	ldr	w1, [x26]
	mov	x0, x27
	mov	x2, #0
	bl	_WPACKET_allocate_bytes
	cbnz	w0, LBB0_66
	b	LBB0_132
LBB0_64:                                ;   in Loop: Header=BB0_47 Depth=1
	ldp	w2, w1, [x26]
	mov	x0, x27
	bl	_WPACKET_memcpy
	cbz	w0, LBB0_122
; %bb.65:                               ;   in Loop: Header=BB0_47 Depth=1
	mov	x0, x26
	bl	_SSL3_RECORD_reset_input
LBB0_66:                                ;   in Loop: Header=BB0_47 Depth=1
	mov	x0, x20
	bl	_SSL_TREAT_AS_TLS13
	cbz	x0, LBB0_82
; %bb.67:                               ;   in Loop: Header=BB0_47 Depth=1
	ldr	x8, [x20, #96]
	cbz	x8, LBB0_82
; %bb.68:                               ;   in Loop: Header=BB0_47 Depth=1
	ldr	x8, [x20, #112]
Lloh49:
	adrp	x9, _ENC_WRITE_STATE_WRITE_PLAIN_ALERTS@GOTPAGE
Lloh50:
	ldr	x9, [x9, _ENC_WRITE_STATE_WRITE_PLAIN_ALERTS@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_70
; %bb.69:                               ;   in Loop: Header=BB0_47 Depth=1
Lloh52:
	adrp	x8, _SSL3_RT_ALERT@GOTPAGE
Lloh53:
	ldr	x8, [x8, _SSL3_RT_ALERT@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	ldur	w9, [x29, #-140]                ; 4-byte Folded Reload
	cmp	w8, w9
	b.eq	LBB0_82
LBB0_70:                                ;   in Loop: Header=BB0_47 Depth=1
	mov	x0, x27
	ldur	w1, [x29, #-140]                ; 4-byte Folded Reload
	bl	_WPACKET_put_bytes_u8
	cbz	w0, LBB0_122
; %bb.71:                               ;   in Loop: Header=BB0_47 Depth=1
	mov	x0, x26
	mov	w1, #1
	bl	_SSL3_RECORD_add_length
	mov	x0, x20
	bl	_ssl_get_max_send_fragment
	mov	x21, x0
	mov	x0, x26
	bl	_SSL3_RECORD_get_length
	subs	x21, x21, x0
	b.ls	LBB0_82
; %bb.72:                               ;   in Loop: Header=BB0_47 Depth=1
	mov	x2, x0
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_76
; %bb.73:                               ;   in Loop: Header=BB0_47 Depth=1
	ldr	w3, [x20, #120]
	mov	x0, x20
	ldur	w1, [x29, #-140]                ; 4-byte Folded Reload
	blr	x8
	cbz	x0, LBB0_82
LBB0_74:                                ;   in Loop: Header=BB0_47 Depth=1
	cmp	x0, x21
	csel	x21, x0, x21, lo
	mov	x0, x27
	mov	w1, #0
	mov	x2, x21
	bl	_WPACKET_memset
	cbz	w0, LBB0_122
; %bb.75:                               ;   in Loop: Header=BB0_47 Depth=1
	mov	x0, x26
	mov	x1, x21
	bl	_SSL3_RECORD_add_length
	b	LBB0_82
LBB0_76:                                ;   in Loop: Header=BB0_47 Depth=1
	ldr	w8, [x20, #24]
	cmp	w8, #1
	b.lt	LBB0_82
; %bb.77:                               ;   in Loop: Header=BB0_47 Depth=1
	sub	w9, w8, #1
	tst	w8, w9
	b.ne	LBB0_79
; %bb.78:                               ;   in Loop: Header=BB0_47 Depth=1
	sub	w9, w8, #1
	and	x9, x2, x9
	b	LBB0_80
LBB0_79:                                ;   in Loop: Header=BB0_47 Depth=1
	udiv	x9, x2, x8
	msub	x9, x9, x8, x2
LBB0_80:                                ;   in Loop: Header=BB0_47 Depth=1
	cbz	x9, LBB0_82
; %bb.81:                               ;   in Loop: Header=BB0_47 Depth=1
	sub	x0, x8, x9
	cbnz	x0, LBB0_74
LBB0_82:                                ;   in Loop: Header=BB0_47 Depth=1
	mov	x0, x20
	bl	_SSL_WRITE_ETM
	ldur	x21, [x29, #-136]               ; 8-byte Folded Reload
	cbnz	x0, LBB0_86
; %bb.83:                               ;   in Loop: Header=BB0_47 Depth=1
	ldur	x8, [x29, #-152]                ; 8-byte Folded Reload
	cbz	w8, LBB0_86
; %bb.84:                               ;   in Loop: Header=BB0_47 Depth=1
	sub	x2, x29, #120
	mov	x0, x27
	ldur	x1, [x29, #-152]                ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_WPACKET_allocate_bytes
	cbz	w0, LBB0_122
; %bb.85:                               ;   in Loop: Header=BB0_47 Depth=1
	ldr	x8, [x20, #104]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	ldur	x2, [x29, #-120]
	mov	x0, x20
	mov	x1, x26
	mov	w3, #1
	blr	x8
	cbz	w0, LBB0_122
LBB0_86:                                ;   in Loop: Header=BB0_47 Depth=1
Lloh55:
	adrp	x8, _SSL_RT_MAX_CIPHER_BLOCK_SIZE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _SSL_RT_MAX_CIPHER_BLOCK_SIZE@GOTPAGEOFF]
Lloh57:
	ldr	x1, [x8]
	mov	x0, x27
	mov	x2, #0
	bl	_WPACKET_reserve_bytes
	cbz	w0, LBB0_122
; %bb.87:                               ;   in Loop: Header=BB0_47 Depth=1
	sub	x1, x29, #104
	mov	x0, x27
	bl	_WPACKET_get_length
	cbz	w0, LBB0_122
; %bb.88:                               ;   in Loop: Header=BB0_47 Depth=1
	add	x24, x23, x24
	mov	x0, x27
	bl	_WPACKET_get_curr
	ldur	x8, [x29, #-104]
	sub	x1, x0, x8
	mov	x0, x26
	bl	_SSL3_RECORD_set_data
	mov	x0, x26
	bl	_SSL3_RECORD_reset_input
	ldur	x1, [x29, #-104]
	mov	x0, x26
	bl	_SSL3_RECORD_set_length
	ldur	x23, [x29, #-128]               ; 8-byte Folded Reload
	add	x23, x23, #8
	add	x26, x26, #8
	add	x27, x27, #4
	ldur	x8, [x29, #-176]                ; 8-byte Folded Reload
	subs	x8, x8, #1
	b.ne	LBB0_47
LBB0_89:
	ldr	x8, [x20, #112]
Lloh58:
	adrp	x9, _ENC_WRITE_STATE_WRITE_PLAIN_ALERTS@GOTPAGE
Lloh59:
	ldr	x9, [x9, _ENC_WRITE_STATE_WRITE_PLAIN_ALERTS@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_98
; %bb.90:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	w3, #1
	bl	_tls13_enc
	b	LBB0_99
LBB0_91:
Lloh61:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh62:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
Lloh64:
	adrp	x8, _SSL_F_DO_SSL3_WRITE@GOTPAGE
Lloh65:
	ldr	x8, [x8, _SSL_F_DO_SSL3_WRITE@GOTPAGEOFF]
Lloh66:
	ldr	w2, [x8]
Lloh67:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh68:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh69:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_SSLfatal
	b	LBB0_126
LBB0_92:
	stur	x24, [x29, #-200]               ; 8-byte Folded Spill
	cbz	x22, LBB0_131
; %bb.93:
	stur	w26, [x29, #-188]               ; 4-byte Folded Spill
	mov	x24, #0
	mov	x25, #0
LBB0_94:                                ; =>This Inner Loop Header: Depth=1
	add	x21, x19, x24
	ldr	x8, [x20, #72]
	add	x23, x8, x24
	mov	x0, x23
	mov	x1, #0
	bl	_SSL3_BUFFER_set_offset
	mov	x0, x23
	bl	_SSL3_BUFFER_get_buf
	mov	x26, x0
	mov	x0, x23
	bl	_SSL3_BUFFER_get_len
	mov	x2, x0
	mov	x0, x21
	mov	x1, x26
	mov	w3, #0
	bl	_WPACKET_init_static_len
	cbz	w0, LBB0_122
; %bb.95:                               ;   in Loop: Header=BB0_94 Depth=1
	mov	x0, x21
	mov	w1, #0
	mov	x2, #0
	bl	_WPACKET_allocate_bytes
	cbz	w0, LBB0_122
; %bb.96:                               ;   in Loop: Header=BB0_94 Depth=1
	add	x25, x25, #1
	add	x24, x24, #4
	cmp	x22, x25
	b.ne	LBB0_94
; %bb.97:
	mov	x25, x22
	ldur	w26, [x29, #-188]               ; 4-byte Folded Reload
	b	LBB0_41
LBB0_98:
	ldr	x8, [x20, #104]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	w3, #1
	blr	x8
LBB0_99:
	cmp	w0, #0
	b.le	LBB0_121
; %bb.100:
	stur	x24, [x29, #-160]               ; 8-byte Folded Spill
	cbz	x22, LBB0_120
; %bb.101:
	mov	x23, #0
	ldur	x8, [x29, #-152]                ; 8-byte Folded Reload
	sxtw	x26, w8
Lloh70:
	adrp	x28, _SSL3_RT_HEADER_LENGTH@GOTPAGE
Lloh71:
	ldr	x28, [x28, _SSL3_RT_HEADER_LENGTH@GOTPAGEOFF]
LBB0_102:                               ; =>This Inner Loop Header: Depth=1
	add	x27, x19, x23
	sub	x1, x29, #112
	mov	x0, x27
	bl	_WPACKET_get_length
	cbz	w0, LBB0_122
; %bb.103:                              ;   in Loop: Header=BB0_102 Depth=1
	ldur	x8, [x29, #-112]
	ldrsw	x9, [x21]
	cmp	x8, x9
	b.hi	LBB0_122
; %bb.104:                              ;   in Loop: Header=BB0_102 Depth=1
	b.hs	LBB0_106
; %bb.105:                              ;   in Loop: Header=BB0_102 Depth=1
	sub	w1, w9, w8
	mov	x0, x27
	mov	x2, #0
	bl	_WPACKET_allocate_bytes
	cbz	w0, LBB0_122
LBB0_106:                               ;   in Loop: Header=BB0_102 Depth=1
	mov	x0, x20
	bl	_SSL_WRITE_ETM
	cbz	x0, LBB0_111
; %bb.107:                              ;   in Loop: Header=BB0_102 Depth=1
	ldur	x8, [x29, #-152]                ; 8-byte Folded Reload
	cbz	w8, LBB0_111
; %bb.108:                              ;   in Loop: Header=BB0_102 Depth=1
	sub	x2, x29, #120
	mov	x0, x27
	ldur	x1, [x29, #-152]                ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_WPACKET_allocate_bytes
	cbz	w0, LBB0_122
; %bb.109:                              ;   in Loop: Header=BB0_102 Depth=1
	ldr	x8, [x20, #104]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	ldur	x2, [x29, #-120]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #1
	blr	x8
	cbz	w0, LBB0_122
; %bb.110:                              ;   in Loop: Header=BB0_102 Depth=1
	mov	x0, x21
	mov	x1, x26
	bl	_SSL3_RECORD_add_length
LBB0_111:                               ;   in Loop: Header=BB0_102 Depth=1
	sub	x1, x29, #104
	mov	x0, x27
	bl	_WPACKET_get_length
	cbz	w0, LBB0_122
; %bb.112:                              ;   in Loop: Header=BB0_102 Depth=1
	mov	x0, x27
	bl	_WPACKET_close
	cbz	w0, LBB0_122
; %bb.113:                              ;   in Loop: Header=BB0_102 Depth=1
	ldr	x8, [x20, #88]
	cbz	x8, LBB0_117
; %bb.114:                              ;   in Loop: Header=BB0_102 Depth=1
	mov	x0, x27
	bl	_WPACKET_get_curr
	ldur	x8, [x29, #-104]
	ldr	x4, [x28]
	add	x8, x8, x4
	sub	x3, x0, x8
	ldr	x8, [x20, #88]
Lloh72:
	adrp	x9, _SSL3_RT_HEADER@GOTPAGE
Lloh73:
	ldr	x9, [x9, _SSL3_RT_HEADER@GOTPAGEOFF]
Lloh74:
	ldr	w2, [x9]
	ldr	w6, [x20, #80]
	mov	w0, #1
	mov	w1, #0
                                        ; kill: def $w4 killed $w4 killed $x4
	mov	x5, x20
	blr	x8
	mov	x0, x20
	bl	_SSL_TREAT_AS_TLS13
	cbz	x0, LBB0_117
; %bb.115:                              ;   in Loop: Header=BB0_102 Depth=1
	ldr	x8, [x20, #96]
	cbz	x8, LBB0_117
; %bb.116:                              ;   in Loop: Header=BB0_102 Depth=1
	ldur	w8, [x29, #-140]                ; 4-byte Folded Reload
	sturb	w8, [x29, #-120]
	ldr	x8, [x20, #88]
	ldr	w1, [x20]
Lloh75:
	adrp	x9, _SSL3_RT_INNER_CONTENT_TYPE@GOTPAGE
Lloh76:
	ldr	x9, [x9, _SSL3_RT_INNER_CONTENT_TYPE@GOTPAGEOFF]
Lloh77:
	ldr	w2, [x9]
	ldr	w6, [x20, #80]
	sub	x3, x29, #120
	mov	w0, #1
	mov	w4, #1
	mov	x5, x20
	blr	x8
LBB0_117:                               ;   in Loop: Header=BB0_102 Depth=1
	mov	x0, x27
	bl	_WPACKET_finish
	cbz	w0, LBB0_122
; %bb.118:                              ;   in Loop: Header=BB0_102 Depth=1
	mov	x0, x21
	ldur	w1, [x29, #-140]                ; 4-byte Folded Reload
	bl	_SSL3_RECORD_set_type
	ldr	x1, [x28]
	mov	x0, x21
	bl	_SSL3_RECORD_add_length
	ldur	w8, [x29, #-188]                ; 4-byte Folded Reload
	cbnz	w8, LBB0_137
; %bb.119:                              ;   in Loop: Header=BB0_102 Depth=1
	ldr	x8, [x20, #72]
	mov	x27, x21
	add	x21, x8, x23
	ldur	x24, [x29, #-96]
	mov	x0, x27
	bl	_SSL3_RECORD_get_length
	add	x1, x0, x24
	mov	x0, x21
	mov	x21, x27
	bl	_SSL3_BUFFER_set_left
	add	x23, x23, #4
	add	x21, x27, #8
	subs	x22, x22, #1
	b.ne	LBB0_102
LBB0_120:
	ldur	x3, [x29, #-160]                ; 8-byte Folded Reload
	ldur	x2, [x29, #-184]                ; 8-byte Folded Reload
	stp	x3, x2, [x20, #40]
	ldur	w1, [x29, #-140]                ; 4-byte Folded Reload
	str	w1, [x20, #56]
	str	x3, [x20, #64]
	mov	x0, x20
	ldur	x4, [x29, #-200]                ; 8-byte Folded Reload
	bl	_ssl3_write_pending
	b	LBB0_127
LBB0_121:
	mov	x0, x20
	bl	_ossl_statem_in_error
	cbnz	w0, LBB0_124
LBB0_122:
Lloh78:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh79:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
Lloh81:
	adrp	x8, _SSL_F_DO_SSL3_WRITE@GOTPAGE
Lloh82:
	ldr	x8, [x8, _SSL_F_DO_SSL3_WRITE@GOTPAGEOFF]
Lloh83:
	ldr	w2, [x8]
Lloh84:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh85:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_123:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_SSLfatal
LBB0_124:
	cbz	x25, LBB0_126
LBB0_125:                               ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_WPACKET_cleanup
	add	x19, x19, #4
	subs	x25, x25, #1
	b.ne	LBB0_125
LBB0_126:
	mov	w0, #-1
LBB0_127:
	ldur	x8, [x29, #-88]
Lloh86:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh87:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh88:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_138
; %bb.128:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_129:
	ldr	x0, [x20, #96]
	bl	_EVP_CIPHER_CTX_mode
Lloh89:
	adrp	x8, _EVP_CIPH_CBC_MODE@GOTPAGE
Lloh90:
	ldr	x8, [x8, _EVP_CIPH_CBC_MODE@GOTPAGEOFF]
Lloh91:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_133
; %bb.130:
	ldr	x0, [x20, #96]
	bl	_EVP_CIPHER_CTX_iv_length
	cmp	w0, #2
	csel	w8, wzr, w0, lt
	b	LBB0_136
LBB0_131:
	mov	x25, #0
	b	LBB0_41
LBB0_132:
Lloh92:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh93:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh94:
	ldr	w1, [x8]
Lloh95:
	adrp	x8, _SSL_F_DO_SSL3_WRITE@GOTPAGE
Lloh96:
	ldr	x8, [x8, _SSL_F_DO_SSL3_WRITE@GOTPAGEOFF]
Lloh97:
	ldr	w2, [x8]
Lloh98:
	adrp	x8, _SSL_R_COMPRESSION_FAILURE@GOTPAGE
Lloh99:
	ldr	x8, [x8, _SSL_R_COMPRESSION_FAILURE@GOTPAGEOFF]
	b	LBB0_123
LBB0_133:
Lloh100:
	adrp	x8, _EVP_CIPH_GCM_MODE@GOTPAGE
Lloh101:
	ldr	x8, [x8, _EVP_CIPH_GCM_MODE@GOTPAGEOFF]
Lloh102:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_135
; %bb.134:
Lloh103:
	adrp	x8, _EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPAGE
Lloh104:
	ldr	x8, [x8, _EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPAGEOFF]
Lloh105:
	ldr	w8, [x8]
	b	LBB0_136
LBB0_135:
Lloh106:
	adrp	x8, _EVP_CIPH_CCM_MODE@GOTPAGE
Lloh107:
	ldr	x8, [x8, _EVP_CIPH_CCM_MODE@GOTPAGEOFF]
Lloh108:
	ldr	w8, [x8]
Lloh109:
	adrp	x9, _EVP_CCM_TLS_EXPLICIT_IV_LEN@GOTPAGE
Lloh110:
	ldr	x9, [x9, _EVP_CCM_TLS_EXPLICIT_IV_LEN@GOTPAGEOFF]
Lloh111:
	ldr	w9, [x9]
	cmp	w0, w8
	csel	w8, w9, wzr, eq
LBB0_136:
	stur	w8, [x29, #-164]                ; 4-byte Folded Spill
	b	LBB0_45
LBB0_137:
	mov	x0, x21
	bl	_SSL3_RECORD_get_length
	ldur	x8, [x29, #-200]                ; 8-byte Folded Reload
	str	x0, [x8]
	mov	w0, #1
	b	LBB0_127
LBB0_138:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_MAX_PIPELINES,4,2          ; @SSL_MAX_PIPELINES
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_DO_SSL3_WRITE,4,2        ; @SSL_F_DO_SSL3_WRITE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL3_RT_APPLICATION_DATA,4,2   ; @SSL3_RT_APPLICATION_DATA
	.comm	_SSL3_RT_HEADER_LENGTH,8,3      ; @SSL3_RT_HEADER_LENGTH
	.comm	_SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD,8,3 ; @SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD
	.comm	_EVP_CIPH_CBC_MODE,4,2          ; @EVP_CIPH_CBC_MODE
	.comm	_EVP_CIPH_GCM_MODE,4,2          ; @EVP_CIPH_GCM_MODE
	.comm	_EVP_GCM_TLS_EXPLICIT_IV_LEN,4,2 ; @EVP_GCM_TLS_EXPLICIT_IV_LEN
	.comm	_EVP_CIPH_CCM_MODE,4,2          ; @EVP_CIPH_CCM_MODE
	.comm	_EVP_CCM_TLS_EXPLICIT_IV_LEN,4,2 ; @EVP_CCM_TLS_EXPLICIT_IV_LEN
	.comm	_TLS1_3_VERSION,4,2             ; @TLS1_3_VERSION
	.comm	_TLS1_2_VERSION,4,2             ; @TLS1_2_VERSION
	.comm	_ENC_WRITE_STATE_WRITE_PLAIN_ALERTS,8,3 ; @ENC_WRITE_STATE_WRITE_PLAIN_ALERTS
	.comm	_SSL3_RT_ALERT,4,2              ; @SSL3_RT_ALERT
	.comm	_TLS_ST_CW_CLNT_HELLO,8,3       ; @TLS_ST_CW_CLNT_HELLO
	.comm	_TLS1_VERSION,4,2               ; @TLS1_VERSION
	.comm	_SSL_HRR_NONE,8,3               ; @SSL_HRR_NONE
	.comm	_SSL3_RT_MAX_COMPRESSED_OVERHEAD,8,3 ; @SSL3_RT_MAX_COMPRESSED_OVERHEAD
	.comm	_SSL_R_COMPRESSION_FAILURE,4,2  ; @SSL_R_COMPRESSION_FAILURE
	.comm	_SSL_RT_MAX_CIPHER_BLOCK_SIZE,8,3 ; @SSL_RT_MAX_CIPHER_BLOCK_SIZE
	.comm	_SSL3_RT_HEADER,4,2             ; @SSL3_RT_HEADER
	.comm	_SSL3_RT_INNER_CONTENT_TYPE,4,2 ; @SSL3_RT_INNER_CONTENT_TYPE
	.comm	_SSL3_ALIGN_PAYLOAD,4,2         ; @SSL3_ALIGN_PAYLOAD
.subsections_via_symbols
