	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls1_shared_group              ## -- Begin function tls1_shared_group
	.p2align	4, 0x90
_tls1_shared_group:                     ## @tls1_shared_group
	.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
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %r15
	cmpl	$-2, %esi
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_tls1_suiteb
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movq	_TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_TLSEXT_curve_P_256@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_4:
	xorl	%r14d, %r14d
LBB0_5:
	movq	_SSL_OP_CIPHER_SERVER_PREFERENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_11
## %bb.6:
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_tls1_get_supported_groups
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_tls1_get_peer_groups
	jmp	LBB0_12
LBB0_11:
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_tls1_get_peer_groups
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_tls1_get_supported_groups
LBB0_12:
	cmpq	$0, -48(%rbp)
	movl	$0, %r13d
	je	LBB0_19
## %bb.13:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r12
	cmpq	-48(%rbp), %r12
	jae	LBB0_19
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax
	movl	(%rax,%r12,4), %ebx
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdx
	movl	%ebx, %edi
	callq	_tls1_in_list
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_SSL_SECOP_CURVE_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_tls_group_allowed
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%r13d, %r14d
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	incl	%r13d
	jmp	LBB0_18
LBB0_19:
	cmpl	$-1, %r14d
	movl	$0, %ebx
	cmovel	%r13d, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.10:
	movq	_TLSEXT_curve_P_384@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,8,3 ## @TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
	.comm	_TLSEXT_curve_P_256,4,2         ## @TLSEXT_curve_P_256
	.comm	_TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,8,3 ## @TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
	.comm	_TLSEXT_curve_P_384,4,2         ## @TLSEXT_curve_P_384
	.comm	_SSL_OP_CIPHER_SERVER_PREFERENCE,4,2 ## @SSL_OP_CIPHER_SERVER_PREFERENCE
	.comm	_SSL_SECOP_CURVE_SHARED,4,2     ## @SSL_SECOP_CURVE_SHARED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls1_shared_group              ; -- Begin function tls1_shared_group
	.p2align	2
_tls1_shared_group:                     ; @tls1_shared_group
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	cmn	w1, #2
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_tls1_suiteb
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.4:
Lloh3:
	adrp	x8, _TLSEXT_curve_P_256@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TLSEXT_curve_P_256@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	b	LBB0_19
LBB0_5:
	mov	w21, #0
	b	LBB0_19
LBB0_6:
	mov	w20, #0
LBB0_7:
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x9, _SSL_OP_CIPHER_SERVER_PREFERENCE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SSL_OP_CIPHER_SERVER_PREFERENCE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_15
; %bb.8:
	bl	_tls1_get_supported_groups
	add	x1, sp, #16
	mov	x2, sp
	mov	x0, x19
	bl	_tls1_get_peer_groups
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_16
LBB0_9:
	mov	w22, #0
	mov	x23, #0
Lloh9:
	adrp	x24, _SSL_SECOP_CURVE_SHARED@GOTPAGE
Lloh10:
	ldr	x24, [x24, _SSL_SECOP_CURVE_SHARED@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w22, w22, #1
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	ldr	x8, [sp, #8]
	cmp	x23, x8
	b.hs	LBB0_17
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	x1, x8, [sp, #16]
	ldr	w21, [x8, x23, lsl #2]
	ldr	x2, [sp]
	mov	x0, x21
	bl	_tls1_in_list
	cbz	w0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x21
	bl	_tls_group_allowed
	cbz	w0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w20, w22
	b.ne	LBB0_10
	b	LBB0_19
LBB0_15:
	bl	_tls1_get_peer_groups
	add	x1, sp, #16
	mov	x2, sp
	mov	x0, x19
	bl	_tls1_get_supported_groups
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_9
LBB0_16:
	mov	w22, #0
LBB0_17:
	cmn	w20, #1
	csel	w21, w22, wzr, eq
	b	LBB0_19
LBB0_18:
Lloh11:
	adrp	x9, _TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _TLSEXT_curve_P_384@GOTPAGE
Lloh15:
	ldr	x10, [x10, _TLSEXT_curve_P_384@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w21, w10, wzr, eq
LBB0_19:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,8,3 ; @TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
	.comm	_TLSEXT_curve_P_256,4,2         ; @TLSEXT_curve_P_256
	.comm	_TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,8,3 ; @TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
	.comm	_TLSEXT_curve_P_384,4,2         ; @TLSEXT_curve_P_384
	.comm	_SSL_OP_CIPHER_SERVER_PREFERENCE,4,2 ; @SSL_OP_CIPHER_SERVER_PREFERENCE
	.comm	_SSL_SECOP_CURVE_SHARED,4,2     ; @SSL_SECOP_CURVE_SHARED
.subsections_via_symbols
