	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsa_builtin_paramgen2          ## -- Begin function dsa_builtin_paramgen2
	.p2align	4, 0x90
_dsa_builtin_paramgen2:                 ## @dsa_builtin_paramgen2
	.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	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -176(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_new
	movl	$-1, -108(%rbp)                 ## 4-byte Folded Spill
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpq	%r14, %r12
	jbe	LBB0_6
## %bb.2:
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	testq	%rbx, %rbx
	jne	LBB0_15
## %bb.3:
	movq	-152(%rbp), %rax                ## 8-byte Reload
	cmpq	$224, %rax
	je	LBB0_12
## %bb.4:
	cmpq	$160, %rax
	jne	LBB0_13
## %bb.5:
	xorl	%eax, %eax
	callq	_EVP_sha1
	jmp	LBB0_14
LBB0_6:
	movq	_DSA_F_DSA_BUILTIN_PARAMGEN2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DSA_R_INVALID_PARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DSAerr
LBB0_7:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
LBB0_8:
	movq	%r13, %rdi
	callq	_OPENSSL_free
	cmpq	24(%rbp), %rbx
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_OPENSSL_free
LBB0_10:
	movq	%r15, %rdi
	callq	_BN_CTX_end
	movq	%r15, %rdi
	callq	_BN_CTX_free
	movq	%r12, %rdi
	callq	_BN_MONT_CTX_free
	movq	%r14, %rdi
	callq	_EVP_MD_CTX_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_123
## %bb.11:
	movl	-108(%rbp), %eax                ## 4-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%eax, %eax
	callq	_EVP_sha224
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
	callq	_EVP_sha256
LBB0_14:
	movq	%rax, %rbx
LBB0_15:
	movq	%rbx, %rdi
	callq	_EVP_MD_size
                                        ## kill: def $eax killed $eax def $rax
	cmpq	$0, 16(%r15)
	movq	%rbx, -192(%rbp)                ## 8-byte Spill
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	je	LBB0_19
## %bb.16:
	cmpl	$0, 16(%rbp)
	jns	LBB0_19
## %bb.17:
	cmpq	$0, 8(%r15)
	je	LBB0_19
## %bb.18:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_19:
	movq	%r15, %rbx
	testq	%r13, %r13
	cltq
	cmoveq	%rax, %r13
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_OPENSSL_malloc
	movq	%rax, %r13
	movq	24(%rbp), %rax
	movq	%rax, %rcx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_OPENSSL_malloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_21:
	xorl	%r15d, %r15d
	testq	%r13, %r13
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_32
## %bb.22:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_32
## %bb.23:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_25
## %bb.24:
	movq	%r13, %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_memcpy
LBB0_25:
	xorl	%eax, %eax
	callq	_BN_CTX_new
	testq	%rax, %rax
	je	LBB0_33
## %bb.26:
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_BN_MONT_CTX_new
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_32
## %bb.27:
	movq	%r15, %rdi
	callq	_BN_CTX_start
	movq	%r15, %rdi
	callq	_BN_CTX_get
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BN_CTX_get
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BN_CTX_get
	movq	%rax, -296(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BN_CTX_get
	movq	%rax, -288(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BN_CTX_get
	movq	%rax, -280(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_82
## %bb.28:
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	movq	%rbx, -272(%rbp)                ## 8-byte Spill
	je	LBB0_34
## %bb.29:
	movq	8(%rbx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_34
## %bb.30:
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	$0, -136(%rbp)                  ## 4-byte Folded Spill
	cmpl	$0, 16(%rbp)
	js	LBB0_83
## %bb.31:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_memcpy
	jmp	LBB0_84
LBB0_32:
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_33:
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_34:
	movq	%r15, %rdi
	callq	_BN_CTX_get
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_82
## %bb.35:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_BN_value_one
	leaq	-1(%r12), %rdx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%rax, %rsi
	movq	%rdx, -208(%rbp)                ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_BN_lshift
	testl	%eax, %eax
	je	LBB0_82
## %bb.36:
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	-152(%rbp), %rax                ## 8-byte Reload
	shrq	$3, %rax
	xorl	%ecx, %ecx
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	setne	%cl
	movl	%ecx, -196(%rbp)                ## 4-byte Spill
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	movslq	%ecx, %rdx
	movq	-176(%rbp), %rsi                ## 8-byte Reload
	addq	%rsi, %rdx
	movslq	%eax, %rdi
	movq	%rdx, -240(%rbp)                ## 8-byte Spill
	subq	%rdi, %rdx
	subl	%ecx, %edi
	movq	%rdi, -232(%rbp)                ## 8-byte Spill
	cmovgeq	%rsi, %rdx
	movq	%rdx, -264(%rbp)                ## 8-byte Spill
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	decl	%eax
	cltq
	movq	%rax, -256(%rbp)                ## 8-byte Spill
	leal	(,%rcx,8), %ecx
	shll	$2, %r12d
	cmpl	$2, %r12d
	movl	$1, %eax
	cmovll	%eax, %r12d
	movq	%r12, -224(%rbp)                ## 8-byte Spill
	movl	%ecx, -156(%rbp)                ## 4-byte Spill
	movslq	%ecx, %rax
	movq	%rax, -248(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	movl	%eax, -200(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	48(%rbp), %rdi
LBB0_37:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_56 Depth 2
                                        ##       Child Loop BB0_60 Depth 3
                                        ##         Child Loop BB0_61 Depth 4
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_BN_GENCB_call
	testl	%eax, %eax
	je	LBB0_82
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_RAND_bytes
	testq	%rax, %rax
	jle	LBB0_82
LBB0_40:                                ##   in Loop: Header=BB0_37 Depth=1
	movl	%ebx, -132(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-176(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	movq	-192(%rbp), %r8                 ## 8-byte Reload
	xorl	%r9d, %r9d
	callq	_EVP_Digest
	testl	%eax, %eax
	je	LBB0_82
## %bb.41:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	cmpl	%esi, -168(%rbp)                ## 4-byte Folded Reload
	jge	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	-240(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
	movq	-232(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movq	-152(%rbp), %rsi                ## 8-byte Reload
LBB0_43:                                ##   in Loop: Header=BB0_37 Depth=1
	movq	-264(%rbp), %rdi                ## 8-byte Reload
	orb	$-128, (%rdi)
	movq	-256(%rbp), %rax                ## 8-byte Reload
	orb	$1, (%rdi,%rax)
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_BN_bin2bn
	testl	%eax, %eax
	je	LBB0_82
## %bb.44:                              ##   in Loop: Header=BB0_37 Depth=1
	incl	-132(%rbp)                      ## 4-byte Folded Spill
	movq	_DSS_prime_checks@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	-196(%rbp), %ecx                ## 4-byte Reload
	movq	48(%rbp), %r8
	callq	_BN_is_prime_fasttest_ex
	testl	%eax, %eax
	jle	LBB0_51
## %bb.45:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	24(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_47
## %bb.46:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	%r13, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_memcpy
LBB0_47:                                ##   in Loop: Header=BB0_37 Depth=1
	movq	48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_BN_GENCB_call
	testl	%eax, %eax
	je	LBB0_82
## %bb.48:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	%rbx, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_BN_GENCB_call
	testl	%eax, %eax
	je	LBB0_82
## %bb.49:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	-208(%rbp), %rax                ## 8-byte Reload
	movq	%rax, %rcx
	movq	-248(%rbp), %rsi                ## 8-byte Reload
	orq	%rsi, %rcx
	shrq	$32, %rcx
	je	LBB0_54
## %bb.50:                              ##   in Loop: Header=BB0_37 Depth=1
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_55
LBB0_51:                                ##   in Loop: Header=BB0_37 Depth=1
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_53
## %bb.52:                              ##   in Loop: Header=BB0_37 Depth=1
	testl	%eax, %eax
	je	LBB0_117
LBB0_53:                                ##   in Loop: Header=BB0_37 Depth=1
	testl	%eax, %eax
	movq	48(%rbp), %rdi
	movl	-132(%rbp), %ebx                ## 4-byte Reload
	je	LBB0_37
	jmp	LBB0_82
LBB0_54:                                ##   in Loop: Header=BB0_37 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	-156(%rbp)                      ## 4-byte Folded Reload
                                        ## kill: def $eax killed $eax def $rax
LBB0_55:                                ##   in Loop: Header=BB0_37 Depth=1
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r15, -144(%rbp)                ## 8-byte Spill
LBB0_56:                                ##   Parent Loop BB0_37 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_60 Depth 3
                                        ##         Child Loop BB0_61 Depth 4
	testl	%ebx, %ebx
	je	LBB0_58
## %bb.57:                              ##   in Loop: Header=BB0_56 Depth=2
	movq	48(%rbp), %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_BN_GENCB_call
	testl	%eax, %eax
	je	LBB0_82
LBB0_58:                                ##   in Loop: Header=BB0_56 Depth=2
	movl	%ebx, -136(%rbp)                ## 4-byte Spill
	movq	-296(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	callq	_BN_zero
	cmpl	$0, -184(%rbp)                  ## 4-byte Folded Reload
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	js	LBB0_68
## %bb.59:                              ##   in Loop: Header=BB0_56 Depth=2
	xorl	%r15d, %r15d
LBB0_60:                                ##   Parent Loop BB0_37 Depth=1
                                        ##     Parent Loop BB0_56 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_61 Depth 4
	movl	-200(%rbp), %eax                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_61:                                ##   Parent Loop BB0_37 Depth=1
                                        ##     Parent Loop BB0_56 Depth=2
                                        ##       Parent Loop BB0_60 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	testl	%eax, %eax
	js	LBB0_63
## %bb.62:                              ##   in Loop: Header=BB0_61 Depth=4
	movl	%eax, %ecx
	decl	%eax
	incb	(%r13,%rcx)
	je	LBB0_61
LBB0_63:                                ##   in Loop: Header=BB0_60 Depth=3
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	movq	-192(%rbp), %r8                 ## 8-byte Reload
	xorl	%r9d, %r9d
	callq	_EVP_Digest
	testl	%eax, %eax
	je	LBB0_81
## %bb.64:                              ##   in Loop: Header=BB0_60 Depth=3
	movq	%r12, %rdi
	movq	-168(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rbx, %rdx
	callq	_BN_bin2bn
	testl	%eax, %eax
	je	LBB0_81
## %bb.65:                              ##   in Loop: Header=BB0_60 Depth=3
	movl	%r15d, %edx
	imull	-156(%rbp), %edx                ## 4-byte Folded Reload
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_BN_lshift
	testl	%eax, %eax
	je	LBB0_81
## %bb.66:                              ##   in Loop: Header=BB0_60 Depth=3
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_BN_add
	testl	%eax, %eax
	je	LBB0_81
## %bb.67:                              ##   in Loop: Header=BB0_60 Depth=3
	leal	1(%r15), %eax
	cmpl	-184(%rbp), %r15d               ## 4-byte Folded Reload
	movl	%eax, %r15d
	jne	LBB0_60
LBB0_68:                                ##   in Loop: Header=BB0_56 Depth=2
	movq	%r14, %rdi
	movq	-208(%rbp), %rsi                ## 8-byte Reload
	callq	_BN_mask_bits
	testl	%eax, %eax
	je	LBB0_81
## %bb.69:                              ##   in Loop: Header=BB0_56 Depth=2
	movq	-288(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_BN_copy
	testl	%eax, %eax
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	-144(%rbp), %r15                ## 8-byte Reload
	je	LBB0_82
## %bb.70:                              ##   in Loop: Header=BB0_56 Depth=2
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	callq	_BN_add
	testl	%eax, %eax
	je	LBB0_82
## %bb.71:                              ##   in Loop: Header=BB0_56 Depth=2
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	callq	_BN_lshift1
	testl	%eax, %eax
	je	LBB0_82
## %bb.72:                              ##   in Loop: Header=BB0_56 Depth=2
	movq	-280(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movq	%r15, %rcx
	callq	_BN_mod
	testl	%eax, %eax
	je	LBB0_82
## %bb.73:                              ##   in Loop: Header=BB0_56 Depth=2
	xorl	%eax, %eax
	callq	_BN_value_one
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_BN_sub
	testl	%eax, %eax
	je	LBB0_82
## %bb.74:                              ##   in Loop: Header=BB0_56 Depth=2
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	callq	_BN_sub
	testl	%eax, %eax
	je	LBB0_82
## %bb.75:                              ##   in Loop: Header=BB0_56 Depth=2
	movq	%rbx, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_BN_cmp
	testq	%rax, %rax
	movl	-136(%rbp), %ebx                ## 4-byte Reload
	movq	-176(%rbp), %r12                ## 8-byte Reload
	js	LBB0_78
## %bb.76:                              ##   in Loop: Header=BB0_56 Depth=2
	movq	_DSS_prime_checks@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	$1, %ecx
	movq	48(%rbp), %r8
	callq	_BN_is_prime_fasttest_ex
	testl	%eax, %eax
	jg	LBB0_120
## %bb.77:                              ##   in Loop: Header=BB0_56 Depth=2
	jne	LBB0_82
LBB0_78:                                ##   in Loop: Header=BB0_56 Depth=2
	incl	%ebx
	cmpl	-224(%rbp), %ebx                ## 4-byte Folded Reload
	movq	48(%rbp), %rdi
	jne	LBB0_56
## %bb.79:                              ##   in Loop: Header=BB0_37 Depth=1
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	movl	-132(%rbp), %ebx                ## 4-byte Reload
	je	LBB0_37
## %bb.80:
	movq	_DSA_F_DSA_BUILTIN_PARAMGEN2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DSA_R_INVALID_PARAMETERS@GOTPCREL(%rip), %rax
	jmp	LBB0_118
LBB0_81:
	movq	-144(%rbp), %r15                ## 8-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
LBB0_82:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_83:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_84:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_85:
	xorl	%eax, %eax
	callq	_BN_value_one
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_BN_sub
	testl	%eax, %eax
	je	LBB0_8
## %bb.86:
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	%r15, %r8
	callq	_BN_div
	testl	%eax, %eax
	je	LBB0_8
## %bb.87:
	movl	$1, -72(%rbp)                   ## 4-byte Folded Spill
	cmpl	$0, 16(%rbp)
	jns	LBB0_89
## %bb.88:
	movl	$2, -72(%rbp)                   ## 4-byte Folded Spill
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	$2, %esi
	callq	_BN_set_word
	testl	%eax, %eax
	je	LBB0_8
LBB0_89:
	movq	%r12, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_BN_MONT_CTX_set
	testl	%eax, %eax
	je	LBB0_8
## %bb.90:
	movq	-176(%rbp), %rbx                ## 8-byte Reload
	movl	16(%rbp), %eax
	movq	-216(%rbp), %r12                ## 8-byte Reload
LBB0_91:                                ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	js	LBB0_98
## %bb.92:                              ##   in Loop: Header=BB0_91 Depth=1
	movb	%al, (%rbx)
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movb	%ah, 1(%rbx)
	movb	%al, 2(%rbx)
	movq	%r14, %rdi
	movq	-192(%rbp), %rsi                ## 8-byte Reload
	xorl	%edx, %edx
	callq	_EVP_DigestInit_ex
	testl	%eax, %eax
	je	LBB0_82
## %bb.93:                              ##   in Loop: Header=BB0_91 Depth=1
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_82
## %bb.94:                              ##   in Loop: Header=BB0_91 Depth=1
	movq	%r14, %rdi
	leaq	_dsa_builtin_paramgen2.ggen(%rip), %rsi
	movl	$4, %edx
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_82
## %bb.95:                              ##   in Loop: Header=BB0_91 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$3, %edx
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_82
## %bb.96:                              ##   in Loop: Header=BB0_91 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_EVP_DigestFinal_ex
	testl	%eax, %eax
	je	LBB0_82
## %bb.97:                              ##   in Loop: Header=BB0_91 Depth=1
	movq	%rbx, %rdi
	movq	-168(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	callq	_BN_bin2bn
	testl	%eax, %eax
	je	LBB0_82
LBB0_98:                                ##   in Loop: Header=BB0_91 Depth=1
	movq	%r12, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, %r8
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_BN_mod_exp_mont
	testl	%eax, %eax
	je	LBB0_82
## %bb.99:                              ##   in Loop: Header=BB0_91 Depth=1
	movq	%r12, %rdi
	callq	_BN_is_one
	testl	%eax, %eax
	je	LBB0_104
## %bb.100:                             ##   in Loop: Header=BB0_91 Depth=1
	movl	16(%rbp), %eax
	testl	%eax, %eax
	jns	LBB0_102
## %bb.101:                             ##   in Loop: Header=BB0_91 Depth=1
	xorl	%eax, %eax
	callq	_BN_value_one
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%rdi, %rsi
	movq	%rax, %rdx
	callq	_BN_add
	testl	%eax, %eax
	movl	16(%rbp), %eax
	je	LBB0_82
LBB0_102:                               ##   in Loop: Header=BB0_91 Depth=1
	incl	-72(%rbp)                       ## 4-byte Folded Spill
	testl	%eax, %eax
	js	LBB0_91
## %bb.103:                             ##   in Loop: Header=BB0_91 Depth=1
	cmpl	$65535, -72(%rbp)               ## 4-byte Folded Reload
                                        ## imm = 0xFFFF
	jbe	LBB0_91
	jmp	LBB0_82
LBB0_104:
	movq	48(%rbp), %rdi
	movl	$3, %esi
	movl	$1, %edx
	callq	_BN_GENCB_call
	testl	%eax, %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_116
## %bb.105:
	movq	-272(%rbp), %rbx                ## 8-byte Reload
	movq	16(%rbx), %rdi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rdi, %rax
	je	LBB0_107
## %bb.106:
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	callq	_BN_free
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_dup
	movq	%rax, 16(%rbx)
LBB0_107:
	movq	8(%rbx), %rdi
	movq	-120(%rbp), %rax                ## 8-byte Reload
	cmpq	%rdi, %rax
	je	LBB0_109
## %bb.108:
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	callq	_BN_free
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_BN_dup
	movq	%rax, 8(%rbx)
LBB0_109:
	movq	(%rbx), %rdi
	callq	_BN_free
	movq	-216(%rbp), %rdi                ## 8-byte Reload
	callq	_BN_dup
	movq	%rax, (%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_116
## %bb.110:
	cmpq	$0, 8(%rbx)
	je	LBB0_116
## %bb.111:
	testq	%rax, %rax
	je	LBB0_116
## %bb.112:
	movq	32(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_114
## %bb.113:
	movl	-136(%rbp), %eax                ## 4-byte Reload
	movl	%eax, (%rdx)
LBB0_114:
	movl	$1, -108(%rbp)                  ## 4-byte Folded Spill
	movq	40(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_82
## %bb.115:
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, (%rdx)
	jmp	LBB0_82
LBB0_116:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_117:
	movq	_DSA_F_DSA_BUILTIN_PARAMGEN2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DSA_R_Q_NOT_PRIME@GOTPCREL(%rip), %rax
LBB0_118:
	movl	(%rax), %esi
	callq	_DSAerr
	movl	$0, -108(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_82
LBB0_120:
	movq	48(%rbp), %rdi
	movl	$2, %esi
	movl	$1, %edx
	callq	_BN_GENCB_call
	testl	%eax, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_85
	jmp	LBB0_8
LBB0_123:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ## @EVP_MAX_MD_SIZE
	.comm	_DSA_F_DSA_BUILTIN_PARAMGEN2,4,2 ## @DSA_F_DSA_BUILTIN_PARAMGEN2
	.comm	_DSA_R_INVALID_PARAMETERS,4,2   ## @DSA_R_INVALID_PARAMETERS
	.comm	_DSS_prime_checks,4,2           ## @DSS_prime_checks
	.comm	_DSA_R_Q_NOT_PRIME,4,2          ## @DSA_R_Q_NOT_PRIME
	.section	__TEXT,__const
_dsa_builtin_paramgen2.ggen:            ## @dsa_builtin_paramgen2.ggen
	.ascii	"ggen"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsa_builtin_paramgen2          ; -- Begin function dsa_builtin_paramgen2
	.p2align	2
_dsa_builtin_paramgen2:                 ; @dsa_builtin_paramgen2
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #224
	mov	x19, x7
	mov	x20, x6
	mov	x27, x5
	mov	x22, x4
	mov	x26, x3
	mov	x25, x2
	mov	x24, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x28, x9, x8
	mov	sp, x28
	bl	_EVP_MD_CTX_new
	stp	x0, x19, [x29, #-112]           ; 16-byte Folded Spill
	cbz	x0, LBB0_7
; %bb.1:
	cmp	x24, x25
	b.ls	LBB0_6
; %bb.2:
	cbnz	x26, LBB0_17
; %bb.3:
	cmp	x25, #224
	b.eq	LBB0_14
; %bb.4:
	cmp	x25, #160
	b.ne	LBB0_15
; %bb.5:
	bl	_EVP_sha1
	b	LBB0_16
LBB0_6:
Lloh8:
	adrp	x8, _DSA_F_DSA_BUILTIN_PARAMGEN2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DSA_F_DSA_BUILTIN_PARAMGEN2@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _DSA_R_INVALID_PARAMETERS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DSA_R_INVALID_PARAMETERS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_DSAerr
LBB0_7:
	mov	x23, #0
	mov	x24, #0
	mov	x22, #0
	mov	x20, #0
LBB0_8:
	mov	w19, #-1
LBB0_9:
	ldur	x21, [x29, #-112]               ; 8-byte Folded Reload
LBB0_10:
	mov	x0, x22
	bl	_OPENSSL_free
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	cmp	x20, x8
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_OPENSSL_free
LBB0_12:
	mov	x0, x23
	bl	_BN_CTX_end
	mov	x0, x23
	bl	_BN_CTX_free
	mov	x0, x24
	bl	_BN_MONT_CTX_free
	mov	x0, x21
	bl	_EVP_MD_CTX_free
	ldur	x8, [x29, #-96]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_122
; %bb.13:
	mov	x0, x19
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	_EVP_sha224
	b	LBB0_16
LBB0_15:
	bl	_EVP_sha256
LBB0_16:
	mov	x26, x0
LBB0_17:
	mov	x0, x26
	bl	_EVP_MD_size
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x21, #16]
	stp	x0, x22, [x29, #-128]           ; 16-byte Folded Spill
	stur	w20, [x29, #-132]               ; 4-byte Folded Spill
	cbz	x8, LBB0_21
; %bb.18:
	tbz	w20, #31, LBB0_21
; %bb.19:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x20, #0
	mov	x22, #0
	b	LBB0_27
LBB0_21:
	sxtw	x8, w0
	cmp	x27, #0
	csel	x27, x8, x27, eq
	mov	x0, x27
	bl	_OPENSSL_malloc
	mov	x22, x0
	mov	x20, x19
	cbnz	x19, LBB0_23
; %bb.22:
	mov	x0, x27
	bl	_OPENSSL_malloc
	mov	x20, x0
LBB0_23:
	mov	x23, #0
	mov	w19, #-1
	cbz	x22, LBB0_40
; %bb.24:
	cbz	x20, LBB0_40
; %bb.25:
	ldur	x1, [x29, #-120]                ; 8-byte Folded Reload
	cbz	x1, LBB0_27
; %bb.26:
	mov	x0, x22
	mov	x2, x27
	bl	_memcpy
LBB0_27:
	bl	_BN_CTX_new
	mov	x23, x0
	cbz	x0, LBB0_39
; %bb.28:
	bl	_BN_MONT_CTX_new
	stur	x0, [x29, #-144]                ; 8-byte Folded Spill
	cbz	x0, LBB0_39
; %bb.29:
	mov	x0, x23
	bl	_BN_CTX_start
	mov	x0, x23
	bl	_BN_CTX_get
	stur	x0, [x29, #-152]                ; 8-byte Folded Spill
	mov	x0, x23
	bl	_BN_CTX_get
	mov	x19, x0
	mov	x0, x23
	bl	_BN_CTX_get
	stur	x0, [x29, #-160]                ; 8-byte Folded Spill
	mov	x0, x23
	bl	_BN_CTX_get
	stur	x0, [x29, #-184]                ; 8-byte Folded Spill
	mov	x0, x23
	bl	_BN_CTX_get
	stur	x0, [x29, #-200]                ; 8-byte Folded Spill
	mov	x0, x23
	bl	_BN_CTX_get
	cbz	x0, LBB0_84
; %bb.30:
	ldr	x8, [x29, #32]
	stur	x8, [x29, #-208]                ; 8-byte Folded Spill
	ldr	x9, [x21, #16]
	stur	x0, [x29, #-168]                ; 8-byte Folded Spill
	stur	x21, [x29, #-232]               ; 8-byte Folded Spill
	cbz	x9, LBB0_41
; %bb.31:
	ldr	x8, [x21, #8]
	stur	x8, [x29, #-192]                ; 8-byte Folded Spill
	cbz	x8, LBB0_41
; %bb.32:
	stur	x9, [x29, #-176]                ; 8-byte Folded Spill
	ldur	w8, [x29, #-132]                ; 4-byte Folded Reload
	tbnz	w8, #31, LBB0_34
; %bb.33:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x27
	bl	_memcpy
LBB0_34:
	stur	wzr, [x29, #-244]               ; 4-byte Folded Spill
	ldur	x21, [x29, #-112]               ; 8-byte Folded Reload
	ldur	x24, [x29, #-152]               ; 8-byte Folded Reload
LBB0_35:
	bl	_BN_value_one
	mov	x2, x0
	ldp	x1, x25, [x29, #-176]           ; 16-byte Folded Reload
	mov	x0, x25
	bl	_BN_sub
	cbz	w0, LBB0_120
; %bb.36:
	mov	x0, x24
	mov	x1, #0
	mov	x2, x25
	ldur	x3, [x29, #-192]                ; 8-byte Folded Reload
	mov	x4, x23
	bl	_BN_div
	cbz	w0, LBB0_120
; %bb.37:
	ldur	w8, [x29, #-132]                ; 4-byte Folded Reload
	tbnz	w8, #31, LBB0_86
; %bb.38:
	mov	w25, #1
	b	LBB0_87
LBB0_39:
	mov	x24, #0
	b	LBB0_8
LBB0_40:
	mov	x24, x23
	b	LBB0_9
LBB0_41:
	mov	x0, x23
	bl	_BN_CTX_get
	stur	x0, [x29, #-176]                ; 8-byte Folded Spill
	mov	x0, x23
	bl	_BN_CTX_get
	stur	x0, [x29, #-192]                ; 8-byte Folded Spill
	cbz	x0, LBB0_84
; %bb.42:
	bl	_BN_value_one
	mov	x1, x0
	sub	x2, x24, #1
	ldur	x0, [x29, #-168]                ; 8-byte Folded Reload
	sub	x8, x29, #8
	stur	x2, [x8, #-256]                 ; 8-byte Folded Spill
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_BN_lshift
	ldur	x21, [x29, #-112]               ; 8-byte Folded Reload
	cbz	w0, LBB0_120
; %bb.43:
	stur	x19, [x29, #-256]               ; 8-byte Folded Spill
	mov	w2, #0
	lsr	x10, x25, #3
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	cmp	x8, #0
	cset	w8, ne
	sub	x9, x29, #28
	stur	w8, [x9, #-256]                 ; 4-byte Folded Spill
	ldur	x9, [x29, #-128]                ; 8-byte Folded Reload
	add	x8, x28, w9, sxtw
	sub	x11, x29, #40
	stur	x8, [x11, #-256]                ; 8-byte Folded Spill
	sub	x8, x8, w10, sxtw
	subs	w11, w10, w9
	sub	x12, x29, #44
	stur	w11, [x12, #-256]               ; 4-byte Folded Spill
	csel	x8, x8, x28, lt
	sub	x11, x29, #16
	stur	x8, [x11, #-256]                ; 8-byte Folded Spill
	stur	x10, [x29, #-240]               ; 8-byte Folded Spill
	sub	w8, w10, #1
	sxtw	x8, w8
	sub	x10, x29, #24
	stur	x8, [x10, #-256]                ; 8-byte Folded Spill
	lsl	w8, w9, #3
	sxtw	x8, w8
	stur	x8, [x29, #-216]                ; 8-byte Folded Spill
	lsl	w8, w24, #2
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	sub	x9, x29, #48
	stur	w8, [x9, #-256]                 ; 4-byte Folded Spill
	sub	w8, w27, #1
	stur	w8, [x29, #-220]                ; 4-byte Folded Spill
	ldur	x24, [x29, #-192]               ; 8-byte Folded Reload
LBB0_44:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_57 Depth 2
                                        ;       Child Loop BB0_61 Depth 3
                                        ;         Child Loop BB0_62 Depth 4
	ldur	x19, [x29, #-208]               ; 8-byte Folded Reload
	mov	x0, x19
	mov	w1, #0
	stur	w2, [x29, #-224]                ; 4-byte Folded Spill
	bl	_BN_GENCB_call
	cbz	w0, LBB0_120
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	cbnz	x8, LBB0_47
; %bb.46:                               ;   in Loop: Header=BB0_44 Depth=1
	mov	x0, x22
	mov	x1, x27
	bl	_RAND_bytes
	cmp	x0, #1
	b.lt	LBB0_120
LBB0_47:                                ;   in Loop: Header=BB0_44 Depth=1
	mov	x0, x22
	mov	x1, x27
	mov	x2, x28
	mov	x3, #0
	mov	x4, x26
	mov	x5, #0
	bl	_EVP_Digest
	cbz	w0, LBB0_120
; %bb.48:                               ;   in Loop: Header=BB0_44 Depth=1
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	ldur	x9, [x29, #-240]                ; 8-byte Folded Reload
	cmp	w8, w9
	b.ge	LBB0_50
; %bb.49:                               ;   in Loop: Header=BB0_44 Depth=1
	sub	x8, x29, #40
	ldur	x0, [x8, #-256]                 ; 8-byte Folded Reload
	mov	w1, #0
	sub	x8, x29, #44
	ldur	w2, [x8, #-256]                 ; 4-byte Folded Reload
	bl	_memset
LBB0_50:                                ;   in Loop: Header=BB0_44 Depth=1
	sub	x8, x29, #16
	ldur	x0, [x8, #-256]                 ; 8-byte Folded Reload
	ldrb	w8, [x0]
	orr	w8, w8, #0x80
	strb	w8, [x0]
	sub	x8, x29, #24
	ldur	x9, [x8, #-256]                 ; 8-byte Folded Reload
	ldrb	w8, [x0, x9]
	orr	w8, w8, #0x1
	strb	w8, [x0, x9]
	ldur	x1, [x29, #-240]                ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x24
	bl	_BN_bin2bn
	cbz	w0, LBB0_120
; %bb.51:                               ;   in Loop: Header=BB0_44 Depth=1
	ldur	w8, [x29, #-224]                ; 4-byte Folded Reload
	add	w8, w8, #1
	stur	w8, [x29, #-224]                ; 4-byte Folded Spill
Lloh17:
	adrp	x8, _DSS_prime_checks@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DSS_prime_checks@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x24
	mov	x2, x23
	sub	x8, x29, #28
	ldur	w3, [x8, #-256]                 ; 4-byte Folded Reload
	mov	x4, x19
	bl	_BN_is_prime_fasttest_ex
	cmp	w0, #0
	b.le	LBB0_81
; %bb.52:                               ;   in Loop: Header=BB0_44 Depth=1
	ldur	x0, [x29, #-104]                ; 8-byte Folded Reload
	cbz	x0, LBB0_54
; %bb.53:                               ;   in Loop: Header=BB0_44 Depth=1
	mov	x1, x22
	mov	x2, x27
	bl	_memcpy
LBB0_54:                                ;   in Loop: Header=BB0_44 Depth=1
	mov	x0, x19
	mov	w1, #2
	mov	w2, #0
	bl	_BN_GENCB_call
	cbz	w0, LBB0_120
; %bb.55:                               ;   in Loop: Header=BB0_44 Depth=1
	mov	x0, x19
	mov	w1, #3
	mov	w2, #0
	bl	_BN_GENCB_call
	cbz	w0, LBB0_120
; %bb.56:                               ;   in Loop: Header=BB0_44 Depth=1
	mov	w8, #0
	sub	x9, x29, #8
	ldur	x9, [x9, #-256]                 ; 8-byte Folded Reload
	ldur	x10, [x29, #-216]               ; 8-byte Folded Reload
	udiv	x19, x9, x10
LBB0_57:                                ;   Parent Loop BB0_44 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_61 Depth 3
                                        ;         Child Loop BB0_62 Depth 4
	cbz	w8, LBB0_59
; %bb.58:                               ;   in Loop: Header=BB0_57 Depth=2
	ldur	x0, [x29, #-208]                ; 8-byte Folded Reload
	mov	w1, #0
	mov	x24, x8
	mov	x2, x8
	bl	_BN_GENCB_call
	mov	x8, x24
	cbz	w0, LBB0_120
LBB0_59:                                ;   in Loop: Header=BB0_57 Depth=2
	stur	w8, [x29, #-244]                ; 4-byte Folded Spill
	ldur	x0, [x29, #-160]                ; 8-byte Folded Reload
	bl	_BN_zero
	tbnz	w19, #31, LBB0_69
; %bb.60:                               ;   in Loop: Header=BB0_57 Depth=2
	mov	w24, #0
LBB0_61:                                ;   Parent Loop BB0_44 Depth=1
                                        ;     Parent Loop BB0_57 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_62 Depth 4
	ldur	w8, [x29, #-220]                ; 4-byte Folded Reload
LBB0_62:                                ;   Parent Loop BB0_44 Depth=1
                                        ;     Parent Loop BB0_57 Depth=2
                                        ;       Parent Loop BB0_61 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	tbnz	w8, #31, LBB0_64
; %bb.63:                               ;   in Loop: Header=BB0_62 Depth=4
	mov	w9, w8
	ldrb	w10, [x22, x9]
	add	w10, w10, #1
	strb	w10, [x22, x9]
	sub	w8, w8, #1
	tbnz	w10, #8, LBB0_62
LBB0_64:                                ;   in Loop: Header=BB0_61 Depth=3
	mov	x0, x22
	mov	x1, x27
	mov	x2, x28
	mov	x3, #0
	mov	x4, x26
	mov	x5, #0
	bl	_EVP_Digest
	cbz	w0, LBB0_120
; %bb.65:                               ;   in Loop: Header=BB0_61 Depth=3
	mov	x0, x28
	ldur	x1, [x29, #-128]                ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	ldur	x25, [x29, #-152]               ; 8-byte Folded Reload
	mov	x2, x25
	bl	_BN_bin2bn
	cbz	w0, LBB0_120
; %bb.66:                               ;   in Loop: Header=BB0_61 Depth=3
	ldur	x8, [x29, #-216]                ; 8-byte Folded Reload
	mul	w2, w24, w8
	mov	x0, x25
	mov	x1, x25
	bl	_BN_lshift
	cbz	w0, LBB0_120
; %bb.67:                               ;   in Loop: Header=BB0_61 Depth=3
	ldur	x0, [x29, #-160]                ; 8-byte Folded Reload
	mov	x1, x0
	mov	x2, x25
	bl	_BN_add
	cbz	w0, LBB0_120
; %bb.68:                               ;   in Loop: Header=BB0_61 Depth=3
	add	w8, w24, #1
	cmp	w24, w19
	mov	x24, x8
	b.ne	LBB0_61
LBB0_69:                                ;   in Loop: Header=BB0_57 Depth=2
	ldur	x24, [x29, #-160]               ; 8-byte Folded Reload
	mov	x0, x24
	sub	x8, x29, #8
	ldur	x1, [x8, #-256]                 ; 8-byte Folded Reload
	bl	_BN_mask_bits
	cbz	w0, LBB0_120
; %bb.70:                               ;   in Loop: Header=BB0_57 Depth=2
	ldur	x25, [x29, #-184]               ; 8-byte Folded Reload
	mov	x0, x25
	mov	x1, x24
	bl	_BN_copy
	cbz	w0, LBB0_120
; %bb.71:                               ;   in Loop: Header=BB0_57 Depth=2
	mov	x0, x25
	mov	x1, x25
	ldur	x2, [x29, #-168]                ; 8-byte Folded Reload
	bl	_BN_add
	cbz	w0, LBB0_120
; %bb.72:                               ;   in Loop: Header=BB0_57 Depth=2
	ldur	x24, [x29, #-152]               ; 8-byte Folded Reload
	mov	x0, x24
	ldur	x1, [x29, #-192]                ; 8-byte Folded Reload
	bl	_BN_lshift1
	cbz	w0, LBB0_120
; %bb.73:                               ;   in Loop: Header=BB0_57 Depth=2
	ldur	x25, [x29, #-200]               ; 8-byte Folded Reload
	mov	x0, x25
	ldur	x1, [x29, #-184]                ; 8-byte Folded Reload
	mov	x2, x24
	mov	x3, x23
	bl	_BN_mod
	cbz	w0, LBB0_120
; %bb.74:                               ;   in Loop: Header=BB0_57 Depth=2
	bl	_BN_value_one
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_BN_sub
	cbz	w0, LBB0_120
; %bb.75:                               ;   in Loop: Header=BB0_57 Depth=2
	ldp	x1, x25, [x29, #-184]           ; 16-byte Folded Reload
	mov	x0, x25
	mov	x2, x24
	bl	_BN_sub
	cbz	w0, LBB0_120
; %bb.76:                               ;   in Loop: Header=BB0_57 Depth=2
	mov	x0, x25
	ldur	x1, [x29, #-168]                ; 8-byte Folded Reload
	bl	_BN_cmp
	tbnz	x0, #63, LBB0_79
; %bb.77:                               ;   in Loop: Header=BB0_57 Depth=2
Lloh20:
	adrp	x8, _DSS_prime_checks@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DSS_prime_checks@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldur	x0, [x29, #-176]                ; 8-byte Folded Reload
	mov	x2, x23
	mov	w3, #1
	ldur	x4, [x29, #-208]                ; 8-byte Folded Reload
	bl	_BN_is_prime_fasttest_ex
	cmp	w0, #0
	b.gt	LBB0_119
; %bb.78:                               ;   in Loop: Header=BB0_57 Depth=2
	cbnz	w0, LBB0_120
LBB0_79:                                ;   in Loop: Header=BB0_57 Depth=2
	ldur	w8, [x29, #-244]                ; 4-byte Folded Reload
	add	w8, w8, #1
	sub	x9, x29, #48
	ldur	w9, [x9, #-256]                 ; 4-byte Folded Reload
	cmp	w8, w9
	ldur	x24, [x29, #-192]               ; 8-byte Folded Reload
	b.ne	LBB0_57
; %bb.80:                               ;   in Loop: Header=BB0_44 Depth=1
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	ldur	w2, [x29, #-224]                ; 4-byte Folded Reload
	cbz	x8, LBB0_44
	b	LBB0_121
LBB0_81:                                ;   in Loop: Header=BB0_44 Depth=1
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	cbz	x8, LBB0_83
; %bb.82:                               ;   in Loop: Header=BB0_44 Depth=1
	cbz	w0, LBB0_117
LBB0_83:                                ;   in Loop: Header=BB0_44 Depth=1
	mov	w19, #-1
	ldur	w2, [x29, #-224]                ; 4-byte Folded Reload
	cbz	w0, LBB0_44
	b	LBB0_102
LBB0_84:
	mov	w19, #-1
LBB0_85:
	ldur	x24, [x29, #-144]               ; 8-byte Folded Reload
	b	LBB0_9
LBB0_86:
	mov	w25, #2
	ldur	x0, [x29, #-168]                ; 8-byte Folded Reload
	mov	w1, #2
	bl	_BN_set_word
	cbz	w0, LBB0_120
LBB0_87:
	ldur	x0, [x29, #-144]                ; 8-byte Folded Reload
	ldur	x1, [x29, #-176]                ; 8-byte Folded Reload
	mov	x2, x23
	bl	_BN_MONT_CTX_set
	cbz	w0, LBB0_120
; %bb.88:
	stur	x19, [x29, #-256]               ; 8-byte Folded Spill
	ldr	x8, [x29, #24]
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
	ldr	x8, [x29, #16]
	stur	x8, [x29, #-160]                ; 8-byte Folded Spill
Lloh23:
	adrp	x24, _dsa_builtin_paramgen2.ggen@PAGE
Lloh24:
	add	x24, x24, _dsa_builtin_paramgen2.ggen@PAGEOFF
LBB0_89:                                ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x29, #-132]                ; 4-byte Folded Reload
	ldur	x19, [x29, #-256]               ; 8-byte Folded Reload
	tbnz	w8, #31, LBB0_96
; %bb.90:                               ;   in Loop: Header=BB0_89 Depth=1
	ldur	w8, [x29, #-132]                ; 4-byte Folded Reload
	strb	w8, [x28]
	lsr	w8, w25, #8
	strb	w8, [x28, #1]
	strb	w25, [x28, #2]
	mov	x0, x21
	mov	x1, x26
	mov	x2, #0
	bl	_EVP_DigestInit_ex
	cbz	w0, LBB0_120
; %bb.91:                               ;   in Loop: Header=BB0_89 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x27
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_120
; %bb.92:                               ;   in Loop: Header=BB0_89 Depth=1
	mov	x0, x21
	mov	x1, x24
	mov	w2, #4
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_120
; %bb.93:                               ;   in Loop: Header=BB0_89 Depth=1
	mov	x0, x21
	mov	x1, x28
	mov	w2, #3
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_120
; %bb.94:                               ;   in Loop: Header=BB0_89 Depth=1
	mov	x0, x21
	mov	x1, x28
	mov	x2, #0
	bl	_EVP_DigestFinal_ex
	cbz	w0, LBB0_120
; %bb.95:                               ;   in Loop: Header=BB0_89 Depth=1
	mov	x0, x28
	ldur	x1, [x29, #-128]                ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	ldur	x2, [x29, #-168]                ; 8-byte Folded Reload
	bl	_BN_bin2bn
	cbz	w0, LBB0_120
LBB0_96:                                ;   in Loop: Header=BB0_89 Depth=1
	mov	x0, x19
	ldp	x3, x1, [x29, #-176]            ; 16-byte Folded Reload
	ldp	x2, x5, [x29, #-152]            ; 16-byte Folded Reload
	mov	x4, x23
	bl	_BN_mod_exp_mont
	cbz	w0, LBB0_120
; %bb.97:                               ;   in Loop: Header=BB0_89 Depth=1
	mov	x0, x19
	bl	_BN_is_one
	cbz	w0, LBB0_103
; %bb.98:                               ;   in Loop: Header=BB0_89 Depth=1
	ldur	w19, [x29, #-132]               ; 4-byte Folded Reload
	tbz	w19, #31, LBB0_100
; %bb.99:                               ;   in Loop: Header=BB0_89 Depth=1
	bl	_BN_value_one
	mov	x2, x0
	ldur	x0, [x29, #-168]                ; 8-byte Folded Reload
	mov	x1, x0
	bl	_BN_add
	cbz	w0, LBB0_120
LBB0_100:                               ;   in Loop: Header=BB0_89 Depth=1
	add	w25, w25, #1
	tbnz	w19, #31, LBB0_89
; %bb.101:                              ;   in Loop: Header=BB0_89 Depth=1
	mov	w19, #-1
	lsr	w8, w25, #16
	cbz	w8, LBB0_89
LBB0_102:
	ldur	x24, [x29, #-144]               ; 8-byte Folded Reload
	b	LBB0_10
LBB0_103:
	ldur	x0, [x29, #-208]                ; 8-byte Folded Reload
	mov	w1, #3
	mov	w2, #1
	bl	_BN_GENCB_call
	ldur	x24, [x29, #-144]               ; 8-byte Folded Reload
	cbz	w0, LBB0_116
; %bb.104:
	ldur	x19, [x29, #-232]               ; 8-byte Folded Reload
	ldr	x0, [x19, #16]
	ldur	x26, [x29, #-176]               ; 8-byte Folded Reload
	cmp	x26, x0
	b.eq	LBB0_106
; %bb.105:
	bl	_BN_free
	mov	x0, x26
	bl	_BN_dup
	str	x0, [x19, #16]
LBB0_106:
	ldr	x0, [x19, #8]
	ldur	x26, [x29, #-192]               ; 8-byte Folded Reload
	cmp	x26, x0
	b.eq	LBB0_108
; %bb.107:
	bl	_BN_free
	mov	x0, x26
	bl	_BN_dup
	str	x0, [x19, #8]
LBB0_108:
	ldr	x0, [x19]
	bl	_BN_free
	ldur	x0, [x29, #-256]                ; 8-byte Folded Reload
	bl	_BN_dup
	str	x0, [x19]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_116
; %bb.109:
	ldr	x8, [x19, #8]
	mov	w19, #-1
	cbz	x8, LBB0_10
; %bb.110:
	cbz	x0, LBB0_10
; %bb.111:
	ldur	x9, [x29, #-160]                ; 8-byte Folded Reload
	cbz	x9, LBB0_113
; %bb.112:
	ldur	w8, [x29, #-244]                ; 4-byte Folded Reload
	str	w8, [x9]
LBB0_113:
	ldur	x9, [x29, #-120]                ; 8-byte Folded Reload
	cbz	x9, LBB0_115
; %bb.114:
	mov	w8, w25
	str	x8, [x9]
LBB0_115:
	mov	w19, #1
	b	LBB0_85
LBB0_116:
	mov	w19, #-1
	b	LBB0_10
LBB0_117:
Lloh25:
	adrp	x8, _DSA_F_DSA_BUILTIN_PARAMGEN2@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DSA_F_DSA_BUILTIN_PARAMGEN2@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _DSA_R_Q_NOT_PRIME@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DSA_R_Q_NOT_PRIME@GOTPAGEOFF]
LBB0_118:
	ldr	w1, [x8]
	bl	_DSAerr
	mov	w19, #0
	ldur	x24, [x29, #-144]               ; 8-byte Folded Reload
	b	LBB0_10
LBB0_119:
	ldur	x0, [x29, #-208]                ; 8-byte Folded Reload
	mov	w1, #2
	mov	w2, #1
	bl	_BN_GENCB_call
	ldur	x19, [x29, #-256]               ; 8-byte Folded Reload
	cbnz	w0, LBB0_35
LBB0_120:
	mov	w19, #-1
	ldur	x24, [x29, #-144]               ; 8-byte Folded Reload
	b	LBB0_10
LBB0_121:
Lloh30:
	adrp	x8, _DSA_F_DSA_BUILTIN_PARAMGEN2@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DSA_F_DSA_BUILTIN_PARAMGEN2@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x8, _DSA_R_INVALID_PARAMETERS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DSA_R_INVALID_PARAMETERS@GOTPAGEOFF]
	b	LBB0_118
LBB0_122:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ; @EVP_MAX_MD_SIZE
	.comm	_DSA_F_DSA_BUILTIN_PARAMGEN2,4,2 ; @DSA_F_DSA_BUILTIN_PARAMGEN2
	.comm	_DSA_R_INVALID_PARAMETERS,4,2   ; @DSA_R_INVALID_PARAMETERS
	.comm	_DSS_prime_checks,4,2           ; @DSS_prime_checks
	.comm	_DSA_R_Q_NOT_PRIME,4,2          ; @DSA_R_Q_NOT_PRIME
	.section	__TEXT,__const
_dsa_builtin_paramgen2.ggen:            ; @dsa_builtin_paramgen2.ggen
	.ascii	"ggen"

.subsections_via_symbols
