	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	cmpl	$1, %edi
	jle	LBB0_15
## %bb.1:
	movq	_BIGBUFFERSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	callq	_atoi
	movq	%rax, %rbx
	jmp	LBB0_4
LBB0_2:
	movq	_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_4:
	movq	8(%r14), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.5:
	movl	%eax, %r12d
	movq	_bigbuffer@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r15, %rax
	jne	LBB0_14
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	%r12d, %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_read
	cmpq	$-1, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%rax, %rax
	jle	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rsi,8), %rdx
	cmpq	%rbx, %rdx
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=2
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_11
	jmp	LBB0_13
LBB0_14:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	8(%r14), %rsi
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %edi
	callq	_exit
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rdi
	movq	$-1, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	(%rbx), %edi
	callq	_exit
LBB0_15:
	movq	(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %edi
	callq	_exit
LBB0_16:
	movq	8(%r14), %rsi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,8,3                       ## @DATA
	.comm	_BIGBUFFERSIZE,4,2              ## @BIGBUFFERSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: %s filename [pattern]\n"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"open %s failed %d\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_bigbuffer,8,3                  ## @bigbuffer
L_.str.2:                               ## @.str.2
	.asciz	"read failed (%ld), %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"error %s: 0x%x != 0x%x)\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:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	cmp	w0, #1
	b.le	LBB0_16
; %bb.1:
Lloh0:
	adrp	x8, _BIGBUFFERSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIGBUFFERSIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x20, [x8]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_atoi
	mov	x21, x0
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
LBB0_4:
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.5:
	mov	x22, x0
Lloh9:
	adrp	x23, _bigbuffer@GOTPAGE
Lloh10:
	ldr	x23, [x23, _bigbuffer@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	x0, x20
	b.ne	LBB0_12
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	bl	_read
	cmn	x0, #1
	b.eq	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x23]
	mov	x9, x0
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x8]
	cmp	x10, x21
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x8, x8, #8
	subs	x9, x9, #1
	b.ne	LBB0_10
	b	LBB0_6
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	ldr	x8, [x19, #8]
	stp	x10, x21, [sp, #8]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_14:
	bl	_printf
	mov	w0, #1
	bl	_exit
LBB0_15:
Lloh13:
	adrp	x19, _errno@GOTPAGE
Lloh14:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	ldr	w8, [x19]
	mov	x9, #-1
	stp	x9, x8, [sp]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	w0, [x19]
	bl	_exit
LBB0_16:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_17:
	ldr	x8, [x19, #8]
Lloh19:
	adrp	x9, _errno@GOTPAGE
Lloh20:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,8,3                       ; @DATA
	.comm	_BIGBUFFERSIZE,4,2              ; @BIGBUFFERSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage: %s filename [pattern]\n"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"open %s failed %d\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_bigbuffer,8,3                  ; @bigbuffer
l_.str.2:                               ; @.str.2
	.asciz	"read failed (%ld), %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"error %s: 0x%x != 0x%x)\n"

.subsections_via_symbols
