	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %r13
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_3
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_getopt
	cmpl	$113, %eax
	je	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$115, %eax
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_3
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
LBB0_7:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%r12d, %eax
	jne	LBB0_8
## %bb.18:
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_search
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	jmp	LBB0_19
LBB0_8:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	leaq	(%rbx,%rax,8), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	notl	%eax
	addl	%r12d, %eax
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	subq	%rbx, -72(%rbp)                 ## 8-byte Folded Spill
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	_search
	testq	%rax, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	$1, %eax
	cmovnel	%eax, %ebx
	movq	%r13, %rdi
	callq	_fclose
	notl	%r15d
	addl	-80(%rbp), %r15d                ## 4-byte Folded Reload
	movl	%r15d, %eax
	testl	%r12d, %r12d
	je	LBB0_19
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, %r12d
	negl	%r12d
	movq	$-8, %rbx
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=2
	incq	%r15
	leal	(%r15,%r12), %eax
	addq	$-8, %rbx
	cmpl	$1, %eax
	je	LBB0_13
LBB0_9:                                 ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %r14
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_warn
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %r13
	addq	%r15, %r12
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_17 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	callq	_printf
	jmp	LBB0_16
LBB0_13:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_19:
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qs"

	.comm	_optind,8,3                     ## @optind
	.comm	_stdin,8,3                      ## @stdin
L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"%s:\n"

.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	x22, x1
	mov	x21, x0
	mov	w19, #0
	mov	w20, #0
	mov	w26, #1
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w20, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_getopt
	cmp	w0, #113
	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
	mov	w26, #0
	mov	w19, #1
	b	LBB0_2
LBB0_7:
Lloh2:
	adrp	x8, _optind@GOTPAGE
Lloh3:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	w8, w21
	b.ne	LBB0_10
; %bb.8:
Lloh5:
	adrp	x8, _stdin@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh7:
	ldr	x2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_search
	cmp	x0, #0
	cset	w27, ne
LBB0_9:
	cmp	w27, #0
	cset	w0, eq
	bl	_exit
LBB0_10:
	mov	w27, #0
	add	x28, x22, x8, lsl #3
	mvn	w8, w8
	add	w8, w8, w21
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh10:
	adrp	x22, l_.str.2@PAGE
Lloh11:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_search
	cmp	x0, #0
	csinc	w27, w27, wzr, eq
	mov	x0, x24
	bl	_fclose
	neg	w8, w23
	cmp	w23, #1
	b.eq	LBB0_9
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	mov	w9, #1
	sub	w23, w9, w8
	add	x28, x28, #8
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	w23, w23, #1
	add	x28, x28, #8
	cmp	w23, #2
	b.eq	LBB0_9
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x25, [x28, #-8]
	mov	x0, x25
	mov	x1, x21
	bl	_fopen
	cbnz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	tbz	w26, #0, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x22
	mov	x1, x25
	bl	_warn
	b	LBB0_13
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x24, x0
	tbz	w26, #0, LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x25
	bl	_printf
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qs"

	.comm	_optind,8,3                     ; @optind
	.comm	_stdin,8,3                      ; @stdin
l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"%s:\n"

.subsections_via_symbols
