	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %r14
	movq	_allpaths@GOTPCREL(%rip), %r12
	movq	_silent@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, (%r13)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_getopt
	cmpl	$97, %eax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$115, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, (%r12)
	jmp	LBB0_1
LBB0_7:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	subl	%r12d, %ebx
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_usage
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_10
## %bb.19:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_10:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_strlen
	movq	%rax, %r13
	incq	%r13
	movq	%r13, %rdi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_err
LBB0_12:
	testl	%ebx, %ebx
	jle	LBB0_18
## %bb.13:
	leaq	(%r15,%r12,8), %r12
	incl	%ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	$8, %r12
	decl	%ebx
	cmpl	$1, %ebx
	jle	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_memcpy
	movq	(%r12), %r15
	movq	%r15, %rdi
	callq	_strlen
	movq	_FILENAME_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_print_matches
	cmpl	$-1, %eax
	jne	LBB0_17
	jmp	LBB0_16
LBB0_18:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"as"

	.comm	_allpaths,4,2                   ## @allpaths
	.comm	_silent,4,2                     ## @silent
	.comm	_optind,8,3                     ## @optind
L_.str.1:                               ## @.str.1
	.asciz	"PATH"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_FILENAME_MAX,8,3               ## @FILENAME_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
Lloh4:
	ldr	w19, [x8]
Lloh5:
	adrp	x23, _allpaths@GOTPAGE
Lloh6:
	ldr	x23, [x23, _allpaths@GOTPAGEOFF]
	mov	w24, #1
Lloh7:
	adrp	x25, _silent@GOTPAGE
Lloh8:
	ldr	x25, [x25, _silent@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w24, [x25]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_getopt
	cmp	w0, #97
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #115
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w24, [x23]
	b	LBB0_2
LBB0_7:
Lloh9:
	adrp	x8, _optind@GOTPAGE
Lloh10:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh11:
	ldr	x25, [x8]
	subs	w26, w20, w25
	b.ne	LBB0_9
; %bb.8:
	bl	_usage
LBB0_9:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_11
; %bb.10:
Lloh14:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_exit
LBB0_11:
	mov	x20, x0
	bl	_strlen
	add	x22, x0, #1
	mov	x0, x22
	bl	_malloc
	mov	x23, x0
Lloh17:
	adrp	x24, _EXIT_FAILURE@GOTPAGE
Lloh18:
	ldr	x24, [x24, _EXIT_FAILURE@GOTPAGEOFF]
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	w0, [x24]
	mov	x1, #0
	bl	_err
LBB0_13:
	cmp	w26, #1
	b.lt	LBB0_19
; %bb.14:
	add	x25, x21, x25, lsl #3
	add	w26, w26, #1
Lloh19:
	adrp	x27, _FILENAME_MAX@GOTPAGE
Lloh20:
	ldr	x27, [x27, _FILENAME_MAX@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w19, [x24]
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x25, x25, #8
	sub	w26, w26, #1
	cmp	w26, #1
	b.le	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	ldr	x21, [x25]
	mov	x0, x21
	bl	_strlen
	ldr	x8, [x27]
	cmp	x0, x8
	b.ge	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	_print_matches
	cmn	w0, #1
	b.ne	LBB0_16
	b	LBB0_15
LBB0_19:
	mov	x0, x19
	bl	_exit
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"as"

	.comm	_allpaths,4,2                   ; @allpaths
	.comm	_silent,4,2                     ; @silent
	.comm	_optind,8,3                     ; @optind
l_.str.1:                               ; @.str.1
	.asciz	"PATH"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_FILENAME_MAX,8,3               ; @FILENAME_MAX
.subsections_via_symbols
