	.file	"extr_ks_p12.c_addBag.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"out of memory"
.LC1:
	.string	"malloc out of memory"
	.text
	.p2align 4
	.type	addBag, @function
addBag:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR [rsi]
	mov	rdi, QWORD PTR 8[rbx]
	lea	esi, 1[rax]
	sal	esi, 4
	call	realloc@PLT
	lea	rcx, .LC0[rip]
	test	rax, rax
	je	.L7
	movsx	rdx, DWORD PTR [rbx]
	mov	QWORD PTR 8[rbx], rax
	mov	rdi, r14
	sal	rdx, 4
	lea	rsi, 8[rax+rdx]
	call	der_copy_oid@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L9
	movsx	r15, DWORD PTR [rbx]
	mov	edi, 1
	mov	esi, 16
	sal	r15, 4
	add	r15, QWORD PTR 8[rbx]
	call	calloc@PLT
	movsx	rdi, DWORD PTR [rbx]
	mov	QWORD PTR [r15], rax
	mov	rax, rdi
	sal	rdi, 4
	add	rdi, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR [rdi]
	test	rdx, rdx
	je	.L10
	add	eax, 1
	mov	QWORD PTR 8[rdx], r13
	mov	QWORD PTR [rdx], r12
	mov	DWORD PTR [rbx], eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L9:
	.cfi_restore_state
	lea	rcx, .LC0[rip]
	mov	edx, eax
	xor	esi, esi
	mov	edi, ebp
	call	hx509_set_error_string@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	add	rdi, 8
	call	der_free_oid@PLT
	lea	rcx, .LC1[rip]
.L7:
	mov	edx, DWORD PTR ENOMEM[rip]
	xor	esi, esi
	mov	edi, ebp
	call	hx509_set_error_string@PLT
	mov	r14d, DWORD PTR ENOMEM[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	addBag, .-addBag
	.comm	ENOMEM,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_ks_p12.c_addBag.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"out of memory\000"
	.align	2
.LC1:
	.ascii	"malloc out of memory\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	addBag, %function
addBag:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	ldr	r1, [r1]
	mov	r5, r0
	add	r1, r1, #1
	lsl	r1, r1, #3
	ldr	r0, [r4, #4]
	mov	r7, r2
	mov	r6, r3
	bl	realloc
	subs	r1, r0, #0
	beq	.L8
	ldr	r0, [r4]
	str	r1, [r4, #4]
	add	r1, r1, r0, lsl #3
	add	r1, r1, #4
	mov	r0, r7
	bl	der_copy_oid
	subs	r8, r0, #0
	bne	.L9
	ldm	r4, {r7, r9}
	mov	r1, #8
	mov	r0, #1
	bl	calloc
	cmp	r0, #0
	str	r0, [r9, r7, lsl #3]
	add	r9, r9, r7, lsl #3
	beq	.L10
	ldr	r3, [sp, #32]
	add	r7, r7, #1
	str	r7, [r4]
	str	r6, [r0, #4]
	str	r3, [r0]
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	mov	r0, r5
	mov	r2, r8
	mov	r1, #0
	ldr	r3, .L11
	bl	hx509_set_error_string
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	ldr	r4, .L11+4
	mov	r0, r5
	ldr	r2, [r4]
	ldr	r3, .L11
	bl	hx509_set_error_string
	ldr	r8, [r4]
	b	.L1
.L10:
	ldr	r4, .L11+4
	add	r0, r9, #4
	bl	der_free_oid
	mov	r1, r8
	mov	r0, r5
	ldr	r2, [r4]
	ldr	r3, .L11+8
	bl	hx509_set_error_string
	ldr	r8, [r4]
	b	.L1
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	ENOMEM
	.word	.LC1
	.size	addBag, .-addBag
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
