	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_ctos_supported_groups ## -- Begin function tls_construct_ctos_supported_groups
	.p2align	4, 0x90
_tls_construct_ctos_supported_groups:   ## @tls_construct_ctos_supported_groups
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	leaq	-68(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_ssl_get_min_max_version
	testl	%eax, %eax
	jne	LBB0_18
## %bb.1:
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	callq	_use_ecc
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	-44(%rbp), %eax
	movq	_TLS1_3_VERSION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_4
## %bb.3:
	movq	_EXT_RETURN_NOT_SENT@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_4:
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_tls1_get_supported_groups
	movq	_TLSEXT_TYPE_supported_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_WPACKET_put_bytes_u16
	testl	%eax, %eax
	je	LBB0_17
## %bb.5:
	movq	%r14, %rdi
	callq	_WPACKET_start_sub_packet_u16
	testl	%eax, %eax
	je	LBB0_17
## %bb.6:
	movq	%r14, %rdi
	callq	_WPACKET_start_sub_packet_u16
	testl	%eax, %eax
	je	LBB0_17
## %bb.7:
	movq	_WPACKET_FLAGS_NON_ZERO_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_WPACKET_set_flags
	testl	%eax, %eax
	je	LBB0_17
## %bb.8:
	cmpq	$0, -56(%rbp)
	je	LBB0_14
## %bb.9:
	xorl	%ebx, %ebx
	movq	_SSL_SECOP_CURVE_SUPPORTED@GOTPCREL(%rip), %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	cmpq	-56(%rbp), %rbx
	jae	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax
	movl	(%rax,%rbx,4), %r12d
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_tls_valid_group
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_tls_group_allowed
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_WPACKET_put_bytes_u16
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_17
LBB0_14:
	movq	%r14, %rdi
	callq	_WPACKET_close
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movq	%r14, %rdi
	callq	_WPACKET_close
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movq	_EXT_RETURN_SENT@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_GROUPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %ecx
	callq	_SSLfatal
	movq	_EXT_RETURN_FAIL@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_GROUPS,4,2 ## @SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_GROUPS
	.comm	_EXT_RETURN_FAIL,4,2            ## @EXT_RETURN_FAIL
	.comm	_TLS1_3_VERSION,4,2             ## @TLS1_3_VERSION
	.comm	_EXT_RETURN_NOT_SENT,4,2        ## @EXT_RETURN_NOT_SENT
	.comm	_TLSEXT_TYPE_supported_groups,4,2 ## @TLSEXT_TYPE_supported_groups
	.comm	_WPACKET_FLAGS_NON_ZERO_LENGTH,4,2 ## @WPACKET_FLAGS_NON_ZERO_LENGTH
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL_SECOP_CURVE_SUPPORTED,4,2  ## @SSL_SECOP_CURVE_SUPPORTED
	.comm	_EXT_RETURN_SENT,4,2            ## @EXT_RETURN_SENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_ctos_supported_groups ; -- Begin function tls_construct_ctos_supported_groups
	.p2align	2
_tls_construct_ctos_supported_groups:   ; @tls_construct_ctos_supported_groups
	.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, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x3, #0
	bl	_ssl_get_min_max_version
	mov	x3, x0
	cbnz	w0, LBB0_18
; %bb.1:
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_use_ecc
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #8]
Lloh0:
	adrp	x9, _TLS1_3_VERSION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TLS1_3_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _EXT_RETURN_NOT_SENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXT_RETURN_NOT_SENT@GOTPAGEOFF]
	b	LBB0_19
LBB0_4:
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x0, x19
	bl	_tls1_get_supported_groups
Lloh5:
	adrp	x8, _TLSEXT_TYPE_supported_groups@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TLSEXT_TYPE_supported_groups@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_WPACKET_put_bytes_u16
	cbz	w0, LBB0_17
; %bb.5:
	mov	x0, x20
	bl	_WPACKET_start_sub_packet_u16
	cbz	w0, LBB0_17
; %bb.6:
	mov	x0, x20
	bl	_WPACKET_start_sub_packet_u16
	cbz	w0, LBB0_17
; %bb.7:
Lloh8:
	adrp	x8, _WPACKET_FLAGS_NON_ZERO_LENGTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WPACKET_FLAGS_NON_ZERO_LENGTH@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_WPACKET_set_flags
	cbz	w0, LBB0_17
; %bb.8:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_14
; %bb.9:
	mov	x22, #0
Lloh11:
	adrp	x23, _SSL_SECOP_CURVE_SUPPORTED@GOTPAGE
Lloh12:
	ldr	x23, [x23, _SSL_SECOP_CURVE_SUPPORTED@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #1
	ldr	x8, [sp, #16]
	cmp	x22, x8
	b.hs	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	ldr	w21, [x8, x22, lsl #2]
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_tls_valid_group
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_tls_group_allowed
	cbz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_WPACKET_put_bytes_u16
	cbnz	w0, LBB0_10
	b	LBB0_17
LBB0_14:
	mov	x0, x20
	bl	_WPACKET_close
	cbz	w0, LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_WPACKET_close
	cbz	w0, LBB0_17
; %bb.16:
Lloh13:
	adrp	x8, _EXT_RETURN_SENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EXT_RETURN_SENT@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh15:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
LBB0_18:
Lloh18:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_GROUPS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_GROUPS@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_SSLfatal
Lloh24:
	adrp	x8, _EXT_RETURN_FAIL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EXT_RETURN_FAIL@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_GROUPS,4,2 ; @SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_GROUPS
	.comm	_EXT_RETURN_FAIL,4,2            ; @EXT_RETURN_FAIL
	.comm	_TLS1_3_VERSION,4,2             ; @TLS1_3_VERSION
	.comm	_EXT_RETURN_NOT_SENT,4,2        ; @EXT_RETURN_NOT_SENT
	.comm	_TLSEXT_TYPE_supported_groups,4,2 ; @TLSEXT_TYPE_supported_groups
	.comm	_WPACKET_FLAGS_NON_ZERO_LENGTH,4,2 ; @WPACKET_FLAGS_NON_ZERO_LENGTH
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL_SECOP_CURVE_SUPPORTED,4,2  ; @SSL_SECOP_CURVE_SUPPORTED
	.comm	_EXT_RETURN_SENT,4,2            ; @EXT_RETURN_SENT
.subsections_via_symbols
