	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_server_key_exchange ## -- Begin function tls_construct_server_key_exchange
	.p2align	4, 0x90
_tls_construct_server_key_exchange:     ## @tls_construct_server_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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -120(%rbp)
	movq	8(%rdi), %rax
	movq	24(%rax), %rbx
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_new
	movq	%rax, %r12
	movq	$0, -136(%rbp)
	leaq	-184(%rbp), %rsi
	movq	%r13, %rdi
	callq	_WPACKET_get_total_written
	testl	%eax, %eax
	je	LBB0_57
## %bb.1:
	testq	%r12, %r12
	je	LBB0_6
## %bb.2:
	movq	8(%r15), %rax
	movq	8(%rax), %rcx
	movq	(%rcx), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	_SSL_kPSK@GOTPCREL(%rip), %rcx
	movq	_SSL_kRSAPSK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orq	(%rcx), %rdx
	testq	%r14, %rdx
	je	LBB0_7
LBB0_3:
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
LBB0_4:
	movq	8(%r15), %rax
	movq	8(%rax), %rcx
	movq	_SSL_aNULL@GOTPCREL(%rip), %rax
	movq	_SSL_aSRP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	testl	%edx, 8(%rcx)
	je	LBB0_12
## %bb.5:
	movq	_SSL_PSK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_13
LBB0_6:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_59
LBB0_7:
	movq	_SSL_kDHE@GOTPCREL(%rip), %rcx
	movq	_SSL_kDHEPSK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orq	(%rcx), %rdx
	testq	%r14, %rdx
	je	LBB0_55
## %bb.8:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	16(%r15), %rax
	cmpq	$0, 24(%rax)
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_67
## %bb.9:
	movq	%r15, %rdi
	callq	_ssl_get_auto_dh
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_72
## %bb.10:
	testq	%r12, %r12
	je	LBB0_72
## %bb.11:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_EVP_PKEY_assign_DH
	movq	%rbx, %rax
	jmp	LBB0_69
LBB0_12:
	movq	_SSL_PSK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, (%rcx)
	je	LBB0_65
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	testq	%r14, %rax
	je	LBB0_19
## %bb.15:
	movq	16(%r15), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %rdx
	movq	_PSK_MAX_IDENTITY_LEN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jbe	LBB0_18
	jmp	LBB0_57
LBB0_17:
	xorl	%edx, %edx
LBB0_18:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_WPACKET_sub_memcpy_u16
	testl	%eax, %eax
	je	LBB0_57
LBB0_19:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -80(%rbp,%rbx,8)
	je	LBB0_33
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpq	$2, %rbx
	jne	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	_SSL_kSRP@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r13, %rdi
	callq	_WPACKET_start_sub_packet_u8
	testl	%eax, %eax
	jne	LBB0_26
	jmp	LBB0_89
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%r13, %rdi
	callq	_WPACKET_start_sub_packet_u16
	testl	%eax, %eax
	jne	LBB0_30
	jmp	LBB0_89
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%r13, %rdi
	callq	_WPACKET_start_sub_packet_u16
	testl	%eax, %eax
	je	LBB0_89
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	_SSL_kDHEPSK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SSL_kDHE@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	testq	%r14, %rax
	je	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-80(%rbp), %rdi
	callq	_BN_num_bytes
	movq	%rax, %r12
	movq	-64(%rbp), %rdi
	callq	_BN_num_bytes
	subq	%rax, %r12
	je	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	leaq	-112(%rbp), %rdx
	callq	_WPACKET_allocate_bytes
	testl	%eax, %eax
	je	LBB0_89
## %bb.29:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_memset
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-80(%rbp,%rbx,8), %rdi
	callq	_BN_num_bytes
	movq	%r13, %rdi
	movq	%rax, %rsi
	leaq	-112(%rbp), %rdx
	callq	_WPACKET_allocate_bytes
	testl	%eax, %eax
	je	LBB0_89
## %bb.31:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r13, %rdi
	callq	_WPACKET_close
	testl	%eax, %eax
	je	LBB0_89
## %bb.32:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-80(%rbp,%rbx,8), %rdi
	movq	-112(%rbp), %rsi
	callq	_BN_bn2bin
	incq	%rbx
	cmpq	$4, %rbx
	jne	LBB0_20
LBB0_33:
	movq	_SSL_kECDHE@GOTPCREL(%rip), %rax
	movq	_SSL_kECDHEPSK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	testq	%r14, %rcx
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_39
## %bb.34:
	movq	_NAMED_CURVE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_WPACKET_put_bytes_u8
	testl	%eax, %eax
	je	LBB0_57
## %bb.35:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_WPACKET_put_bytes_u8
	testl	%eax, %eax
	je	LBB0_57
## %bb.36:
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_WPACKET_put_bytes_u8
	testl	%eax, %eax
	je	LBB0_57
## %bb.37:
	movq	-120(%rbp), %rsi
	movq	%r13, %rdi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	callq	_WPACKET_sub_memcpy_u8
	testl	%eax, %eax
	je	LBB0_57
## %bb.38:
	movq	-120(%rbp), %rdi
	callq	_OPENSSL_free
	movq	$0, -120(%rbp)
LBB0_39:
	testq	%rbx, %rbx
	je	LBB0_54
## %bb.40:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %r14
	testq	%rbx, %rbx
	je	LBB0_104
## %bb.41:
	leaq	-176(%rbp), %rsi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_tls1_lookup_md
	testl	%eax, %eax
	je	LBB0_104
## %bb.42:
	leaq	-112(%rbp), %rsi
	movq	%r13, %rdi
	callq	_WPACKET_get_length
	testl	%eax, %eax
	je	LBB0_104
## %bb.43:
	movq	%r15, %rdi
	callq	_SSL_USE_SIGALGS
	testq	%rax, %rax
	je	LBB0_45
## %bb.44:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %esi
	movq	%r13, %rdi
	callq	_WPACKET_put_bytes_u16
	testl	%eax, %eax
	je	LBB0_104
LBB0_45:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_size
	movq	%rax, -144(%rbp)
	leaq	-160(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_WPACKET_sub_reserve_bytes_u16
	testl	%eax, %eax
	je	LBB0_104
## %bb.46:
	movq	-176(%rbp), %rdx
	leaq	-136(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_EVP_DigestSignInit
	testq	%rax, %rax
	jle	LBB0_104
## %bb.47:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	_EVP_PKEY_RSA_PSS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_50
## %bb.48:
	movq	-136(%rbp), %rdi
	movq	_RSA_PKCS1_PSS_PADDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVP_PKEY_CTX_set_rsa_padding
	movq	_ERR_R_EVP_LIB@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jle	LBB0_105
## %bb.49:
	movq	-136(%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_105
LBB0_50:
	movq	(%r15), %rax
	movq	-184(%rbp), %rdx
	addq	(%rax), %rdx
	movq	-112(%rbp), %rcx
	leaq	-152(%rbp), %rsi
	movq	%r15, %rdi
	callq	_construct_key_exchange_tbs
	testq	%rax, %rax
	je	LBB0_61
## %bb.51:
	movq	-160(%rbp), %rsi
	movq	-152(%rbp), %rcx
	leaq	-144(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rax, %r8
	callq	_EVP_DigestSign
	movl	%eax, %ebx
	movq	-152(%rbp), %rdi
	callq	_OPENSSL_free
	testl	%ebx, %ebx
	jle	LBB0_104
## %bb.52:
	movq	-144(%rbp), %rsi
	leaq	-168(%rbp), %rdx
	movq	%r13, %rdi
	callq	_WPACKET_sub_allocate_bytes_u16
	testl	%eax, %eax
	je	LBB0_104
## %bb.53:
	movq	-160(%rbp), %rax
	movq	%r14, %rbx
	cmpq	-168(%rbp), %rax
	jne	LBB0_105
LBB0_54:
	movq	%r12, %rdi
	callq	_EVP_MD_CTX_free
	movl	$1, %eax
	jmp	LBB0_63
LBB0_55:
	movq	_SSL_kECDHE@GOTPCREL(%rip), %rcx
	movq	_SSL_kECDHEPSK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orq	(%rcx), %rdx
	testq	%r14, %rdx
	je	LBB0_74
## %bb.56:
	cmpq	$0, 16(%rax)
	je	LBB0_83
LBB0_57:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_58:
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_59:
	movl	(%rax), %ecx
LBB0_60:
	movq	%r15, %rdi
	callq	_SSLfatal
LBB0_61:
	xorl	%ebx, %ebx
LBB0_62:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_free
	movq	-120(%rbp), %rdi
	callq	_OPENSSL_free
	movq	%r12, %rdi
	callq	_EVP_MD_CTX_free
	xorl	%eax, %eax
LBB0_63:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_106
## %bb.64:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_65:
	testq	%rbx, %rbx
	jne	LBB0_14
## %bb.66:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_58
LBB0_67:
	movq	16(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_87
## %bb.68:
	xorl	%eax, %eax
LBB0_69:
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_SSL_SECOP_TMP_DH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_EVP_PKEY_security_bits
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_ssl_security
	testl	%eax, %eax
	je	LBB0_73
## %bb.70:
	movq	8(%r15), %rax
	cmpq	$0, 16(%rax)
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_80
LBB0_71:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_62
LBB0_72:
	movq	%r12, %rdi
	callq	_DH_free
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_62
LBB0_73:
	movq	_SSL_AD_HANDSHAKE_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_DH_KEY_TOO_SMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_62
LBB0_74:
	movq	_SSL_kSRP@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_92
## %bb.75:
	movq	48(%r15), %rax
	testq	%rax, %rax
	je	LBB0_91
## %bb.76:
	movq	40(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_91
## %bb.77:
	movq	32(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_91
## %bb.78:
	movq	24(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_91
## %bb.79:
	movq	%rax, -80(%rbp)
	movq	%rcx, -72(%rbp)
	movq	%rdx, -64(%rbp)
	movq	%rsi, -56(%rbp)
	jmp	LBB0_3
LBB0_104:
	movq	%r14, %rbx
LBB0_105:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	jmp	LBB0_60
LBB0_80:
	movq	%rbx, %rdi
	callq	_ssl_generate_pkey
	movq	8(%r15), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_94
## %bb.81:
	movq	%rax, %rdi
	callq	_EVP_PKEY_get0_DH
	testq	%rax, %rax
	je	LBB0_71
## %bb.82:
	movq	%rax, %rbx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_EVP_PKEY_free
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	leaq	-72(%rbp), %rcx
	callq	_DH_get0_pqg
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	xorl	%edx, %edx
	callq	_DH_get0_key
	xorl	%eax, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_4
LBB0_83:
	movq	%r15, %rdi
	movl	$-2, %esi
	callq	_tls1_shared_group
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_95
## %bb.84:
	movq	%r15, %rdi
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%eax, %esi
	callq	_ssl_generate_pkey_group
	movq	8(%r15), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_61
## %bb.85:
	leaq	-120(%rbp), %rsi
	movq	%rax, %rdi
	callq	_EVP_PKEY_get1_tls_encodedpoint
	testq	%rax, %rax
	je	LBB0_99
## %bb.86:
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	jmp	LBB0_4
LBB0_87:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_96
## %bb.88:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	*%rax
	movq	%rax, %rdi
	callq	_ssl_dh_to_pkey
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_69
LBB0_89:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_90:
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	xorl	%ebx, %ebx
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_62
LBB0_91:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_MISSING_SRP_PARAM@GOTPCREL(%rip), %rax
	jmp	LBB0_59
LBB0_92:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_59
LBB0_94:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_62
LBB0_95:
	movq	_SSL_AD_HANDSHAKE_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_UNSUPPORTED_ELLIPTIC_CURVE@GOTPCREL(%rip), %rax
	jmp	LBB0_59
LBB0_96:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_MISSING_TMP_DH_KEY@GOTPCREL(%rip), %rax
	jmp	LBB0_90
LBB0_99:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_EC_LIB@GOTPCREL(%rip), %rax
	jmp	LBB0_59
LBB0_106:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE,4,2 ## @SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_SSL_kPSK,8,3                   ## @SSL_kPSK
	.comm	_SSL_kRSAPSK,8,3                ## @SSL_kRSAPSK
	.comm	_SSL_kDHE,8,3                   ## @SSL_kDHE
	.comm	_SSL_kDHEPSK,8,3                ## @SSL_kDHEPSK
	.comm	_SSL_R_MISSING_TMP_DH_KEY,4,2   ## @SSL_R_MISSING_TMP_DH_KEY
	.comm	_SSL_SECOP_TMP_DH,4,2           ## @SSL_SECOP_TMP_DH
	.comm	_SSL_AD_HANDSHAKE_FAILURE,4,2   ## @SSL_AD_HANDSHAKE_FAILURE
	.comm	_SSL_R_DH_KEY_TOO_SMALL,4,2     ## @SSL_R_DH_KEY_TOO_SMALL
	.comm	_SSL_kECDHE,8,3                 ## @SSL_kECDHE
	.comm	_SSL_kECDHEPSK,8,3              ## @SSL_kECDHEPSK
	.comm	_SSL_R_UNSUPPORTED_ELLIPTIC_CURVE,4,2 ## @SSL_R_UNSUPPORTED_ELLIPTIC_CURVE
	.comm	_ERR_R_EC_LIB,4,2               ## @ERR_R_EC_LIB
	.comm	_SSL_kSRP,8,3                   ## @SSL_kSRP
	.comm	_SSL_R_MISSING_SRP_PARAM,4,2    ## @SSL_R_MISSING_SRP_PARAM
	.comm	_SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE,4,2 ## @SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE
	.comm	_SSL_aNULL,4,2                  ## @SSL_aNULL
	.comm	_SSL_aSRP,4,2                   ## @SSL_aSRP
	.comm	_SSL_PSK,8,3                    ## @SSL_PSK
	.comm	_SSL_AD_DECODE_ERROR,4,2        ## @SSL_AD_DECODE_ERROR
	.comm	_PSK_MAX_IDENTITY_LEN,8,3       ## @PSK_MAX_IDENTITY_LEN
	.comm	_NAMED_CURVE_TYPE,4,2           ## @NAMED_CURVE_TYPE
	.comm	_EVP_PKEY_RSA_PSS,8,3           ## @EVP_PKEY_RSA_PSS
	.comm	_RSA_PKCS1_PSS_PADDING,4,2      ## @RSA_PKCS1_PSS_PADDING
	.comm	_RSA_PSS_SALTLEN_DIGEST,4,2     ## @RSA_PSS_SALTLEN_DIGEST
	.comm	_ERR_R_EVP_LIB,4,2              ## @ERR_R_EVP_LIB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_server_key_exchange ; -- Begin function tls_construct_server_key_exchange
	.p2align	2
_tls_construct_server_key_exchange:     ; @tls_construct_server_key_exchange
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	mov	x21, 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]
	str	xzr, [sp, #88]
	ldr	x8, [x0, #8]
	ldr	x22, [x8, #24]
	bl	_EVP_MD_CTX_new
	mov	x19, x0
	str	xzr, [sp, #80]
	add	x1, sp, #64
	mov	x0, x21
	bl	_WPACKET_get_total_written
	cbz	w0, LBB0_63
; %bb.1:
	cbz	x19, LBB0_6
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x9, [x8, #8]
	ldr	x27, [x9]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #96]
Lloh3:
	adrp	x9, _SSL_kPSK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SSL_kPSK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _SSL_kRSAPSK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SSL_kRSAPSK@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	orr	x9, x10, x9
	tst	x9, x27
	b.eq	LBB0_7
LBB0_3:
	mov	w23, #0
	mov	x24, #0
LBB0_4:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	ldr	w9, [x8, #8]
Lloh9:
	adrp	x10, _SSL_aNULL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SSL_aNULL@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _SSL_aSRP@GOTPAGE
Lloh13:
	ldr	x11, [x11, _SSL_aSRP@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w9
	b.eq	LBB0_12
; %bb.5:
	mov	x22, #0
Lloh15:
	adrp	x8, _SSL_PSK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSL_PSK@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	b	LBB0_21
LBB0_6:
Lloh18:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_65
LBB0_7:
Lloh26:
	adrp	x9, _SSL_kDHE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SSL_kDHE@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
Lloh29:
	adrp	x10, _SSL_kDHEPSK@GOTPAGE
Lloh30:
	ldr	x10, [x10, _SSL_kDHEPSK@GOTPAGEOFF]
Lloh31:
	ldr	x10, [x10]
	orr	x9, x10, x9
	tst	x9, x27
	b.eq	LBB0_14
; %bb.8:
	ldr	x8, [x20, #16]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_70
; %bb.9:
	mov	x0, x20
	bl	_ssl_get_auto_dh
	mov	x24, x0
	bl	_EVP_PKEY_new
	mov	x23, x0
	cbz	x0, LBB0_75
; %bb.10:
	cbz	x24, LBB0_75
; %bb.11:
	mov	x0, x23
	mov	x1, x24
	bl	_EVP_PKEY_assign_DH
	mov	x24, x23
	b	LBB0_72
LBB0_12:
	ldr	x9, [x8]
Lloh32:
	adrp	x8, _SSL_PSK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SSL_PSK@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	tst	x8, x9
	b.eq	LBB0_20
; %bb.13:
	mov	x22, #0
	b	LBB0_21
LBB0_14:
Lloh35:
	adrp	x9, _SSL_kECDHE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _SSL_kECDHE@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
Lloh38:
	adrp	x10, _SSL_kECDHEPSK@GOTPAGE
Lloh39:
	ldr	x10, [x10, _SSL_kECDHEPSK@GOTPAGEOFF]
Lloh40:
	ldr	x10, [x10]
	orr	x9, x10, x9
	tst	x9, x27
	b.eq	LBB0_79
; %bb.15:
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_63
; %bb.16:
	mov	x0, x20
	mov	w1, #-2
	bl	_tls1_shared_group
	cbz	w0, LBB0_95
; %bb.17:
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	bl	_ssl_generate_pkey_group
	ldr	x8, [x20, #8]
	str	x0, [x8, #16]
	cbz	x0, LBB0_66
; %bb.18:
	add	x1, sp, #88
	bl	_EVP_PKEY_get1_tls_encodedpoint
	cbz	x0, LBB0_97
; %bb.19:
	mov	x24, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #96]
	b	LBB0_4
LBB0_20:
	cbz	x22, LBB0_85
LBB0_21:
	tst	x8, x27
	b.eq	LBB0_26
; %bb.22:
	ldr	x8, [x20, #16]
	ldr	x25, [x8]
	cbz	x25, LBB0_24
; %bb.23:
	mov	x0, x25
	bl	_strlen
	mov	x2, x0
Lloh41:
	adrp	x8, _PSK_MAX_IDENTITY_LEN@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PSK_MAX_IDENTITY_LEN@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ls	LBB0_25
	b	LBB0_63
LBB0_24:
	mov	x2, #0
LBB0_25:
	mov	x0, x21
	mov	x1, x25
	bl	_WPACKET_sub_memcpy_u16
	cbz	w0, LBB0_63
LBB0_26:
	str	x24, [sp]                       ; 8-byte Folded Spill
	str	w23, [sp, #12]                  ; 4-byte Folded Spill
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	mov	x26, #0
	add	x28, sp, #96
Lloh44:
	adrp	x24, _SSL_kSRP@GOTPAGE
Lloh45:
	ldr	x24, [x24, _SSL_kSRP@GOTPAGEOFF]
Lloh46:
	adrp	x23, _SSL_kDHE@GOTPAGE
Lloh47:
	ldr	x23, [x23, _SSL_kDHE@GOTPAGEOFF]
Lloh48:
	adrp	x22, _SSL_kDHEPSK@GOTPAGE
Lloh49:
	ldr	x22, [x22, _SSL_kDHEPSK@GOTPAGEOFF]
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28, x26]
	cbz	x8, LBB0_40
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	cmp	x26, #16
	b.ne	LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x8, [x24]
	mov	x0, x21
	tst	x8, x27
	b.eq	LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_27 Depth=1
	bl	_WPACKET_start_sub_packet_u8
	cbnz	w0, LBB0_33
	b	LBB0_63
LBB0_31:                                ;   in Loop: Header=BB0_27 Depth=1
	mov	x0, x21
	bl	_WPACKET_start_sub_packet_u16
	cbnz	w0, LBB0_37
	b	LBB0_63
LBB0_32:                                ;   in Loop: Header=BB0_27 Depth=1
	bl	_WPACKET_start_sub_packet_u16
	cbz	w0, LBB0_63
LBB0_33:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x22]
	orr	x8, x9, x8
	tst	x8, x27
	b.eq	LBB0_37
; %bb.34:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x0, [sp, #96]
	bl	_BN_num_bytes
	mov	x25, x0
	ldr	x0, [sp, #112]
	bl	_BN_num_bytes
	subs	x25, x25, x0
	b.eq	LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_27 Depth=1
	add	x2, sp, #72
	mov	x0, x21
	mov	x1, x25
	bl	_WPACKET_allocate_bytes
	cbz	w0, LBB0_63
; %bb.36:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x0, [sp, #72]
	mov	w1, #0
	mov	x2, x25
	bl	_memset
LBB0_37:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	x0, [x28, x26]
	bl	_BN_num_bytes
	mov	x1, x0
	add	x2, sp, #72
	mov	x0, x21
	bl	_WPACKET_allocate_bytes
	cbz	w0, LBB0_63
; %bb.38:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	x0, x21
	bl	_WPACKET_close
	cbz	w0, LBB0_63
; %bb.39:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x0, [x28, x26]
	ldr	x1, [sp, #72]
	bl	_BN_bn2bin
	add	x26, x26, #8
	cmp	x26, #32
	b.ne	LBB0_27
LBB0_40:
Lloh50:
	adrp	x8, _SSL_kECDHE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _SSL_kECDHE@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
Lloh53:
	adrp	x9, _SSL_kECDHEPSK@GOTPAGE
Lloh54:
	ldr	x9, [x9, _SSL_kECDHEPSK@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	orr	x8, x9, x8
	tst	x8, x27
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	b.eq	LBB0_46
; %bb.41:
Lloh56:
	adrp	x8, _NAMED_CURVE_TYPE@GOTPAGE
Lloh57:
	ldr	x8, [x8, _NAMED_CURVE_TYPE@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_WPACKET_put_bytes_u8
	cbz	w0, LBB0_63
; %bb.42:
	mov	x0, x21
	mov	w1, #0
	bl	_WPACKET_put_bytes_u8
	cbz	w0, LBB0_63
; %bb.43:
	mov	x0, x21
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_WPACKET_put_bytes_u8
	cbz	w0, LBB0_63
; %bb.44:
	ldr	x1, [sp, #88]
	mov	x0, x21
	ldr	x2, [sp]                        ; 8-byte Folded Reload
	bl	_WPACKET_sub_memcpy_u8
	cbz	w0, LBB0_63
; %bb.45:
	ldr	x0, [sp, #88]
	bl	_OPENSSL_free
	str	xzr, [sp, #88]
LBB0_46:
	cbz	x22, LBB0_92
; %bb.47:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x23, [x8]
	cbz	x23, LBB0_61
; %bb.48:
	add	x1, sp, #56
	mov	x0, x22
	bl	_tls1_lookup_md
	cbz	w0, LBB0_61
; %bb.49:
	add	x1, sp, #72
	mov	x0, x21
	bl	_WPACKET_get_length
	cbz	w0, LBB0_61
; %bb.50:
	mov	x0, x20
	bl	_SSL_USE_SIGALGS
	cbz	x0, LBB0_52
; %bb.51:
	ldr	w1, [x22, #8]
	mov	x0, x21
	bl	_WPACKET_put_bytes_u16
	cbz	w0, LBB0_61
LBB0_52:
	mov	x0, x23
	bl	_EVP_PKEY_size
	mov	x1, x0
	str	x0, [sp, #24]
	add	x2, sp, #48
	mov	x0, x21
	bl	_WPACKET_sub_reserve_bytes_u16
	cbz	w0, LBB0_61
; %bb.53:
	ldr	x2, [sp, #56]
	add	x1, sp, #80
	mov	x0, x19
	mov	x3, #0
	mov	x4, x23
	bl	_EVP_DigestSignInit
	cmp	x0, #1
	b.lt	LBB0_61
; %bb.54:
	ldr	x8, [x22]
Lloh59:
	adrp	x9, _EVP_PKEY_RSA_PSS@GOTPAGE
Lloh60:
	ldr	x9, [x9, _EVP_PKEY_RSA_PSS@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_57
; %bb.55:
	ldr	x0, [sp, #80]
Lloh62:
	adrp	x8, _RSA_PKCS1_PSS_PADDING@GOTPAGE
Lloh63:
	ldr	x8, [x8, _RSA_PKCS1_PSS_PADDING@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	bl	_EVP_PKEY_CTX_set_rsa_padding
	cmp	x0, #1
	b.lt	LBB0_98
; %bb.56:
	ldr	x0, [sp, #80]
Lloh65:
	adrp	x8, _RSA_PSS_SALTLEN_DIGEST@GOTPAGE
Lloh66:
	ldr	x8, [x8, _RSA_PSS_SALTLEN_DIGEST@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
	bl	_EVP_PKEY_CTX_set_rsa_pss_saltlen
	cmp	x0, #1
	b.lt	LBB0_98
LBB0_57:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldp	x9, x3, [sp, #64]
	add	x2, x9, x8
	add	x1, sp, #32
	mov	x0, x20
	bl	_construct_key_exchange_tbs
	cbz	x0, LBB0_66
; %bb.58:
	mov	x4, x0
	ldr	x1, [sp, #48]
	ldr	x3, [sp, #32]
	add	x2, sp, #24
	mov	x0, x19
	bl	_EVP_DigestSign
	mov	x22, x0
	ldr	x0, [sp, #32]
	bl	_OPENSSL_free
	cmp	w22, #1
	b.lt	LBB0_61
; %bb.59:
	ldr	x1, [sp, #24]
	add	x2, sp, #40
	mov	x0, x21
	bl	_WPACKET_sub_allocate_bytes_u16
	cbz	w0, LBB0_61
; %bb.60:
	ldp	x9, x8, [sp, #40]
	cmp	x8, x9
	b.eq	LBB0_92
LBB0_61:
Lloh68:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh69:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_62:
Lloh70:
	adrp	x9, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh71:
	ldr	x9, [x9, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh72:
	ldr	w1, [x9]
Lloh73:
	adrp	x9, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGE
Lloh74:
	ldr	x9, [x9, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGEOFF]
Lloh75:
	ldr	w2, [x9]
	b	LBB0_65
LBB0_63:
Lloh76:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh77:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_64:
	ldr	w1, [x8]
Lloh78:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGE
Lloh79:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGEOFF]
Lloh80:
	ldr	w2, [x8]
Lloh81:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh82:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_65:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_SSLfatal
LBB0_66:
	mov	x23, #0
LBB0_67:
	mov	x0, x23
	bl	_EVP_PKEY_free
	ldr	x0, [sp, #88]
	bl	_OPENSSL_free
	mov	x0, x19
	bl	_EVP_MD_CTX_free
	mov	w0, #0
LBB0_68:
	ldur	x8, [x29, #-88]
Lloh83:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh84:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh85:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_99
; %bb.69:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_70:
	ldr	x23, [x8, #16]
	cbz	x23, LBB0_89
; %bb.71:
	mov	x24, #0
LBB0_72:
Lloh86:
	adrp	x8, _SSL_SECOP_TMP_DH@GOTPAGE
Lloh87:
	ldr	x8, [x8, _SSL_SECOP_TMP_DH@GOTPAGEOFF]
Lloh88:
	ldr	w25, [x8]
	mov	x0, x23
	bl	_EVP_PKEY_security_bits
	mov	x2, x0
	mov	x0, x20
	mov	x1, x25
	mov	w3, #0
	mov	x4, x23
	bl	_ssl_security
	cbz	w0, LBB0_77
; %bb.73:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_86
LBB0_74:
Lloh89:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh90:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh91:
	ldr	w1, [x8]
Lloh92:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGE
Lloh93:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGEOFF]
Lloh94:
	ldr	w2, [x8]
Lloh95:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh96:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_78
LBB0_75:
	mov	x0, x24
	bl	_DH_free
LBB0_76:
Lloh97:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh98:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh99:
	ldr	w1, [x8]
Lloh100:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGE
Lloh101:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGEOFF]
Lloh102:
	ldr	w2, [x8]
Lloh103:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh104:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh105:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_SSLfatal
	b	LBB0_67
LBB0_77:
Lloh106:
	adrp	x8, _SSL_AD_HANDSHAKE_FAILURE@GOTPAGE
Lloh107:
	ldr	x8, [x8, _SSL_AD_HANDSHAKE_FAILURE@GOTPAGEOFF]
Lloh108:
	ldr	w1, [x8]
Lloh109:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGE
Lloh110:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGEOFF]
Lloh111:
	ldr	w2, [x8]
Lloh112:
	adrp	x8, _SSL_R_DH_KEY_TOO_SMALL@GOTPAGE
Lloh113:
	ldr	x8, [x8, _SSL_R_DH_KEY_TOO_SMALL@GOTPAGEOFF]
LBB0_78:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_SSLfatal
	mov	x23, x24
	b	LBB0_67
LBB0_79:
Lloh114:
	adrp	x8, _SSL_kSRP@GOTPAGE
Lloh115:
	ldr	x8, [x8, _SSL_kSRP@GOTPAGEOFF]
Lloh116:
	ldr	x8, [x8]
	tst	x8, x27
	b.eq	LBB0_93
; %bb.80:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_91
; %bb.81:
	ldr	x9, [x20, #40]
	cbz	x9, LBB0_91
; %bb.82:
	ldr	x10, [x20, #32]
	cbz	x10, LBB0_91
; %bb.83:
	ldr	x11, [x20, #24]
	cbz	x11, LBB0_91
; %bb.84:
	mov	w23, #0
	mov	x24, #0
	stp	x8, x9, [sp, #96]
	stp	x10, x11, [sp, #112]
	b	LBB0_4
LBB0_85:
Lloh117:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh118:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
	b	LBB0_64
LBB0_86:
	mov	x0, x23
	bl	_ssl_generate_pkey
	ldr	x8, [x20, #8]
	str	x0, [x8, #16]
	cbz	x0, LBB0_94
; %bb.87:
	bl	_EVP_PKEY_get0_DH
	cbz	x0, LBB0_74
; %bb.88:
	mov	x23, x0
	add	x8, sp, #96
	add	x25, x8, #16
	orr	x26, x8, #0x8
	mov	x0, x24
	bl	_EVP_PKEY_free
	add	x1, sp, #96
	mov	x0, x23
	mov	x2, #0
	mov	x3, x26
	bl	_DH_get0_pqg
	mov	x0, x23
	mov	x1, x25
	mov	x2, #0
	bl	_DH_get0_key
	b	LBB0_3
LBB0_89:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_96
; %bb.90:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1024
	blr	x8
	bl	_ssl_dh_to_pkey
	mov	x23, x0
	mov	x24, x0
	cbnz	x0, LBB0_72
	b	LBB0_76
LBB0_91:
Lloh119:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh120:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh121:
	ldr	w1, [x8]
Lloh122:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGE
Lloh123:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGEOFF]
Lloh124:
	ldr	w2, [x8]
Lloh125:
	adrp	x8, _SSL_R_MISSING_SRP_PARAM@GOTPAGE
Lloh126:
	ldr	x8, [x8, _SSL_R_MISSING_SRP_PARAM@GOTPAGEOFF]
	b	LBB0_65
LBB0_92:
	mov	x0, x19
	bl	_EVP_MD_CTX_free
	mov	w0, #1
	b	LBB0_68
LBB0_93:
Lloh127:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh128:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh129:
	ldr	w1, [x8]
Lloh130:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGE
Lloh131:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGEOFF]
Lloh132:
	ldr	w2, [x8]
Lloh133:
	adrp	x8, _SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE@GOTPAGE
Lloh134:
	ldr	x8, [x8, _SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE@GOTPAGEOFF]
	b	LBB0_65
LBB0_94:
	mov	x23, x24
	b	LBB0_67
LBB0_95:
Lloh135:
	adrp	x8, _SSL_AD_HANDSHAKE_FAILURE@GOTPAGE
Lloh136:
	ldr	x8, [x8, _SSL_AD_HANDSHAKE_FAILURE@GOTPAGEOFF]
Lloh137:
	ldr	w1, [x8]
Lloh138:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGE
Lloh139:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGEOFF]
Lloh140:
	ldr	w2, [x8]
Lloh141:
	adrp	x8, _SSL_R_UNSUPPORTED_ELLIPTIC_CURVE@GOTPAGE
Lloh142:
	ldr	x8, [x8, _SSL_R_UNSUPPORTED_ELLIPTIC_CURVE@GOTPAGEOFF]
	b	LBB0_65
LBB0_96:
Lloh143:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh144:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh145:
	ldr	w1, [x8]
Lloh146:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGE
Lloh147:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGEOFF]
Lloh148:
	ldr	w2, [x8]
Lloh149:
	adrp	x8, _SSL_R_MISSING_TMP_DH_KEY@GOTPAGE
Lloh150:
	ldr	x8, [x8, _SSL_R_MISSING_TMP_DH_KEY@GOTPAGEOFF]
	b	LBB0_65
LBB0_97:
Lloh151:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh152:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh153:
	ldr	w1, [x8]
Lloh154:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGE
Lloh155:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE@GOTPAGEOFF]
Lloh156:
	ldr	w2, [x8]
Lloh157:
	adrp	x8, _ERR_R_EC_LIB@GOTPAGE
Lloh158:
	ldr	x8, [x8, _ERR_R_EC_LIB@GOTPAGEOFF]
	b	LBB0_65
LBB0_98:
Lloh159:
	adrp	x8, _ERR_R_EVP_LIB@GOTPAGE
Lloh160:
	ldr	x8, [x8, _ERR_R_EVP_LIB@GOTPAGEOFF]
	b	LBB0_62
LBB0_99:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGot	Lloh117, Lloh118
	.loh AdrpLdrGot	Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGot	Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpLdrGot	Lloh141, Lloh142
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpLdrGot	Lloh149, Lloh150
	.loh AdrpLdrGotLdr	Lloh146, Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh143, Lloh144, Lloh145
	.loh AdrpLdrGot	Lloh157, Lloh158
	.loh AdrpLdrGotLdr	Lloh154, Lloh155, Lloh156
	.loh AdrpLdrGotLdr	Lloh151, Lloh152, Lloh153
	.loh AdrpLdrGot	Lloh159, Lloh160
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE,4,2 ; @SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_SSL_kPSK,8,3                   ; @SSL_kPSK
	.comm	_SSL_kRSAPSK,8,3                ; @SSL_kRSAPSK
	.comm	_SSL_kDHE,8,3                   ; @SSL_kDHE
	.comm	_SSL_kDHEPSK,8,3                ; @SSL_kDHEPSK
	.comm	_SSL_R_MISSING_TMP_DH_KEY,4,2   ; @SSL_R_MISSING_TMP_DH_KEY
	.comm	_SSL_SECOP_TMP_DH,4,2           ; @SSL_SECOP_TMP_DH
	.comm	_SSL_AD_HANDSHAKE_FAILURE,4,2   ; @SSL_AD_HANDSHAKE_FAILURE
	.comm	_SSL_R_DH_KEY_TOO_SMALL,4,2     ; @SSL_R_DH_KEY_TOO_SMALL
	.comm	_SSL_kECDHE,8,3                 ; @SSL_kECDHE
	.comm	_SSL_kECDHEPSK,8,3              ; @SSL_kECDHEPSK
	.comm	_SSL_R_UNSUPPORTED_ELLIPTIC_CURVE,4,2 ; @SSL_R_UNSUPPORTED_ELLIPTIC_CURVE
	.comm	_ERR_R_EC_LIB,4,2               ; @ERR_R_EC_LIB
	.comm	_SSL_kSRP,8,3                   ; @SSL_kSRP
	.comm	_SSL_R_MISSING_SRP_PARAM,4,2    ; @SSL_R_MISSING_SRP_PARAM
	.comm	_SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE,4,2 ; @SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE
	.comm	_SSL_aNULL,4,2                  ; @SSL_aNULL
	.comm	_SSL_aSRP,4,2                   ; @SSL_aSRP
	.comm	_SSL_PSK,8,3                    ; @SSL_PSK
	.comm	_SSL_AD_DECODE_ERROR,4,2        ; @SSL_AD_DECODE_ERROR
	.comm	_PSK_MAX_IDENTITY_LEN,8,3       ; @PSK_MAX_IDENTITY_LEN
	.comm	_NAMED_CURVE_TYPE,4,2           ; @NAMED_CURVE_TYPE
	.comm	_EVP_PKEY_RSA_PSS,8,3           ; @EVP_PKEY_RSA_PSS
	.comm	_RSA_PKCS1_PSS_PADDING,4,2      ; @RSA_PKCS1_PSS_PADDING
	.comm	_RSA_PSS_SALTLEN_DIGEST,4,2     ; @RSA_PSS_SALTLEN_DIGEST
	.comm	_ERR_R_EVP_LIB,4,2              ; @ERR_R_EVP_LIB
.subsections_via_symbols
