	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_construct_cke_ecdhe
_tls_construct_cke_ecdhe:               ## @tls_construct_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	$0, -48(%rbp)
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rbx, %rdi
	callq	_ssl_generate_pkey
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_ssl_derive
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_EVP_PKEY_get1_tls_encodedpoint
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_WPACKET_sub_memcpy_u8
	movl	$1, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_CKE_ECDHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_CKE_ECDHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_SSLfatal
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_3:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_CKE_ECDHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_CKE_ECDHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_EC_LIB@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_SSLfatal
	xorl	%r13d, %r13d
LBB0_10:
	movq	-48(%rbp), %rdi
	callq	_OPENSSL_free
	movq	%r14, %rdi
	callq	_EVP_PKEY_free
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %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_TLS_CONSTRUCT_CKE_ECDHE,4,2 ## @SSL_F_TLS_CONSTRUCT_CKE_ECDHE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_EC_LIB,4,2               ## @ERR_R_EC_LIB
	.no_dead_strip	_tls_construct_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_construct_cke_ecdhe
_tls_construct_cke_ecdhe:               ; @tls_construct_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, x0
	str	xzr, [sp, #8]
	ldr	x22, [x0]
	cbz	x22, LBB0_6
; %bb.1:
	mov	x21, x1
	mov	x0, x22
	bl	_ssl_generate_pkey
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	w3, #0
	bl	_ssl_derive
	cbz	x0, LBB0_11
; %bb.3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_EVP_PKEY_get1_tls_encodedpoint
	cbz	x0, LBB0_8
; %bb.4:
	mov	x2, x0
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_WPACKET_sub_memcpy_u8
	cbz	w0, LBB0_9
; %bb.5:
	mov	w20, #1
	b	LBB0_12
LBB0_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_TLS_CONSTRUCT_CKE_ECDHE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_CKE_ECDHE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_SSLfatal
	mov	w20, #0
	b	LBB0_13
LBB0_7:
Lloh9:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_CKE_ECDHE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_CKE_ECDHE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_CKE_ECDHE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_CKE_ECDHE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _ERR_R_EC_LIB@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERR_R_EC_LIB@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
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_CONSTRUCT_CKE_ECDHE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_CKE_ECDHE@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_10:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_SSLfatal
LBB0_11:
	mov	w20, #0
LBB0_12:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
	mov	x0, x19
	bl	_EVP_PKEY_free
LBB0_13:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_CKE_ECDHE,4,2 ; @SSL_F_TLS_CONSTRUCT_CKE_ECDHE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_EC_LIB,4,2               ; @ERR_R_EC_LIB
	.no_dead_strip	_tls_construct_cke_ecdhe
.subsections_via_symbols
