	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_environ@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_envName@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r12), %rbx
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movl	$1, %esi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	(%r12), %rdi
	movq	_envValSmall@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movl	$1, %edx
	callq	_setenv
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	(%r12), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_5:
	movq	%rax, %r14
	movq	(%r13), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_7:
	movq	(%r12), %rdx
	movq	(%r13), %rcx
	leaq	L_.str.2(%rip), %rdi
	movl	$2, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r12), %rdi
	callq	_unsetenv
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.8:
	movq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r12), %rbx
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r15d, %r15d
	movl	$3, %esi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	(%r12), %rdi
	movq	_envValLarge@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movl	$1, %edx
	callq	_setenv
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	movq	(%r12), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_13:
	movq	%rax, %r15
	movq	(%rbx), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_15:
	movq	(%r12), %rdx
	movq	(%rbx), %rcx
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r12), %rdi
	movq	(%r13), %rsi
	movl	$1, %edx
	callq	_setenv
	testq	%rax, %rax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_16
## %bb.17:
	movq	(%r12), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movq	%r14, %r15
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_16:
	movq	%r14, %r15
	jmp	LBB0_20
LBB0_19:
	movq	%rax, %rbx
	movq	%r14, %r15
	movq	(%r13), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_21
LBB0_20:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_21:
	movq	(%r12), %rdx
	movq	%r13, %r14
	movq	(%r13), %rcx
	leaq	L_.str.2(%rip), %rdi
	movl	$5, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r12), %rdi
	movq	_envValAny@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	xorl	%edx, %edx
	callq	_setenv
	testq	%rax, %rax
	jne	LBB0_24
## %bb.22:
	movq	(%r12), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	(%r13), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_25
LBB0_24:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_25:
	movq	(%r12), %rdx
	movq	(%r13), %rcx
	leaq	L_.str.4(%rip), %rdi
	movl	$6, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_28
## %bb.26:
	movq	(%r14), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_28
## %bb.27:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_29
LBB0_28:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_29:
	leaq	L_.str.5(%rip), %rdi
	movl	$7, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_environ,8,3                    ## @environ
	.comm	_envName,8,3                    ## @envName
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not "

L_.str.1:                               ## @.str.1
	.asciz	"ok %d - getenv(\"%s\")\n"

	.comm	_envValSmall,8,3                ## @envValSmall
L_.str.2:                               ## @.str.2
	.asciz	"ok %d - setenv(\"%s\", \"%s\", 1)\n"

L_.str.3:                               ## @.str.3
	.asciz	"ok %d - unsetenv(\"%s\")\n"

	.comm	_envValLarge,8,3                ## @envValLarge
	.comm	_envValAny,8,3                  ## @envValAny
L_.str.4:                               ## @.str.4
	.asciz	"ok %d - setenv(\"%s\", \"%s\", 0)\n"

L_.str.5:                               ## @.str.5
	.asciz	"ok %d - old variables point to valid memory\n"

	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _environ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _environ@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x22, _envName@GOTPAGE
Lloh4:
	ldr	x22, [x22, _envName@GOTPAGEOFF]
	ldr	x19, [x22]
	mov	x0, x19
	bl	_getenv
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	x19, [x22]
LBB0_2:
	mov	w8, #1
	stp	x8, x19, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x0, [x22]
Lloh9:
	adrp	x23, _envValSmall@GOTPAGE
Lloh10:
	ldr	x23, [x23, _envValSmall@GOTPAGEOFF]
	ldr	x1, [x23]
	mov	w2, #1
	bl	_setenv
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	x0, [x22]
	bl	_getenv
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x1, [x23]
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_6
	b	LBB0_7
LBB0_5:
	mov	x19, #0
LBB0_6:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_7:
	ldr	x8, [x22]
	ldr	x9, [x23]
	stp	x8, x9, [sp, #8]
	mov	w9, #2
	str	x9, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	x0, [x22]
	bl	_unsetenv
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.8:
	ldr	x20, [x22]
	mov	x0, x20
	bl	_getenv
	cbz	x0, LBB0_10
LBB0_9:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	x20, [x22]
LBB0_10:
	mov	w8, #3
	stp	x8, x20, [sp]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	x0, [x22]
Lloh19:
	adrp	x21, _envValLarge@GOTPAGE
Lloh20:
	ldr	x21, [x21, _envValLarge@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	w2, #1
	bl	_setenv
	cbnz	x0, LBB0_13
; %bb.11:
	ldr	x0, [x22]
	bl	_getenv
	mov	x20, x0
	cbz	x0, LBB0_14
; %bb.12:
	ldr	x1, [x21]
	mov	x0, x20
	bl	_strcmp
	cbnz	x0, LBB0_14
	b	LBB0_15
LBB0_13:
	mov	x20, #0
LBB0_14:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_15:
	ldr	x8, [x22]
	ldr	x9, [x21]
	stp	x8, x9, [sp, #8]
	mov	w9, #4
	str	x9, [sp]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	x0, [x22]
	ldr	x1, [x23]
	mov	w2, #1
	bl	_setenv
	cbnz	x0, LBB0_18
; %bb.16:
	ldr	x0, [x22]
	bl	_getenv
	mov	x21, x0
	cbz	x0, LBB0_19
; %bb.17:
	ldr	x1, [x23]
	mov	x0, x21
	bl	_strcmp
	cbnz	x0, LBB0_19
	b	LBB0_20
LBB0_18:
	mov	x21, #0
LBB0_19:
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_20:
	ldr	x8, [x22]
	ldr	x9, [x23]
	stp	x8, x9, [sp, #8]
	mov	w9, #5
	str	x9, [sp]
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	x0, [x22]
Lloh29:
	adrp	x24, _envValAny@GOTPAGE
Lloh30:
	ldr	x24, [x24, _envValAny@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	w2, #0
	bl	_setenv
	cbnz	x0, LBB0_23
; %bb.21:
	ldr	x0, [x22]
	bl	_getenv
	cbz	x0, LBB0_23
; %bb.22:
	ldr	x1, [x24]
	bl	_strcmp
	cbnz	x0, LBB0_24
LBB0_23:
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_24:
	ldr	x8, [x22]
	ldr	x9, [x24]
	stp	x8, x9, [sp, #8]
	mov	w9, #6
	str	x9, [sp]
Lloh33:
	adrp	x0, l_.str.4@PAGE
Lloh34:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	ldr	x1, [x23]
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_27
; %bb.25:
	ldr	x1, [x23]
	mov	x0, x20
	bl	_strcmp
	cbnz	x0, LBB0_27
; %bb.26:
	ldr	x1, [x23]
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_28
LBB0_27:
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_28:
	mov	w8, #7
	str	x8, [sp]
Lloh37:
	adrp	x0, l_.str.5@PAGE
Lloh38:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
Lloh39:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_environ,8,3                    ; @environ
	.comm	_envName,8,3                    ; @envName
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not "

l_.str.1:                               ; @.str.1
	.asciz	"ok %d - getenv(\"%s\")\n"

	.comm	_envValSmall,8,3                ; @envValSmall
l_.str.2:                               ; @.str.2
	.asciz	"ok %d - setenv(\"%s\", \"%s\", 1)\n"

l_.str.3:                               ; @.str.3
	.asciz	"ok %d - unsetenv(\"%s\")\n"

	.comm	_envValLarge,8,3                ; @envValLarge
	.comm	_envValAny,8,3                  ; @envValAny
l_.str.4:                               ; @.str.4
	.asciz	"ok %d - setenv(\"%s\", \"%s\", 0)\n"

l_.str.5:                               ; @.str.5
	.asciz	"ok %d - old variables point to valid memory\n"

	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
.subsections_via_symbols
