	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_key_share
_add_key_share:                         ## @add_key_share
	.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
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	cmpq	$0, 16(%rdi)
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_SSL_HRR_PENDING@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_ossl_assert
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	16(%rbx), %r15
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ssl_generate_pkey_group
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_13
LBB0_4:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_EVP_PKEY_get1_tls_encodedpoint
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %r13
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_WPACKET_put_bytes_u16
	movq	%r12, %rdi
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movq	-48(%rbp), %rsi
	movq	%r13, %rdx
	callq	_WPACKET_sub_memcpy_u16
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movq	%r15, 16(%rbx)
	movl	%r14d, 8(%rbx)
	movq	-48(%rbp), %rdi
	callq	_OPENSSL_free
	movl	$1, %eax
	jmp	LBB0_14
LBB0_8:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_ADD_KEY_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
	jmp	LBB0_13
LBB0_9:
	movq	_ERR_R_EC_LIB@GOTPCREL(%rip), %r12
LBB0_10:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_ADD_KEY_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
	cmpq	$0, 16(%rbx)
	jne	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_EVP_PKEY_free
LBB0_12:
	movq	-48(%rbp), %rdi
	callq	_OPENSSL_free
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_HRR_PENDING,8,3            ## @SSL_HRR_PENDING
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_ADD_KEY_SHARE,4,2        ## @SSL_F_ADD_KEY_SHARE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_ERR_R_EC_LIB,4,2               ## @ERR_R_EC_LIB
	.no_dead_strip	_add_key_share
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_key_share
_add_key_share:                         ; @add_key_share
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SSL_HRR_PENDING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSL_HRR_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_ossl_assert
	cbz	w0, LBB0_8
; %bb.2:
	ldr	x20, [x19, #16]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	bl	_ssl_generate_pkey_group
	mov	x20, x0
	cbz	x0, LBB0_15
LBB0_4:
	add	x1, sp, #8
	mov	x0, x20
	bl	_EVP_PKEY_get1_tls_encodedpoint
	cbz	x0, LBB0_9
; %bb.5:
	mov	x23, x0
	mov	x0, x22
	mov	x1, x21
	bl	_WPACKET_put_bytes_u16
	cbz	w0, LBB0_10
; %bb.6:
	ldr	x1, [sp, #8]
	mov	x0, x22
	mov	x2, x23
	bl	_WPACKET_sub_memcpy_u16
	cbz	w0, LBB0_10
; %bb.7:
	str	x20, [x19, #16]
	str	w21, [x19, #8]
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
	mov	w0, #1
	b	LBB0_15
LBB0_8:
Lloh3:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SSL_F_ADD_KEY_SHARE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_F_ADD_KEY_SHARE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	b	LBB0_14
LBB0_9:
Lloh12:
	adrp	x8, _ERR_R_EC_LIB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_R_EC_LIB@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh14:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_11:
Lloh16:
	adrp	x9, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x9]
Lloh19:
	adrp	x9, _SSL_F_ADD_KEY_SHARE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SSL_F_ADD_KEY_SHARE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x9]
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_EVP_PKEY_free
LBB0_13:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
LBB0_14:
	mov	w0, #0
LBB0_15:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_HRR_PENDING,8,3            ; @SSL_HRR_PENDING
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_ADD_KEY_SHARE,4,2        ; @SSL_F_ADD_KEY_SHARE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_ERR_R_EC_LIB,4,2               ; @ERR_R_EC_LIB
	.no_dead_strip	_add_key_share
.subsections_via_symbols
