	.file	"extr_command.c_exec_command_setenv.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"\\%s: missing required argument"
	.align 8
.LC1:
	.string	"\\%s: environment variable name must not contain \"=\""
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%s=%s"
	.text
	.p2align 4
	.type	exec_command_setenv, @function
exec_command_setenv:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	test	esi, esi
	je	.L2
	mov	esi, DWORD PTR OT_NORMAL[rip]
	xor	ecx, ecx
	mov	r12, rdx
	xor	edx, edx
	call	psql_scan_slash_option@PLT
	mov	esi, DWORD PTR OT_NORMAL[rip]
	mov	edi, ebp
	xor	ecx, ecx
	xor	edx, edx
	mov	r13, rax
	call	psql_scan_slash_option@PLT
	mov	rbp, rax
	test	r13, r13
	je	.L11
	mov	esi, 61
	mov	rdi, r13
	call	strchr@PLT
	test	rax, rax
	je	.L5
	mov	rsi, r12
	lea	rdi, .LC1[rip]
	call	pg_log_error@PLT
	mov	rdi, r13
	call	free@PLT
	mov	rdi, rbp
	call	free@PLT
.L4:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR PSQL_CMD_ERROR[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	ignore_slash_options@PLT
.L7:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR PSQL_CMD_SKIP_LINE[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	test	rbp, rbp
	je	.L12
	mov	rdx, rbp
	mov	rsi, r13
	lea	rdi, .LC2[rip]
	call	psprintf@PLT
	mov	rdi, rax
	call	putenv@PLT
	mov	rdi, r13
	call	free@PLT
	mov	rdi, rbp
	call	free@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, r12
	lea	rdi, .LC0[rip]
	call	pg_log_error@PLT
	xor	edi, edi
	call	free@PLT
	mov	rdi, rbp
	call	free@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r13
	call	unsetenv@PLT
	mov	rdi, r13
	call	free@PLT
	xor	edi, edi
	call	free@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	exec_command_setenv, .-exec_command_setenv
	.comm	PSQL_CMD_SKIP_LINE,4,4
	.comm	PSQL_CMD_ERROR,4,4
	.comm	OT_NORMAL,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_command.c_exec_command_setenv.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\\%s: missing required argument\000"
	.align	2
.LC1:
	.ascii	"\\%s: environment variable name must not contain \""
	.ascii	"=\"\000"
	.align	2
.LC2:
	.ascii	"%s=%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	exec_command_setenv, %function
exec_command_setenv:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	push	{r4, r5, r6, lr}
	beq	.L2
	mov	r3, #0
	ldr	r5, .L14
	mov	r6, r2
	ldr	r1, [r5]
	mov	r2, r3
	mov	r4, r0
	bl	psql_scan_slash_option
	mov	r3, #0
	ldr	r1, [r5]
	mov	r2, r3
	mov	r5, r0
	mov	r0, r4
	bl	psql_scan_slash_option
	cmp	r5, #0
	mov	r4, r0
	beq	.L12
	mov	r1, #61
	mov	r0, r5
	bl	strchr
	cmp	r0, #0
	beq	.L5
	mov	r1, r6
	ldr	r0, .L14+4
.L10:
	bl	pg_log_error
	mov	r0, r5
	bl	free
	mov	r0, r4
	bl	free
	ldr	r3, .L14+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	bl	ignore_slash_options
.L7:
	ldr	r3, .L14+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L5:
	cmp	r4, #0
	beq	.L13
	mov	r2, r4
	mov	r1, r5
	ldr	r0, .L14+16
	bl	psprintf
	bl	putenv
	mov	r0, r5
	bl	free
	mov	r0, r4
	bl	free
	b	.L7
.L12:
	mov	r1, r6
	ldr	r0, .L14+20
	b	.L10
.L13:
	mov	r0, r5
	bl	unsetenv
	mov	r0, r5
	bl	free
	mov	r0, r4
	bl	free
	b	.L7
.L15:
	.align	2
.L14:
	.word	OT_NORMAL
	.word	.LC1
	.word	PSQL_CMD_ERROR
	.word	PSQL_CMD_SKIP_LINE
	.word	.LC2
	.word	.LC0
	.size	exec_command_setenv, .-exec_command_setenv
	.comm	PSQL_CMD_SKIP_LINE,4,4
	.comm	PSQL_CMD_ERROR,4,4
	.comm	OT_NORMAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
