	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_process_key_exchange       ## -- Begin function tls_process_key_exchange
	.p2align	4, 0x90
_tls_process_key_exchange:              ## @tls_process_key_exchange
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	$0, -56(%rbp)
	movq	$0, -72(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movl	(%rsi), %eax
	movl	%eax, -80(%rbp)
	movq	16(%rdi), %rdi
	callq	_EVP_PKEY_free
	movq	$0, 16(%r14)
	movq	_SSL_PSK@GOTPCREL(%rip), %r15
	testq	%rbx, (%r15)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_tls_process_ske_psk_preamble
	testl	%eax, %eax
	je	LBB0_54
LBB0_2:
	movq	_SSL_kPSK@GOTPCREL(%rip), %rax
	movq	_SSL_kRSAPSK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	testq	%rbx, %rcx
	jne	LBB0_6
## %bb.3:
	movq	_SSL_kSRP@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_10
## %bb.4:
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_tls_process_ske_srp
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_54
LBB0_10:
	movq	_SSL_kDHE@GOTPCREL(%rip), %rax
	movq	_SSL_kDHEPSK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	testq	%rbx, %rcx
	je	LBB0_12
## %bb.11:
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_tls_process_ske_dhe
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_54
LBB0_12:
	movq	_SSL_kECDHE@GOTPCREL(%rip), %rax
	movq	_SSL_kECDHEPSK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	testq	%rbx, %rcx
	je	LBB0_14
## %bb.13:
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_tls_process_ske_ecdhe
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_54
LBB0_14:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.15:
	movq	_SSL_AD_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_53
LBB0_6:
	cmpq	$0, -56(%rbp)
	je	LBB0_46
## %bb.7:
	movq	$0, -64(%rbp)
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	callq	_PACKET_remaining
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_PACKET_remaining
	subq	%rax, %rbx
	leaq	-76(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_PACKET_get_sub_packet
	testl	%eax, %eax
	je	LBB0_8
## %bb.16:
	movq	%r14, %rdi
	callq	_SSL_USE_SIGALGS
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_PACKET_get_net_2
	testl	%eax, %eax
	je	LBB0_18
## %bb.21:
	movl	-44(%rbp), %esi
	movq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_tls12_check_peer_sigalg
	testq	%rax, %rax
	jg	LBB0_22
	jmp	LBB0_54
LBB0_46:
	movq	(%r14), %rax
	movq	_SSL_aNULL@GOTPCREL(%rip), %rcx
	movq	_SSL_aSRP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%edx, 8(%rax)
	jne	LBB0_50
## %bb.47:
	testq	%rbx, (%r15)
	je	LBB0_48
LBB0_50:
	movq	%r12, %rdi
	callq	_PACKET_remaining
	testq	%rax, %rax
	je	LBB0_51
## %bb.52:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_EXTRA_DATA_IN_MESSAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_53
LBB0_8:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_19:
	movq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_tls1_set_peer_legacy_sigalg
	testl	%eax, %eax
	je	LBB0_20
LBB0_22:
	movl	8(%r14), %edi
	leaq	-64(%rbp), %rsi
	callq	_tls1_lookup_md
	testl	%eax, %eax
	je	LBB0_20
## %bb.23:
	movq	%r14, %rdi
	callq	_SSL_USE_SIGALGS
	testq	%rax, %rax
	je	LBB0_28
## %bb.24:
	movq	_TLS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.26:
	callq	_EVP_MD_name
	movq	%rax, %rdx
	jmp	LBB0_27
LBB0_51:
	movq	_MSG_PROCESS_CONTINUE_READING@GOTPCREL(%rip), %rax
	jmp	LBB0_56
LBB0_18:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_LENGTH_TOO_SHORT@GOTPCREL(%rip), %rax
	jmp	LBB0_53
LBB0_48:
	movq	%r14, %rdi
	callq	_ssl3_check_cert_and_algorithm
	testq	%rax, %rax
	je	LBB0_54
## %bb.49:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_53
LBB0_25:
	leaq	L_.str.1(%rip), %rdx
LBB0_27:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	callq	_OSSL_TRACE1
LBB0_28:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_PACKET_get_length_prefixed_2
	testl	%eax, %eax
	je	LBB0_30
## %bb.29:
	movq	%r12, %rdi
	callq	_PACKET_remaining
	testq	%rax, %rax
	je	LBB0_31
LBB0_30:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_LENGTH_MISMATCH@GOTPCREL(%rip), %rax
	jmp	LBB0_53
LBB0_31:
	movq	-56(%rbp), %rdi
	callq	_EVP_PKEY_size
	testl	%eax, %eax
	js	LBB0_20
## %bb.32:
	movl	%eax, %ebx
	leaq	-44(%rbp), %rdi
	callq	_PACKET_remaining
	movl	%ebx, %ecx
	cmpq	%rcx, %rax
	jbe	LBB0_34
## %bb.33:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_WRONG_SIGNATURE_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_53
LBB0_20:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_53:
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
LBB0_54:
	xorl	%ebx, %ebx
LBB0_55:
	movq	%rbx, %rdi
	callq	_EVP_MD_CTX_free
	movq	_MSG_PROCESS_ERROR@GOTPCREL(%rip), %rax
LBB0_56:
	movl	(%rax), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_new
	testq	%rax, %rax
	je	LBB0_35
## %bb.36:
	movq	%rax, %rbx
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %r8
	leaq	-72(%rbp), %rsi
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_EVP_DigestVerifyInit
	testq	%rax, %rax
	jle	LBB0_37
## %bb.39:
	movq	%r14, %rdi
	callq	_SSL_USE_PSS
	testq	%rax, %rax
	je	LBB0_42
## %bb.40:
	movq	-72(%rbp), %rdi
	movq	_RSA_PKCS1_PSS_PADDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVP_PKEY_CTX_set_rsa_padding
	testq	%rax, %rax
	jle	LBB0_37
## %bb.41:
	movq	-72(%rbp), %rdi
	movq	_RSA_PSS_SALTLEN_DIGEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVP_PKEY_CTX_set_rsa_pss_saltlen
	testq	%rax, %rax
	jle	LBB0_37
LBB0_42:
	leaq	-76(%rbp), %r15
	movq	%r15, %rdi
	callq	_PACKET_data
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_PACKET_remaining
	leaq	-88(%rbp), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movq	%rax, %rcx
	callq	_construct_key_exchange_tbs
	testq	%rax, %rax
	je	LBB0_55
## %bb.43:
	movq	%rax, %r15
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	callq	_PACKET_data
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_PACKET_remaining
	movq	-88(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%rax, %rdx
	movq	%r15, %r8
	callq	_EVP_DigestVerify
	movl	%eax, %r15d
	movq	-88(%rbp), %rdi
	callq	_OPENSSL_free
	testl	%r15d, %r15d
	jle	LBB0_44
## %bb.45:
	movq	%rbx, %rdi
	callq	_EVP_MD_CTX_free
	movq	_MSG_PROCESS_CONTINUE_READING@GOTPCREL(%rip), %rax
	jmp	LBB0_56
LBB0_37:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_EVP_LIB@GOTPCREL(%rip), %rax
LBB0_38:
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
	jmp	LBB0_55
LBB0_35:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_53
LBB0_44:
	movq	_SSL_AD_DECRYPT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_SIGNATURE@GOTPCREL(%rip), %rax
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_PSK,8,3                    ## @SSL_PSK
	.comm	_SSL_kPSK,8,3                   ## @SSL_kPSK
	.comm	_SSL_kRSAPSK,8,3                ## @SSL_kRSAPSK
	.comm	_SSL_kSRP,8,3                   ## @SSL_kSRP
	.comm	_SSL_kDHE,8,3                   ## @SSL_kDHE
	.comm	_SSL_kDHEPSK,8,3                ## @SSL_kDHEPSK
	.comm	_SSL_kECDHE,8,3                 ## @SSL_kECDHE
	.comm	_SSL_kECDHEPSK,8,3              ## @SSL_kECDHEPSK
	.comm	_SSL_AD_UNEXPECTED_MESSAGE,4,2  ## @SSL_AD_UNEXPECTED_MESSAGE
	.comm	_SSL_F_TLS_PROCESS_KEY_EXCHANGE,4,2 ## @SSL_F_TLS_PROCESS_KEY_EXCHANGE
	.comm	_SSL_R_UNEXPECTED_MESSAGE,4,2   ## @SSL_R_UNEXPECTED_MESSAGE
	.comm	_SSL_AD_DECODE_ERROR,4,2        ## @SSL_AD_DECODE_ERROR
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL_R_LENGTH_TOO_SHORT,4,2     ## @SSL_R_LENGTH_TOO_SHORT
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_TLS,4,2                        ## @TLS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USING TLSv1.2 HASH %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"n/a"

	.comm	_SSL_R_LENGTH_MISMATCH,4,2      ## @SSL_R_LENGTH_MISMATCH
	.comm	_SSL_R_WRONG_SIGNATURE_LENGTH,4,2 ## @SSL_R_WRONG_SIGNATURE_LENGTH
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_EVP_LIB,4,2              ## @ERR_R_EVP_LIB
	.comm	_RSA_PKCS1_PSS_PADDING,4,2      ## @RSA_PKCS1_PSS_PADDING
	.comm	_RSA_PSS_SALTLEN_DIGEST,4,2     ## @RSA_PSS_SALTLEN_DIGEST
	.comm	_SSL_AD_DECRYPT_ERROR,4,2       ## @SSL_AD_DECRYPT_ERROR
	.comm	_SSL_R_BAD_SIGNATURE,4,2        ## @SSL_R_BAD_SIGNATURE
	.comm	_SSL_aNULL,4,2                  ## @SSL_aNULL
	.comm	_SSL_aSRP,4,2                   ## @SSL_aSRP
	.comm	_SSL_R_BAD_DATA,4,2             ## @SSL_R_BAD_DATA
	.comm	_SSL_R_EXTRA_DATA_IN_MESSAGE,4,2 ## @SSL_R_EXTRA_DATA_IN_MESSAGE
	.comm	_MSG_PROCESS_CONTINUE_READING,4,2 ## @MSG_PROCESS_CONTINUE_READING
	.comm	_MSG_PROCESS_ERROR,4,2          ## @MSG_PROCESS_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_process_key_exchange       ; -- Begin function tls_process_key_exchange
	.p2align	2
_tls_process_key_exchange:              ; @tls_process_key_exchange
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #32]
	ldr	x8, [x0]
	ldr	x21, [x8]
	ldr	w8, [x1]
	str	w8, [sp, #28]
	ldr	x0, [x0, #16]
	bl	_EVP_PKEY_free
	str	xzr, [x19, #16]
Lloh0:
	adrp	x22, _SSL_PSK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SSL_PSK@GOTPAGEOFF]
	ldr	x8, [x22]
	tst	x8, x21
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_tls_process_ske_psk_preamble
	cbz	w0, LBB0_38
LBB0_2:
Lloh2:
	adrp	x8, _SSL_kPSK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSL_kPSK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _SSL_kRSAPSK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SSL_kRSAPSK@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	orr	x8, x9, x8
	tst	x8, x21
	b.eq	LBB0_8
LBB0_3:
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_10
; %bb.4:
	str	xzr, [sp, #8]
	add	x0, sp, #28
	bl	_PACKET_remaining
	mov	x21, x0
	mov	x0, x20
	bl	_PACKET_remaining
	sub	x2, x21, x0
	add	x0, sp, #28
	add	x1, sp, #20
	bl	_PACKET_get_sub_packet
	cbz	w0, LBB0_14
; %bb.5:
	mov	x0, x19
	bl	_SSL_USE_SIGALGS
	cbz	x0, LBB0_17
; %bb.6:
	add	x1, sp, #24
	mov	x0, x20
	bl	_PACKET_get_net_2
	cbz	w0, LBB0_22
; %bb.7:
	ldr	w1, [sp, #24]
	ldr	x2, [sp, #40]
	mov	x0, x19
	bl	_tls12_check_peer_sigalg
	cmp	x0, #1
	b.ge	LBB0_18
	b	LBB0_38
LBB0_8:
Lloh8:
	adrp	x8, _SSL_kSRP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSL_kSRP@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_15
; %bb.9:
	add	x2, sp, #40
	mov	x0, x19
	mov	x1, x20
	bl	_tls_process_ske_srp
	cbnz	w0, LBB0_3
	b	LBB0_38
LBB0_10:
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
Lloh11:
	adrp	x9, _SSL_aNULL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SSL_aNULL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _SSL_aSRP@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SSL_aSRP@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [x22]
	tst	x8, x21
	b.eq	LBB0_25
LBB0_12:
	mov	x0, x20
	bl	_PACKET_remaining
	cbz	x0, LBB0_51
; %bb.13:
Lloh17:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _SSL_R_EXTRA_DATA_IN_MESSAGE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SSL_R_EXTRA_DATA_IN_MESSAGE@GOTPAGEOFF]
	b	LBB0_37
LBB0_14:
Lloh25:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
	b	LBB0_36
LBB0_15:
Lloh27:
	adrp	x8, _SSL_kDHE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SSL_kDHE@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _SSL_kDHEPSK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SSL_kDHEPSK@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	orr	x8, x9, x8
	tst	x8, x21
	b.eq	LBB0_23
; %bb.16:
	add	x2, sp, #40
	mov	x0, x19
	mov	x1, x20
	bl	_tls_process_ske_dhe
	cbnz	w0, LBB0_3
	b	LBB0_38
LBB0_17:
	ldr	x1, [sp, #40]
	mov	x0, x19
	bl	_tls1_set_peer_legacy_sigalg
	cbz	w0, LBB0_35
LBB0_18:
	ldr	w0, [x19, #8]
	add	x1, sp, #8
	bl	_tls1_lookup_md
	cbz	w0, LBB0_35
; %bb.19:
	mov	x0, x19
	bl	_SSL_USE_SIGALGS
	cbz	x0, LBB0_29
; %bb.20:
Lloh33:
	adrp	x8, _TLS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TLS@GOTPAGEOFF]
Lloh35:
	ldr	w21, [x8]
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_27
; %bb.21:
	bl	_EVP_MD_name
	mov	x2, x0
	b	LBB0_28
LBB0_22:
Lloh36:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
Lloh42:
	adrp	x8, _SSL_R_LENGTH_TOO_SHORT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SSL_R_LENGTH_TOO_SHORT@GOTPAGEOFF]
	b	LBB0_37
LBB0_23:
Lloh44:
	adrp	x8, _SSL_kECDHE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SSL_kECDHE@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
Lloh47:
	adrp	x9, _SSL_kECDHEPSK@GOTPAGE
Lloh48:
	ldr	x9, [x9, _SSL_kECDHEPSK@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	orr	x8, x9, x8
	tst	x8, x21
	b.eq	LBB0_41
; %bb.24:
	add	x2, sp, #40
	mov	x0, x19
	mov	x1, x20
	bl	_tls_process_ske_ecdhe
	cbnz	w0, LBB0_3
	b	LBB0_38
LBB0_25:
	mov	x0, x19
	bl	_ssl3_check_cert_and_algorithm
	cbz	x0, LBB0_38
; %bb.26:
Lloh50:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh51:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
Lloh53:
	adrp	x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGEOFF]
Lloh55:
	ldr	w2, [x8]
Lloh56:
	adrp	x8, _SSL_R_BAD_DATA@GOTPAGE
Lloh57:
	ldr	x8, [x8, _SSL_R_BAD_DATA@GOTPAGEOFF]
	b	LBB0_37
LBB0_27:
Lloh58:
	adrp	x2, l_.str.1@PAGE
Lloh59:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_28:
Lloh60:
	adrp	x1, l_.str@PAGE
Lloh61:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_OSSL_TRACE1
LBB0_29:
	add	x1, sp, #24
	mov	x0, x20
	bl	_PACKET_get_length_prefixed_2
	cbz	w0, LBB0_31
; %bb.30:
	mov	x0, x20
	bl	_PACKET_remaining
	cbz	x0, LBB0_32
LBB0_31:
Lloh62:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh63:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
Lloh65:
	adrp	x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGE
Lloh66:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGEOFF]
Lloh67:
	ldr	w2, [x8]
Lloh68:
	adrp	x8, _SSL_R_LENGTH_MISMATCH@GOTPAGE
Lloh69:
	ldr	x8, [x8, _SSL_R_LENGTH_MISMATCH@GOTPAGEOFF]
	b	LBB0_37
LBB0_32:
	ldr	x0, [sp, #40]
	bl	_EVP_PKEY_size
	tbnz	w0, #31, LBB0_35
; %bb.33:
	mov	x20, x0
	add	x0, sp, #24
	bl	_PACKET_remaining
	cmp	x0, w20, uxtw
	b.ls	LBB0_43
; %bb.34:
Lloh70:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh71:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
Lloh72:
	ldr	w1, [x8]
Lloh73:
	adrp	x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGE
Lloh74:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGEOFF]
Lloh75:
	ldr	w2, [x8]
Lloh76:
	adrp	x8, _SSL_R_WRONG_SIGNATURE_LENGTH@GOTPAGE
Lloh77:
	ldr	x8, [x8, _SSL_R_WRONG_SIGNATURE_LENGTH@GOTPAGEOFF]
	b	LBB0_37
LBB0_35:
Lloh78:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh79:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_36:
	ldr	w1, [x8]
Lloh80:
	adrp	x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGE
Lloh81:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGEOFF]
Lloh82:
	ldr	w2, [x8]
Lloh83:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh84:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_37:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
LBB0_38:
	mov	x20, #0
LBB0_39:
	mov	x0, x20
	bl	_EVP_MD_CTX_free
Lloh85:
	adrp	x8, _MSG_PROCESS_ERROR@GOTPAGE
Lloh86:
	ldr	x8, [x8, _MSG_PROCESS_ERROR@GOTPAGEOFF]
LBB0_40:
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	ret
LBB0_41:
	cbz	x21, LBB0_3
; %bb.42:
Lloh87:
	adrp	x8, _SSL_AD_UNEXPECTED_MESSAGE@GOTPAGE
Lloh88:
	ldr	x8, [x8, _SSL_AD_UNEXPECTED_MESSAGE@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
Lloh90:
	adrp	x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGE
Lloh91:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGEOFF]
Lloh92:
	ldr	w2, [x8]
Lloh93:
	adrp	x8, _SSL_R_UNEXPECTED_MESSAGE@GOTPAGE
Lloh94:
	ldr	x8, [x8, _SSL_R_UNEXPECTED_MESSAGE@GOTPAGEOFF]
	b	LBB0_37
LBB0_43:
	bl	_EVP_MD_CTX_new
	mov	x20, x0
	cbz	x0, LBB0_53
; %bb.44:
	ldr	x2, [sp, #8]
	ldr	x4, [sp, #40]
	add	x1, sp, #32
	mov	x0, x20
	mov	x3, #0
	bl	_EVP_DigestVerifyInit
	cmp	x0, #0
	b.le	LBB0_52
; %bb.45:
	mov	x0, x19
	bl	_SSL_USE_PSS
	cbz	x0, LBB0_48
; %bb.46:
	ldr	x0, [sp, #32]
Lloh95:
	adrp	x8, _RSA_PKCS1_PSS_PADDING@GOTPAGE
Lloh96:
	ldr	x8, [x8, _RSA_PKCS1_PSS_PADDING@GOTPAGEOFF]
Lloh97:
	ldr	w1, [x8]
	bl	_EVP_PKEY_CTX_set_rsa_padding
	cmp	x0, #1
	b.lt	LBB0_52
; %bb.47:
	ldr	x0, [sp, #32]
Lloh98:
	adrp	x8, _RSA_PSS_SALTLEN_DIGEST@GOTPAGE
Lloh99:
	ldr	x8, [x8, _RSA_PSS_SALTLEN_DIGEST@GOTPAGEOFF]
Lloh100:
	ldr	w1, [x8]
	bl	_EVP_PKEY_CTX_set_rsa_pss_saltlen
	cmp	x0, #0
	b.le	LBB0_52
LBB0_48:
	add	x0, sp, #20
	bl	_PACKET_data
	mov	x21, x0
	add	x0, sp, #20
	bl	_PACKET_remaining
	mov	x3, x0
	mov	x1, sp
	mov	x0, x19
	mov	x2, x21
	bl	_construct_key_exchange_tbs
	cbz	x0, LBB0_39
; %bb.49:
	mov	x21, x0
	add	x0, sp, #24
	bl	_PACKET_data
	mov	x22, x0
	add	x0, sp, #24
	bl	_PACKET_remaining
	mov	x2, x0
	ldr	x3, [sp]
	mov	x0, x20
	mov	x1, x22
	mov	x4, x21
	bl	_EVP_DigestVerify
	mov	x21, x0
	ldr	x0, [sp]
	bl	_OPENSSL_free
	cmp	w21, #0
	b.le	LBB0_55
; %bb.50:
	mov	x0, x20
	bl	_EVP_MD_CTX_free
LBB0_51:
Lloh101:
	adrp	x8, _MSG_PROCESS_CONTINUE_READING@GOTPAGE
Lloh102:
	ldr	x8, [x8, _MSG_PROCESS_CONTINUE_READING@GOTPAGEOFF]
	b	LBB0_40
LBB0_52:
Lloh103:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh104:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh105:
	ldr	w1, [x8]
Lloh106:
	adrp	x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGE
Lloh107:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGEOFF]
Lloh108:
	ldr	w2, [x8]
Lloh109:
	adrp	x8, _ERR_R_EVP_LIB@GOTPAGE
Lloh110:
	ldr	x8, [x8, _ERR_R_EVP_LIB@GOTPAGEOFF]
	b	LBB0_54
LBB0_53:
Lloh111:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh112:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh113:
	ldr	w1, [x8]
Lloh114:
	adrp	x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGE
Lloh115:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGEOFF]
Lloh116:
	ldr	w2, [x8]
Lloh117:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh118:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_54:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	b	LBB0_39
LBB0_55:
Lloh119:
	adrp	x8, _SSL_AD_DECRYPT_ERROR@GOTPAGE
Lloh120:
	ldr	x8, [x8, _SSL_AD_DECRYPT_ERROR@GOTPAGEOFF]
Lloh121:
	ldr	w1, [x8]
Lloh122:
	adrp	x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGE
Lloh123:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_KEY_EXCHANGE@GOTPAGEOFF]
Lloh124:
	ldr	w2, [x8]
Lloh125:
	adrp	x8, _SSL_R_BAD_SIGNATURE@GOTPAGE
Lloh126:
	ldr	x8, [x8, _SSL_R_BAD_SIGNATURE@GOTPAGEOFF]
	b	LBB0_54
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGot	Lloh101, Lloh102
	.loh AdrpLdrGot	Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGot	Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGot	Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_PSK,8,3                    ; @SSL_PSK
	.comm	_SSL_kPSK,8,3                   ; @SSL_kPSK
	.comm	_SSL_kRSAPSK,8,3                ; @SSL_kRSAPSK
	.comm	_SSL_kSRP,8,3                   ; @SSL_kSRP
	.comm	_SSL_kDHE,8,3                   ; @SSL_kDHE
	.comm	_SSL_kDHEPSK,8,3                ; @SSL_kDHEPSK
	.comm	_SSL_kECDHE,8,3                 ; @SSL_kECDHE
	.comm	_SSL_kECDHEPSK,8,3              ; @SSL_kECDHEPSK
	.comm	_SSL_AD_UNEXPECTED_MESSAGE,4,2  ; @SSL_AD_UNEXPECTED_MESSAGE
	.comm	_SSL_F_TLS_PROCESS_KEY_EXCHANGE,4,2 ; @SSL_F_TLS_PROCESS_KEY_EXCHANGE
	.comm	_SSL_R_UNEXPECTED_MESSAGE,4,2   ; @SSL_R_UNEXPECTED_MESSAGE
	.comm	_SSL_AD_DECODE_ERROR,4,2        ; @SSL_AD_DECODE_ERROR
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL_R_LENGTH_TOO_SHORT,4,2     ; @SSL_R_LENGTH_TOO_SHORT
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_TLS,4,2                        ; @TLS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USING TLSv1.2 HASH %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"n/a"

	.comm	_SSL_R_LENGTH_MISMATCH,4,2      ; @SSL_R_LENGTH_MISMATCH
	.comm	_SSL_R_WRONG_SIGNATURE_LENGTH,4,2 ; @SSL_R_WRONG_SIGNATURE_LENGTH
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_EVP_LIB,4,2              ; @ERR_R_EVP_LIB
	.comm	_RSA_PKCS1_PSS_PADDING,4,2      ; @RSA_PKCS1_PSS_PADDING
	.comm	_RSA_PSS_SALTLEN_DIGEST,4,2     ; @RSA_PSS_SALTLEN_DIGEST
	.comm	_SSL_AD_DECRYPT_ERROR,4,2       ; @SSL_AD_DECRYPT_ERROR
	.comm	_SSL_R_BAD_SIGNATURE,4,2        ; @SSL_R_BAD_SIGNATURE
	.comm	_SSL_aNULL,4,2                  ; @SSL_aNULL
	.comm	_SSL_aSRP,4,2                   ; @SSL_aSRP
	.comm	_SSL_R_BAD_DATA,4,2             ; @SSL_R_BAD_DATA
	.comm	_SSL_R_EXTRA_DATA_IN_MESSAGE,4,2 ; @SSL_R_EXTRA_DATA_IN_MESSAGE
	.comm	_MSG_PROCESS_CONTINUE_READING,4,2 ; @MSG_PROCESS_CONTINUE_READING
	.comm	_MSG_PROCESS_ERROR,4,2          ; @MSG_PROCESS_ERROR
.subsections_via_symbols
