	.file	"extr_env.c_add_env.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s=%s"
.LC1:
	.string	"Out of memory!"
	.text
	.p2align 4
	.globl	add_env
	.type	add_env, @function
add_env:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rcx, rsi
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rdx, rbp
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdi, rsp
	call	asprintf@PLT
	cmp	QWORD PTR [rsp], 0
	je	.L11
.L2:
	mov	eax, DWORD PTR num_env[rip]
	test	eax, eax
	jle	.L3
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	lea	r12, 0[0+rbx*8]
	call	strlen@PLT
	mov	rsi, rbp
	mov	rdx, rax
	mov	rax, QWORD PTR env[rip]
	mov	rdi, QWORD PTR [rax+rbx*8]
	call	strncmp@PLT
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR env[rip]
	mov	rdi, rbp
	mov	r13, QWORD PTR [rax+rbx*8]
	call	strlen@PLT
	cmp	BYTE PTR 0[r13+rax], 61
	je	.L12
.L4:
	add	rbx, 1
	cmp	DWORD PTR num_env[rip], ebx
	jg	.L6
.L3:
	mov	rdi, QWORD PTR [rsp]
	call	extend_env@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.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
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, r13
	call	free@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	rax, QWORD PTR env[rip]
	mov	QWORD PTR [rax+r12], rdx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	errx@PLT
	jmp	.L2
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	add_env, .-add_env
	.comm	num_env,4,4
	.comm	env,8,8
	.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_env.c_add_env.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s=%s\000"
	.align	2
.LC1:
	.ascii	"Out of memory!\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	add_env
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_env, %function
add_env:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L14
	sub	sp, sp, #12
	mov	r3, r1
	mov	r2, r0
	mov	r8, r0
	ldr	r1, .L14+4
	mov	r0, sp
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	bl	asprintf
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L11
.L2:
	ldr	r3, .L14+8
	ldr	r9, [r3]
	cmp	r9, #0
	ble	.L3
	mov	r0, r8
	bl	strlen
	mov	r4, #0
	mov	r7, r0
	ldr	r10, .L14+12
	ldr	r6, [r10]
	sub	r6, r6, #4
.L6:
	ldr	r5, [r6, #4]!
	mov	r2, r7
	mov	r0, r5
	mov	r1, r8
	bl	strncmp
	cmp	r0, #0
	lsl	fp, r4, #2
	bne	.L4
	ldrb	r3, [r5, r7]	@ zero_extendqisi2
	cmp	r3, #61
	beq	.L12
.L4:
	add	r4, r4, #1
	cmp	r9, r4
	bne	.L6
.L3:
	ldr	r0, [sp]
	bl	extend_env
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r0, r5
	bl	free
	ldr	r3, [r10]
	ldr	r2, [sp]
	str	r2, [r3, fp]
	b	.L1
.L11:
	ldr	r1, .L14+16
	mov	r0, #1
	bl	errx
	b	.L2
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	.LC0
	.word	num_env
	.word	env
	.word	.LC1
	.size	add_env, .-add_env
	.comm	num_env,4,4
	.comm	env,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
