	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_env_aset
_mrb_env_aset:                          ## @mrb_env_aset
	.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	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rbx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdx
	callq	_mrb_get_args
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mrb_string_value_cstr
	movq	%rax, %r14
	movl	-28(%rbp), %edi
	callq	_mrb_nil_p
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_unsetenv
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_5
LBB0_3:
	movl	-28(%rbp), %esi
	movq	_MRB_TT_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %r8
	movq	%r15, %rdi
	callq	_mrb_convert_type
	leaq	-28(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mrb_string_value_cstr
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_setenv
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.4(%rip), %rdx
LBB0_5:
	movq	_E_RUNTIME_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mrb_raise
LBB0_6:
	movl	-28(%rbp), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"So"

	.comm	_E_RUNTIME_ERROR,4,2            ## @E_RUNTIME_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"can't delete environment variable"

	.comm	_MRB_TT_STRING,4,2              ## @MRB_TT_STRING
L_.str.2:                               ## @.str.2
	.asciz	"String"

L_.str.3:                               ## @.str.3
	.asciz	"to_str"

L_.str.4:                               ## @.str.4
	.asciz	"can't change environment variable"

	.no_dead_strip	_mrb_env_aset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_env_aset
_mrb_env_aset:                          ; @mrb_env_aset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_mrb_get_args
	add	x1, sp, #12
	mov	x0, x19
	bl	_mrb_string_value_cstr
	mov	x20, x0
	ldr	w0, [sp, #8]
	bl	_mrb_nil_p
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_unsetenv
	cbz	x0, LBB0_6
; %bb.2:
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
	ldr	w1, [sp, #8]
Lloh4:
	adrp	x8, _MRB_TT_STRING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MRB_TT_STRING@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x3, l_.str.2@PAGE
Lloh8:
	add	x3, x3, l_.str.2@PAGEOFF
Lloh9:
	adrp	x4, l_.str.3@PAGE
Lloh10:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mrb_convert_type
	add	x1, sp, #8
	mov	x0, x19
	bl	_mrb_string_value_cstr
	mov	x1, x0
	mov	x0, x20
	mov	w2, #1
	bl	_setenv
	cbz	x0, LBB0_6
; %bb.4:
Lloh11:
	adrp	x2, l_.str.4@PAGE
Lloh12:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_5:
Lloh13:
	adrp	x8, _E_RUNTIME_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E_RUNTIME_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mrb_raise
LBB0_6:
	ldr	w0, [sp, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"So"

	.comm	_E_RUNTIME_ERROR,4,2            ; @E_RUNTIME_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"can't delete environment variable"

	.comm	_MRB_TT_STRING,4,2              ; @MRB_TT_STRING
l_.str.2:                               ; @.str.2
	.asciz	"String"

l_.str.3:                               ; @.str.3
	.asciz	"to_str"

l_.str.4:                               ; @.str.4
	.asciz	"can't change environment variable"

	.no_dead_strip	_mrb_env_aset
.subsections_via_symbols
