	.file	"extr_bn_x931p.c_BN_X931_generate_prime_ex.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BN_X931_generate_prime_ex
	.type	BN_X931_generate_prime_ex, @function
BN_X931_generate_prime_ex:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r9
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR 88[rsp]
	mov	QWORD PTR 8[rsp], rdi
	mov	rdi, r12
	call	BN_CTX_start@PLT
	test	rbx, rbx
	je	.L24
	test	rbp, rbp
	je	.L8
.L4:
	mov	ecx, DWORD PTR BN_RAND_BOTTOM_ANY[rip]
	mov	r8, r12
	mov	esi, 101
	mov	rdi, rbx
	mov	edx, DWORD PTR BN_RAND_TOP_ONE[rip]
	call	BN_priv_rand_ex@PLT
	test	eax, eax
	je	.L7
	mov	ecx, DWORD PTR BN_RAND_BOTTOM_ANY[rip]
	mov	r8, r12
	mov	esi, 101
	mov	rdi, rbp
	mov	edx, DWORD PTR BN_RAND_TOP_ONE[rip]
	call	BN_priv_rand_ex@PLT
	test	eax, eax
	jne	.L25
	.p2align 4,,10
	.p2align 3
.L7:
	xor	r13d, r13d
.L6:
	mov	rdi, r12
	call	BN_CTX_end@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	rdi, r12
	call	BN_CTX_get@PLT
	mov	rbx, rax
	test	rbp, rbp
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r12
	call	BN_CTX_get@PLT
	mov	rbp, rax
.L3:
	test	rbx, rbx
	je	.L7
	test	rbp, rbp
	je	.L7
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rsi, r13
	mov	r9, rbp
	mov	r8, rbx
	push	QWORD PTR 104[rsp]
	.cfi_def_cfa_offset 96
	mov	rcx, r15
	mov	rdx, r14
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 104
	push	QWORD PTR 104[rsp]
	.cfi_def_cfa_offset 112
	mov	rdi, QWORD PTR 40[rsp]
	call	BN_X931_derive_prime_ex@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	test	eax, eax
	setne	r13b
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	BN_X931_generate_prime_ex, .-BN_X931_generate_prime_ex
	.comm	BN_RAND_TOP_ONE,4,4
	.comm	BN_RAND_BOTTOM_ANY,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_bn_x931p.c_BN_X931_generate_prime_ex.c"
	.text
	.align	2
	.global	BN_X931_generate_prime_ex
	.syntax unified
	.arm
	.fpu softvfp
	.type	BN_X931_generate_prime_ex, %function
BN_X931_generate_prime_ex:
	@ args = 20, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r3
	sub	sp, sp, #28
	ldr	r5, [sp, #76]
	mov	r9, r0
	mov	r0, r5
	mov	r8, r1
	mov	r7, r2
	ldr	r6, [sp, #64]
	bl	BN_CTX_start
	cmp	r4, #0
	beq	.L23
	cmp	r6, #0
	beq	.L7
.L4:
	ldr	fp, .L25
	ldr	r10, .L25+4
	mov	r1, #101
	mov	r0, r4
	ldr	r3, [fp]
	ldr	r2, [r10]
	str	r5, [sp]
	bl	BN_priv_rand_ex
	cmp	r0, #0
	beq	.L6
	mov	r1, #101
	mov	r0, r6
	ldr	r3, [fp]
	ldr	r2, [r10]
	str	r5, [sp]
	bl	BN_priv_rand_ex
	cmp	r0, #0
	bne	.L24
.L6:
	mov	r4, #0
.L5:
	mov	r0, r5
	bl	BN_CTX_end
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	mov	r0, r5
	bl	BN_CTX_get
	cmp	r6, #0
	mov	r4, r0
	bne	.L3
.L7:
	mov	r0, r5
	bl	BN_CTX_get
	mov	r6, r0
.L3:
	cmp	r6, #0
	cmpne	r4, #0
	beq	.L6
	b	.L4
.L24:
	ldr	r3, [sp, #80]
	stm	sp, {r4, r6}
	str	r3, [sp, #16]
	ldr	r3, [sp, #72]
	mov	r2, r7
	str	r3, [sp, #8]
	mov	r1, r8
	mov	r0, r9
	ldr	r3, [sp, #68]
	str	r5, [sp, #12]
	bl	BN_X931_derive_prime_ex
	subs	r4, r0, #0
	movne	r4, #1
	b	.L5
.L26:
	.align	2
.L25:
	.word	BN_RAND_BOTTOM_ANY
	.word	BN_RAND_TOP_ONE
	.size	BN_X931_generate_prime_ex, .-BN_X931_generate_prime_ex
	.comm	BN_RAND_TOP_ONE,4,4
	.comm	BN_RAND_BOTTOM_ANY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
