	.file	"extr_prime.c_prime_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"is"
.LC1:
	.string	"is not"
.LC2:
	.string	"%s: Use -help for summary.\n"
.LC3:
	.string	"Extra arguments given.\n"
.LC4:
	.string	"%s: No prime specified\n"
.LC5:
	.string	"Specify the number of bits.\n"
.LC6:
	.string	"Out of memory.\n"
.LC7:
	.string	"Failed to generate prime.\n"
.LC8:
	.string	"%s\n"
.LC9:
	.string	"Failed to process value (%s)\n"
.LC10:
	.string	" (%s) %s prime\n"
	.text
	.p2align 4
	.globl	prime_main
	.type	prime_main, @function
prime_main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	lea	rbx, .L5[rip]
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edx, DWORD PTR prime_options[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 16[rsp], 0
	call	opt_init@PLT
	mov	r13, rax
.L2:
	xor	eax, eax
	call	opt_next@PLT
	cmp	eax, 133
	je	.L37
.L13:
	add	eax, -128
	cmp	eax, 7
	ja	.L2
	movsx	rax, DWORD PTR [rbx+rax*4]
	add	rax, rbx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L11-.L5
	.long	.L10-.L5
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L2-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.text
.L10:
	xor	eax, eax
	mov	ebp, 1
	call	opt_next@PLT
	cmp	eax, 133
	jne	.L13
.L37:
	xor	eax, eax
	call	opt_num_rest@PLT
	mov	DWORD PTR 12[rsp], eax
	xor	eax, eax
	call	opt_rest@PLT
	test	r12d, r12d
	mov	edx, DWORD PTR 12[rsp]
	mov	rbx, rax
	je	.L14
	test	edx, edx
	jne	.L38
	test	r14d, r14d
	je	.L39
	xor	eax, eax
	call	BN_new@PLT
	mov	QWORD PTR 16[rsp], rax
	mov	rdi, rax
	test	rax, rax
	je	.L35
	xor	r9d, r9d
	xor	r8d, r8d
	xor	ecx, ecx
	mov	edx, r15d
	mov	esi, r14d
	call	BN_generate_prime_ex@PLT
	test	eax, eax
	je	.L40
	mov	rdi, QWORD PTR 16[rsp]
	test	ebp, ebp
	je	.L21
	call	BN_bn2hex@PLT
	mov	rbp, rax
.L22:
	test	rbp, rbp
	je	.L35
	mov	edi, DWORD PTR bio_out[rip]
	mov	rdx, rbp
	xor	eax, eax
	xor	r12d, r12d
	lea	rsi, .LC8[rip]
	call	BIO_printf@PLT
	mov	rdi, rbp
	call	OPENSSL_free@PLT
	jmp	.L12
.L38:
	mov	edi, DWORD PTR bio_err[rip]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	BIO_printf@PLT
.L7:
	mov	edi, DWORD PTR bio_err[rip]
	mov	rdx, r13
	lea	rsi, .LC2[rip]
	xor	eax, eax
	mov	r12d, 1
	call	BIO_printf@PLT
.L12:
	mov	rdi, QWORD PTR 16[rsp]
	call	BN_free@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L41
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	mov	r12d, 1
	jmp	.L2
.L9:
	mov	edi, DWORD PTR prime_options[rip]
	xor	r12d, r12d
	call	opt_help@PLT
	jmp	.L12
.L11:
	mov	r15d, 1
	jmp	.L2
.L4:
	xor	eax, eax
	call	opt_arg@PLT
	mov	edi, eax
	call	atoi@PLT
	mov	r14d, eax
	jmp	.L2
.L6:
	xor	eax, eax
	call	opt_arg@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	test	edx, edx
	je	.L16
	mov	rsi, QWORD PTR [rax]
	lea	r13, 16[rsp]
	lea	r15, .LC0[rip]
	lea	r14, .LC1[rip]
	test	rsi, rsi
	jne	.L17
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L43:
	call	BN_hex2bn@PLT
.L25:
	test	eax, eax
	je	.L42
	mov	rsi, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR bio_out[rip]
	call	BN_print@PLT
	mov	rdi, QWORD PTR 16[rsp]
	xor	edx, edx
	xor	esi, esi
	call	BN_check_prime@PLT
	mov	rcx, r14
	mov	rdx, QWORD PTR [rbx]
	mov	edi, DWORD PTR bio_out[rip]
	test	rax, rax
	lea	rsi, .LC10[rip]
	cmovne	rcx, r15
	xor	eax, eax
	add	rbx, 8
	call	BIO_printf@PLT
	mov	rsi, QWORD PTR [rbx]
	test	rsi, rsi
	je	.L12
.L17:
	mov	rdi, r13
	test	ebp, ebp
	jne	.L43
	call	BN_dec2bn@PLT
	jmp	.L25
.L39:
	mov	edi, DWORD PTR bio_err[rip]
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	BIO_printf@PLT
	jmp	.L12
.L42:
	mov	rdx, QWORD PTR [rbx]
	mov	edi, DWORD PTR bio_err[rip]
	lea	rsi, .LC9[rip]
	mov	r12d, 1
	call	BIO_printf@PLT
	jmp	.L12
.L16:
	mov	edi, DWORD PTR bio_err[rip]
	mov	rdx, r13
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	BIO_printf@PLT
	jmp	.L7
.L21:
	call	BN_bn2dec@PLT
	mov	rbp, rax
	jmp	.L22
.L35:
	mov	edi, DWORD PTR bio_err[rip]
	lea	rsi, .LC6[rip]
	xor	eax, eax
	call	BIO_printf@PLT
	jmp	.L12
.L40:
	mov	edi, DWORD PTR bio_err[rip]
	lea	rsi, .LC7[rip]
	call	BIO_printf@PLT
	jmp	.L12
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	prime_main, .-prime_main
	.comm	prime_options,4,4
	.comm	bio_out,4,4
	.comm	bio_err,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_prime.c_prime_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"is\000"
	.align	2
.LC1:
	.ascii	"is not\000"
	.align	2
.LC2:
	.ascii	"%s: Use -help for summary.\012\000"
	.align	2
.LC3:
	.ascii	"Extra arguments given.\012\000"
	.align	2
.LC4:
	.ascii	"%s: No prime specified\012\000"
	.align	2
.LC5:
	.ascii	"Specify the number of bits.\012\000"
	.align	2
.LC6:
	.ascii	"Out of memory.\012\000"
	.align	2
.LC7:
	.ascii	"Failed to generate prime.\012\000"
	.align	2
.LC8:
	.ascii	"%s\012\000"
	.align	2
.LC9:
	.ascii	"Failed to process value (%s)\012\000"
	.align	2
.LC10:
	.ascii	" (%s) %s prime\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	prime_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	prime_main, %function
prime_main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, #0
	ldr	r8, .L44
	ldr	r3, .L44+4
	sub	sp, sp, #20
	ldr	r2, [r8]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	str	r4, [sp, #8]
	bl	opt_init
	mov	r9, r4
	mov	r7, r0
	mov	r6, r4
	mov	r5, r4
.L2:
	bl	opt_next
	cmp	r0, #133
	beq	.L37
.L13:
	sub	r0, r0, #128
	cmp	r0, #7
	ldrls	pc, [pc, r0, asl #2]
	b	.L2
.L5:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L31
	.word	.L2
	.word	.L6
	.word	.L4
.L31:
	ldr	r4, .L44+8
.L7:
	mov	r2, r7
	ldr	r0, [r4]
	ldr	r1, .L44+12
	bl	BIO_printf
	mov	r6, #1
.L12:
	ldr	r0, [sp, #8]
	bl	BN_free
	ldr	r3, .L44+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L38
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	bl	opt_next
	cmp	r0, #133
	mov	r5, #1
	bne	.L13
.L37:
	bl	opt_num_rest
	mov	r10, r0
	bl	opt_rest
	cmp	r6, #0
	mov	r8, r0
	beq	.L14
	cmp	r10, #0
	bne	.L39
	cmp	r9, #0
	beq	.L40
	bl	BN_new
	cmp	r0, #0
	str	r0, [sp, #8]
	beq	.L35
	mov	r3, r10
	mov	r2, r4
	mov	r1, r9
	str	r10, [sp, #4]
	str	r10, [sp]
	bl	BN_generate_prime_ex
	cmp	r0, #0
	beq	.L41
	cmp	r5, #0
	ldr	r0, [sp, #8]
	beq	.L21
	bl	BN_bn2hex
	mov	r4, r0
.L22:
	cmp	r4, #0
	beq	.L35
	ldr	r3, .L44+16
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L44+20
	bl	BIO_printf
	mov	r0, r4
	bl	OPENSSL_free
	mov	r6, #0
	b	.L12
.L4:
	bl	opt_arg
	bl	atoi
	mov	r9, r0
	b	.L2
.L6:
	bl	opt_arg
	b	.L2
.L8:
	mov	r6, #1
	b	.L2
.L9:
	ldr	r0, [r8]
	bl	opt_help
	mov	r6, #0
	b	.L12
.L11:
	mov	r4, #1
	b	.L2
.L14:
	cmp	r10, #0
	beq	.L16
	ldr	r1, [r0]
	cmp	r1, #0
	beq	.L12
	ldr	r4, .L44+16
	ldr	r10, .L44+24
	ldr	r7, .L44+28
	b	.L17
.L43:
	bl	BN_hex2bn
.L25:
	cmp	r0, #0
	beq	.L42
	ldr	r1, [sp, #8]
	ldr	r0, [r4]
	bl	BN_print
	mov	r2, #0
	ldr	r0, [sp, #8]
	mov	r1, r2
	ldr	r9, [r8]
	ldr	fp, [r4]
	bl	BN_check_prime
	cmp	r0, #0
	mov	r1, r7
	ldr	r3, .L44+32
	mov	r2, r9
	movne	r3, r10
	mov	r0, fp
	bl	BIO_printf
	ldr	r1, [r8, #4]!
	cmp	r1, #0
	beq	.L12
.L17:
	cmp	r5, #0
	add	r0, sp, #8
	bne	.L43
	bl	BN_dec2bn
	b	.L25
.L40:
	ldr	r3, .L44+8
	ldr	r1, .L44+36
	ldr	r0, [r3]
	bl	BIO_printf
	b	.L12
.L42:
	ldr	r3, .L44+8
	ldr	r2, [r8]
	ldr	r0, [r3]
	ldr	r1, .L44+40
	bl	BIO_printf
	mov	r6, #1
	b	.L12
.L16:
	ldr	r4, .L44+8
	mov	r2, r7
	ldr	r0, [r4]
	ldr	r1, .L44+44
	bl	BIO_printf
	b	.L7
.L39:
	ldr	r4, .L44+8
	ldr	r1, .L44+48
	ldr	r0, [r4]
	bl	BIO_printf
	b	.L7
.L21:
	bl	BN_bn2dec
	mov	r4, r0
	b	.L22
.L35:
	ldr	r3, .L44+8
	ldr	r1, .L44+52
	ldr	r0, [r3]
	bl	BIO_printf
	b	.L12
.L41:
	ldr	r3, .L44+8
	ldr	r1, .L44+56
	ldr	r0, [r3]
	bl	BIO_printf
	b	.L12
.L38:
	bl	__stack_chk_fail
.L45:
	.align	2
.L44:
	.word	prime_options
	.word	.LC11
	.word	bio_err
	.word	.LC2
	.word	bio_out
	.word	.LC8
	.word	.LC0
	.word	.LC10
	.word	.LC1
	.word	.LC5
	.word	.LC9
	.word	.LC4
	.word	.LC3
	.word	.LC6
	.word	.LC7
	.size	prime_main, .-prime_main
	.comm	prime_options,4,4
	.comm	bio_out,4,4
	.comm	bio_err,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
