	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_callback
_file_callback:                         ## @file_callback
	.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, %r12
	movq	(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	%edx, %edi
	callq	_BUG_ON_OPT_NEG
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_fopen
	movq	%rax, %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_die_errno
LBB0_5:
	xorl	%r13d, %r13d
	leaq	-64(%rbp), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strbuf_getline
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-56(%rbp), %esi
	incl	%r13d
	movq	_GREP_PATTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rcx
	movl	%r13d, %r8d
	callq	_append_grep_pat
	jmp	LBB0_6
LBB0_9:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_fclose
LBB0_11:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

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

L_.str.2:                               ## @.str.2
	.asciz	"cannot open '%s'"

	.comm	_GREP_PATTERN,4,2               ## @GREP_PATTERN
	.no_dead_strip	_file_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_callback
_file_callback:                         ; @file_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp]
	mov	x0, x2
	bl	_BUG_ON_OPT_NEG
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fopen
	mov	x22, x0
	cbnz	x22, LBB0_3
LBB0_2:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_die_errno
LBB0_3:
	mov	w23, #0
Lloh9:
	adrp	x24, _GREP_PATTERN@GOTPAGE
Lloh10:
	ldr	x24, [x24, _GREP_PATTERN@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	mov	x1, x22
	bl	_strbuf_getline
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [sp]
	cbz	x2, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [sp, #8]
	add	w23, w23, #1
	ldr	w5, [x24]
	mov	x0, x20
	mov	x3, x19
	mov	x4, x23
	bl	_append_grep_pat
	b	LBB0_4
LBB0_7:
	cbz	w21, LBB0_9
; %bb.8:
	mov	x0, x22
	bl	_fclose
LBB0_9:
	mov	x0, sp
	bl	_strbuf_release
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
Lloh11:
	adrp	x8, _stdin@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh13:
	ldr	x22, [x8]
	cbnz	x22, LBB0_3
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

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

l_.str.2:                               ; @.str.2
	.asciz	"cannot open '%s'"

	.comm	_GREP_PATTERN,4,2               ; @GREP_PATTERN
	.no_dead_strip	_file_callback
.subsections_via_symbols
