	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_generate_pkey_group        ## -- Begin function ssl_generate_pkey_group
	.p2align	4, 0x90
_ssl_generate_pkey_group:               ## @ssl_generate_pkey_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_tls1_group_id_lookup
	movq	$0, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_TLS_GROUP_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r12), %ebx
	movq	_TLS_GROUP_FFDHE@GOTPCREL(%rip), %r14
	movq	_TLS_GROUP_CURVE_CUSTOM@GOTPCREL(%rip), %r13
	addq	$4, %r12
	movq	%r12, %rax
	cmpl	(%r13), %ebx
	je	LBB0_3
## %bb.2:
	movq	_EVP_PKEY_EC@GOTPCREL(%rip), %rax
LBB0_3:
	cmpl	(%r14), %ebx
	jne	LBB0_5
## %bb.4:
	movq	_EVP_PKEY_DH@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_EVP_PKEY_CTX_new_id
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_EVP_PKEY_keygen_init
	testq	%rax, %rax
	jle	LBB0_20
## %bb.7:
	cmpl	(%r14), %ebx
	jne	LBB0_16
## %bb.8:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	movq	%rax, %rbx
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_22
## %bb.9:
	movl	(%r12), %edi
	callq	_DH_new_by_nid
	testq	%rax, %rax
	je	LBB0_21
## %bb.10:
	movq	%rax, %r13
	movq	_EVP_PKEY_DH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_EVP_PKEY_assign
	testl	%eax, %eax
	je	LBB0_22
## %bb.11:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_EVP_PKEY_CTX_set_dh_nid
	testq	%rax, %rax
	jg	LBB0_18
## %bb.12:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_EVP_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_SSLfatal
	jmp	LBB0_23
LBB0_13:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	jmp	LBB0_15
LBB0_14:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_15:
	callq	_SSLfatal
	xorl	%r15d, %r15d
	jmp	LBB0_25
LBB0_16:
	cmpl	(%r13), %ebx
	je	LBB0_18
## %bb.17:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_EVP_PKEY_CTX_set_ec_paramgen_curve_nid
	testq	%rax, %rax
	jle	LBB0_20
LBB0_18:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_EVP_PKEY_keygen
	testq	%rax, %rax
	jg	LBB0_25
## %bb.19:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_EVP_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_SSLfatal
	movq	-48(%rbp), %rdi
	jmp	LBB0_24
LBB0_20:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_EVP_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_SSLfatal
	jmp	LBB0_25
LBB0_21:
	xorl	%r13d, %r13d
LBB0_22:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_EVP_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_SSLfatal
	movq	%r13, %rdi
	callq	_DH_free
LBB0_23:
	movq	%rbx, %rdi
LBB0_24:
	callq	_EVP_PKEY_free
	movq	$0, -48(%rbp)
LBB0_25:
	movq	%r15, %rdi
	callq	_EVP_PKEY_CTX_free
	movq	-48(%rbp), %rax
	addq	$24, %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_SSL_GENERATE_PKEY_GROUP,4,2 ## @SSL_F_SSL_GENERATE_PKEY_GROUP
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_TLS_GROUP_TYPE,4,2             ## @TLS_GROUP_TYPE
	.comm	_TLS_GROUP_FFDHE,4,2            ## @TLS_GROUP_FFDHE
	.comm	_EVP_PKEY_DH,4,2                ## @EVP_PKEY_DH
	.comm	_TLS_GROUP_CURVE_CUSTOM,4,2     ## @TLS_GROUP_CURVE_CUSTOM
	.comm	_EVP_PKEY_EC,4,2                ## @EVP_PKEY_EC
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_EVP_LIB,4,2              ## @ERR_R_EVP_LIB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_generate_pkey_group        ; -- Begin function ssl_generate_pkey_group
	.p2align	2
_ssl_generate_pkey_group:               ; @ssl_generate_pkey_group
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	mov	x0, x1
	bl	_tls1_group_id_lookup
	str	xzr, [sp, #8]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	ldr	w8, [x21], #4
Lloh0:
	adrp	x9, _TLS_GROUP_TYPE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TLS_GROUP_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w22, w9, w8
Lloh3:
	adrp	x25, _TLS_GROUP_FFDHE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _TLS_GROUP_FFDHE@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh5:
	adrp	x23, _TLS_GROUP_CURVE_CUSTOM@GOTPAGE
Lloh6:
	ldr	x23, [x23, _TLS_GROUP_CURVE_CUSTOM@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh7:
	adrp	x10, _EVP_PKEY_EC@GOTPAGE
Lloh8:
	ldr	x10, [x10, _EVP_PKEY_EC@GOTPAGEOFF]
	cmp	w22, w9
	csel	x9, x21, x10, eq
Lloh9:
	adrp	x24, _EVP_PKEY_DH@GOTPAGE
Lloh10:
	ldr	x24, [x24, _EVP_PKEY_DH@GOTPAGEOFF]
	cmp	w22, w8
	csel	x8, x24, x9, eq
	ldr	w0, [x8]
	mov	x1, #0
	bl	_EVP_PKEY_CTX_new_id
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.2:
	mov	x0, x19
	bl	_EVP_PKEY_keygen_init
	cmp	x0, #0
	b.le	LBB0_15
; %bb.3:
	ldr	w8, [x25]
	cmp	w22, w8
	b.ne	LBB0_11
; %bb.4:
	bl	_EVP_PKEY_new
	mov	x22, x0
	str	x0, [sp, #8]
	cbz	x0, LBB0_17
; %bb.5:
	ldr	w0, [x21]
	bl	_DH_new_by_nid
	mov	x23, x0
	cbz	x0, LBB0_18
; %bb.6:
	ldr	w1, [x24]
	mov	x0, x22
	mov	x2, x23
	bl	_EVP_PKEY_assign
	cbz	w0, LBB0_18
; %bb.7:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_EVP_PKEY_CTX_set_dh_nid
	cmp	x0, #0
	b.gt	LBB0_13
; %bb.8:
Lloh11:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _ERR_R_EVP_LIB@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_R_EVP_LIB@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_SSLfatal
	b	LBB0_19
LBB0_9:
Lloh20:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_SSLfatal
	mov	x19, #0
	b	LBB0_21
LBB0_10:
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_SSL_GENERATE_PKEY_GROUP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
	ldr	w8, [x23]
	cmp	w22, w8
	b.eq	LBB0_13
; %bb.12:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_EVP_PKEY_CTX_set_ec_paramgen_curve_nid
	cmp	x0, #0
	b.le	LBB0_15
LBB0_13:
	add	x1, sp, #8
	mov	x0, x19
	bl	_EVP_PKEY_keygen
	cmp	x0, #0
	b.gt	LBB0_21
; %bb.14:
Lloh37:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
Lloh43:
	adrp	x8, _ERR_R_EVP_LIB@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ERR_R_EVP_LIB@GOTPAGEOFF]
Lloh45:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_SSLfatal
	ldr	x0, [sp, #8]
	b	LBB0_20
LBB0_15:
Lloh46:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x8, _SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
Lloh52:
	adrp	x8, _ERR_R_EVP_LIB@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ERR_R_EVP_LIB@GOTPAGEOFF]
LBB0_16:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_SSLfatal
	b	LBB0_21
LBB0_17:
	mov	x23, #0
LBB0_18:
Lloh54:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
Lloh57:
	adrp	x8, _SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPAGE
Lloh58:
	ldr	x8, [x8, _SSL_F_SSL_GENERATE_PKEY_GROUP@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
Lloh60:
	adrp	x8, _ERR_R_EVP_LIB@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ERR_R_EVP_LIB@GOTPAGEOFF]
Lloh62:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_SSLfatal
	mov	x0, x23
	bl	_DH_free
LBB0_19:
	mov	x0, x22
LBB0_20:
	bl	_EVP_PKEY_free
	str	xzr, [sp, #8]
LBB0_21:
	mov	x0, x19
	bl	_EVP_PKEY_CTX_free
	ldr	x0, [sp, #8]
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL_GENERATE_PKEY_GROUP,4,2 ; @SSL_F_SSL_GENERATE_PKEY_GROUP
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_TLS_GROUP_TYPE,4,2             ; @TLS_GROUP_TYPE
	.comm	_TLS_GROUP_FFDHE,4,2            ; @TLS_GROUP_FFDHE
	.comm	_EVP_PKEY_DH,4,2                ; @EVP_PKEY_DH
	.comm	_TLS_GROUP_CURVE_CUSTOM,4,2     ; @TLS_GROUP_CURVE_CUSTOM
	.comm	_EVP_PKEY_EC,4,2                ; @EVP_PKEY_EC
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_EVP_LIB,4,2              ; @ERR_R_EVP_LIB
.subsections_via_symbols
