	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_process_ske_ecdhe
_tls_process_ske_ecdhe:                 ## @tls_process_ske_ecdhe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_PACKET_get_1
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_PACKET_get_net_2
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	-48(%rbp), %eax
	movq	_NAMED_CURVE_TYPE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tls1_check_group_id
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	-44(%rbp), %edi
	callq	_ssl_generate_param_group
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leaq	-52(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_PACKET_get_length_prefixed_1
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	16(%r15), %r13
	leaq	-52(%rbp), %r12
	movq	%r12, %rdi
	callq	_PACKET_data
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_PACKET_remaining
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_EVP_PKEY_set1_tls_encodedpoint
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movq	_SSL_aECDSA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_X509_get0_pubkey
	movq	%rax, (%r14)
	movl	$1, %ebx
	jmp	LBB0_17
LBB0_2:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_SKE_ECDHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_LENGTH_TOO_SHORT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movq	_SSL_AD_ILLEGAL_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_SKE_ECDHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_WRONG_CURVE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	xorl	%ebx, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_SKE_ECDHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_UNABLE_TO_FIND_ECDH_PARAMETERS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_10:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_SKE_ECDHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_LENGTH_MISMATCH@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_12:
	movq	_SSL_AD_ILLEGAL_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_SKE_ECDHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_ECPOINT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_15:
	movq	_SSL_aRSA@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_X509_get0_pubkey
	movq	%rax, (%r14)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_DECODE_ERROR,4,2        ## @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PROCESS_SKE_ECDHE,4,2 ## @SSL_F_TLS_PROCESS_SKE_ECDHE
	.comm	_SSL_R_LENGTH_TOO_SHORT,4,2     ## @SSL_R_LENGTH_TOO_SHORT
	.comm	_NAMED_CURVE_TYPE,4,2           ## @NAMED_CURVE_TYPE
	.comm	_SSL_AD_ILLEGAL_PARAMETER,4,2   ## @SSL_AD_ILLEGAL_PARAMETER
	.comm	_SSL_R_WRONG_CURVE,4,2          ## @SSL_R_WRONG_CURVE
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_R_UNABLE_TO_FIND_ECDH_PARAMETERS,4,2 ## @SSL_R_UNABLE_TO_FIND_ECDH_PARAMETERS
	.comm	_SSL_R_LENGTH_MISMATCH,4,2      ## @SSL_R_LENGTH_MISMATCH
	.comm	_SSL_R_BAD_ECPOINT,4,2          ## @SSL_R_BAD_ECPOINT
	.comm	_SSL_aECDSA,4,2                 ## @SSL_aECDSA
	.comm	_SSL_aRSA,4,2                   ## @SSL_aRSA
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.no_dead_strip	_tls_process_ske_ecdhe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_process_ske_ecdhe
_tls_process_ske_ecdhe:                 ; @tls_process_ske_ecdhe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x21
	bl	_PACKET_get_1
	cbz	w0, LBB0_11
; %bb.1:
	add	x1, sp, #4
	mov	x0, x21
	bl	_PACKET_get_net_2
	cbz	w0, LBB0_11
; %bb.2:
	ldr	w8, [sp, #8]
Lloh0:
	adrp	x9, _NAMED_CURVE_TYPE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NAMED_CURVE_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.3:
	ldr	w1, [sp, #4]
	mov	x0, x19
	mov	w2, #1
	bl	_tls1_check_group_id
	cbz	w0, LBB0_12
; %bb.4:
	ldr	w0, [sp, #4]
	bl	_ssl_generate_param_group
	str	x0, [x19, #16]
	cbz	x0, LBB0_15
; %bb.5:
	add	x1, sp, #12
	mov	x0, x21
	bl	_PACKET_get_length_prefixed_1
	cbz	w0, LBB0_16
; %bb.6:
	ldr	x21, [x19, #16]
	add	x0, sp, #12
	bl	_PACKET_data
	mov	x22, x0
	add	x0, sp, #12
	bl	_PACKET_remaining
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_EVP_PKEY_set1_tls_encodedpoint
	cbz	w0, LBB0_17
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SSL_aECDSA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SSL_aECDSA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.8:
Lloh6:
	adrp	x9, _SSL_aRSA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SSL_aRSA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_9:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_X509_get0_pubkey
	str	x0, [x20]
LBB0_10:
	mov	w0, #1
	b	LBB0_14
LBB0_11:
Lloh9:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _SSL_F_TLS_PROCESS_SKE_ECDHE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_SKE_ECDHE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _SSL_R_LENGTH_TOO_SHORT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSL_R_LENGTH_TOO_SHORT@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh17:
	adrp	x8, _SSL_AD_ILLEGAL_PARAMETER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SSL_AD_ILLEGAL_PARAMETER@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _SSL_F_TLS_PROCESS_SKE_ECDHE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_SKE_ECDHE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _SSL_R_WRONG_CURVE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SSL_R_WRONG_CURVE@GOTPAGEOFF]
LBB0_13:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_15:
Lloh25:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _SSL_F_TLS_PROCESS_SKE_ECDHE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_SKE_ECDHE@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x8, _SSL_R_UNABLE_TO_FIND_ECDH_PARAMETERS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SSL_R_UNABLE_TO_FIND_ECDH_PARAMETERS@GOTPAGEOFF]
	b	LBB0_13
LBB0_16:
Lloh33:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _SSL_F_TLS_PROCESS_SKE_ECDHE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_SKE_ECDHE@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
Lloh39:
	adrp	x8, _SSL_R_LENGTH_MISMATCH@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SSL_R_LENGTH_MISMATCH@GOTPAGEOFF]
	b	LBB0_13
LBB0_17:
Lloh41:
	adrp	x8, _SSL_AD_ILLEGAL_PARAMETER@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SSL_AD_ILLEGAL_PARAMETER@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x8, _SSL_F_TLS_PROCESS_SKE_ECDHE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_SKE_ECDHE@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
Lloh47:
	adrp	x8, _SSL_R_BAD_ECPOINT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SSL_R_BAD_ECPOINT@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_DECODE_ERROR,4,2        ; @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PROCESS_SKE_ECDHE,4,2 ; @SSL_F_TLS_PROCESS_SKE_ECDHE
	.comm	_SSL_R_LENGTH_TOO_SHORT,4,2     ; @SSL_R_LENGTH_TOO_SHORT
	.comm	_NAMED_CURVE_TYPE,4,2           ; @NAMED_CURVE_TYPE
	.comm	_SSL_AD_ILLEGAL_PARAMETER,4,2   ; @SSL_AD_ILLEGAL_PARAMETER
	.comm	_SSL_R_WRONG_CURVE,4,2          ; @SSL_R_WRONG_CURVE
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_R_UNABLE_TO_FIND_ECDH_PARAMETERS,4,2 ; @SSL_R_UNABLE_TO_FIND_ECDH_PARAMETERS
	.comm	_SSL_R_LENGTH_MISMATCH,4,2      ; @SSL_R_LENGTH_MISMATCH
	.comm	_SSL_R_BAD_ECPOINT,4,2          ; @SSL_R_BAD_ECPOINT
	.comm	_SSL_aECDSA,4,2                 ; @SSL_aECDSA
	.comm	_SSL_aRSA,4,2                   ; @SSL_aRSA
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.no_dead_strip	_tls_process_ske_ecdhe
.subsections_via_symbols
