	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function final_key_share
_final_key_share:                       ## @final_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_SSL_IS_TLS13
	movl	$1, %r14d
	testl	%eax, %eax
	je	LBB0_29
## %bb.1:
	movq	_SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_29
## %bb.2:
	movq	40(%r13), %rax
	testl	%r15d, %r15d
	jne	LBB0_9
## %bb.3:
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:
	cmpl	$0, 32(%r13)
	je	LBB0_6
## %bb.5:
	movq	_TLSEXT_KEX_MODE_FLAG_KE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	jne	LBB0_15
	jmp	LBB0_6
LBB0_9:
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	cmpq	$0, 24(%r13)
	je	LBB0_17
## %bb.11:
	movq	_TLS1_FLAGS_STATELESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r13)
	je	LBB0_13
## %bb.12:
	cmpl	$0, 12(%r13)
	je	LBB0_25
LBB0_13:
	movq	(%r13), %rax
	movq	_SSL_HRR_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.14:
	movq	_SSL_HRR_COMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_15:
	testl	%r15d, %r15d
	jne	LBB0_29
## %bb.16:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_tls13_generate_handshake_secret
	testl	%eax, %eax
	jne	LBB0_29
	jmp	LBB0_30
LBB0_17:
	movq	_SSL_HRR_NONE@GOTPCREL(%rip), %rbx
	testl	%r15d, %r15d
	je	LBB0_34
## %bb.18:
	movq	(%rbx), %rax
	cmpq	%rax, (%r13)
	jne	LBB0_34
## %bb.19:
	cmpl	$0, 32(%r13)
	je	LBB0_21
## %bb.20:
	movq	_TLSEXT_KEX_MODE_FLAG_KE_DHE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_34
LBB0_21:
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	callq	_tls1_get_peer_groups
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_tls1_get_supported_groups
	cmpq	$0, -48(%rbp)
	je	LBB0_34
## %bb.22:
	xorl	%ebx, %ebx
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax
	movl	(%rax,%rbx,4), %r12d
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	$1, %r8d
	callq	_check_in_list
	testq	%rax, %rax
	jne	LBB0_31
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	incq	%rbx
	movq	-48(%rbp), %rax
	cmpq	%rax, %rbx
	jb	LBB0_23
	jmp	LBB0_32
LBB0_25:
	movq	(%r13), %rax
	movq	_SSL_HRR_NONE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
LBB0_26:
	sete	%dil
	callq	_ossl_assert
	testl	%eax, %eax
	je	LBB0_30
## %bb.27:
	movq	_SSL_HRR_PENDING@GOTPCREL(%rip), %rax
LBB0_28:
	movq	(%rax), %rax
	movq	%rax, (%r13)
	jmp	LBB0_29
LBB0_30:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_FINAL_KEY_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_31:
	movq	-48(%rbp), %rax
LBB0_32:
	cmpq	%rax, %rbx
	movq	_SSL_HRR_NONE@GOTPCREL(%rip), %rbx
	jae	LBB0_34
## %bb.33:
	movl	%r12d, 20(%r13)
	movq	_SSL_HRR_PENDING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movl	$1, %r14d
	jmp	LBB0_29
LBB0_34:
	cmpl	$0, 32(%r13)
	je	LBB0_39
## %bb.35:
	movq	_TLSEXT_KEX_MODE_FLAG_KE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_39
## %bb.36:
	movq	_TLS1_FLAGS_STATELESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r13)
	je	LBB0_13
## %bb.37:
	cmpl	$0, 12(%r13)
	jne	LBB0_13
## %bb.38:
	movq	(%r13), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	jmp	LBB0_26
LBB0_39:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.40:
	movq	_SSL_AD_HANDSHAKE_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_SSL_AD_MISSING_EXTENSION@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movq	_SSL_F_FINAL_KEY_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_NO_SUITABLE_KEY_SHARE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_SSLfatal
	xorl	%r14d, %r14d
LBB0_29:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST,4,2 ## @SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST
	.comm	_TLSEXT_KEX_MODE_FLAG_KE,4,2    ## @TLSEXT_KEX_MODE_FLAG_KE
	.comm	_SSL_AD_MISSING_EXTENSION,4,2   ## @SSL_AD_MISSING_EXTENSION
	.comm	_SSL_F_FINAL_KEY_SHARE,4,2      ## @SSL_F_FINAL_KEY_SHARE
	.comm	_SSL_R_NO_SUITABLE_KEY_SHARE,4,2 ## @SSL_R_NO_SUITABLE_KEY_SHARE
	.comm	_TLS1_FLAGS_STATELESS,4,2       ## @TLS1_FLAGS_STATELESS
	.comm	_SSL_HRR_NONE,8,3               ## @SSL_HRR_NONE
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL_HRR_PENDING,8,3            ## @SSL_HRR_PENDING
	.comm	_TLSEXT_KEX_MODE_FLAG_KE_DHE,4,2 ## @TLSEXT_KEX_MODE_FLAG_KE_DHE
	.comm	_SSL_AD_HANDSHAKE_FAILURE,4,2   ## @SSL_AD_HANDSHAKE_FAILURE
	.comm	_SSL_HRR_COMPLETE,8,3           ## @SSL_HRR_COMPLETE
	.no_dead_strip	_final_key_share
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function final_key_share
_final_key_share:                       ; @final_key_share
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x21, x1
	mov	x19, x0
	bl	_SSL_IS_TLS13
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	ldr	x8, [x19, #40]
	cbnz	w20, LBB0_11
; %bb.5:
	cbnz	x8, LBB0_11
; %bb.6:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_8
; %bb.7:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _TLSEXT_KEX_MODE_FLAG_KE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TLSEXT_KEX_MODE_FLAG_KE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_17
LBB0_8:
Lloh6:
	adrp	x8, _SSL_AD_MISSING_EXTENSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_AD_MISSING_EXTENSION@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _SSL_F_FINAL_KEY_SHARE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSL_F_FINAL_KEY_SHARE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _SSL_R_NO_SUITABLE_KEY_SHARE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_R_NO_SUITABLE_KEY_SHARE@GOTPAGEOFF]
LBB0_10:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
	b	LBB0_3
LBB0_11:
	cbz	x8, LBB0_17
; %bb.12:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_19
; %bb.13:
	ldr	w8, [x19, #16]
Lloh13:
	adrp	x9, _TLS1_FLAGS_STATELESS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TLS1_FLAGS_STATELESS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_27
LBB0_15:
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _SSL_HRR_PENDING@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SSL_HRR_PENDING@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.16:
Lloh19:
	adrp	x8, _SSL_HRR_COMPLETE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SSL_HRR_COMPLETE@GOTPAGEOFF]
	b	LBB0_34
LBB0_17:
	cbnz	w20, LBB0_2
; %bb.18:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_tls13_generate_handshake_secret
	cbnz	w0, LBB0_2
	b	LBB0_29
LBB0_19:
Lloh21:
	adrp	x22, _SSL_HRR_NONE@GOTPAGE
Lloh22:
	ldr	x22, [x22, _SSL_HRR_NONE@GOTPAGEOFF]
	cbz	w20, LBB0_35
; %bb.20:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_35
; %bb.21:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_23
; %bb.22:
	ldr	w8, [x19, #8]
Lloh23:
	adrp	x9, _TLSEXT_KEX_MODE_FLAG_KE_DHE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TLSEXT_KEX_MODE_FLAG_KE_DHE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_35
LBB0_23:
	add	x1, sp, #16
	mov	x2, sp
	mov	x0, x19
	bl	_tls1_get_peer_groups
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x0, x19
	bl	_tls1_get_supported_groups
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_35
; %bb.24:
	mov	x23, #0
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldp	x2, x8, [sp, #16]
	ldr	w21, [x8, x23, lsl #2]
	ldr	x3, [sp]
	mov	x0, x19
	mov	x1, x21
	mov	w4, #1
	bl	_check_in_list
	cbnz	x0, LBB0_30
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	add	x23, x23, #1
	ldr	x8, [sp, #8]
	cmp	x23, x8
	b.lo	LBB0_25
	b	LBB0_31
LBB0_27:
	ldr	x8, [x19]
Lloh26:
	adrp	x9, _SSL_HRR_NONE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SSL_HRR_NONE@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
LBB0_28:
	cmp	x8, x9
	cset	w0, eq
	bl	_ossl_assert
	cbnz	w0, LBB0_33
LBB0_29:
Lloh29:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _SSL_F_FINAL_KEY_SHARE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SSL_F_FINAL_KEY_SHARE@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_10
LBB0_30:
	ldr	x8, [sp, #8]
LBB0_31:
	cmp	x23, x8
	b.hs	LBB0_35
; %bb.32:
	str	w21, [x19, #20]
LBB0_33:
Lloh37:
	adrp	x8, _SSL_HRR_PENDING@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SSL_HRR_PENDING@GOTPAGEOFF]
LBB0_34:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_2
LBB0_35:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_40
; %bb.36:
	ldr	w8, [x19, #8]
Lloh39:
	adrp	x9, _TLSEXT_KEX_MODE_FLAG_KE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _TLSEXT_KEX_MODE_FLAG_KE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_40
; %bb.37:
	ldr	w8, [x19, #16]
Lloh42:
	adrp	x9, _TLS1_FLAGS_STATELESS@GOTPAGE
Lloh43:
	ldr	x9, [x9, _TLS1_FLAGS_STATELESS@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.38:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_15
; %bb.39:
	ldr	x8, [x19]
	ldr	x9, [x22]
	b	LBB0_28
LBB0_40:
Lloh45:
	adrp	x8, _SSL_AD_HANDSHAKE_FAILURE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SSL_AD_HANDSHAKE_FAILURE@GOTPAGEOFF]
Lloh47:
	adrp	x9, _SSL_AD_MISSING_EXTENSION@GOTPAGE
Lloh48:
	ldr	x9, [x9, _SSL_AD_MISSING_EXTENSION@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x8, x9, ne
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST,4,2 ; @SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST
	.comm	_TLSEXT_KEX_MODE_FLAG_KE,4,2    ; @TLSEXT_KEX_MODE_FLAG_KE
	.comm	_SSL_AD_MISSING_EXTENSION,4,2   ; @SSL_AD_MISSING_EXTENSION
	.comm	_SSL_F_FINAL_KEY_SHARE,4,2      ; @SSL_F_FINAL_KEY_SHARE
	.comm	_SSL_R_NO_SUITABLE_KEY_SHARE,4,2 ; @SSL_R_NO_SUITABLE_KEY_SHARE
	.comm	_TLS1_FLAGS_STATELESS,4,2       ; @TLS1_FLAGS_STATELESS
	.comm	_SSL_HRR_NONE,8,3               ; @SSL_HRR_NONE
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL_HRR_PENDING,8,3            ; @SSL_HRR_PENDING
	.comm	_TLSEXT_KEX_MODE_FLAG_KE_DHE,4,2 ; @TLSEXT_KEX_MODE_FLAG_KE_DHE
	.comm	_SSL_AD_HANDSHAKE_FAILURE,4,2   ; @SSL_AD_HANDSHAKE_FAILURE
	.comm	_SSL_HRR_COMPLETE,8,3           ; @SSL_HRR_COMPLETE
	.no_dead_strip	_final_key_share
.subsections_via_symbols
