	.file	"206701.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"tokenList.txt"
.LC2:
	.string	"%s\t%d\n"
	.text
	.globl	match_pattern
	.type	match_pattern, @function
match_pattern:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -152[rbp], 0
	mov	DWORD PTR -148[rbp], 0
	mov	edi, 112
	call	malloc@PLT
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -136[rbp], rax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -120[rbp], rax
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -136[rbp]
	mov	BYTE PTR [rax+rdx], 0
	mov	rax, QWORD PTR -136[rbp]
	mov	DWORD PTR 100[rax], 0
	mov	edi, 112
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -136[rbp], rax
.L2:
	mov	rax, QWORD PTR -136[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L3
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -136[rbp], rax
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 104[rax]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L5
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR 104[rax], 0
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -136[rbp], rax
.L4:
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 104[rax]
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -136[rbp], rax
	jmp	.L7
.L12:
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -144[rbp], eax
	cmp	DWORD PTR -144[rbp], -1
	je	.L7
	jmp	.L8
.L11:
	movzx	eax, BYTE PTR -153[rbp]
	cmp	al, 10
	je	.L9
	movzx	edx, BYTE PTR -153[rbp]
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	BYTE PTR -112[rbp+rax], dl
	add	DWORD PTR -152[rbp], 1
	jmp	.L8
.L9:
	mov	rdx, QWORD PTR -136[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR -136[rbp]
	mov	eax, DWORD PTR 100[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -136[rbp]
	mov	DWORD PTR 100[rax], edx
.L10:
	lea	rax, -112[rbp]
	mov	edx, 100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -152[rbp], 0
.L8:
	lea	rcx, -153[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -140[rbp], eax
	cmp	DWORD PTR -140[rbp], 0
	jne	.L11
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, DWORD PTR 100[rax]
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -136[rbp], rax
.L7:
	cmp	QWORD PTR -136[rbp], 0
	jne	.L12
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	match_pattern, .-match_pattern
	.section	.rodata
.LC3:
	.string	"stat()"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -164[rbp], 2
	jne	.L15
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L16
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	match_pattern
	jmp	.L15
.L16:
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.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	"206701.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"tokenList.txt\000"
	.align	2
.LC2:
	.ascii	"%s\011%d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	match_pattern
	.syntax unified
	.arm
	.fpu softvfp
	.type	match_pattern, %function
match_pattern:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-136]
	mov	r3, #0
	str	r3, [fp, #-128]
	mov	r0, #108
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-124]
	str	r3, [fp, #-132]
	ldr	r1, .L14+4
	ldr	r0, .L14+8
	bl	fopen
	str	r0, [fp, #-120]
	b	.L2
.L3:
	ldr	r3, [fp, #-132]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-132]
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-132]
	mov	r2, #0
	str	r2, [r3, #100]
	mov	r0, #108
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-132]
	str	r2, [r3, #104]
	ldr	r3, [fp, #-132]
	ldr	r3, [r3, #104]
	str	r3, [fp, #-132]
.L2:
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-120]
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-124]
	str	r3, [fp, #-132]
	b	.L4
.L6:
	ldr	r3, [fp, #-132]
	ldr	r3, [r3, #104]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-132]
	mov	r2, #0
	str	r2, [r3, #104]
	b	.L4
.L5:
	ldr	r3, [fp, #-132]
	ldr	r3, [r3, #104]
	str	r3, [fp, #-132]
.L4:
	ldr	r3, [fp, #-132]
	ldr	r3, [r3, #104]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-124]
	str	r3, [fp, #-132]
	b	.L7
.L12:
	ldr	r3, [fp, #-144]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmn	r3, #1
	beq	.L7
	b	.L8
.L11:
	ldrb	r3, [fp, #-137]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L9
	ldrb	r1, [fp, #-137]	@ zero_extendqisi2
	sub	r2, fp, #108
	ldr	r3, [fp, #-136]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
	b	.L8
.L9:
	ldr	r2, [fp, #-132]
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-132]
	ldr	r3, [r3, #100]
	add	r2, r3, #1
	ldr	r3, [fp, #-132]
	str	r2, [r3, #100]
.L10:
	sub	r3, fp, #108
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-136]
.L8:
	sub	r3, fp, #137
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-116]
	bl	read
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L11
	ldr	r1, [fp, #-132]
	ldr	r3, [fp, #-132]
	ldr	r3, [r3, #100]
	mov	r2, r3
	ldr	r0, .L14+12
	bl	printf
	ldr	r3, [fp, #-132]
	ldr	r3, [r3, #104]
	str	r3, [fp, #-132]
.L7:
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	bne	.L12
	nop
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	match_pattern, .-match_pattern
	.section	.rodata
	.align	2
.LC4:
	.ascii	"stat()\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-104]
	cmp	r3, #2
	bne	.L17
	ldr	r3, [fp, #-108]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #100
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r0, [fp, #-108]
	bl	match_pattern
	b	.L17
.L18:
	ldr	r0, .L21+4
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC5
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
