	.file	"extr_getenv.c___merge_environ.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__merge_environ, @function
__merge_environ:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR intEnviron[rip]
	test	rax, rax
	je	.L24
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, QWORD PTR environ[rip]
	mov	rdx, QWORD PTR envActive[rip]
	cmp	rax, rbx
	je	.L25
	test	rdx, rdx
	jg	.L6
.L7:
	mov	QWORD PTR origEnviron[rip], rbx
	test	rbx, rbx
	je	.L5
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	jne	.L9
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	sub	rsi, rdi
	lea	rdx, 1[rax]
	mov	ecx, 1
	call	__setenv@PLT
	cmp	eax, -1
	je	.L1
	mov	rdi, QWORD PTR 8[rbx]
	add	rbx, 8
	test	rdi, rdi
	je	.L5
.L9:
	mov	esi, 61
	call	strchr@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, rax
	test	rax, rax
	jne	.L8
	call	strlen@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	edi, DWORD PTR CorruptEnvValueMsg[rip]
	mov	edx, eax
	call	__env_warnx@PLT
	mov	eax, DWORD PTR EFAULT[rip]
	mov	DWORD PTR errno[rip], eax
	mov	eax, -1
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	test	rdx, rdx
	jle	.L5
	cmp	QWORD PTR [rax], 0
	je	.L6
.L5:
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore 3
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	QWORD PTR origEnviron[rip], 0
	xor	edi, edi
	call	__clean_env@PLT
	mov	rbx, QWORD PTR environ[rip]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	__merge_environ, .-__merge_environ
	.comm	origEnviron,8,8
	.comm	intEnviron,8,8
	.comm	errno,4,4
	.comm	environ,8,8
	.comm	envActive,8,8
	.comm	EFAULT,4,4
	.comm	CorruptEnvValueMsg,4,4
	.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_getenv.c___merge_environ.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__merge_environ, %function
__merge_environ:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L30
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L28
	push	{r4, r5, r6, lr}
	ldr	r5, .L30+4
	ldr	r2, .L30+8
	ldr	r4, [r5]
	ldr	r2, [r2]
	cmp	r3, r4
	beq	.L29
	cmp	r2, #0
	bgt	.L6
	ldr	r6, .L30+12
.L7:
	cmp	r4, #0
	str	r4, [r6]
	beq	.L5
	ldr	r0, [r4]
	cmp	r0, #0
	bne	.L9
	b	.L5
.L8:
	ldr	r0, [r4]
	mov	r3, #1
	sub	r1, r1, r0
	bl	__setenv
	cmn	r0, #1
	popeq	{r4, r5, r6, pc}
	ldr	r0, [r4, #4]!
	cmp	r0, #0
	beq	.L5
.L9:
	mov	r1, #61
	bl	strchr
	subs	r1, r0, #0
	add	r2, r1, #1
	bne	.L8
	ldr	r4, [r4]
	mov	r0, r4
	bl	strlen
	ldr	r3, .L30+16
	mov	r2, r0
	mov	r1, r4
	ldr	r0, [r3]
	bl	__env_warnx
	ldr	r2, .L30+20
	ldr	r3, .L30+24
	ldr	r2, [r2]
	mvn	r0, #0
	str	r2, [r3]
	pop	{r4, r5, r6, pc}
.L29:
	cmp	r2, #0
	ble	.L5
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L28:
	mov	r0, #0
	bx	lr
.L6:
	mov	r0, #0
	ldr	r6, .L30+12
	str	r0, [r6]
	bl	__clean_env
	ldr	r4, [r5]
	b	.L7
.L31:
	.align	2
.L30:
	.word	intEnviron
	.word	environ
	.word	envActive
	.word	origEnviron
	.word	CorruptEnvValueMsg
	.word	EFAULT
	.word	errno
	.size	__merge_environ, .-__merge_environ
	.comm	origEnviron,4,4
	.comm	intEnviron,4,4
	.comm	errno,4,4
	.comm	environ,4,4
	.comm	envActive,4,4
	.comm	EFAULT,4,4
	.comm	CorruptEnvValueMsg,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
