	.file	"79123.c"
	.intel_syntax noprefix
	.text
	.section	.data.rel,"aw"
	.align 8
	.type	p_environ, @object
	.size	p_environ, 8
p_environ:
	.quad	environ
	.text
	.globl	setenv
	.type	setenv, @function
setenv:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 48
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 61
	mov	rdi, rax
	call	strchr@PLT
	test	rax, rax
	je	.L2
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	mov	eax, -1
	jmp	.L16
.L2:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -28[rbp], eax
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	__findenv@PLT
	mov	rbx, rax
	test	rbx, rbx
	je	.L4
	cmp	DWORD PTR -52[rbp], 0
	jne	.L5
	mov	eax, 0
	jmp	.L16
.L5:
	mov	rdi, rbx
	call	strlen@PLT
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	jb	.L6
	nop
.L7:
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, 1[rdx]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L7
	mov	eax, 0
	jmp	.L16
.L4:
	mov	rax, QWORD PTR p_environ[rip]
	mov	rbx, QWORD PTR [rax]
	mov	r12d, 0
	jmp	.L8
.L9:
	add	rbx, 8
	add	r12d, 1
.L8:
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	jne	.L9
	lea	eax, 2[r12]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	rbx, rax
	test	rbx, rbx
	jne	.L10
	mov	eax, -1
	jmp	.L16
.L10:
	movsx	rax, r12d
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR p_environ[rip]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	mov	rdi, rbx
	call	memcpy@PLT
	mov	rax, QWORD PTR p_environ[rip]
	mov	QWORD PTR [rax], rbx
	mov	rax, QWORD PTR p_environ[rip]
	mov	rdx, QWORD PTR [rax]
	movsx	rax, r12d
	add	rax, 1
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	DWORD PTR -32[rbp], r12d
.L6:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rdx
	add	rax, 2
	mov	rdx, QWORD PTR p_environ[rip]
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	jne	.L11
	mov	eax, -1
	jmp	.L16
.L11:
	mov	rax, QWORD PTR p_environ[rip]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rbx, QWORD PTR [rax]
	jmp	.L12
.L14:
	add	rbx, 1
.L12:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -40[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rbx], al
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	je	.L13
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 61
	jne	.L14
.L13:
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	BYTE PTR [rax], 61
	nop
.L15:
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, 1[rdx]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L15
	mov	eax, 0
.L16:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	add	rsp, 48
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	setenv, .-setenv
	.globl	unsetenv
	.type	unsetenv, @function
unsetenv:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -40[rbp], 0
	je	.L19
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L19
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 61
	mov	rdi, rax
	call	strchr@PLT
	test	rax, rax
	je	.L22
.L19:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	mov	eax, -1
	jmp	.L26
.L25:
	mov	rax, QWORD PTR p_environ[rip]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
.L24:
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	jne	.L23
	jmp	.L22
.L23:
	add	rbx, 8
	jmp	.L24
.L22:
	lea	rdx, -28[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	__findenv@PLT
	test	rax, rax
	jne	.L25
	mov	eax, 0
.L26:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	unsetenv, .-unsetenv
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"79123.c"
	.text
	.data
	.align	2
	.type	p_environ, %object
	.size	p_environ, 4
p_environ:
	.word	environ
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	setenv
	.syntax unified
	.arm
	.fpu softvfp
	.type	setenv, %function
setenv:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r1, #61
	ldr	r0, [fp, #-32]
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	mvn	r3, #0
	b	.L16
.L2:
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-20]
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	__findenv
	mov	r4, r0
	cmp	r4, #0
	beq	.L4
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
	b	.L16
.L5:
	mov	r0, r4
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L6
	nop
.L7:
	ldr	r2, [fp, #-36]
	add	r3, r2, #1
	str	r3, [fp, #-36]
	mov	r3, r4
	add	r4, r3, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	mov	r3, #0
	b	.L16
.L4:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r4, [r3]
	mov	r5, #0
	b	.L8
.L9:
	add	r4, r4, #4
	add	r5, r5, #1
.L8:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L9
	add	r3, r5, #2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r4, r3
	cmp	r4, #0
	bne	.L10
	mvn	r3, #0
	b	.L16
.L10:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r2, r5
	lsl	r2, r2, #2
	mov	r1, r3
	mov	r0, r4
	bl	memcpy
	ldr	r3, .L18+4
	ldr	r3, [r3]
	str	r4, [r3]
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r2, [r3]
	mov	r3, r5
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	str	r5, [fp, #-24]
.L6:
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	add	r1, r3, #2
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L11
	mvn	r3, #0
	b	.L16
.L11:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r4, [r3]
	b	.L12
.L14:
	add	r4, r4, #1
.L12:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [r4]
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L13
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #61
	bne	.L14
.L13:
	mov	r3, r4
	add	r4, r3, #1
	mov	r2, #61
	strb	r2, [r3]
	nop
.L15:
	ldr	r2, [fp, #-36]
	add	r3, r2, #1
	str	r3, [fp, #-36]
	mov	r3, r4
	add	r4, r3, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L15
	mov	r3, #0
.L16:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	p_environ
	.size	setenv, .-setenv
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	unsetenv
	.syntax unified
	.arm
	.fpu softvfp
	.type	unsetenv, %function
unsetenv:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L21
	mov	r1, #61
	ldr	r0, [fp, #-24]
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
.L21:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	mvn	r3, #0
	b	.L28
.L27:
	ldr	r3, .L30+4
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r4, r2, r3
.L26:
	ldr	r3, [r4, #4]
	str	r3, [r4]
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L25
	b	.L24
.L25:
	add	r4, r4, #4
	b	.L26
.L24:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	__findenv
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	mov	r3, #0
.L28:
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC1
	.word	p_environ
	.size	unsetenv, .-unsetenv
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
