	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_path                     ## -- Begin function setup_path
	.p2align	4, 0x90
_setup_path:                            ## @setup_path
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	xorl	%eax, %eax
	callq	_perf_exec_path
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_add_path
	movq	_argv0_path@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_add_path
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	leaq	-24(%rbp), %rdi
	movq	%rbx, %rsi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-24(%rbp), %rdi
LBB0_3:
	callq	_strbuf_addstr
	movl	-24(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	movl	$1, %edx
	callq	_setenv
	leaq	-24(%rbp), %rdi
	callq	_strbuf_release
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PATH"

	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_argv0_path,4,2                 ## @argv0_path
L_.str.1:                               ## @.str.1
	.asciz	"/usr/local/bin:/usr/bin:/bin"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_path                     ; -- Begin function setup_path
	.p2align	2
_setup_path:                            ; @setup_path
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x19, x0
Lloh2:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	bl	_perf_exec_path
	mov	x1, x0
	add	x0, sp, #8
	bl	_add_path
Lloh5:
	adrp	x8, _argv0_path@GOTPAGE
Lloh6:
	ldr	x8, [x8, _argv0_path@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_add_path
	cbz	x19, LBB0_2
; %bb.1:
	add	x0, sp, #8
	mov	x1, x19
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
LBB0_3:
	bl	_strbuf_addstr
	ldr	w1, [sp, #8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #1
	bl	_setenv
	add	x0, sp, #8
	bl	_strbuf_release
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PATH"

	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_argv0_path,4,2                 ; @argv0_path
l_.str.1:                               ; @.str.1
	.asciz	"/usr/local/bin:/usr/bin:/bin"

.subsections_via_symbols
