	.file	"376062.c"
	.intel_syntax noprefix
	.text
	.local	matches
	.comm	matches,4,4
	.local	sflag
	.comm	sflag,4,4
	.section	.rodata
.LC0:
	.string	"s"
.LC1:
	.string	"uname"
.LC2:
	.string	"r"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 704
	mov	DWORD PTR -692[rbp], edi
	mov	QWORD PTR -704[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR sflag[rip], 0
	mov	eax, DWORD PTR sflag[rip]
	mov	DWORD PTR matches[rip], eax
	jmp	.L2
.L4:
	cmp	DWORD PTR -676[rbp], 115
	jne	.L3
	mov	DWORD PTR sflag[rip], 1
	jmp	.L2
.L3:
	call	usage
.L2:
	mov	rcx, QWORD PTR -704[rbp]
	mov	eax, DWORD PTR -692[rbp]
	lea	rdx, .LC0[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -676[rbp], eax
	cmp	DWORD PTR -676[rbp], -1
	jne	.L4
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -692[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -704[rbp], rax
	lea	rax, -672[rbp]
	mov	rdi, rax
	call	uname@PLT
	cmp	eax, -1
	jne	.L5
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L5:
	lea	rcx, -672[rbp]
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	strlcpy@PLT
	cmp	DWORD PTR -692[rbp], 0
	jg	.L6
	call	usage
	jmp	.L7
.L6:
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -704[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	freopen@PLT
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR -704[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, DWORD PTR matches[rip]
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	exit@PLT
.L8:
	mov	rax, QWORD PTR -704[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	search
	add	QWORD PTR -704[rbp], 8
	mov	rax, QWORD PTR -704[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L6
.L7:
	mov	eax, DWORD PTR matches[rip]
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"\t$%s"
	.text
	.type	search, @function
search:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	jmp	.L11
.L32:
	nop
.L12:
	cmp	DWORD PTR -24[rbp], 36
	jne	.L13
	mov	DWORD PTR -20[rbp], 0
	jmp	.L14
.L16:
	call	getchar@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -24[rbp], eax
	je	.L15
	jmp	.L12
.L15:
	add	DWORD PTR -20[rbp], 1
.L14:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L16
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L19:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	putchar@PLT
	cmp	DWORD PTR -24[rbp], 36
	je	.L29
.L17:
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	call	getchar@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 16384
	test	eax, eax
	jne	.L19
	jmp	.L18
.L29:
	nop
.L18:
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR matches[rip]
	add	eax, 1
	mov	DWORD PTR matches[rip], eax
	mov	eax, DWORD PTR sflag[rip]
	test	eax, eax
	jne	.L30
	jmp	.L12
.L13:
	cmp	DWORD PTR -24[rbp], 64
	je	.L22
	jmp	.L11
.L22:
	call	getchar@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 40
	je	.L23
	jmp	.L12
.L23:
	call	getchar@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 35
	je	.L24
	jmp	.L12
.L24:
	call	getchar@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 41
	je	.L25
	jmp	.L12
.L25:
	mov	edi, 9
	call	putchar@PLT
	jmp	.L26
.L28:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	putchar@PLT
.L26:
	call	getchar@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], -1
	je	.L27
	cmp	DWORD PTR -24[rbp], 0
	je	.L27
	cmp	DWORD PTR -24[rbp], 34
	je	.L27
	cmp	DWORD PTR -24[rbp], 62
	je	.L27
	cmp	DWORD PTR -24[rbp], 10
	je	.L27
	cmp	DWORD PTR -24[rbp], 92
	jne	.L28
.L27:
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR matches[rip]
	add	eax, 1
	mov	DWORD PTR matches[rip], eax
	mov	eax, DWORD PTR sflag[rip]
	test	eax, eax
	jne	.L31
.L11:
	call	getchar@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], -1
	jne	.L32
	jmp	.L33
.L30:
	nop
	jmp	.L33
.L31:
	nop
.L33:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	search, .-search
	.section	.rodata
.LC4:
	.string	"usage: %s [-s] file ...\n"
	.text
	.type	usage, @function
usage:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rdx, QWORD PTR __progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	usage, .-usage
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"376062.c"
	.text
	.local	matches
	.comm	matches,4,4
	.local	sflag
	.comm	sflag,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"s\000"
	.align	2
.LC1:
	.ascii	"uname\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 664
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #664
	str	r0, [fp, #-664]
	str	r1, [fp, #-668]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L10+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L10+4
	ldr	r3, [r3]
	ldr	r2, .L10+8
	str	r3, [r2]
	b	.L2
.L4:
	ldr	r3, [fp, #-660]
	cmp	r3, #115
	bne	.L3
	ldr	r3, .L10+4
	mov	r2, #1
	str	r2, [r3]
	b	.L2
.L3:
	bl	usage
.L2:
	ldr	r2, .L10+12
	ldr	r1, [fp, #-668]
	ldr	r0, [fp, #-664]
	bl	getopt
	str	r0, [fp, #-660]
	ldr	r3, [fp, #-660]
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L10+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-664]
	sub	r3, r2, r3
	str	r3, [fp, #-664]
	ldr	r3, .L10+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-668]
	add	r3, r2, r3
	str	r3, [fp, #-668]
	sub	r3, fp, #656
	mov	r0, r3
	bl	uname
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r1, .L10+20
	mov	r0, #1
	bl	err
.L5:
	sub	r1, fp, #656
	sub	r3, fp, #264
	mov	r2, #256
	mov	r0, r3
	bl	strlcpy
	ldr	r3, [fp, #-664]
	cmp	r3, #0
	bgt	.L6
	bl	usage
	b	.L7
.L6:
	ldr	r3, [fp, #-668]
	ldr	r3, [r3]
	ldr	r2, .L10+24
	ldr	r2, [r2]
	ldr	r1, .L10+28
	mov	r0, r3
	bl	freopen
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-668]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	ldr	r3, .L10+8
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	exit
.L8:
	ldr	r3, [fp, #-668]
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	sub	r3, fp, #264
	mov	r0, r3
	bl	search
	ldr	r3, [fp, #-668]
	add	r3, r3, #4
	str	r3, [fp, #-668]
	ldr	r3, [fp, #-668]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
.L7:
	ldr	r3, .L10+8
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	exit
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	sflag
	.word	matches
	.word	.LC0
	.word	optind
	.word	.LC1
	.word	stdin
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\011$%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	search, %function
search:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	b	.L13
.L34:
	nop
.L14:
	ldr	r3, [fp, #-20]
	cmp	r3, #36
	bne	.L15
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L16
.L18:
	bl	getchar
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	beq	.L17
	b	.L14
.L17:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L16:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L18
	ldr	r1, [fp, #-24]
	ldr	r0, .L36
	bl	printf
	b	.L19
.L21:
	ldr	r0, [fp, #-20]
	bl	putchar
	ldr	r3, [fp, #-20]
	cmp	r3, #36
	beq	.L31
.L19:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r4, [r3]
	bl	getchar
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #1
	add	r3, r4, r3
	ldrh	r3, [r3]
	and	r3, r3, #16384
	cmp	r3, #0
	bne	.L21
	b	.L20
.L31:
	nop
.L20:
	mov	r0, #10
	bl	putchar
	ldr	r3, .L36+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L36+4
	str	r3, [r2]
	ldr	r3, .L36+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L32
	b	.L14
.L15:
	ldr	r3, [fp, #-20]
	cmp	r3, #64
	beq	.L24
	b	.L13
.L24:
	bl	getchar
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #40
	beq	.L25
	b	.L14
.L25:
	bl	getchar
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #35
	beq	.L26
	b	.L14
.L26:
	bl	getchar
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #41
	beq	.L27
	b	.L14
.L27:
	mov	r0, #9
	bl	putchar
	b	.L28
.L30:
	ldr	r0, [fp, #-20]
	bl	putchar
.L28:
	bl	getchar
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L29
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-20]
	cmp	r3, #34
	beq	.L29
	ldr	r3, [fp, #-20]
	cmp	r3, #62
	beq	.L29
	ldr	r3, [fp, #-20]
	cmp	r3, #10
	beq	.L29
	ldr	r3, [fp, #-20]
	cmp	r3, #92
	bne	.L30
.L29:
	mov	r0, #10
	bl	putchar
	ldr	r3, .L36+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L36+4
	str	r3, [r2]
	ldr	r3, .L36+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L33
.L13:
	bl	getchar
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L34
	b	.L35
.L32:
	nop
	b	.L35
.L33:
	nop
.L35:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC4
	.word	matches
	.word	sflag
	.size	search, .-search
	.section	.rodata
	.align	2
.LC5:
	.ascii	"usage: %s [-s] file ...\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L39
	ldr	r3, [r3]
	ldr	r2, .L39+4
	ldr	r2, [r2]
	ldr	r1, .L39+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L40:
	.align	2
.L39:
	.word	stderr
	.word	__progname
	.word	.LC5
	.size	usage, .-usage
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
