	.file	"extr_putenv.c_putenv.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	putenv
	.type	putenv, @function
putenv:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, 61
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbx
	sub	rsp, 16
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	call	strchr@PLT
	test	rax, rax
	je	.L2
	mov	r14, rax
	mov	rbx, rax
	sub	r14, r12
	lea	edi, 1[r14]
	call	alloca@PLT
	mov	edx, r14d
	mov	rsi, r12
	mov	r13, rax
	mov	rdi, rax
	call	memcpy@PLT
	mov	BYTE PTR 0[r13+r14], 0
	lea	rsi, 1[rbx]
	mov	rdi, r13
	mov	edx, 1
	call	setenv@PLT
.L1:
	mov	rcx, QWORD PTR -40[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L7
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r12
	call	unsetenv@PLT
	xor	eax, eax
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	putenv, .-putenv
	.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_putenv.c_putenv.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	putenv
	.syntax unified
	.arm
	.fpu softvfp
	.type	putenv, %function
putenv:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #12
	ldr	r3, .L8
	mov	r1, #61
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r5, r0
	bl	strchr
	subs	r4, r0, #0
	beq	.L2
	sub	r6, r4, r5
	add	r3, r6, #8
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r3, sp
	mov	r1, r5
	mov	r2, r6
	mov	r0, r3
	bl	memcpy
	mov	r2, sp
	mov	ip, #0
	lsr	r2, r2, #3
	strb	ip, [r6, r2, lsl #3]
	add	r1, r4, #1
	mov	r2, #1
	bl	setenv
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L2:
	mov	r0, r5
	bl	unsetenv
	mov	r0, r4
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	putenv, .-putenv
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
