	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setenv_str_ex                  ## -- Begin function setenv_str_ex
	.p2align	4, 0x90
_setenv_str_ex:                         ## @setenv_str_ex
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -48(%rbp)
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_strlen
	xorl	%r15d, %r15d
	cmpl	$2, %eax
	setge	%r15b
LBB0_2:
	movq	%r15, %rdi
	callq	_ASSERT
	movsbl	%r13b, %ecx
	leaq	-48(%rbp), %r8
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_string_mod_const
	movq	%rax, %r15
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.5:
	movl	24(%rbp), %edx
	movl	16(%rbp), %esi
	movsbl	32(%rbp), %ecx
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	callq	_string_mod_const
	movq	%rax, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ASSERT
	testq	%r14, %r14
	je	LBB0_4
## %bb.6:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_construct_name_value
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_env_set_add
	jmp	LBB0_7
LBB0_3:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ASSERT
LBB0_4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_env_set_del
LBB0_7:
	leaq	-48(%rbp), %rdi
	callq	_gc_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_INFO,4,2                     ## @M_INFO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setenv_str_ex                  ; -- Begin function setenv_str_ex
	.p2align	2
_setenv_str_ex:                         ; @setenv_str_ex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x7
	mov	x21, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x22, x2
	mov	x26, x1
	mov	x19, x0
	bl	_gc_new
	str	w0, [sp, #8]
	cbz	x26, LBB0_2
; %bb.1:
	mov	x0, x26
	bl	_strlen
	cmp	w0, #1
	cset	w0, gt
	b	LBB0_3
LBB0_2:
	mov	x0, #0
LBB0_3:
	bl	_ASSERT
	add	x4, sp, #8
	mov	x0, x26
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	bl	_string_mod_const
	mov	x23, x0
	cbz	x22, LBB0_6
; %bb.4:
	ldrsb	w3, [x29, #16]
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_string_mod_const
	mov	x20, x0
	mov	x0, x19
	bl	_ASSERT
	cbz	x20, LBB0_7
; %bb.5:
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, x20
	bl	_construct_name_value
	mov	x1, x0
	mov	x0, x19
	bl	_env_set_add
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_ASSERT
LBB0_7:
	mov	x0, x19
	mov	x1, x23
	bl	_env_set_del
LBB0_8:
	add	x0, sp, #8
	bl	_gc_free
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_M_INFO,4,2                     ; @M_INFO
.subsections_via_symbols
