	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_Which_f                     ## -- Begin function FS_Which_f
	.p2align	4, 0x90
_FS_Which_f:                            ## @FS_Which_f
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$1, %edi
	callq	_Cmd_Argv
	movq	%rax, %r14
	movb	(%rax), %al
	cmpb	$92, %al
	je	LBB0_4
## %bb.1:
	cmpb	$47, %al
	je	LBB0_4
## %bb.2:
	testb	%al, %al
	jne	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_4:
	incq	%r14
LBB0_5:
	movq	_fs_searchpaths@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_FS_Which
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: which <file>\n"

	.comm	_fs_searchpaths,8,3             ## @fs_searchpaths
L_.str.1:                               ## @.str.1
	.asciz	"File not found: \"%s\"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_Which_f                     ; -- Begin function FS_Which_f
	.p2align	2
_FS_Which_f:                            ; @FS_Which_f
	.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	w0, #1
	bl	_Cmd_Argv
	mov	x19, x0
	ldrb	w8, [x0]
	cmp	w8, #92
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #47
	b.eq	LBB0_4
; %bb.2:
	cbnz	w8, LBB0_5
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_Com_Printf
LBB0_4:
	add	x19, x19, #1
LBB0_5:
Lloh2:
	adrp	x8, _fs_searchpaths@GOTPAGE
Lloh3:
	ldr	x8, [x8, _fs_searchpaths@GOTPAGEOFF]
Lloh4:
	ldr	x20, [x8]
	cbz	x20, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_FS_Which
	cbnz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x20, [x20]
	cbnz	x20, LBB0_6
LBB0_8:
	str	x19, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Com_Printf
LBB0_9:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage: which <file>\n"

	.comm	_fs_searchpaths,8,3             ; @fs_searchpaths
l_.str.1:                               ; @.str.1
	.asciz	"File not found: \"%s\"\n"

.subsections_via_symbols
