	.file	"extr_pem_sign.c_PEM_SignFinal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	PEM_SignFinal
	.type	PEM_SignFinal, @function
PEM_SignFinal:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	mov	rdi, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	EVP_PKEY_size@PLT
	mov	edi, eax
	call	OPENSSL_malloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L8
	mov	rcx, r12
	lea	rdx, 4[rsp]
	mov	rsi, rax
	mov	rdi, r14
	call	EVP_SignFinal@PLT
	xor	r12d, r12d
	test	rax, rax
	jle	.L3
	mov	edx, DWORD PTR 4[rsp]
	mov	rsi, rbp
	mov	rdi, r13
	mov	r12d, 1
	call	EVP_EncodeBlock@PLT
	mov	DWORD PTR [rbx], eax
.L3:
	mov	rdi, rbp
	call	OPENSSL_free@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR ERR_R_MALLOC_FAILURE[rip]
	mov	edi, DWORD PTR PEM_F_PEM_SIGNFINAL[rip]
	xor	r12d, r12d
	call	PEMerr@PLT
	jmp	.L3
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	PEM_SignFinal, .-PEM_SignFinal
	.comm	PEM_F_PEM_SIGNFINAL,4,4
	.comm	ERR_R_MALLOC_FAILURE,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_pem_sign.c_PEM_SignFinal.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	PEM_SignFinal
	.syntax unified
	.arm
	.fpu softvfp
	.type	PEM_SignFinal, %function
PEM_SignFinal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r3
	mov	r6, r0
	mov	r0, r3
	ldr	r3, .L10
	sub	sp, sp, #8
	mov	r7, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	EVP_PKEY_size
	bl	OPENSSL_malloc
	subs	r4, r0, #0
	beq	.L8
	mov	r3, r5
	mov	r0, r6
	mov	r2, sp
	mov	r1, r4
	bl	EVP_SignFinal
	cmp	r0, #0
	movle	r5, #0
	ble	.L3
	mov	r0, r7
	mov	r1, r4
	ldr	r2, [sp]
	bl	EVP_EncodeBlock
	mov	r5, #1
	str	r0, [r8]
.L3:
	mov	r0, r4
	bl	OPENSSL_free
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r2, .L10+4
	ldr	r3, .L10+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	PEMerr
	mov	r5, r4
	b	.L3
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	ERR_R_MALLOC_FAILURE
	.word	PEM_F_PEM_SIGNFINAL
	.size	PEM_SignFinal, .-PEM_SignFinal
	.comm	PEM_F_PEM_SIGNFINAL,4,4
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
