	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_dtls1_write                 ## -- Begin function do_dtls1_write
	.p2align	4, 0x90
_do_dtls1_write:                        ## @do_dtls1_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	64(%rdi), %r14
	movq	%r14, %rdi
	callq	_SSL3_BUFFER_get_left
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ossl_assert
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	cmpq	$0, 128(%r12)
	je	LBB0_4
## %bb.3:
	movq	88(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	jle	LBB0_52
LBB0_4:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	jne	LBB0_6
## %bb.5:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_53
LBB0_6:
	movq	%r12, %rdi
	callq	_ssl_get_max_send_fragment
	cmpq	%r15, %rax
	jae	LBB0_9
## %bb.7:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DO_DTLS1_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_EXCEEDS_MAX_FRAGMENT_SIZE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_SSLfatal
	jmp	LBB0_53
LBB0_1:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DO_DTLS1_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_SSLfatal
	xorl	%ebx, %ebx
	jmp	LBB0_53
LBB0_9:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	cmpq	$0, 120(%r12)
	je	LBB0_10
## %bb.14:
	cmpq	$0, 104(%r12)
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_11
## %bb.15:
	movl	112(%r12), %edi
	callq	_EVP_MD_CTX_md
	testq	%rax, %rax
	je	LBB0_11
## %bb.16:
	movl	112(%r12), %edi
	callq	_EVP_MD_CTX_size
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jns	LBB0_11
## %bb.17:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DO_DTLS1_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_EXCEEDS_MAX_FRAGMENT_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_10:
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
LBB0_11:
	movq	%r14, %rdi
	callq	_SSL3_BUFFER_get_buf
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movb	%bl, (%rax)
	leaq	-48(%rbp), %rdi
	movl	%ebx, %esi
	callq	_SSL3_RECORD_set_type
	movq	88(%r12), %rax
	movq	8(%rax), %rax
	movq	_DTLS_ANY_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.12:
	movq	(%r12), %rax
	movq	_DTLS1_BAD_VER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_19:
	leaq	8(%r12), %rax
	jmp	LBB0_20
LBB0_13:
	movq	_DTLS1_VERSION@GOTPCREL(%rip), %rax
LBB0_20:
	movb	1(%rax), %cl
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movb	%cl, 1(%rdx)
	movb	(%rax), %al
	movb	%al, 2(%rdx)
	leaq	13(%rdx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	104(%r12), %rdi
	testq	%rdi, %rdi
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_21
## %bb.22:
	callq	_EVP_CIPHER_CTX_mode
	movq	_EVP_CIPH_CBC_MODE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_24
## %bb.23:
	movq	104(%r12), %rdi
	callq	_EVP_CIPHER_CTX_iv_length
	xorl	%edx, %edx
	cmpl	$2, %eax
	cmovgel	%eax, %edx
	jmp	LBB0_29
LBB0_21:
	xorl	%edx, %edx
	jmp	LBB0_29
LBB0_24:
	movq	_EVP_CIPH_GCM_MODE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_26
## %bb.25:
	movq	_EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_26:
	movq	_EVP_CIPH_CCM_MODE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	jne	LBB0_29
## %bb.27:
	movq	_EVP_CCM_TLS_EXPLICIT_IV_LEN@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %edx
LBB0_29:
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	movslq	%edx, %r13
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rsi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_SSL3_RECORD_set_data
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_SSL3_RECORD_set_length
	movq	%rbx, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_SSL3_RECORD_set_input
	cmpq	$0, 96(%r12)
	je	LBB0_32
## %bb.30:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ssl3_do_compress
	testl	%eax, %eax
	jne	LBB0_33
## %bb.31:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DO_DTLS1_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_COMPRESSION_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_32:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_SSL3_RECORD_get_data
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_SSL3_RECORD_get_input
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdi
	callq	_SSL3_RECORD_get_length
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
	leaq	-48(%rbp), %rdi
	callq	_SSL3_RECORD_reset_input
LBB0_33:
	movq	%r12, %rdi
	callq	_SSL_WRITE_ETM
	testq	%rax, %rax
	jne	LBB0_38
## %bb.34:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_38
## %bb.35:
	movq	88(%r12), %rax
	movq	16(%rax), %rax
	movq	8(%rax), %rbx
	leaq	-48(%rbp), %rdi
	callq	_SSL3_RECORD_get_length
	addq	%rax, %r13
	addq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	*%rbx
	testl	%eax, %eax
	je	LBB0_36
## %bb.37:
	leaq	-48(%rbp), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_SSL3_RECORD_add_length
LBB0_38:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_SSL3_RECORD_set_data
	movq	%rbx, %rdi
	callq	_SSL3_RECORD_reset_input
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	je	LBB0_40
## %bb.39:
	leaq	-48(%rbp), %rdi
	callq	_SSL3_RECORD_add_length
LBB0_40:
	movq	88(%r12), %rax
	movq	16(%rax), %rax
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	callq	*(%rax)
	testl	%eax, %eax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, %rdi
	jle	LBB0_41
## %bb.43:
	callq	_SSL_WRITE_ETM
	testq	%rax, %rax
	je	LBB0_47
## %bb.44:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_47
## %bb.45:
	movq	88(%r12), %rax
	movq	16(%rax), %rax
	movq	8(%rax), %rbx
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_SSL3_RECORD_get_length
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addq	%rax, %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	*%rbx
	testl	%eax, %eax
	je	LBB0_36
## %bb.46:
	leaq	-48(%rbp), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_SSL3_RECORD_add_length
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_47:
	leaq	3(%rbx), %r13
	movq	56(%r12), %rax
	movq	(%rax), %rdi
	movq	%r13, %rsi
	callq	_s2n
	movq	48(%r12), %rsi
	addq	$8, %rsi
	movq	%r13, %rdi
	movl	$6, %edx
	callq	_memcpy
	addq	$9, %rbx
	leaq	-48(%rbp), %rdi
	callq	_SSL3_RECORD_get_length
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_s2n
	movq	80(%r12), %rax
	testq	%rax, %rax
	je	LBB0_49
## %bb.48:
	movq	_SSL3_RT_HEADER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_DTLS1_RT_HEADER_LENGTH@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r8
	subq	%r8, %rbx
	movl	72(%r12), %ecx
	movl	%ecx, (%rsp)
	movl	$1, %edi
	xorl	%esi, %esi
	movq	%rbx, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	movq	%r12, %r9
	callq	*%rax
LBB0_49:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	callq	_SSL3_RECORD_set_type
	movq	_DTLS1_RT_HEADER_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SSL3_RECORD_add_length
	movq	48(%r12), %rdi
	callq	_ssl3_record_sequence_update
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_51
## %bb.50:
	movq	-48(%rbp), %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	$1, %ebx
	jmp	LBB0_53
LBB0_41:
	callq	_ossl_statem_in_error
	movl	$-1, %ebx
	testl	%eax, %eax
	jne	LBB0_53
## %bb.42:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DO_DTLS1_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_36:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DO_DTLS1_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_SSLfatal
	movl	$-1, %ebx
	jmp	LBB0_53
LBB0_51:
	leaq	-48(%rbp), %rdi
	callq	_SSL3_RECORD_get_length
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_SSL3_BUFFER_set_left
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_SSL3_BUFFER_set_offset
	movq	%r15, 16(%r12)
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	%rdx, 24(%r12)
	movl	%r13d, 32(%r12)
	movq	%r15, 40(%r12)
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%r15, %rcx
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	callq	_ssl3_write_pending
LBB0_52:
	movl	%eax, %ebx
LBB0_53:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_DO_DTLS1_WRITE,4,2       ## @SSL_F_DO_DTLS1_WRITE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL_R_EXCEEDS_MAX_FRAGMENT_SIZE,4,2 ## @SSL_R_EXCEEDS_MAX_FRAGMENT_SIZE
	.comm	_DTLS_ANY_VERSION,8,3           ## @DTLS_ANY_VERSION
	.comm	_DTLS1_BAD_VER,8,3              ## @DTLS1_BAD_VER
	.comm	_DTLS1_VERSION,4,2              ## @DTLS1_VERSION
	.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	_SSL_R_COMPRESSION_FAILURE,4,2  ## @SSL_R_COMPRESSION_FAILURE
	.comm	_SSL3_RT_HEADER,4,2             ## @SSL3_RT_HEADER
	.comm	_DTLS1_RT_HEADER_LENGTH,4,2     ## @DTLS1_RT_HEADER_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_dtls1_write                 ; -- Begin function do_dtls1_write
	.p2align	2
_do_dtls1_write:                        ; @do_dtls1_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x5, [sp, #16]                   ; 8-byte Folded Spill
	mov	x25, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x24, [x0, #64]
	mov	x0, x24
	bl	_SSL3_BUFFER_get_left
	cmp	x0, #0
	cset	w0, eq
	bl	_ossl_assert
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x19, #128]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #88]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cmp	w0, #1
	b.lt	LBB0_10
LBB0_3:
	cbnz	x21, LBB0_5
; %bb.4:
	cbz	w25, LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_ssl_get_max_send_fragment
	cmp	x0, x21
	b.hs	LBB0_11
; %bb.6:
Lloh0:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SSL_F_DO_DTLS1_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_F_DO_DTLS1_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _SSL_R_EXCEEDS_MAX_FRAGMENT_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_R_EXCEEDS_MAX_FRAGMENT_SIZE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _SSL_F_DO_DTLS1_WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_F_DO_DTLS1_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_8:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	ldr	x8, [x19, #120]
	cbz	x8, LBB0_16
; %bb.12:
	ldr	x8, [x19, #104]
	cbz	x8, LBB0_16
; %bb.13:
	ldr	w0, [x19, #112]
	bl	_EVP_MD_CTX_md
	cbz	x0, LBB0_16
; %bb.14:
	ldr	w0, [x19, #112]
	bl	_EVP_MD_CTX_size
	mov	x26, x0
	tbz	w0, #31, LBB0_17
; %bb.15:
Lloh16:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _SSL_F_DO_DTLS1_WRITE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SSL_F_DO_DTLS1_WRITE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _SSL_R_EXCEEDS_MAX_FRAGMENT_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SSL_R_EXCEEDS_MAX_FRAGMENT_SIZE@GOTPAGEOFF]
	b	LBB0_50
LBB0_16:
	mov	w26, #0
LBB0_17:
	mov	x0, x24
	bl	_SSL3_BUFFER_get_buf
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	strb	w23, [x0]
	add	x0, sp, #24
	mov	x1, x23
	bl	_SSL3_RECORD_set_type
	ldr	x8, [x19, #88]
	ldr	x8, [x8, #8]
Lloh24:
	adrp	x9, _DTLS_ANY_VERSION@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DTLS_ANY_VERSION@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
	ldr	x8, [x19]
Lloh27:
	adrp	x9, _DTLS1_BAD_VER@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DTLS1_BAD_VER@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
LBB0_19:
	add	x8, x19, #8
	b	LBB0_21
LBB0_20:
Lloh30:
	adrp	x8, _DTLS1_VERSION@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DTLS1_VERSION@GOTPAGEOFF]
LBB0_21:
	ldr	w9, [x8]
	lsr	w9, w9, #8
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	strb	w9, [x10, #1]
	ldr	w8, [x8]
	strb	w8, [x10, #2]
	add	x20, x10, #13
	ldr	x0, [x19, #104]
	cbz	x0, LBB0_24
; %bb.22:
	bl	_EVP_CIPHER_CTX_mode
Lloh32:
	adrp	x8, _EVP_CIPH_CBC_MODE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EVP_CIPH_CBC_MODE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_25
; %bb.23:
	ldr	x0, [x19, #104]
	bl	_EVP_CIPHER_CTX_iv_length
	cmp	w0, #2
	csel	w8, wzr, w0, lt
	b	LBB0_28
LBB0_24:
	mov	w8, #0
	b	LBB0_28
LBB0_25:
Lloh35:
	adrp	x8, _EVP_CIPH_GCM_MODE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EVP_CIPH_GCM_MODE@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_27
; %bb.26:
Lloh38:
	adrp	x8, _EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	b	LBB0_28
LBB0_27:
Lloh41:
	adrp	x8, _EVP_CIPH_CCM_MODE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EVP_CIPH_CCM_MODE@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _EVP_CCM_TLS_EXPLICIT_IV_LEN@GOTPAGE
Lloh45:
	ldr	x9, [x9, _EVP_CCM_TLS_EXPLICIT_IV_LEN@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	cmp	w0, w8
	csel	w8, w9, wzr, eq
LBB0_28:
	sxtw	x27, w8
	add	x1, x20, x27
	add	x0, sp, #24
	bl	_SSL3_RECORD_set_data
	add	x0, sp, #24
	mov	x1, x21
	bl	_SSL3_RECORD_set_length
	add	x0, sp, #24
	mov	x1, x22
	bl	_SSL3_RECORD_set_input
	ldr	x8, [x19, #96]
	cbz	x8, LBB0_31
; %bb.29:
	add	x1, sp, #24
	mov	x0, x19
	bl	_ssl3_do_compress
	cbnz	w0, LBB0_32
; %bb.30:
Lloh47:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x8, _SSL_F_DO_DTLS1_WRITE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _SSL_F_DO_DTLS1_WRITE@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
Lloh53:
	adrp	x8, _SSL_R_COMPRESSION_FAILURE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _SSL_R_COMPRESSION_FAILURE@GOTPAGEOFF]
	b	LBB0_50
LBB0_31:
	add	x0, sp, #24
	bl	_SSL3_RECORD_get_data
	str	x0, [sp]                        ; 8-byte Folded Spill
	add	x0, sp, #24
	bl	_SSL3_RECORD_get_input
	mov	x28, x26
	mov	x26, x0
	add	x0, sp, #24
	bl	_SSL3_RECORD_get_length
	mov	x2, x0
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x26
	mov	x26, x28
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	add	x0, sp, #24
	bl	_SSL3_RECORD_reset_input
LBB0_32:
	mov	x0, x19
	bl	_SSL_WRITE_ETM
	cbnz	x0, LBB0_36
; %bb.33:
	cbz	w26, LBB0_36
; %bb.34:
	str	w26, [sp]                       ; 4-byte Folded Spill
	ldr	x8, [x19, #88]
	ldr	x8, [x8, #16]
	ldr	x26, [x8, #8]
	add	x0, sp, #24
	bl	_SSL3_RECORD_get_length
	add	x8, x0, x27
	add	x2, x20, x8
	add	x1, sp, #24
	mov	x0, x19
	mov	w3, #1
	blr	x26
	cbz	w0, LBB0_49
; %bb.35:
	add	x0, sp, #24
	ldr	w26, [sp]                       ; 4-byte Folded Reload
	mov	x1, x26
	bl	_SSL3_RECORD_add_length
LBB0_36:
	add	x0, sp, #24
	mov	x1, x20
	bl	_SSL3_RECORD_set_data
	add	x0, sp, #24
	bl	_SSL3_RECORD_reset_input
	cbz	w27, LBB0_38
; %bb.37:
	add	x0, sp, #24
	mov	x1, x27
	bl	_SSL3_RECORD_add_length
LBB0_38:
	ldr	x8, [x19, #88]
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	blr	x8
	cmp	w0, #0
	b.le	LBB0_47
; %bb.39:
	mov	x0, x19
	bl	_SSL_WRITE_ETM
	cbz	x0, LBB0_43
; %bb.40:
	cbz	w26, LBB0_43
; %bb.41:
	mov	x27, x26
	ldr	x8, [x19, #88]
	ldr	x8, [x8, #16]
	ldr	x26, [x8, #8]
	add	x0, sp, #24
	bl	_SSL3_RECORD_get_length
	add	x2, x20, x0
	add	x1, sp, #24
	mov	x0, x19
	mov	w3, #1
	blr	x26
	cbz	w0, LBB0_49
; %bb.42:
	add	x0, sp, #24
	mov	x1, x27
	bl	_SSL3_RECORD_add_length
LBB0_43:
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
	add	x26, x27, #3
	ldr	x8, [x19, #56]
	ldr	x0, [x8]
	mov	x1, x26
	bl	_s2n
	ldr	x8, [x19, #48]
	add	x1, x8, #8
	mov	x0, x26
	mov	w2, #6
	bl	_memcpy
	add	x26, x27, #9
	add	x0, sp, #24
	bl	_SSL3_RECORD_get_length
	mov	x1, x26
	bl	_s2n
	ldr	x8, [x19, #80]
Lloh55:
	adrp	x27, _DTLS1_RT_HEADER_LENGTH@GOTPAGE
Lloh56:
	ldr	x27, [x27, _DTLS1_RT_HEADER_LENGTH@GOTPAGEOFF]
	cbz	x8, LBB0_45
; %bb.44:
Lloh57:
	adrp	x9, _SSL3_RT_HEADER@GOTPAGE
Lloh58:
	ldr	x9, [x9, _SSL3_RT_HEADER@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x9]
	ldrsw	x4, [x27]
	sub	x3, x26, x4
	ldr	w6, [x19, #72]
	mov	w0, #1
	mov	w1, #0
                                        ; kill: def $w4 killed $w4 killed $x4
	mov	x5, x19
	blr	x8
LBB0_45:
	add	x0, sp, #24
	mov	x1, x23
	bl	_SSL3_RECORD_set_type
	ldr	w1, [x27]
	add	x0, sp, #24
	bl	_SSL3_RECORD_add_length
	ldr	x0, [x19, #48]
	bl	_ssl3_record_sequence_update
	cbz	w25, LBB0_51
; %bb.46:
	ldp	x9, x8, [sp, #16]               ; 8-byte Folded Reload
	str	x8, [x9]
	mov	w0, #1
	b	LBB0_10
LBB0_47:
	mov	x0, x19
	bl	_ossl_statem_in_error
	cbz	w0, LBB0_49
; %bb.48:
	mov	w0, #-1
	b	LBB0_10
LBB0_49:
Lloh60:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh61:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
Lloh63:
	adrp	x8, _SSL_F_DO_DTLS1_WRITE@GOTPAGE
Lloh64:
	ldr	x8, [x8, _SSL_F_DO_DTLS1_WRITE@GOTPAGEOFF]
Lloh65:
	ldr	w2, [x8]
Lloh66:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh67:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_50:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #-1
	b	LBB0_10
LBB0_51:
	add	x0, sp, #24
	bl	_SSL3_RECORD_get_length
	mov	x1, x0
	mov	x0, x24
	bl	_SSL3_BUFFER_set_left
	mov	x0, x24
	mov	w1, #0
	bl	_SSL3_BUFFER_set_offset
	stp	x21, x22, [x19, #16]
	str	w23, [x19, #32]
	str	x21, [x19, #40]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	ldr	x4, [sp, #16]                   ; 8-byte Folded Reload
	bl	_ssl3_write_pending
	b	LBB0_10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_DO_DTLS1_WRITE,4,2       ; @SSL_F_DO_DTLS1_WRITE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL_R_EXCEEDS_MAX_FRAGMENT_SIZE,4,2 ; @SSL_R_EXCEEDS_MAX_FRAGMENT_SIZE
	.comm	_DTLS_ANY_VERSION,8,3           ; @DTLS_ANY_VERSION
	.comm	_DTLS1_BAD_VER,8,3              ; @DTLS1_BAD_VER
	.comm	_DTLS1_VERSION,4,2              ; @DTLS1_VERSION
	.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	_SSL_R_COMPRESSION_FAILURE,4,2  ; @SSL_R_COMPRESSION_FAILURE
	.comm	_SSL3_RT_HEADER,4,2             ; @SSL3_RT_HEADER
	.comm	_DTLS1_RT_HEADER_LENGTH,4,2     ; @DTLS1_RT_HEADER_LENGTH
.subsections_via_symbols
