	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gendsa_main                    ## -- Begin function gendsa_main
	.p2align	4, 0x90
_gendsa_main:                           ## @gendsa_main
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -88(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	_gendsa_options@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_opt_init
	movq	%rax, %r13
	leaq	LJTI0_0(%rip), %r15
	leaq	-88(%rbp), %r14
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$128, %edi
	callq	_opt_rand
	testl	%eax, %eax
	je	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_opt_next
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_1
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r15,%rax,4), %rax
	addq	%r15, %rax
	jmpq	*%rax
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_opt_unknown
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_opt_cipher
	testl	%eax, %eax
	jne	LBB0_1
	jmp	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, %r12
	jmp	LBB0_1
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_opt_arg
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_setup_engine
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
LBB0_10:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	xorl	%r15d, %r15d
	jmp	LBB0_28
LBB0_4:
	movl	(%rbx), %edi
	callq	_opt_help
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_12:
	xorl	%eax, %eax
	callq	_opt_num_rest
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_opt_rest
	cmpl	$1, %ebx
	jne	LBB0_3
## %bb.13:
	movq	(%rax), %r14
	leaq	-64(%rbp), %rcx
	xorl	%edi, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_app_passwd
	testl	%eax, %eax
	je	LBB0_14
## %bb.17:
	movq	_FORMAT_PEM@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	$114, %esi
	callq	_bio_open_default
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_DSAparams
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	%r13, %rdi
	callq	_BIO_free
	movl	(%r15), %esi
	movl	$1, %r14d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_bio_open_owner
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	movq	%rax, %r12
	leaq	-56(%rbp), %rsi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_DSA_get0_pqg
	movq	-56(%rbp), %rdi
	callq	_BN_num_bits
	movq	_OPENSSL_DSA_MAX_MODULUS_BITS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	cmpq	%rbx, %rax
	jle	LBB0_25
## %bb.24:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-56(%rbp), %rdi
	callq	_BN_num_bits
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_BIO_printf
LBB0_25:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-56(%rbp), %rdi
	callq	_BN_num_bits
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_BIO_printf
	movq	%r15, %rdi
	callq	_DSA_generate_key
	testl	%eax, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_26
## %bb.27:
	movl	$1, %edi
	callq	_assert
	movq	-88(%rbp), %rdx
	movq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PEM_write_bio_DSAPrivateKey
	movl	$0, %r13d
	testl	%eax, %eax
	jne	LBB0_29
	jmp	LBB0_28
LBB0_3:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_BIO_printf
LBB0_15:
	xorl	%r13d, %r13d
LBB0_16:
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_28:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_print_errors
	movl	$1, %r14d
LBB0_29:
	movq	%r13, %rdi
	callq	_BIO_free
	movq	%r12, %rdi
	callq	_BIO_free_all
	movq	%r15, %rdi
	callq	_DSA_free
	movq	%rbx, %rdi
	callq	_release_engine
	movq	-64(%rbp), %rdi
	callq	_OPENSSL_free
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_15
LBB0_18:
	movl	$1, %r14d
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_20:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_16
LBB0_22:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_26:
	xorl	%r13d, %r13d
	jmp	LBB0_28
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_12
	.long	L0_0_set_7
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_gendsa_options,4,2             ## @gendsa_options
	.comm	_bio_err,4,2                    ## @bio_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Use -help for summary.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error getting password\n"

	.comm	_FORMAT_PEM,4,2                 ## @FORMAT_PEM
L_.str.2:                               ## @.str.2
	.asciz	"unable to load DSA parameter file\n"

	.comm	_OPENSSL_DSA_MAX_MODULUS_BITS,8,3 ## @OPENSSL_DSA_MAX_MODULUS_BITS
L_.str.3:                               ## @.str.3
	.asciz	"Warning: It is not recommended to use more than %d bit for DSA keys.\n         Your key size is %d! Larger key size may behave not as expected.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Generating DSA key, %d bits\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gendsa_main                    ; -- Begin function gendsa_main
	.p2align	2
_gendsa_main:                           ; @gendsa_main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	stp	xzr, xzr, [sp, #32]
	str	xzr, [sp, #24]
Lloh0:
	adrp	x23, _gendsa_options@GOTPAGE
Lloh1:
	ldr	x23, [x23, _gendsa_options@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_opt_init
	mov	x20, x0
	mov	x19, #0
	mov	x21, #0
	mov	x22, #0
Lloh2:
	adrp	x24, lJTI0_0@PAGE
Lloh3:
	add	x24, x24, lJTI0_0@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #128
	bl	_opt_rand
	cbz	w0, LBB0_20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_opt_next
	sub	w8, w0, #128
	cmp	w8, #7
	b.hi	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x24, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_opt_unknown
	add	x1, sp, #40
	bl	_opt_cipher
	cbnz	w0, LBB0_2
	b	LBB0_20
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_opt_arg
	mov	x22, x0
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_opt_arg
	mov	x21, x0
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_opt_arg
	mov	w1, #0
	bl	_setup_engine
	mov	x19, x0
	b	LBB0_2
LBB0_8:
	ldr	w0, [x23]
	bl	_opt_help
	mov	x21, #0
	mov	x22, #0
	mov	x20, #0
	mov	w23, #0
	b	LBB0_24
LBB0_9:
	bl	_opt_num_rest
	mov	x23, x0
	bl	_opt_rest
	cmp	w23, #1
	b.ne	LBB0_18
; %bb.10:
	ldr	x20, [x0]
	add	x3, sp, #32
	mov	x0, #0
	mov	x1, x22
	mov	x2, #0
	bl	_app_passwd
	cbz	w0, LBB0_25
; %bb.11:
Lloh4:
	adrp	x23, _FORMAT_PEM@GOTPAGE
Lloh5:
	ldr	x23, [x23, _FORMAT_PEM@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #114
	bl	_bio_open_default
	mov	x22, x0
	cbz	x0, LBB0_26
; %bb.12:
	mov	x0, x22
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_PEM_read_bio_DSAparams
	mov	x20, x0
	cbz	x0, LBB0_27
; %bb.13:
	mov	x0, x22
	bl	_BIO_free
	ldr	w1, [x23]
	mov	w23, #1
	mov	x0, x21
	mov	w2, #1
	bl	_bio_open_owner
	mov	x21, x0
	cbz	x0, LBB0_28
; %bb.14:
	add	x1, sp, #24
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	bl	_DSA_get0_pqg
	ldr	x0, [sp, #24]
	bl	_BN_num_bits
Lloh6:
	adrp	x8, _OPENSSL_DSA_MAX_MODULUS_BITS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPENSSL_DSA_MAX_MODULUS_BITS@GOTPAGEOFF]
Lloh8:
	ldr	x24, [x8]
Lloh9:
	adrp	x23, _bio_err@GOTPAGE
Lloh10:
	ldr	x23, [x23, _bio_err@GOTPAGEOFF]
	cmp	x0, x24
	b.le	LBB0_16
; %bb.15:
	ldr	w22, [x23]
	ldr	x0, [sp, #24]
	bl	_BN_num_bits
	stp	x24, x0, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_BIO_printf
LBB0_16:
	ldr	w22, [x23]
	ldr	x0, [sp, #24]
	bl	_BN_num_bits
	str	x0, [sp]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_BIO_printf
	mov	x0, x20
	bl	_DSA_generate_key
	cbz	w0, LBB0_29
; %bb.17:
	mov	w0, #1
	bl	_assert
	ldp	x6, x2, [sp, #32]
	mov	x0, x21
	mov	x1, x20
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_PEM_write_bio_DSAPrivateKey
	mov	x22, #0
	mov	w23, #0
	cbnz	w0, LBB0_24
	b	LBB0_22
LBB0_18:
Lloh15:
	adrp	x8, _bio_err@GOTPAGE
Lloh16:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
LBB0_19:
	bl	_BIO_printf
LBB0_20:
	mov	x20, #0
	mov	x22, #0
LBB0_21:
	mov	x21, #0
LBB0_22:
Lloh20:
	adrp	x8, _bio_err@GOTPAGE
Lloh21:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_ERR_print_errors
LBB0_23:
	mov	w23, #1
LBB0_24:
	mov	x0, x22
	bl	_BIO_free
	mov	x0, x21
	bl	_BIO_free_all
	mov	x0, x20
	bl	_DSA_free
	mov	x0, x19
	bl	_release_engine
	ldr	x0, [sp, #32]
	bl	_OPENSSL_free
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
Lloh23:
	adrp	x8, _bio_err@GOTPAGE
Lloh24:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_26:
	mov	x21, #0
	mov	x20, #0
	b	LBB0_23
LBB0_27:
Lloh28:
	adrp	x8, _bio_err@GOTPAGE
Lloh29:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_BIO_printf
	b	LBB0_21
LBB0_28:
	mov	x22, #0
	b	LBB0_24
LBB0_29:
	mov	x22, #0
	b	LBB0_22
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
	.byte	(LBB0_18-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
                                        ; -- End function
	.comm	_gendsa_options,4,2             ; @gendsa_options
	.comm	_bio_err,4,2                    ; @bio_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Use -help for summary.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error getting password\n"

	.comm	_FORMAT_PEM,4,2                 ; @FORMAT_PEM
l_.str.2:                               ; @.str.2
	.asciz	"unable to load DSA parameter file\n"

	.comm	_OPENSSL_DSA_MAX_MODULUS_BITS,8,3 ; @OPENSSL_DSA_MAX_MODULUS_BITS
l_.str.3:                               ; @.str.3
	.asciz	"Warning: It is not recommended to use more than %d bit for DSA keys.\n         Your key size is %d! Larger key size may behave not as expected.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Generating DSA key, %d bits\n"

.subsections_via_symbols
