	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_env_setenv                     ## -- Begin function env_setenv
	.p2align	4, 0x90
_env_setenv:                            ## @env_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	%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
	movl	%r8d, %r12d
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	callq	_env_getenv
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	movq	(%rax), %rax
	testq	%rax, %rax
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_3
## %bb.2:
	movq	_EV_NOHOOK@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_22
LBB0_3:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	movq	_EV_DYNAMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r15)
	je	LBB0_6
## %bb.5:
	callq	_free
LBB0_6:
	movq	$0, 8(%r15)
	movq	_EV_DYNAMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%r15)
	jmp	LBB0_18
LBB0_7:
	movl	$56, %edi
	callq	_malloc
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, 40(%r15)
	movq	$0, 8(%r15)
	movl	$0, 16(%r15)
	movq	%r13, (%r15)
	movl	%r12d, 48(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r15)
	movq	_environ@GOTPCREL(%rip), %r14
	movq	(%r14), %r12
	testq	%r12, %r12
	je	LBB0_15
## %bb.8:
	movq	40(%r12), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	movq	%rbx, %r13
	testq	%rax, %rax
	jns	LBB0_13
## %bb.9:
	movq	%r12, %rbx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	40(%r15), %rdi
	movq	40(%rbx), %rsi
	callq	_strcmp
	movq	%rbx, %r12
	testq	%rax, %rax
	jns	LBB0_13
LBB0_10:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	32(%rax), %r14
LBB0_12:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	%r15, (%r14)
	movq	%rbx, 32(%r15)
	movq	%rax, 24(%r15)
	movq	%r15, 24(%rbx)
	movq	%r13, %rbx
	jmp	LBB0_18
LBB0_22:
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_15:
	movq	_environ@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	jmp	LBB0_17
LBB0_16:
	movq	%r15, 32(%r12)
	movq	%r12, 24(%r15)
	movq	%r13, %rbx
LBB0_17:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_18:
	movq	_EV_VOLATILE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, 8(%r15)
	movq	_EV_DYNAMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
	jmp	LBB0_21
LBB0_20:
	movq	%rbx, 8(%r15)
	movq	_EV_DYNAMIC@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	orl	%r12d, 16(%r15)
LBB0_21:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_NOHOOK,4,2                  ## @EV_NOHOOK
	.comm	_EV_DYNAMIC,4,2                 ## @EV_DYNAMIC
	.comm	_environ,8,3                    ## @environ
	.comm	_EV_VOLATILE,4,2                ## @EV_VOLATILE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_env_setenv                     ; -- Begin function env_setenv
	.p2align	2
_env_setenv:                            ; @env_setenv
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x24, x0
	bl	_env_getenv
Lloh0:
	adrp	x25, _EV_DYNAMIC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EV_DYNAMIC@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	x3, [x0]
	cbz	x3, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _EV_NOHOOK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EV_NOHOOK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_13
LBB0_3:
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w8, [x21, #16]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	bl	_free
LBB0_6:
	str	xzr, [x21, #8]
	ldr	w8, [x25]
	ldr	w9, [x21, #16]
	bic	w8, w9, w8
	str	w8, [x21, #16]
	b	LBB0_16
LBB0_7:
	mov	w0, #56
	bl	_malloc
	mov	x21, x0
	mov	x0, x24
	bl	_strdup
	stp	xzr, x0, [x21, #32]
	str	wzr, [x21, #16]
	stp	x23, xzr, [x21]
	str	w22, [x21, #48]
	str	xzr, [x21, #24]
Lloh5:
	adrp	x22, _environ@GOTPAGE
Lloh6:
	ldr	x22, [x22, _environ@GOTPAGEOFF]
	ldr	x23, [x22]
	cbz	x23, LBB0_14
; %bb.8:
	ldr	x1, [x23, #40]
	bl	_strcmp
	tbz	x0, #63, LBB0_10
; %bb.9:
	mov	x24, x23
	b	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x23, #32]
	cbz	x24, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x21, #40]
	ldr	x1, [x24, #40]
	bl	_strcmp
	mov	x23, x24
	tbz	x0, #63, LBB0_10
LBB0_12:
	ldr	x8, [x24, #24]
	add	x9, x8, #32
	cmp	x8, #0
	csel	x9, x22, x9, eq
	str	x21, [x9]
	stp	x8, x24, [x21, #24]
	str	x21, [x24, #24]
	b	LBB0_16
LBB0_13:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	br	x3
LBB0_14:
	str	x21, [x22]
	b	LBB0_16
LBB0_15:
	str	x21, [x23, #32]
	str	x23, [x21, #24]
LBB0_16:
Lloh7:
	adrp	x8, _EV_VOLATILE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EV_VOLATILE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_strdup
	str	x0, [x21, #8]
	ldr	w8, [x25]
	b	LBB0_19
LBB0_18:
	str	x19, [x21, #8]
	ldr	w8, [x25]
	and	w8, w8, w20
LBB0_19:
	ldr	w9, [x21, #16]
	orr	w8, w9, w8
	str	w8, [x21, #16]
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_NOHOOK,4,2                  ; @EV_NOHOOK
	.comm	_EV_DYNAMIC,4,2                 ; @EV_DYNAMIC
	.comm	_environ,8,3                    ; @environ
	.comm	_EV_VOLATILE,4,2                ; @EV_VOLATILE
.subsections_via_symbols
