	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_construct_cke_dhe
_tls_construct_cke_dhe:                 ## @tls_construct_cke_dhe
	.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	%rdi, %r14
	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
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_EVP_PKEY_get0_DH
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_ssl_derive
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_DH_get0_key
	movq	-56(%rbp), %rdi
	callq	_BN_num_bytes
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_WPACKET_sub_allocate_bytes_u16
	testl	%eax, %eax
	je	LBB0_4
## %bb.8:
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	callq	_BN_bn2bin
	movq	%r12, %rdi
	callq	_EVP_PKEY_free
	movl	$1, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_CKE_DHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_4:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_CKE_DHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
LBB0_5:
	movq	%r12, %rdi
	callq	_EVP_PKEY_free
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %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_DHE,4,2 ## @SSL_F_TLS_CONSTRUCT_CKE_DHE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.no_dead_strip	_tls_construct_cke_dhe
.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_dhe
_tls_construct_cke_dhe:                 ; @tls_construct_cke_dhe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	str	xzr, [sp]
	ldr	x22, [x0]
	cbz	x22, LBB0_7
; %bb.1:
	mov	x21, x1
	mov	x0, x22
	bl	_ssl_generate_pkey
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_EVP_PKEY_get0_DH
	cbz	x0, LBB0_6
; %bb.3:
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	w3, #0
	bl	_ssl_derive
	cbz	x0, LBB0_8
; %bb.4:
	add	x1, sp, #8
	mov	x0, x23
	mov	x2, #0
	bl	_DH_get0_key
	ldr	x0, [sp, #8]
	bl	_BN_num_bytes
	mov	x1, x0
	mov	x2, sp
	mov	x0, x21
	bl	_WPACKET_sub_allocate_bytes_u16
	cbz	w0, LBB0_6
; %bb.5:
	ldp	x1, x0, [sp]
	bl	_BN_bn2bin
	mov	x0, x19
	bl	_EVP_PKEY_free
	mov	w0, #1
	b	LBB0_9
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_DHE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_CKE_DHE@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
	b	LBB0_8
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_DHE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_CKE_DHE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_SSLfatal
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	bl	_EVP_PKEY_free
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_CKE_DHE,4,2 ; @SSL_F_TLS_CONSTRUCT_CKE_DHE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.no_dead_strip	_tls_construct_cke_dhe
.subsections_via_symbols
