	.file	"extr_userenv.c_get_env.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_env, @function
get_env:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rax, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 296
	.cfi_def_cfa_offset 352
	mov	QWORD PTR 8[rsp], rdx
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 280[rsp], rcx
	xor	ecx, ecx
	test	rsi, rsi
	sete	dl
	test	rax, rax
	sete	al
	or	dl, al
	jne	.L19
	mov	rbx, rdi
	test	rdi, rdi
	je	.L19
	mov	rdi, rsi
	mov	r13, rsi
	lea	rbp, 16[rsp]
	call	strlen@PLT
	mov	r12d, eax
	cdqe
	mov	QWORD PTR [rsp], rax
	.p2align 4,,10
	.p2align 3
.L11:
	push	0
	.cfi_def_cfa_offset 360
	mov	edi, DWORD PTR CP_ACP[rip]
	mov	ecx, -1
	mov	rdx, rbx
	push	0
	.cfi_def_cfa_offset 368
	mov	r9d, 256
	mov	r8, rbp
	xor	esi, esi
	call	WideCharToMultiByte@PLT
	pop	rdx
	.cfi_def_cfa_offset 360
	pop	rcx
	.cfi_def_cfa_offset 352
	test	eax, eax
	jne	.L5
	mov	BYTE PTR 271[rsp], 0
.L5:
	mov	rdi, rbp
	call	strlen@PLT
	mov	esi, r12d
	mov	edi, eax
	call	min@PLT
	mov	esi, DWORD PTR NORM_IGNORECASE[rip]
	or	esi, DWORD PTR LOCALE_USE_CP_ACP[rip]
	mov	r15d, eax
	xor	eax, eax
	mov	r14d, esi
	call	GetThreadLocale@PLT
	mov	r9d, r12d
	mov	r8, r13
	mov	ecx, r15d
	mov	edi, eax
	mov	rdx, rbp
	mov	esi, r14d
	call	CompareStringA@PLT
	cmp	rax, QWORD PTR CSTR_EQUAL[rip]
	jne	.L21
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	add	rbx, 8
.L21:
	cmp	QWORD PTR [rbx], 0
	jne	.L7
	mov	rax, rbx
	add	rbx, 8
	cmp	QWORD PTR 8[rax], 0
	jne	.L11
.L19:
	mov	eax, DWORD PTR FALSE[rip]
.L1:
	mov	rcx, QWORD PTR 280[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L23
	add	rsp, 296
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR [rsp]
	cmp	BYTE PTR 16[rsp+rax], 61
	jne	.L21
	mov	rdi, rbp
	call	strlen@PLT
	lea	r12d, 1[rax]
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	edx, r12d
	xor	esi, esi
	mov	edi, eax
	call	HeapAlloc@PLT
	mov	rdi, rax
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR [rax], rdi
	test	rdi, rdi
	je	.L19
	mov	edx, r12d
	mov	rsi, rbp
	call	memcpy@PLT
	mov	eax, DWORD PTR TRUE[rip]
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_env, .-get_env
	.comm	TRUE,4,4
	.comm	NORM_IGNORECASE,4,4
	.comm	LOCALE_USE_CP_ACP,4,4
	.comm	FALSE,4,4
	.comm	CSTR_EQUAL,8,8
	.comm	CP_ACP,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_userenv.c_get_env.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_env, %function
get_env:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r2
	cmp	r1, #0
	lsr	r3, r3, #5
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	movne	r5, r3
	moveq	r5, #1
	cmp	r0, #0
	moveq	r5, #1
	ldr	r3, .L21
	sub	sp, sp, #292
	cmp	r5, #0
	ldr	r3, [r3]
	str	r3, [sp, #284]
	mov	r3,#0
	str	r1, [sp, #16]
	str	r2, [sp, #20]
	bne	.L18
	mov	r4, r0
	ldr	r0, [sp, #16]
	bl	strlen
	mov	r6, r0
	ldr	r10, .L21+4
	ldr	r9, .L21+8
	ldr	r8, .L21+12
.L10:
	mov	r3, #256
	ldr	r0, .L21+16
	str	r3, [sp, #4]
	add	r3, sp, #28
	str	r3, [sp]
	str	r5, [sp, #12]
	str	r5, [sp, #8]
	mvn	r3, #0
	mov	r2, r4
	mov	r1, #0
	ldr	r0, [r0]
	bl	WideCharToMultiByte
	cmp	r0, #0
	strbeq	r0, [sp, #283]
	add	r0, sp, #28
	bl	strlen
	mov	fp, r0
	bl	GetThreadLocale
	mov	ip, r0
	ldr	r2, [r10]
	ldr	r3, [r9]
	mov	r0, fp
	mov	r1, r6
	orr	r7, r2, r3
	mov	fp, ip
	bl	min
	ldr	r2, [sp, #16]
	mov	r3, r0
	str	r2, [sp]
	mov	r1, r7
	mov	r0, fp
	str	r6, [sp, #4]
	add	r2, sp, #28
	bl	CompareStringA
	ldr	r3, [r8]
	cmp	r0, r3
	beq	.L5
.L8:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L17
.L6:
	ldr	r3, [r4, #4]!
	cmp	r3, #0
	bne	.L6
.L17:
	ldr	r3, [r4, #4]
	add	r4, r4, #4
	cmp	r3, #0
	bne	.L10
.L18:
	ldr	r3, .L21+20
	ldr	r0, [r3]
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #284]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #292
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	add	r3, sp, #288
	add	r3, r3, r6
	ldrb	r3, [r3, #-260]	@ zero_extendqisi2
	cmp	r3, #61
	bne	.L8
	add	r0, sp, #28
	bl	strlen
	add	r4, r0, #1
	bl	GetProcessHeap
	mov	r2, r4
	mov	r1, #0
	bl	HeapAlloc
	ldr	r2, [sp, #20]
	cmp	r0, #0
	str	r0, [r2]
	beq	.L18
	mov	r2, r4
	add	r1, sp, #28
	bl	memcpy
	ldr	r3, .L21+24
	ldr	r0, [r3]
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	NORM_IGNORECASE
	.word	LOCALE_USE_CP_ACP
	.word	CSTR_EQUAL
	.word	CP_ACP
	.word	FALSE
	.word	TRUE
	.size	get_env, .-get_env
	.comm	TRUE,4,4
	.comm	NORM_IGNORECASE,4,4
	.comm	LOCALE_USE_CP_ACP,4,4
	.comm	FALSE,4,4
	.comm	CSTR_EQUAL,4,4
	.comm	CP_ACP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
