	.file	"extr_grep.c_file_callback.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"r"
.LC1:
	.string	"cannot open '%s'"
	.text
	.p2align 4
	.type	file_callback, @function
file_callback:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r8, rdi
	mov	edi, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	movdqu	xmm0, XMMWORD PTR STRBUF_INIT[rip]
	mov	r15, QWORD PTR [r8]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR [rsp], xmm0
	call	BUG_ON_OPT_NEG@PLT
	movzx	r14d, BYTE PTR 0[r13]
	sub	r14d, 45
	je	.L21
.L11:
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	fopen@PLT
	mov	rbp, rax
	test	rbp, rbp
	je	.L22
.L5:
	xor	ebx, ebx
	mov	r12, rsp
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, rbp
	mov	rdi, r12
	call	strbuf_getline@PLT
	test	rax, rax
	jne	.L23
.L8:
	mov	rdx, QWORD PTR [rsp]
	test	rdx, rdx
	je	.L7
	mov	esi, DWORD PTR 8[rsp]
	add	ebx, 1
	mov	rdi, r15
	mov	rcx, r13
	mov	r9d, DWORD PTR GREP_PATTERN[rip]
	mov	r8d, ebx
	call	append_grep_pat@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	strbuf_getline@PLT
	test	rax, rax
	je	.L8
.L23:
	test	r14d, r14d
	jne	.L24
.L9:
	mov	rdi, r12
	call	strbuf_release@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	movzx	r14d, BYTE PTR 1[r13]
	mov	rbp, QWORD PTR stdin[rip]
	test	r14d, r14d
	jne	.L11
	test	rbp, rbp
	jne	.L5
.L22:
	lea	rdi, .LC1[rip]
	call	_@PLT
	mov	rsi, r13
	mov	edi, eax
	call	die_errno@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, rbp
	call	fclose@PLT
	jmp	.L9
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	file_callback, .-file_callback
	.comm	stdin,8,8
	.comm	STRBUF_INIT,16,16
	.comm	GREP_PATTERN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_grep.c_file_callback.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"cannot open '%s'\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_callback, %function
file_callback:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	ip, r0
	mov	r7, r1
	sub	sp, sp, #24
	ldr	r3, .L24
	add	r5, sp, #12
	ldm	r3, {r0, r1}
	stm	r5, {r0, r1}
	ldr	r3, .L24+4
	mov	r0, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r10, [ip]
	bl	BUG_ON_OPT_NEG
	ldrb	r8, [r7]	@ zero_extendqisi2
	subs	r8, r8, #45
	beq	.L19
.L11:
	mov	r0, r7
	ldr	r1, .L24+8
	bl	fopen
	mov	r6, r0
	cmp	r6, #0
	beq	.L20
.L5:
	mov	r4, #0
	ldr	r9, .L24+12
.L7:
	mov	r1, r6
	mov	r0, r5
	bl	strbuf_getline
	cmp	r0, #0
	bne	.L21
	ldr	r2, [sp, #12]
	cmp	r2, #0
	beq	.L7
	ldr	r3, [r9]
	add	r4, r4, #1
	str	r3, [sp, #4]
	mov	r0, r10
	mov	r3, r7
	ldr	r1, [sp, #16]
	str	r4, [sp]
	bl	append_grep_pat
	b	.L7
.L21:
	cmp	r8, #0
	bne	.L22
.L9:
	mov	r0, r5
	bl	strbuf_release
	ldr	r3, .L24+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, #0
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	ldrb	r8, [r7, #1]	@ zero_extendqisi2
	cmp	r8, #0
	bne	.L11
	ldr	r3, .L24+16
	ldr	r6, [r3]
	cmp	r6, #0
	bne	.L5
.L20:
	ldr	r0, .L24+20
	bl	_
	mov	r1, r7
	bl	die_errno
	b	.L5
.L22:
	mov	r0, r6
	bl	fclose
	b	.L9
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	STRBUF_INIT
	.word	.LC2
	.word	.LC0
	.word	GREP_PATTERN
	.word	stdin
	.word	.LC1
	.size	file_callback, .-file_callback
	.comm	stdin,4,4
	.comm	STRBUF_INIT,8,4
	.comm	GREP_PATTERN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
