	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function locate_in_PATH
_locate_in_PATH:                        ## @locate_in_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	cmpb	$0, (%rbx)
	je	LBB0_9
## %bb.2:
	leaq	-40(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strchrnul
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_strbuf_reset
	cmpq	%rbx, %r12
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %edx
	subl	%ebx, %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_strbuf_add
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strbuf_addch
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_strbuf_addstr
	movl	-40(%rbp), %edi
	callq	_is_executable
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rbx
	incq	%rbx
	cmpb	$0, (%r12)
	jne	LBB0_3
## %bb.8:
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PATH"

	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.no_dead_strip	_locate_in_PATH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function locate_in_PATH
_locate_in_PATH:                        ; @locate_in_PATH
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
Lloh2:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #58
	bl	_strchrnul
	mov	x20, x0
	add	x0, sp, #8
	bl	_strbuf_reset
	cmp	x20, x21
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w2, w20, w21
	add	x0, sp, #8
	mov	x1, x21
	bl	_strbuf_add
	add	x0, sp, #8
	mov	w1, #47
	bl	_strbuf_addch
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #8
	mov	x1, x19
	bl	_strbuf_addstr
	ldr	w0, [sp, #8]
	bl	_is_executable
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x20], #1
	mov	x21, x20
	cbnz	w8, LBB0_2
; %bb.6:
	add	x0, sp, #8
	bl	_strbuf_release
LBB0_7:
	mov	x0, #0
	b	LBB0_9
LBB0_8:
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PATH"

	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.no_dead_strip	_locate_in_PATH
.subsections_via_symbols
