	.file	"extr_ks_mem.c_mem_addkey.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"out of memory"
	.text
	.p2align 4
	.type	mem_addkey, @function
mem_addkey:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR [rdx]
	test	rdi, rdi
	je	.L6
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L3:
	movsx	rbx, eax
	add	rax, 1
	cmp	QWORD PTR -8[rdi+rax*8], 0
	jne	.L3
	lea	esi, 16[0+rbx*8]
.L2:
	call	realloc@PLT
	test	rax, rax
	je	.L10
	mov	QWORD PTR [r12], rax
	sal	rbx, 3
	mov	edi, r13d
	lea	rbp, [rax+rbx]
	call	_hx509_private_key_ref@PLT
	mov	QWORD PTR 0[rbp], rax
	mov	rax, QWORD PTR [r12]
	mov	QWORD PTR 8[rax+rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L10:
	.cfi_restore_state
	mov	edx, DWORD PTR ENOMEM[rip]
	mov	edi, ebp
	lea	rcx, .LC0[rip]
	xor	esi, esi
	call	hx509_set_error_string@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L6:
	.cfi_restore_state
	mov	esi, 16
	xor	ebx, ebx
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	mem_addkey, .-mem_addkey
	.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_mem.c_mem_addkey.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"out of memory\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mem_addkey, %function
mem_addkey:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	ldr	r2, [r2]
	mov	r8, r0
	cmp	r2, #0
	mov	r7, r3
	beq	.L7
	mov	r4, #0
	sub	r1, r2, #4
	b	.L3
.L4:
	add	r4, r4, #1
.L3:
	ldr	ip, [r1, #4]!
	cmp	ip, #0
	bne	.L4
	add	r1, r4, #2
	lsl	r1, r1, #2
.L2:
	mov	r0, r2
	bl	realloc
	subs	r5, r0, #0
	beq	.L10
	mov	r0, r7
	str	r5, [r6]
	bl	_hx509_private_key_ref
	mov	r1, r0
	mov	r2, #0
	ldr	r3, [r6]
	str	r1, [r5, r4, lsl #2]
	lsl	r4, r4, #2
	add	r4, r3, r4
	mov	r0, r2
	str	r2, [r4, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r1, #8
	mov	r4, r2
	b	.L2
.L10:
	ldr	r4, .L11
	mov	r1, r5
	mov	r0, r8
	ldr	r2, [r4]
	ldr	r3, .L11+4
	bl	hx509_set_error_string
	ldr	r0, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	ENOMEM
	.word	.LC0
	.size	mem_addkey, .-mem_addkey
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
