	.file	"121958.c"
	.intel_syntax noprefix
	.text
	.local	vars
	.comm	vars,12544,32
	.section	.rodata
.LC0:
	.string	"-e"
.LC1:
	.string	"PASSED"
.LC2:
	.string	"FAILED"
.LC3:
	.string	"test_env: exec test: %s\n"
.LC4:
	.string	"test_env: random test: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 2
	jne	.L2
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	call	test_env_exec_continue
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L3
	lea	rax, .LC1[rip]
	jmp	.L4
.L3:
	lea	rax, .LC2[rip]
.L4:
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L2:
	call	test_env_random
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L6
	lea	rax, .LC1[rip]
	jmp	.L7
.L6:
	lea	rax, .LC2[rip]
.L7:
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	test_env_exec_start
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L8
	lea	rax, .LC1[rip]
	jmp	.L9
.L8:
	lea	rax, .LC2[rip]
.L9:
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	"VARIABLE%u"
.LC6:
	.string	"\rtest_env: random test: %u/%u"
.LC7:
	.string	"\n\rclearenv() failed (%d)"
.LC8:
	.string	"\n\runsetenv(%s) failed (%d)"
	.align 8
.LC9:
	.string	"\n\rsetenv(%s, %s, %u) failed (%d)"
.LC10:
	.string	"\n\rputenv(%s) failed (%d)"
	.align 8
.LC11:
	.string	"\n\rgetenv returned value other than NULL for unset variable (%s)\n"
	.align 8
.LC12:
	.string	"\n\rgetenv returned invalid value for set variable (%s)\n"
	.align 8
.LC13:
	.string	"\n\rtest_env: random test: setenv: %u, putenv: %u, unsetenv: %u, clearenv: %u\n"
	.text
	.type	test_env_random, @function
test_env_random:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -92[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -108[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -108[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip+192]
	mov	DWORD PTR [rax+rdx], 0
	mov	eax, DWORD PTR -108[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip]
	lea	rcx, [rax+rdx]
	mov	eax, DWORD PTR -108[rbp]
	mov	edx, eax
	lea	rsi, .LC5[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -108[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip+64]
	mov	BYTE PTR [rax+rdx], 0
	add	DWORD PTR -108[rbp], 1
.L12:
	cmp	DWORD PTR -108[rbp], 63
	jbe	.L13
	mov	DWORD PTR -108[rbp], 0
	jmp	.L14
.L35:
	mov	eax, DWORD PTR -108[rbp]
	add	eax, 1
	mov	edx, 1000
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 6
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 200
	sub	eax, ecx
	mov	edx, eax
	test	edx, edx
	jne	.L15
	add	DWORD PTR -100[rbp], 1
	call	clearenv@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	je	.L16
	mov	eax, DWORD PTR -72[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L17
.L16:
	mov	DWORD PTR -104[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -104[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip+192]
	mov	DWORD PTR [rax+rdx], 0
	add	DWORD PTR -104[rbp], 1
.L18:
	cmp	DWORD PTR -104[rbp], 63
	jbe	.L19
	jmp	.L20
.L15:
	call	rand@PLT
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	DWORD PTR -84[rbp], eax
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -80[rbp], eax
	cmp	DWORD PTR -80[rbp], 2
	jne	.L21
	add	DWORD PTR -88[rbp], 1
	mov	eax, DWORD PTR -84[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip]
	add	rax, rdx
	mov	rdi, rax
	call	unsetenv@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	je	.L22
	mov	eax, DWORD PTR -84[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip]
	lea	rcx, [rax+rdx]
	mov	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	rsi, rcx
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L17
.L22:
	mov	eax, DWORD PTR -84[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip+192]
	mov	DWORD PTR [rax+rdx], 0
	jmp	.L20
.L21:
	call	rand@PLT
	cdq
	shr	edx, 27
	add	eax, edx
	and	eax, 31
	sub	eax, edx
	mov	DWORD PTR -76[rbp], eax
	mov	DWORD PTR -104[rbp], 0
	jmp	.L23
.L24:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, -1370734243
	shr	rdx, 32
	add	edx, eax
	sar	edx, 6
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 94
	sub	eax, ecx
	mov	edx, eax
	mov	eax, edx
	add	eax, 33
	mov	BYTE PTR -109[rbp], al
	cmp	BYTE PTR -109[rbp], 0
	je	.L24
	cmp	BYTE PTR -109[rbp], 61
	je	.L24
	mov	eax, DWORD PTR -104[rbp]
	movzx	edx, BYTE PTR -109[rbp]
	mov	BYTE PTR -48[rbp+rax], dl
	add	DWORD PTR -104[rbp], 1
.L23:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jb	.L24
	mov	eax, DWORD PTR -76[rbp]
	mov	BYTE PTR -48[rbp+rax], 0
	cmp	DWORD PTR -80[rbp], 0
	je	.L25
	call	rand@PLT
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	DWORD PTR -68[rbp], eax
	add	DWORD PTR -92[rbp], 1
	mov	edx, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -84[rbp]
	imul	rax, rax, 196
	lea	rcx, vars[rip]
	add	rcx, rax
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	setenv@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	je	.L26
	mov	eax, DWORD PTR -84[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip]
	lea	rsi, [rax+rdx]
	mov	ecx, DWORD PTR -72[rbp]
	mov	edx, DWORD PTR -68[rbp]
	lea	rax, -48[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	rdx, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L17
.L26:
	mov	eax, DWORD PTR -84[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip+192]
	mov	eax, DWORD PTR [rax+rdx]
	test	eax, eax
	je	.L28
	cmp	DWORD PTR -68[rbp], 0
	je	.L29
.L28:
	mov	eax, DWORD PTR -84[rbp]
	imul	rax, rax, 196
	lea	rdx, 64[rax]
	lea	rax, vars[rip]
	add	rdx, rax
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	jmp	.L29
.L25:
	mov	eax, DWORD PTR -84[rbp]
	imul	rax, rax, 196
	lea	rdx, 64[rax]
	lea	rax, vars[rip]
	add	rdx, rax
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	eax, DWORD PTR -84[rbp]
	imul	rax, rax, 196
	lea	rdx, 96[rax]
	lea	rax, vars[rip]
	add	rax, rdx
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -84[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -84[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip]
	add	rax, rdx
	mov	rdi, rax
	call	strlen@PLT
	add	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -64[rbp], rdx
	mov	BYTE PTR [rax], 61
	mov	eax, DWORD PTR -84[rbp]
	imul	rax, rax, 196
	lea	rdx, 64[rax]
	lea	rax, vars[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -96[rbp], 1
	mov	eax, DWORD PTR -84[rbp]
	imul	rax, rax, 196
	lea	rdx, 96[rax]
	lea	rax, vars[rip]
	add	rax, rdx
	mov	rdi, rax
	call	putenv@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	je	.L29
	mov	eax, DWORD PTR -84[rbp]
	imul	rax, rax, 196
	lea	rdx, 96[rax]
	lea	rax, vars[rip]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	rsi, rcx
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L17
.L29:
	mov	eax, DWORD PTR -84[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip+192]
	mov	DWORD PTR [rax+rdx], 1
.L20:
	mov	DWORD PTR -104[rbp], 0
	jmp	.L30
.L34:
	mov	eax, DWORD PTR -104[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip]
	add	rax, rdx
	mov	rdi, rax
	call	getenv@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	eax, DWORD PTR -104[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip+192]
	mov	eax, DWORD PTR [rax+rdx]
	test	eax, eax
	jne	.L31
	cmp	QWORD PTR -56[rbp], 0
	je	.L31
	mov	eax, DWORD PTR -104[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L17
.L31:
	mov	eax, DWORD PTR -104[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip+192]
	mov	eax, DWORD PTR [rax+rdx]
	test	eax, eax
	je	.L32
	cmp	QWORD PTR -56[rbp], 0
	je	.L33
	mov	eax, DWORD PTR -104[rbp]
	imul	rax, rax, 196
	lea	rdx, 64[rax]
	lea	rax, vars[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L32
.L33:
	mov	eax, DWORD PTR -104[rbp]
	imul	rax, rax, 196
	lea	rdx, vars[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L17
.L32:
	add	DWORD PTR -104[rbp], 1
.L30:
	cmp	DWORD PTR -104[rbp], 63
	jbe	.L34
	add	DWORD PTR -108[rbp], 1
.L14:
	cmp	DWORD PTR -108[rbp], 999
	jbe	.L35
	mov	esi, DWORD PTR -100[rbp]
	mov	ecx, DWORD PTR -88[rbp]
	mov	edx, DWORD PTR -96[rbp]
	mov	eax, DWORD PTR -92[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L17:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	test_env_random, .-test_env_random
	.section	.rodata
.LC14:
	.string	"TEST_VALUE"
.LC15:
	.string	"TEST_VARIABLE"
	.align 8
.LC16:
	.string	"test_env: exec test: setenv failed"
	.align 8
.LC17:
	.string	"test_env: exec test: execve failed"
	.text
	.type	test_env_exec_start, @function
test_env_exec_start:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 1
	lea	rsi, .LC14[rip]
	lea	rdi, .LC15[rip]
	call	setenv@PLT
	test	eax, eax
	je	.L38
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L41
.L38:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	mov	rdx, QWORD PTR environ[rip]
	lea	rcx, -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	execve@PLT
	test	eax, eax
	je	.L40
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L41
.L40:
	mov	eax, 0
.L41:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	test_env_exec_start, .-test_env_exec_start
	.section	.rodata
	.align 8
.LC18:
	.string	"test_env: exec test: Test variable is not set or has wrong value."
	.text
	.type	test_env_exec_continue, @function
test_env_exec_continue:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rdi, .LC15[rip]
	call	getenv@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L44
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L45
.L44:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L46
.L45:
	mov	eax, 0
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	test_env_exec_continue, .-test_env_exec_continue
	.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	"121958.c"
	.text
	.local	vars
	.comm	vars,12544,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-e\000"
	.align	2
.LC1:
	.ascii	"PASSED\000"
	.align	2
.LC2:
	.ascii	"FAILED\000"
	.align	2
.LC3:
	.ascii	"test_env: exec test: %s\012\000"
	.align	2
.LC4:
	.ascii	"test_env: random test: %s\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L2
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L11
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	bl	test_env_exec_continue
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L11+4
	b	.L4
.L3:
	ldr	r3, .L11+8
.L4:
	mov	r1, r3
	ldr	r0, .L11+12
	bl	printf
	b	.L5
.L2:
	bl	test_env_random
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L11+4
	b	.L7
.L6:
	ldr	r3, .L11+8
.L7:
	mov	r1, r3
	ldr	r0, .L11+16
	bl	printf
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	test_env_exec_start
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L11+4
	b	.L9
.L8:
	ldr	r3, .L11+8
.L9:
	mov	r1, r3
	ldr	r0, .L11+12
	bl	printf
.L5:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.ascii	"VARIABLE%u\000"
	.align	2
.LC6:
	.ascii	"\015test_env: random test: %u/%u\000"
	.align	2
.LC7:
	.ascii	"\012\015clearenv() failed (%d)\000"
	.align	2
.LC8:
	.ascii	"\012\015unsetenv(%s) failed (%d)\000"
	.align	2
.LC9:
	.ascii	"\012\015setenv(%s, %s, %u) failed (%d)\000"
	.align	2
.LC10:
	.ascii	"\012\015putenv(%s) failed (%d)\000"
	.align	2
.LC11:
	.ascii	"\012\015getenv returned value other than NULL for u"
	.ascii	"nset variable (%s)\012\000"
	.align	2
.LC12:
	.ascii	"\012\015getenv returned invalid value for set varia"
	.ascii	"ble (%s)\012\000"
	.align	2
.LC13:
	.ascii	"\012\015test_env: random test: setenv: %u, putenv: "
	.ascii	"%u, unsetenv: %u, clearenv: %u\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_env_random, %function
test_env_random:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L14
.L15:
	ldr	r1, .L39+4
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #192
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	ldr	r3, .L39+4
	add	r3, r2, r3
	ldr	r2, [fp, #-92]
	ldr	r1, .L39+8
	mov	r0, r3
	bl	sprintf
	ldr	r1, .L39+4
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #64
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L14:
	ldr	r3, [fp, #-92]
	cmp	r3, #63
	bls	.L15
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L16
.L37:
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	mov	r2, #1000
	mov	r1, r3
	ldr	r0, .L39+12
	bl	printf
	bl	rand
	mov	r1, r0
	ldr	r3, .L39+16
	smull	r2, r3, r1, r3
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L17
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
	bl	clearenv
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L18
	ldr	r1, [fp, #-52]
	ldr	r0, .L39+20
	bl	printf
	mvn	r3, #0
	b	.L19
.L18:
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L20
.L21:
	ldr	r1, .L39+4
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #192
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L20:
	ldr	r3, [fp, #-88]
	cmp	r3, #63
	bls	.L21
	b	.L22
.L17:
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #63
	and	r2, r2, #63
	rsbpl	r3, r2, #0
	str	r3, [fp, #-68]
	bl	rand
	mov	r1, r0
	ldr	r3, .L39+24
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	str	r2, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #2
	bne	.L23
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	ldr	r3, .L39+4
	add	r3, r2, r3
	mov	r0, r3
	bl	unsetenv
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L24
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	ldr	r3, .L39+4
	add	r3, r2, r3
	ldr	r2, [fp, #-52]
	mov	r1, r3
	ldr	r0, .L39+28
	bl	printf
	mvn	r3, #0
	b	.L19
.L24:
	ldr	r1, .L39+4
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #192
	mov	r2, #0
	str	r2, [r3]
	b	.L22
.L23:
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #31
	and	r2, r2, #31
	rsbpl	r3, r2, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L25
.L26:
	bl	rand
	mov	r1, r0
	ldr	r3, .L39+32
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	and	r3, r2, #255
	add	r3, r3, #33
	strb	r3, [fp, #-93]
	ldrb	r3, [fp, #-93]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L26
	ldrb	r3, [fp, #-93]	@ zero_extendqisi2
	cmp	r3, #61
	beq	.L26
	sub	r2, fp, #40
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	ldrb	r2, [fp, #-93]
	strb	r2, [r3]
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L25:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	bcc	.L26
	sub	r2, fp, #40
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L27
	bl	rand
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	ldr	r3, .L39+4
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	sub	r1, fp, #40
	mov	r0, r3
	bl	setenv
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L28
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	ldr	r3, .L39+4
	add	r1, r2, r3
	sub	r2, fp, #40
	ldr	r3, [fp, #-52]
	str	r3, [sp]
	ldr	r3, [fp, #-48]
	ldr	r0, .L39+36
	bl	printf
	mvn	r3, #0
	b	.L19
.L28:
	ldr	r1, .L39+4
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #192
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L31
.L30:
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r2, #64
	ldr	r2, .L39+4
	add	r3, r3, r2
	sub	r2, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	b	.L31
.L27:
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r2, #64
	ldr	r2, .L39+4
	add	r3, r3, r2
	sub	r2, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r2, #96
	ldr	r2, .L39+4
	add	r3, r3, r2
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	ldr	r3, .L39+4
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	strcpy
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	ldr	r3, .L39+4
	add	r3, r2, r3
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-56]
	add	r3, r3, r2
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	add	r2, r3, #1
	str	r2, [fp, #-56]
	mov	r2, #61
	strb	r2, [r3]
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r2, #64
	ldr	r2, .L39+4
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	strcpy
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r2, #96
	ldr	r2, .L39+4
	add	r3, r3, r2
	mov	r0, r3
	bl	putenv
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L31
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r2, #96
	ldr	r2, .L39+4
	add	r3, r3, r2
	ldr	r2, [fp, #-52]
	mov	r1, r3
	ldr	r0, .L39+40
	bl	printf
	mvn	r3, #0
	b	.L19
.L31:
	ldr	r1, .L39+4
	ldr	r2, [fp, #-68]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #192
	mov	r2, #1
	str	r2, [r3]
.L22:
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L32
.L36:
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	ldr	r3, .L39+4
	add	r3, r2, r3
	mov	r0, r3
	bl	getenv
	str	r0, [fp, #-44]
	ldr	r1, .L39+4
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #192
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L33
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	ldr	r3, .L39+4
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L39+44
	bl	printf
	mvn	r3, #0
	b	.L19
.L33:
	ldr	r1, .L39+4
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #192
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L35
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r2, #64
	ldr	r2, .L39+4
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
.L35:
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	ldr	r3, .L39+4
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L39+48
	bl	printf
	mvn	r3, #0
	b	.L19
.L34:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L32:
	ldr	r3, [fp, #-88]
	cmp	r3, #63
	bls	.L36
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L16:
	ldr	r3, [fp, #-92]
	cmp	r3, #1000
	bcc	.L37
	ldr	r3, [fp, #-84]
	str	r3, [sp]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-80]
	ldr	r1, [fp, #-76]
	ldr	r0, .L39+52
	bl	printf
	mov	r3, #0
.L19:
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC14
	.word	vars
	.word	.LC5
	.word	.LC6
	.word	1374389535
	.word	.LC7
	.word	1431655766
	.word	.LC8
	.word	-1370734243
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	test_env_random, .-test_env_random
	.section	.rodata
	.align	2
.LC15:
	.ascii	"TEST_VALUE\000"
	.align	2
.LC16:
	.ascii	"TEST_VARIABLE\000"
	.align	2
.LC17:
	.ascii	"test_env: exec test: setenv failed\000"
	.align	2
.LC18:
	.ascii	"test_env: exec test: execve failed\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_env_exec_start, %function
test_env_exec_start:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #1
	ldr	r1, .L47+4
	ldr	r0, .L47+8
	bl	setenv
	mov	r3, r0
	cmp	r3, #0
	beq	.L42
	ldr	r0, .L47+12
	bl	puts
	mvn	r3, #0
	b	.L45
.L42:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	ldr	r3, .L47+16
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L47+20
	ldr	r2, [r3]
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	execve
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
	ldr	r0, .L47+24
	bl	puts
	mvn	r3, #0
	b	.L45
.L44:
	mov	r3, #0
.L45:
	ldr	r2, .L47
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC19
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC0
	.word	environ
	.word	.LC18
	.size	test_env_exec_start, .-test_env_exec_start
	.section	.rodata
	.align	2
.LC20:
	.ascii	"test_env: exec test: Test variable is not set or ha"
	.ascii	"s wrong value.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_env_exec_continue, %function
test_env_exec_continue:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L53
	bl	getenv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L50
	ldr	r1, .L53+4
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L51
.L50:
	ldr	r0, .L53+8
	bl	puts
	mvn	r3, #0
	b	.L52
.L51:
	mov	r3, #0
.L52:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC16
	.word	.LC15
	.word	.LC20
	.size	test_env_exec_continue, .-test_env_exec_continue
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
