	.file	"extr_x_pubkey.c_d2i_PUBKEY.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	d2i_PUBKEY
	.type	d2i_PUBKEY, @function
d2i_PUBKEY:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	xor	edi, edi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rsi]
	mov	rsi, rsp
	mov	QWORD PTR [rsp], rax
	call	d2i_X509_PUBKEY@PLT
	test	rax, rax
	je	.L4
	mov	rdi, rax
	mov	rbp, rax
	call	X509_PUBKEY_get@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	X509_PUBKEY_free@PLT
	test	r12, r12
	je	.L4
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR [rbx], rax
	test	r13, r13
	je	.L1
	mov	rdi, QWORD PTR 0[r13]
	call	EVP_PKEY_free@PLT
	mov	QWORD PTR 0[r13], r12
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	d2i_PUBKEY, .-d2i_PUBKEY
	.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_x_pubkey.c_d2i_PUBKEY.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	d2i_PUBKEY
	.syntax unified
	.arm
	.fpu softvfp
	.type	d2i_PUBKEY, %function
d2i_PUBKEY:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r1]
	sub	sp, sp, #12
	ldr	ip, .L15
	mov	r6, r1
	mov	r7, r0
	mov	r1, sp
	mov	r0, #0
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	str	r3, [sp]
	bl	d2i_X509_PUBKEY
	subs	r5, r0, #0
	beq	.L4
	bl	X509_PUBKEY_get
	mov	r4, r0
	mov	r0, r5
	bl	X509_PUBKEY_free
	cmp	r4, #0
	beq	.L4
	ldr	r3, [sp]
	cmp	r7, #0
	str	r3, [r6]
	beq	.L1
	ldr	r0, [r7]
	bl	EVP_PKEY_free
	str	r4, [r7]
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	mov	r4, #0
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	d2i_PUBKEY, .-d2i_PUBKEY
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
