	.file	"extr_pmeth_gn.c_EVP_PKEY_keygen.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	EVP_PKEY_keygen
	.type	EVP_PKEY_keygen, @function
EVP_PKEY_keygen:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	je	.L2
	mov	rax, QWORD PTR 8[rdi]
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L2
	mov	rdx, QWORD PTR EVP_PKEY_OP_KEYGEN[rip]
	cmp	QWORD PTR [rdi], rdx
	jne	.L20
	mov	rbx, rsi
	test	rsi, rsi
	je	.L8
	mov	rsi, QWORD PTR [rsi]
	test	rsi, rsi
	je	.L21
.L7:
	call	rax
	mov	r12d, eax
	test	eax, eax
	jle	.L22
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	call	EVP_PKEY_free@PLT
	mov	QWORD PTR [rbx], 0
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	xor	eax, eax
	mov	QWORD PTR 8[rsp], rdi
	call	EVP_PKEY_new@PLT
	mov	QWORD PTR [rbx], rax
	mov	rsi, rax
	test	rax, rax
	je	.L8
	mov	rdi, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR [rax]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE[rip]
	mov	edi, DWORD PTR EVP_F_EVP_PKEY_KEYGEN[rip]
	mov	r12d, -2
	call	EVPerr@PLT
	jmp	.L1
.L20:
	mov	esi, DWORD PTR EVP_R_OPERATON_NOT_INITIALIZED[rip]
	mov	edi, DWORD PTR EVP_F_EVP_PKEY_KEYGEN[rip]
	mov	r12d, -1
	call	EVPerr@PLT
	jmp	.L1
.L8:
	mov	r12d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	EVP_PKEY_keygen, .-EVP_PKEY_keygen
	.comm	EVP_R_OPERATON_NOT_INITIALIZED,4,4
	.comm	EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE,4,4
	.comm	EVP_PKEY_OP_KEYGEN,8,8
	.comm	EVP_F_EVP_PKEY_KEYGEN,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_pmeth_gn.c_EVP_PKEY_keygen.c"
	.text
	.align	2
	.global	EVP_PKEY_keygen
	.syntax unified
	.arm
	.fpu softvfp
	.type	EVP_PKEY_keygen, %function
EVP_PKEY_keygen:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r0, #0
	beq	.L2
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r2, .L23
	mov	r5, r1
	ldr	r2, [r2]
	ldr	r1, [r4]
	cmp	r1, r2
	bne	.L20
	cmp	r5, #0
	beq	.L8
	ldr	r1, [r5]
	cmp	r1, #0
	beq	.L21
.L7:
	mov	r0, r4
	blx	r3
	subs	r4, r0, #0
	ble	.L22
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L22:
	ldr	r0, [r5]
	bl	EVP_PKEY_free
	mov	r3, #0
	mov	r0, r4
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L21:
	bl	EVP_PKEY_new
	cmp	r0, #0
	mov	r1, r0
	str	r0, [r5]
	beq	.L8
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	b	.L7
.L2:
	ldr	r2, .L23+4
	ldr	r3, .L23+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	EVPerr
	mvn	r4, #1
	b	.L1
.L20:
	ldr	r2, .L23+12
	ldr	r3, .L23+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	EVPerr
	mvn	r4, #0
	b	.L1
.L8:
	mvn	r4, #0
	b	.L1
.L24:
	.align	2
.L23:
	.word	EVP_PKEY_OP_KEYGEN
	.word	EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE
	.word	EVP_F_EVP_PKEY_KEYGEN
	.word	EVP_R_OPERATON_NOT_INITIALIZED
	.size	EVP_PKEY_keygen, .-EVP_PKEY_keygen
	.comm	EVP_R_OPERATON_NOT_INITIALIZED,4,4
	.comm	EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE,4,4
	.comm	EVP_PKEY_OP_KEYGEN,4,4
	.comm	EVP_F_EVP_PKEY_KEYGEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
