	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function env_discard
_env_discard:                           ## @env_discard
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	32(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	%rax, (%rcx)
LBB0_2:
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rcx, 32(%rax)
LBB0_4:
	movq	_environ@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_6
## %bb.5:
	movq	%rax, (%rcx)
LBB0_6:
	movq	16(%rbx), %rdi
	callq	_free
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	movq	_EV_DYNAMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_9
## %bb.8:
	callq	_free
LBB0_9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_environ,8,3                    ## @environ
	.comm	_EV_DYNAMIC,4,2                 ## @EV_DYNAMIC
	.no_dead_strip	_env_discard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function env_discard
_env_discard:                           ; @env_discard
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	x8, x9, [x0, #24]
	cbz	x9, LBB0_2
; %bb.1:
	str	x8, [x9]
LBB0_2:
	cbz	x8, LBB0_4
; %bb.3:
	str	x9, [x8, #32]
LBB0_4:
Lloh0:
	adrp	x9, _environ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _environ@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x10, x19
	b.ne	LBB0_6
; %bb.5:
	str	x8, [x9]
LBB0_6:
	ldr	x0, [x19, #16]
	bl	_free
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _EV_DYNAMIC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EV_DYNAMIC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	bl	_free
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_environ,8,3                    ; @environ
	.comm	_EV_DYNAMIC,4,2                 ; @EV_DYNAMIC
	.no_dead_strip	_env_discard
.subsections_via_symbols
