	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_env_define                     ## -- Begin function env_define
	.p2align	4, 0x90
_env_define:                            ## @env_define
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_env_find
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_free
LBB0_3:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.4:
	callq	_free
	jmp	LBB0_7
LBB0_5:
	movl	$40, %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	_envlisthead@GOTPCREL(%rip), %rax
	movq	32(%rax), %rcx
	movq	%rcx, 32(%rbx)
	movq	%rbx, 32(%rax)
	movq	%rax, 24(%rbx)
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, 24(%rax)
LBB0_7:
	movq	%r15, %rdi
	callq	_opt_welldefined
	movl	%eax, 20(%rbx)
	movl	$1, 16(%rbx)
	movq	%r15, %rdi
	callq	_strdup
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, 8(%rbx)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_envlisthead,40,3               ## @envlisthead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_env_define                     ; -- Begin function env_define
	.p2align	2
_env_define:                            ; @env_define
	.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	x19, x1
	mov	x20, x0
	bl	_env_find
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_free
LBB0_3:
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_7
; %bb.4:
	bl	_free
	b	LBB0_7
LBB0_5:
	mov	w0, #40
	bl	_malloc
	mov	x21, x0
Lloh0:
	adrp	x8, _envlisthead@GOTPAGE
Lloh1:
	ldr	x8, [x8, _envlisthead@GOTPAGEOFF]
	ldr	x9, [x8, #32]
	str	x9, [x0, #32]
	str	x0, [x8, #32]
	str	x8, [x0, #24]
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_7
; %bb.6:
	str	x21, [x8, #24]
LBB0_7:
	mov	x0, x20
	bl	_opt_welldefined
	mov	w8, #1
	stp	w8, w0, [x21, #16]
	mov	x0, x20
	bl	_strdup
	str	x0, [x21]
	mov	x0, x19
	bl	_strdup
	str	x0, [x21, #8]
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_envlisthead,40,3               ; @envlisthead
.subsections_via_symbols
