	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_environment_command
_set_environment_command:               ## @set_environment_command
	.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
	movq	%rdi, %r14
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_error_no_arg
LBB0_2:
	movq	%r14, %rdi
	movl	$61, %esi
	callq	_strchr
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_strchr
	movq	%rax, %r15
	testq	%r12, %r12
	je	LBB0_8
## %bb.3:
	testq	%r15, %r15
	je	LBB0_8
## %bb.4:
	cmpq	%r15, %r12
	jbe	LBB0_7
## %bb.5:
	decq	%r15
	movq	%r15, %rax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rax), %r15
	cmpb	$32, 1(%rax)
	movq	%r15, %rax
	je	LBB0_6
LBB0_7:
	leaq	-1(%r15), %rbx
	cmpq	%r12, %r15
	cmovaeq	%r12, %rbx
	cmpq	%r14, %rbx
	jne	LBB0_11
	jmp	LBB0_10
LBB0_8:
	testq	%r12, %r12
	movq	%r12, %rbx
	cmoveq	%r15, %rbx
	testq	%r15, %r15
	cmoveq	%r12, %rbx
	cmpq	%r14, %rbx
	je	LBB0_10
LBB0_11:
	testq	%rbx, %rbx
	je	LBB0_14
LBB0_12:
	movb	1(%rbx), %al
	testb	%al, %al
	je	LBB0_13
## %bb.15:
	leaq	1(%rbx), %r15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movzbl	1(%r15), %eax
	incq	%r15
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$32, %al
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpb	$9, %al
	je	LBB0_18
## %bb.19:
	movb	$1, %r12b
	jmp	LBB0_20
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	callq	_error_no_arg
	testq	%rbx, %rbx
	jne	LBB0_12
LBB0_14:
	movq	%r14, %rdi
	callq	_strlen
	movslq	%eax, %rbx
	addq	%r14, %rbx
	xorl	%r12d, %r12d
	jmp	LBB0_20
LBB0_13:
	xorl	%r12d, %r12d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	decq	%rbx
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, %rbx
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movzbl	-1(%rbx), %eax
	cmpb	$32, %al
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpb	$9, %al
	je	LBB0_23
	jmp	LBB0_25
LBB0_24:
	movq	%r14, %rbx
LBB0_25:
	subl	%r14d, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_savestring
	movq	%rax, %rbx
	testb	%r12b, %r12b
	jne	LBB0_27
## %bb.26:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf_filtered
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf_filtered
	leaq	L_.str.4(%rip), %r15
LBB0_27:
	movq	_inferior_environ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_set_in_environ
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"environment variable and value"

L_.str.1:                               ## @.str.1
	.asciz	"environment variable to set"

L_.str.2:                               ## @.str.2
	.asciz	"Setting environment variable "

L_.str.3:                               ## @.str.3
	.asciz	"\"%s\" to null value.\n"

	.comm	_inferior_environ,4,2           ## @inferior_environ
L_.str.4:                               ## @.str.4
	.space	1

	.no_dead_strip	_set_environment_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_environment_command
_set_environment_command:               ; @set_environment_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error_no_arg
LBB0_2:
	mov	x0, x19
	mov	w1, #61
	bl	_strchr
	mov	x21, x0
	mov	x0, x19
	mov	w1, #32
	bl	_strchr
	mov	x20, x0
	cbz	x21, LBB0_8
; %bb.3:
	cbz	x20, LBB0_8
; %bb.4:
	cmp	x21, x20
	b.ls	LBB0_7
; %bb.5:
	sub	x20, x20, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20, #1]!
	cmp	w8, #32
	b.eq	LBB0_6
LBB0_7:
	sub	x8, x20, #1
	cmp	x20, x21
	csel	x21, x8, x21, lo
	cmp	x21, x19
	b.ne	LBB0_9
	b	LBB0_16
LBB0_8:
	cmp	x21, #0
	ccmp	x20, #0, #4, eq
	csel	x21, x20, x21, ne
	cmp	x21, x19
	b.eq	LBB0_16
LBB0_9:
	cbz	x21, LBB0_17
LBB0_10:
	mov	x9, x21
	ldrb	w8, [x9, #1]!
	cbz	w8, LBB0_18
; %bb.11:
	mov	x20, x9
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldrb	w8, [x20, #1]!
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cmp	w8, #32
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w8, #9
	b.eq	LBB0_12
; %bb.15:
	mov	w22, #1
	cmp	x21, x19
	b.ne	LBB0_19
	b	LBB0_22
LBB0_16:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error_no_arg
	cbnz	x21, LBB0_10
LBB0_17:
	mov	x0, x19
	bl	_strlen
	mov	w22, #0
	add	x21, x19, w0, sxtw
	cmp	x21, x19
	b.ne	LBB0_19
	b	LBB0_22
LBB0_18:
	mov	w22, #0
	cmp	x21, x19
	b.eq	LBB0_22
LBB0_19:
	mov	x8, x21
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8, #-1]!
	cmp	w9, #32
	ccmp	w9, #9, #4, ne
	b.ne	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x21, x8
	cmp	x8, x19
	b.ne	LBB0_20
LBB0_22:
	mov	x21, x19
LBB0_23:
	sub	w1, w21, w19
	mov	x0, x19
	bl	_savestring
	mov	x19, x0
	tbnz	w22, #0, LBB0_25
; %bb.24:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf_filtered
	str	x19, [sp]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf_filtered
Lloh8:
	adrp	x20, l_.str.4@PAGE
Lloh9:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_25:
Lloh10:
	adrp	x8, _inferior_environ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _inferior_environ@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, x20
	bl	_set_in_environ
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_xfree
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"environment variable and value"

l_.str.1:                               ; @.str.1
	.asciz	"environment variable to set"

l_.str.2:                               ; @.str.2
	.asciz	"Setting environment variable "

l_.str.3:                               ; @.str.3
	.asciz	"\"%s\" to null value.\n"

	.comm	_inferior_environ,4,2           ; @inferior_environ
l_.str.4:                               ; @.str.4
	.space	1

	.no_dead_strip	_set_environment_command
.subsections_via_symbols
