	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_core_setenv
_r_core_setenv:                         ## @r_core_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %r14
	movq	%r14, %rdi
	callq	_r_sys_getenv
	movq	%rax, %r15
	movq	_R2_HOME_BIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_r_str_home
	movq	%rax, %r12
	movq	_R_SYS_ENVSEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movq	%r15, %rcx
	callq	_r_str_newf
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_r_sys_setenv
	movq	%rbx, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PATH"

	.comm	_R2_HOME_BIN,4,2                ## @R2_HOME_BIN
L_.str.1:                               ## @.str.1
	.asciz	"%s%s%s"

	.comm	_R_SYS_ENVSEP,4,2               ## @R_SYS_ENVSEP
	.no_dead_strip	_r_core_setenv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_core_setenv
_r_core_setenv:                         ; @r_core_setenv
	.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
Lloh0:
	adrp	x19, l_.str@PAGE
Lloh1:
	add	x19, x19, l_.str@PAGEOFF
	mov	x0, x19
	bl	_r_sys_getenv
	mov	x20, x0
Lloh2:
	adrp	x8, _R2_HOME_BIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R2_HOME_BIN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_r_str_home
	mov	x21, x0
Lloh5:
	adrp	x8, _R_SYS_ENVSEP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R_SYS_ENVSEP@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x3, x20
	bl	_r_str_newf
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_r_sys_setenv
	mov	x0, x22
	bl	_free
	mov	x0, x21
	bl	_free
	mov	x0, x20
	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
	b	_free
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PATH"

	.comm	_R2_HOME_BIN,4,2                ; @R2_HOME_BIN
l_.str.1:                               ; @.str.1
	.asciz	"%s%s%s"

	.comm	_R_SYS_ENVSEP,4,2               ; @R_SYS_ENVSEP
	.no_dead_strip	_r_core_setenv
.subsections_via_symbols
