	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_parse_stoc_key_share       ## -- Begin function tls_parse_stoc_key_share
	.p2align	4, 0x90
_tls_parse_stoc_key_share:              ## @tls_parse_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	%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	16(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	cmpq	$0, 8(%r14)
	je	LBB0_6
LBB0_2:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PARSE_STOC_KEY_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%edx, %ebx
	movq	%rsi, %r12
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_PACKET_get_net_2
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	_SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.8:
	movq	$0, -56(%rbp)
	movq	%r12, %rdi
	callq	_PACKET_remaining
	testq	%rax, %rax
	je	LBB0_18
LBB0_9:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PARSE_STOC_KEY_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_LENGTH_MISMATCH@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_10:
	movl	-44(%rbp), %eax
	cmpl	(%r14), %eax
	jne	LBB0_26
## %bb.11:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_PACKET_as_length_prefixed_2
	testl	%eax, %eax
	je	LBB0_9
## %bb.12:
	leaq	-56(%rbp), %rdi
	callq	_PACKET_remaining
	testq	%rax, %rax
	je	LBB0_9
## %bb.13:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	testq	%rax, %rax
	je	LBB0_23
## %bb.14:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_EVP_PKEY_copy_parameters
	testq	%rax, %rax
	jle	LBB0_23
## %bb.15:
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
	callq	_PACKET_data
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_PACKET_remaining
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_EVP_PKEY_set1_tls_encodedpoint
	testl	%eax, %eax
	je	LBB0_27
## %bb.16:
	movl	$1, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	_ssl_derive
	testq	%rax, %rax
	je	LBB0_28
## %bb.17:
	movq	%r12, 8(%r14)
	jmp	LBB0_5
LBB0_18:
	movl	-44(%rbp), %eax
	cmpl	(%r14), %eax
	je	LBB0_26
## %bb.19:
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_tls1_get_supported_groups
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.20:
	movl	-44(%rbp), %esi
	movq	-56(%rbp), %rcx
	xorl	%edx, %edx
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	cmpl	(%rcx,%rdx,4), %esi
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_21
	jmp	LBB0_26
LBB0_23:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PARSE_STOC_KEY_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
	jmp	LBB0_5
LBB0_24:
	movq	_SSL_SECOP_CURVE_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_tls_group_allowed
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
	movq	16(%r14), %rdi
	callq	_EVP_PKEY_free
	movq	$0, 16(%r14)
	movl	$1, %ebx
	jmp	LBB0_5
LBB0_26:
	movq	_SSL_AD_ILLEGAL_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PARSE_STOC_KEY_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_KEY_SHARE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_27:
	movq	_SSL_AD_ILLEGAL_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PARSE_STOC_KEY_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_ECPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
LBB0_28:
	movq	%r12, %rdi
	callq	_EVP_PKEY_free
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_PARSE_STOC_KEY_SHARE,4,2 ## @SSL_F_TLS_PARSE_STOC_KEY_SHARE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL_AD_DECODE_ERROR,4,2        ## @SSL_AD_DECODE_ERROR
	.comm	_SSL_R_LENGTH_MISMATCH,4,2      ## @SSL_R_LENGTH_MISMATCH
	.comm	_SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST,4,2 ## @SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST
	.comm	_SSL_AD_ILLEGAL_PARAMETER,4,2   ## @SSL_AD_ILLEGAL_PARAMETER
	.comm	_SSL_R_BAD_KEY_SHARE,4,2        ## @SSL_R_BAD_KEY_SHARE
	.comm	_SSL_SECOP_CURVE_SUPPORTED,4,2  ## @SSL_SECOP_CURVE_SUPPORTED
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_SSL_R_BAD_ECPOINT,4,2          ## @SSL_R_BAD_ECPOINT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_parse_stoc_key_share       ; -- Begin function tls_parse_stoc_key_share
	.p2align	2
_tls_parse_stoc_key_share:              ; @tls_parse_stoc_key_share
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	x20, [x0, #16]
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
LBB0_2:
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_PARSE_STOC_KEY_SHARE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_F_TLS_PARSE_STOC_KEY_SHARE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_3:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	add	sp, sp, #80
	ret
LBB0_6:
	mov	x22, x2
	mov	x21, x1
	add	x1, sp, #28
	mov	x0, x21
	bl	_PACKET_get_net_2
	cbz	w0, LBB0_9
; %bb.7:
Lloh8:
	adrp	x8, _SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_10
; %bb.8:
	str	xzr, [sp, #16]
	mov	x0, x21
	bl	_PACKET_remaining
	cbz	x0, LBB0_18
LBB0_9:
Lloh11:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _SSL_F_TLS_PARSE_STOC_KEY_SHARE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSL_F_TLS_PARSE_STOC_KEY_SHARE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _SSL_R_LENGTH_MISMATCH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SSL_R_LENGTH_MISMATCH@GOTPAGEOFF]
	b	LBB0_3
LBB0_10:
	ldr	w8, [sp, #28]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_27
; %bb.11:
	add	x1, sp, #16
	mov	x0, x21
	bl	_PACKET_as_length_prefixed_2
	cbz	w0, LBB0_9
; %bb.12:
	add	x0, sp, #16
	bl	_PACKET_remaining
	cbz	x0, LBB0_9
; %bb.13:
	bl	_EVP_PKEY_new
	cbz	x0, LBB0_23
; %bb.14:
	mov	x21, x0
	mov	x1, x20
	bl	_EVP_PKEY_copy_parameters
	cmp	x0, #0
	b.le	LBB0_23
; %bb.15:
	add	x0, sp, #16
	bl	_PACKET_data
	mov	x22, x0
	add	x0, sp, #16
	bl	_PACKET_remaining
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_EVP_PKEY_set1_tls_encodedpoint
	cbz	w0, LBB0_28
; %bb.16:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #1
	bl	_ssl_derive
	cbz	x0, LBB0_29
; %bb.17:
	str	x21, [x19, #8]
	b	LBB0_26
LBB0_18:
	ldr	w8, [sp, #28]
	ldr	w9, [x19]
	cmp	w8, w9
	b.eq	LBB0_27
; %bb.19:
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x19
	bl	_tls1_get_supported_groups
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_27
; %bb.20:
	ldr	w1, [sp, #28]
	ldr	x9, [sp, #16]
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	cmp	w1, w10
	b.eq	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_21
	b	LBB0_27
LBB0_23:
Lloh19:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _SSL_F_TLS_PARSE_STOC_KEY_SHARE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SSL_F_TLS_PARSE_STOC_KEY_SHARE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_3
LBB0_24:
Lloh27:
	adrp	x8, _SSL_SECOP_CURVE_SUPPORTED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SSL_SECOP_CURVE_SUPPORTED@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tls_group_allowed
	cbz	w0, LBB0_27
; %bb.25:
	ldr	w8, [sp, #28]
	str	w8, [x19]
	ldr	x0, [x19, #16]
	bl	_EVP_PKEY_free
	str	xzr, [x19, #16]
LBB0_26:
	mov	w0, #1
	b	LBB0_5
LBB0_27:
Lloh30:
	adrp	x8, _SSL_AD_ILLEGAL_PARAMETER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SSL_AD_ILLEGAL_PARAMETER@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _SSL_F_TLS_PARSE_STOC_KEY_SHARE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SSL_F_TLS_PARSE_STOC_KEY_SHARE@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
Lloh36:
	adrp	x8, _SSL_R_BAD_KEY_SHARE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SSL_R_BAD_KEY_SHARE@GOTPAGEOFF]
	b	LBB0_3
LBB0_28:
Lloh38:
	adrp	x8, _SSL_AD_ILLEGAL_PARAMETER@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SSL_AD_ILLEGAL_PARAMETER@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x8, _SSL_F_TLS_PARSE_STOC_KEY_SHARE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SSL_F_TLS_PARSE_STOC_KEY_SHARE@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
Lloh44:
	adrp	x8, _SSL_R_BAD_ECPOINT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SSL_R_BAD_ECPOINT@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
LBB0_29:
	mov	x0, x21
	bl	_EVP_PKEY_free
	b	LBB0_4
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_PARSE_STOC_KEY_SHARE,4,2 ; @SSL_F_TLS_PARSE_STOC_KEY_SHARE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL_AD_DECODE_ERROR,4,2        ; @SSL_AD_DECODE_ERROR
	.comm	_SSL_R_LENGTH_MISMATCH,4,2      ; @SSL_R_LENGTH_MISMATCH
	.comm	_SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST,4,2 ; @SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST
	.comm	_SSL_AD_ILLEGAL_PARAMETER,4,2   ; @SSL_AD_ILLEGAL_PARAMETER
	.comm	_SSL_R_BAD_KEY_SHARE,4,2        ; @SSL_R_BAD_KEY_SHARE
	.comm	_SSL_SECOP_CURVE_SUPPORTED,4,2  ; @SSL_SECOP_CURVE_SUPPORTED
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_SSL_R_BAD_ECPOINT,4,2          ; @SSL_R_BAD_ECPOINT
.subsections_via_symbols
