	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_process_cke_ecdhe
_tls_process_cke_ecdhe:                 ## @tls_process_cke_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	%rsi, %rbx
	movq	%rdi, %r13
	movq	(%rdi), %r15
	movq	%rsi, %rdi
	callq	_PACKET_remaining
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_PACKET_get_1
	movq	_SSL_R_LENGTH_MISMATCH@GOTPCREL(%rip), %r12
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	-44(%rbp), %edx
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_PACKET_get_bytes
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_PACKET_remaining
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:
	xorl	%r15d, %r15d
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_SSL_AD_HANDSHAKE_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_CKE_ECDHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_MISSING_TMP_ECDH_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_SSLfatal
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_9:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rcx
	testq	%r15, %r15
	je	LBB0_15
## %bb.10:
	movq	%r15, %rbx
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	movq	%rax, %r15
	movq	_ERR_R_EVP_LIB@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_EVP_PKEY_copy_parameters
	testq	%rax, %rax
	jle	LBB0_17
## %bb.12:
	movq	-56(%rbp), %rsi
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	callq	_EVP_PKEY_set1_tls_encodedpoint
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movl	$1, %r14d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_ssl_derive
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	(%r13), %rdi
	callq	_EVP_PKEY_free
	movq	$0, (%r13)
	jmp	LBB0_8
LBB0_15:
	movq	_SSL_R_MISSING_TMP_ECDH_KEY@GOTPCREL(%rip), %r12
LBB0_6:
	xorl	%r15d, %r15d
LBB0_7:
	movl	(%rcx), %esi
	movq	_SSL_F_TLS_PROCESS_CKE_ECDHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movq	%r13, %rdi
	callq	_SSLfatal
LBB0_8:
	movq	%r15, %rdi
	callq	_EVP_PKEY_free
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_ERR_R_EC_LIB@GOTPCREL(%rip), %r12
LBB0_17:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_18:
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_HANDSHAKE_FAILURE,4,2   ## @SSL_AD_HANDSHAKE_FAILURE
	.comm	_SSL_F_TLS_PROCESS_CKE_ECDHE,4,2 ## @SSL_F_TLS_PROCESS_CKE_ECDHE
	.comm	_SSL_R_MISSING_TMP_ECDH_KEY,4,2 ## @SSL_R_MISSING_TMP_ECDH_KEY
	.comm	_SSL_AD_DECODE_ERROR,4,2        ## @SSL_AD_DECODE_ERROR
	.comm	_SSL_R_LENGTH_MISMATCH,4,2      ## @SSL_R_LENGTH_MISMATCH
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_ERR_R_EVP_LIB,4,2              ## @ERR_R_EVP_LIB
	.comm	_ERR_R_EC_LIB,4,2               ## @ERR_R_EC_LIB
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.no_dead_strip	_tls_process_cke_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_cke_ecdhe
_tls_process_cke_ecdhe:                 ; @tls_process_cke_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, x1
	mov	x19, x0
	ldr	x21, [x0]
	mov	x0, x1
	bl	_PACKET_remaining
	cbz	x0, LBB0_6
; %bb.1:
	add	x1, sp, #12
	mov	x0, x20
	bl	_PACKET_get_1
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w2, [sp, #12]
	mov	x1, sp
	mov	x0, x20
	bl	_PACKET_get_bytes
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_PACKET_remaining
	cbz	x0, LBB0_9
LBB0_4:
	mov	x20, #0
Lloh0:
	adrp	x8, _SSL_R_LENGTH_MISMATCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_R_LENGTH_MISMATCH@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x9]
Lloh4:
	adrp	x9, _SSL_F_TLS_PROCESS_CKE_ECDHE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SSL_F_TLS_PROCESS_CKE_ECDHE@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x9]
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _SSL_AD_HANDSHAKE_FAILURE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSL_AD_HANDSHAKE_FAILURE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _SSL_F_TLS_PROCESS_CKE_ECDHE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_CKE_ECDHE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _SSL_R_MISSING_TMP_ECDH_KEY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSL_R_MISSING_TMP_ECDH_KEY@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	x20, #0
LBB0_7:
	mov	w19, #0
LBB0_8:
	mov	x0, x20
	bl	_EVP_PKEY_free
	mov	x0, x19
	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_9:
	cbz	x21, LBB0_16
; %bb.10:
	bl	_EVP_PKEY_new
	mov	x20, x0
	cbz	x0, LBB0_15
; %bb.11:
	mov	x0, x20
	mov	x1, x21
	bl	_EVP_PKEY_copy_parameters
	cmp	x0, #1
	b.lt	LBB0_15
; %bb.12:
	ldr	x1, [sp]
	ldr	w2, [sp, #12]
	mov	x0, x20
	bl	_EVP_PKEY_set1_tls_encodedpoint
	cbz	x0, LBB0_18
; %bb.13:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w3, #1
	bl	_ssl_derive
	cbz	x0, LBB0_7
; %bb.14:
	ldr	x0, [x19]
	bl	_EVP_PKEY_free
	str	xzr, [x19]
	mov	w19, #1
	b	LBB0_8
LBB0_15:
Lloh16:
	adrp	x8, _ERR_R_EVP_LIB@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERR_R_EVP_LIB@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
	mov	x20, #0
Lloh18:
	adrp	x8, _SSL_R_MISSING_TMP_ECDH_KEY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSL_R_MISSING_TMP_ECDH_KEY@GOTPAGEOFF]
LBB0_17:
Lloh20:
	adrp	x9, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_5
LBB0_18:
Lloh22:
	adrp	x8, _ERR_R_EC_LIB@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERR_R_EC_LIB@GOTPAGEOFF]
	b	LBB0_17
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_HANDSHAKE_FAILURE,4,2   ; @SSL_AD_HANDSHAKE_FAILURE
	.comm	_SSL_F_TLS_PROCESS_CKE_ECDHE,4,2 ; @SSL_F_TLS_PROCESS_CKE_ECDHE
	.comm	_SSL_R_MISSING_TMP_ECDH_KEY,4,2 ; @SSL_R_MISSING_TMP_ECDH_KEY
	.comm	_SSL_AD_DECODE_ERROR,4,2        ; @SSL_AD_DECODE_ERROR
	.comm	_SSL_R_LENGTH_MISMATCH,4,2      ; @SSL_R_LENGTH_MISMATCH
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_ERR_R_EVP_LIB,4,2              ; @ERR_R_EVP_LIB
	.comm	_ERR_R_EC_LIB,4,2               ; @ERR_R_EC_LIB
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.no_dead_strip	_tls_process_cke_ecdhe
.subsections_via_symbols
