	.file	"934091.c"
	.intel_syntax noprefix
	.text
	.globl	getenv
	.type	getenv, @function
getenv:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	_findenv
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getenv, .-getenv
	.globl	_findenv
	.type	_findenv, @function
_findenv:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	r14, rdi
	mov	QWORD PTR -40[rbp], rsi
	mov	rbx, r14
	mov	r13d, 0
	jmp	.L5
.L7:
	add	rbx, 1
	add	r13d, 1
.L5:
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	je	.L6
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 61
	jne	.L7
.L6:
	mov	r12, QWORD PTR environ[rip]
	jmp	.L8
.L11:
	movsx	rdx, r13d
	mov	rax, QWORD PTR [r12]
	mov	rsi, r14
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L9
	mov	rdx, QWORD PTR [r12]
	movsx	rax, r13d
	lea	rbx, [rdx+rax]
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 61
	jne	.L9
	mov	rdx, QWORD PTR environ[rip]
	mov	rax, r12
	sub	rax, rdx
	sar	rax, 3
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	add	rbx, 1
	mov	rax, rbx
	jmp	.L10
.L9:
	add	r12, 8
.L8:
	mov	rax, QWORD PTR [r12]
	test	rax, rax
	jne	.L11
	mov	eax, 0
.L10:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_findenv, .-_findenv
	.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	"934091.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getenv
	.syntax unified
	.arm
	.fpu softvfp
	.type	getenv, %function
getenv:
	@ 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]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	_findenv
	mov	r3, r0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	getenv, .-getenv
	.align	2
	.global	_findenv
	.syntax unified
	.arm
	.fpu softvfp
	.type	_findenv, %function
_findenv:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	mov	r7, r0
	str	r1, [fp, #-24]
	mov	r4, r7
	mov	r6, #0
	b	.L7
.L9:
	add	r4, r4, #1
	add	r6, r6, #1
.L7:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #61
	bne	.L9
.L8:
	ldr	r3, .L14
	ldr	r5, [r3]
	b	.L10
.L13:
	ldr	r3, [r5]
	mov	r2, r6
	mov	r1, r7
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, [r5]
	mov	r2, r6
	add	r4, r3, r2
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #61
	bne	.L11
	ldr	r3, .L14
	ldr	r3, [r3]
	sub	r3, r5, r3
	asr	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	add	r4, r4, #1
	mov	r3, r4
	b	.L12
.L11:
	add	r5, r5, #4
.L10:
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L13
	mov	r3, #0
.L12:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L15:
	.align	2
.L14:
	.word	environ
	.size	_findenv, .-_findenv
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
