	.file	"extr_p12_add.c_PKCS12_item_pack_safebag.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	PKCS12_item_pack_safebag
	.type	PKCS12_item_pack_safebag, @function
PKCS12_item_pack_safebag:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	call	PKCS12_BAGS_new@PLT
	test	rax, rax
	je	.L10
	mov	edi, r15d
	mov	rbp, rax
	call	OBJ_nid2obj@PLT
	mov	rdx, rbp
	mov	rsi, r13
	mov	rdi, r12
	mov	QWORD PTR 8[rbp], rax
	call	ASN1_item_pack@PLT
	test	eax, eax
	je	.L8
	xor	eax, eax
	call	PKCS12_SAFEBAG_new@PLT
	mov	r12, rax
	test	rax, rax
	je	.L8
	mov	QWORD PTR 8[rax], rbp
	mov	edi, r14d
	call	OBJ_nid2obj@PLT
	mov	QWORD PTR [r12], rax
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L8:
	.cfi_restore_state
.L5:
	endbr64
	mov	esi, DWORD PTR ERR_R_MALLOC_FAILURE[rip]
	mov	edi, DWORD PTR PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG[rip]
	xor	r12d, r12d
	call	PKCS12err@PLT
	mov	rdi, rbp
	call	PKCS12_BAGS_free@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR ERR_R_MALLOC_FAILURE[rip]
	mov	edi, DWORD PTR PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG[rip]
	xor	r12d, r12d
	call	PKCS12err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	PKCS12_item_pack_safebag, .-PKCS12_item_pack_safebag
	.comm	PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG,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_p12_add.c_PKCS12_item_pack_safebag.c"
	.text
	.align	2
	.global	PKCS12_item_pack_safebag
	.syntax unified
	.arm
	.fpu softvfp
	.type	PKCS12_item_pack_safebag, %function
PKCS12_item_pack_safebag:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r7, r1
	mov	r5, r2
	mov	r8, r3
	bl	PKCS12_BAGS_new
	subs	r4, r0, #0
	beq	.L10
	mov	r0, r5
	bl	OBJ_nid2obj
	mov	r1, r7
	str	r0, [r4, #4]
	mov	r2, r4
	mov	r0, r6
	bl	ASN1_item_pack
	cmp	r0, #0
	beq	.L8
	bl	PKCS12_SAFEBAG_new
	subs	r5, r0, #0
	beq	.L8
	mov	r0, r8
	str	r4, [r5, #4]
	bl	OBJ_nid2obj
	str	r0, [r5]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
.L5:
	mov	r5, #0
	ldr	r2, .L11
	ldr	r3, .L11+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	PKCS12err
	mov	r0, r4
	bl	PKCS12_BAGS_free
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r2, .L11
	ldr	r3, .L11+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r5, r4
	bl	PKCS12err
	b	.L1
.L12:
	.align	2
.L11:
	.word	ERR_R_MALLOC_FAILURE
	.word	PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG
	.size	PKCS12_item_pack_safebag, .-PKCS12_item_pack_safebag
	.comm	PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG,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
