	.file	"extr_os_msdos.c_mch_getenv.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mch_getenv
	.type	mch_getenv, @function
mch_getenv:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 416
	.cfi_def_cfa_offset 464
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 408[rsp], rax
	xor	eax, eax
	call	STRLEN@PLT
	cmp	eax, 50
	jg	.L16
	mov	rdi, QWORD PTR 0[rbp]
	mov	r13, rsp
	cmp	QWORD PTR NUL[rip], rdi
	mov	r12, r13
	je	.L17
.L7:
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	call	toupper@PLT
	mov	QWORD PTR [r12+rbx], rax
	add	rbx, 8
	mov	rax, QWORD PTR NUL[rip]
	mov	rdi, QWORD PTR 0[rbp+rbx]
	cmp	rdi, rax
	jne	.L5
	add	rbx, r12
.L4:
	mov	QWORD PTR [rbx], rax
	mov	rdi, r12
	call	getenv@PLT
	mov	r14, rax
	cmp	r12, r13
	je	.L1
	cmp	rbp, r12
	je	.L1
	mov	rdi, r12
	call	vim_free@PLT
.L1:
	mov	rax, QWORD PTR 408[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 416
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r14
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	lea	edi, 1[rax]
	call	alloc@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L19
	mov	rdi, rbp
	call	getenv@PLT
	mov	r14, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	QWORD PTR [rsp], rdi
	mov	rdi, r13
	call	getenv@PLT
	mov	r14, rax
	jmp	.L1
.L19:
	mov	rdi, QWORD PTR 0[rbp]
	cmp	QWORD PTR NUL[rip], rdi
	je	.L10
	mov	r13, rsp
	jmp	.L7
.L10:
	mov	rbx, rax
	mov	r13, rsp
	mov	rax, rdi
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mch_getenv, .-mch_getenv
	.comm	NUL,8,8
	.comm	MAXENVLEN,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_os_msdos.c_mch_getenv.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mch_getenv
	.syntax unified
	.arm
	.fpu softvfp
	.type	mch_getenv, %function
mch_getenv:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L20
	sub	sp, sp, #212
	ldr	r3, [r3]
	str	r3, [sp, #204]
	mov	r3,#0
	mov	r5, r0
	bl	STRLEN
	cmp	r0, #50
	bgt	.L16
	ldr	r7, .L20+4
	ldr	r2, [r5]
	ldr	r3, [r7]
	cmp	r2, r3
	movne	r6, sp
	movne	r4, r6
	beq	.L17
.L7:
	mov	r9, r5
	sub	r8, r4, #4
.L5:
	mov	r0, r2
	bl	toupper
	mov	r3, r8
	str	r0, [r8, #4]!
	ldr	r2, [r9, #4]!
	ldr	r1, [r7]
	add	r3, r3, #8
	cmp	r2, r1
	sub	r3, r3, r4
	bne	.L5
	add	r3, r4, r3
.L4:
	mov	r0, r4
	str	r1, [r3]
	bl	getenv
	cmp	r4, r6
	mov	r6, r0
	beq	.L1
	cmp	r5, r4
	beq	.L1
	mov	r0, r4
	bl	vim_free
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #204]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, r6
	add	sp, sp, #212
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L16:
	add	r0, r0, #1
	bl	alloc
	subs	r4, r0, #0
	bne	.L19
	mov	r0, r5
	bl	getenv
	mov	r6, r0
	b	.L1
.L17:
	mov	r0, sp
	str	r2, [sp]
	bl	getenv
	mov	r6, r0
	b	.L1
.L19:
	ldr	r7, .L20+4
	ldr	r2, [r5]
	ldr	r1, [r7]
	cmp	r1, r2
	movne	r6, sp
	bne	.L7
.L10:
	mov	r3, r4
	mov	r6, sp
	b	.L4
.L18:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	NUL
	.size	mch_getenv, .-mch_getenv
	.comm	NUL,4,4
	.comm	MAXENVLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
