	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_stoc_key_share   ## -- Begin function tls_construct_stoc_key_share
	.p2align	4, 0x90
_tls_construct_stoc_key_share:          ## @tls_construct_stoc_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	24(%rdi), %r15
	movq	_SSL_HRR_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	testq	%r15, %r15
	je	LBB0_12
LBB0_2:
	movq	_EXT_RETURN_NOT_SENT@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_3:
	testq	%r15, %r15
	je	LBB0_17
## %bb.4:
	movq	_TLSEXT_TYPE_key_share@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_WPACKET_put_bytes_u16
	testl	%eax, %eax
	je	LBB0_20
## %bb.5:
	movq	%r14, %rdi
	callq	_WPACKET_start_sub_packet_u16
	testl	%eax, %eax
	je	LBB0_20
## %bb.6:
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	_WPACKET_put_bytes_u16
	testl	%eax, %eax
	je	LBB0_20
## %bb.7:
	movq	%r15, %rdi
	callq	_ssl_generate_pkey
	testq	%rax, %rax
	je	LBB0_24
## %bb.8:
	movq	%rax, %r12
	leaq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_EVP_PKEY_get1_tls_encodedpoint
	testq	%rax, %rax
	je	LBB0_25
## %bb.9:
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_WPACKET_sub_memcpy_u16
	testl	%eax, %eax
	je	LBB0_26
## %bb.10:
	movq	%r14, %rdi
	callq	_WPACKET_close
	testl	%eax, %eax
	je	LBB0_26
## %bb.11:
	movq	-40(%rbp), %rdi
	callq	_OPENSSL_free
	movq	%r12, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_ssl_derive
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_22
LBB0_12:
	movq	_TLSEXT_TYPE_key_share@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_WPACKET_put_bytes_u16
	testl	%eax, %eax
	je	LBB0_20
## %bb.13:
	movq	%r14, %rdi
	callq	_WPACKET_start_sub_packet_u16
	testl	%eax, %eax
	je	LBB0_20
## %bb.14:
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	_WPACKET_put_bytes_u16
	testl	%eax, %eax
	je	LBB0_20
## %bb.15:
	movq	%r14, %rdi
	callq	_WPACKET_close
	testl	%eax, %eax
	je	LBB0_20
LBB0_16:
	movq	_EXT_RETURN_SENT@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_17:
	cmpl	$0, 32(%rbx)
	je	LBB0_20
## %bb.18:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_tls13_generate_handshake_secret
	testl	%eax, %eax
	jne	LBB0_2
LBB0_20:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
LBB0_22:
	movq	_EXT_RETURN_FAIL@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_25:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_EC_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
	movq	%r12, %rdi
	callq	_EVP_PKEY_free
	jmp	LBB0_22
LBB0_26:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
	movq	%r12, %rdi
	callq	_EVP_PKEY_free
	movq	-40(%rbp), %rdi
	callq	_OPENSSL_free
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_HRR_PENDING,8,3            ## @SSL_HRR_PENDING
	.comm	_EXT_RETURN_NOT_SENT,4,2        ## @EXT_RETURN_NOT_SENT
	.comm	_TLSEXT_TYPE_key_share,4,2      ## @TLSEXT_TYPE_key_share
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE,4,2 ## @SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_EXT_RETURN_FAIL,4,2            ## @EXT_RETURN_FAIL
	.comm	_EXT_RETURN_SENT,4,2            ## @EXT_RETURN_SENT
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_EC_LIB,4,2               ## @ERR_R_EC_LIB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_stoc_key_share   ; -- Begin function tls_construct_stoc_key_share
	.p2align	2
_tls_construct_stoc_key_share:          ; @tls_construct_stoc_key_share
	.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, #24]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SSL_HRR_PENDING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSL_HRR_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	cbz	x21, LBB0_12
LBB0_2:
Lloh3:
	adrp	x8, _EXT_RETURN_NOT_SENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXT_RETURN_NOT_SENT@GOTPAGEOFF]
	b	LBB0_22
LBB0_3:
	cbz	x21, LBB0_17
; %bb.4:
Lloh5:
	adrp	x8, _TLSEXT_TYPE_key_share@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TLSEXT_TYPE_key_share@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_WPACKET_put_bytes_u16
	cbz	w0, LBB0_19
; %bb.5:
	mov	x0, x20
	bl	_WPACKET_start_sub_packet_u16
	cbz	w0, LBB0_19
; %bb.6:
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_WPACKET_put_bytes_u16
	cbz	w0, LBB0_19
; %bb.7:
	mov	x0, x21
	bl	_ssl_generate_pkey
	cbz	x0, LBB0_23
; %bb.8:
	mov	x22, x0
	add	x1, sp, #8
	bl	_EVP_PKEY_get1_tls_encodedpoint
	cbz	x0, LBB0_24
; %bb.9:
	mov	x2, x0
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_WPACKET_sub_memcpy_u16
	cbz	w0, LBB0_25
; %bb.10:
	mov	x0, x20
	bl	_WPACKET_close
	cbz	w0, LBB0_25
; %bb.11:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
	str	x22, [x19, #8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	w3, #1
	bl	_ssl_derive
Lloh8:
	adrp	x8, _EXT_RETURN_SENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXT_RETURN_SENT@GOTPAGEOFF]
Lloh10:
	adrp	x9, _EXT_RETURN_FAIL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EXT_RETURN_FAIL@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	b	LBB0_22
LBB0_12:
Lloh12:
	adrp	x8, _TLSEXT_TYPE_key_share@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TLSEXT_TYPE_key_share@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_WPACKET_put_bytes_u16
	cbz	w0, LBB0_19
; %bb.13:
	mov	x0, x20
	bl	_WPACKET_start_sub_packet_u16
	cbz	w0, LBB0_19
; %bb.14:
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_WPACKET_put_bytes_u16
	cbz	w0, LBB0_19
; %bb.15:
	mov	x0, x20
	bl	_WPACKET_close
	cbz	w0, LBB0_19
; %bb.16:
Lloh15:
	adrp	x8, _EXT_RETURN_SENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EXT_RETURN_SENT@GOTPAGEOFF]
	b	LBB0_22
LBB0_17:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_19
; %bb.18:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_tls13_generate_handshake_secret
	cbnz	w0, LBB0_2
LBB0_19:
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_STOC_KEY_SHARE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_20:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
LBB0_21:
Lloh25:
	adrp	x8, _EXT_RETURN_FAIL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EXT_RETURN_FAIL@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
	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_23:
Lloh27:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
Lloh33:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_20
LBB0_24:
Lloh35:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
Lloh41:
	adrp	x8, _ERR_R_EC_LIB@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ERR_R_EC_LIB@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	x0, x22
	bl	_EVP_PKEY_free
	b	LBB0_21
LBB0_25:
Lloh44:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
Lloh50:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh52:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	x0, x22
	bl	_EVP_PKEY_free
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_HRR_PENDING,8,3            ; @SSL_HRR_PENDING
	.comm	_EXT_RETURN_NOT_SENT,4,2        ; @EXT_RETURN_NOT_SENT
	.comm	_TLSEXT_TYPE_key_share,4,2      ; @TLSEXT_TYPE_key_share
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE,4,2 ; @SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_EXT_RETURN_FAIL,4,2            ; @EXT_RETURN_FAIL
	.comm	_EXT_RETURN_SENT,4,2            ; @EXT_RETURN_SENT
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_EC_LIB,4,2               ; @ERR_R_EC_LIB
.subsections_via_symbols
