	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_command_setenv
_exec_command_setenv:                   ## @exec_command_setenv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	movq	%rdx, %r15
	movq	_OT_NORMAL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_psql_scan_slash_option
	movq	%rax, %r12
	movl	(%r14), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_psql_scan_slash_option
	movq	%rax, %r14
	testq	%r12, %r12
	je	LBB0_5
## %bb.2:
	movq	%r12, %rdi
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_4:
	movl	%ebx, %edi
	callq	_ignore_slash_options
	jmp	LBB0_13
LBB0_5:
	leaq	L_.str(%rip), %rdi
LBB0_6:
	movq	%r15, %rsi
	callq	_pg_log_error
	movb	$1, %bl
	jmp	LBB0_11
LBB0_7:
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_psprintf
	movq	%rax, %rdi
	callq	_putenv
	jmp	LBB0_10
LBB0_9:
	movq	%r12, %rdi
	callq	_unsetenv
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%r12, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_free
	testb	%bl, %bl
	je	LBB0_13
## %bb.12:
	movq	_PSQL_CMD_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_PSQL_CMD_SKIP_LINE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OT_NORMAL,4,2                  ## @OT_NORMAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\%s: missing required argument"

L_.str.1:                               ## @.str.1
	.asciz	"\\%s: environment variable name must not contain \"=\""

L_.str.2:                               ## @.str.2
	.asciz	"%s=%s"

	.comm	_PSQL_CMD_SKIP_LINE,4,2         ## @PSQL_CMD_SKIP_LINE
	.comm	_PSQL_CMD_ERROR,4,2             ## @PSQL_CMD_ERROR
	.no_dead_strip	_exec_command_setenv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_command_setenv
_exec_command_setenv:                   ; @exec_command_setenv
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	cbz	w1, LBB0_4
; %bb.1:
	mov	x21, x2
Lloh0:
	adrp	x22, _OT_NORMAL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OT_NORMAL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, #0
	mov	w3, #0
	bl	_psql_scan_slash_option
	mov	x19, x0
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, #0
	mov	w3, #0
	bl	_psql_scan_slash_option
	mov	x20, x0
	cbz	x19, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w1, #61
	bl	_strchr
	cbz	x0, LBB0_7
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_ignore_slash_options
Lloh4:
	adrp	x8, _PSQL_CMD_SKIP_LINE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PSQL_CMD_SKIP_LINE@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	mov	x1, x21
	bl	_pg_log_error
	mov	w21, #1
	b	LBB0_11
LBB0_7:
	cbz	x20, LBB0_9
; %bb.8:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_psprintf
	bl	_putenv
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_unsetenv
LBB0_10:
	mov	w21, #0
LBB0_11:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	bl	_free
Lloh10:
	adrp	x8, _PSQL_CMD_SKIP_LINE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PSQL_CMD_SKIP_LINE@GOTPAGEOFF]
Lloh12:
	adrp	x9, _PSQL_CMD_ERROR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PSQL_CMD_ERROR@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, ne
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_OT_NORMAL,4,2                  ; @OT_NORMAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\%s: missing required argument"

l_.str.1:                               ; @.str.1
	.asciz	"\\%s: environment variable name must not contain \"=\""

l_.str.2:                               ; @.str.2
	.asciz	"%s=%s"

	.comm	_PSQL_CMD_SKIP_LINE,4,2         ; @PSQL_CMD_SKIP_LINE
	.comm	_PSQL_CMD_ERROR,4,2             ; @PSQL_CMD_ERROR
	.no_dead_strip	_exec_command_setenv
.subsections_via_symbols
