	.file	"148579435.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"input.txt"
.LC2:
	.string	"w"
.LC3:
	.string	"symtab.txt"
.LC4:
	.string	"output.txt"
.LC5:
	.string	"%s %s %s"
.LC6:
	.string	"START"
.LC7:
	.string	"%X\t%s\t%s\t%s\n"
.LC8:
	.string	"*"
.LC9:
	.string	"%s\t%X\n"
.LC10:
	.string	"optab1.txt"
.LC11:
	.string	"%s %s"
.LC12:
	.string	"WORD"
.LC13:
	.string	"RESW"
.LC14:
	.string	"RESB"
.LC15:
	.string	"BYTE"
.LC16:
	.string	"END"
	.align 8
.LC17:
	.string	"Output File generated as output.txt"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -192[rbp], rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -184[rbp], rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -176[rbp], rax
	lea	rsi, -96[rbp]
	lea	rcx, -128[rbp]
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	r8, rsi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rax, -128[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	lea	rax, -96[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	strtol@PLT
	mov	DWORD PTR -196[rbp], eax
	lea	rdi, -96[rbp]
	lea	rsi, -128[rbp]
	lea	rcx, -160[rbp]
	mov	edx, DWORD PTR -196[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L3
.L2:
	mov	DWORD PTR -196[rbp], 0
.L3:
	mov	eax, DWORD PTR -196[rbp]
	mov	DWORD PTR -200[rbp], eax
	lea	rsi, -96[rbp]
	lea	rcx, -128[rbp]
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	r8, rsi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	jmp	.L4
.L15:
	lea	rdi, -96[rbp]
	lea	rsi, -128[rbp]
	lea	rcx, -160[rbp]
	mov	edx, DWORD PTR -200[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rax, -160[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L5
	mov	ecx, DWORD PTR -200[rbp]
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L5:
	lea	rsi, .LC0[rip]
	lea	rdi, .LC10[rip]
	call	fopen@PLT
	mov	QWORD PTR -168[rbp], rax
	lea	rcx, -32[rbp]
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -168[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	jmp	.L6
.L9:
	lea	rdx, -64[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	add	DWORD PTR -200[rbp], 3
	jmp	.L8
.L7:
	lea	rcx, -32[rbp]
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -168[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
.L6:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L9
.L8:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -128[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	add	DWORD PTR -200[rbp], 3
.L10:
	lea	rax, -128[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	lea	rax, -96[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	strtol@PLT
	mov	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	DWORD PTR -200[rbp], eax
.L11:
	lea	rax, -128[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
	lea	rax, -96[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	strtol@PLT
	add	DWORD PTR -200[rbp], eax
.L12:
	lea	rax, -128[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L13
	movzx	eax, BYTE PTR -96[rbp]
	cmp	al, 88
	jne	.L14
	add	DWORD PTR -200[rbp], 1
	jmp	.L13
.L14:
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -200[rbp]
	add	eax, edx
	sub	eax, 3
	mov	DWORD PTR -200[rbp], eax
.L13:
	lea	rsi, -96[rbp]
	lea	rcx, -128[rbp]
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	r8, rsi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
.L4:
	lea	rax, -128[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
	lea	rdi, -96[rbp]
	lea	rsi, -128[rbp]
	lea	rcx, -160[rbp]
	mov	edx, DWORD PTR -200[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"148579435.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"input.txt\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	"symtab.txt\000"
	.align	2
.LC4:
	.ascii	"output.txt\000"
	.align	2
.LC5:
	.ascii	"%s %s %s\000"
	.align	2
.LC6:
	.ascii	"START\000"
	.align	2
.LC7:
	.ascii	"%X\011%s\011%s\011%s\012\000"
	.align	2
.LC8:
	.ascii	"*\000"
	.align	2
.LC9:
	.ascii	"%s\011%X\012\000"
	.align	2
.LC10:
	.ascii	"optab1.txt\000"
	.align	2
.LC11:
	.ascii	"%s %s\000"
	.align	2
.LC12:
	.ascii	"WORD\000"
	.align	2
.LC13:
	.ascii	"RESW\000"
	.align	2
.LC14:
	.ascii	"RESB\000"
	.align	2
.LC15:
	.ascii	"BYTE\000"
	.align	2
.LC16:
	.ascii	"END\000"
	.align	2
.LC17:
	.ascii	"Output File generated as output.txt\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L17+4
	ldr	r0, .L17+8
	bl	fopen
	str	r0, [fp, #-124]
	ldr	r1, .L17+12
	ldr	r0, .L17+16
	bl	fopen
	str	r0, [fp, #-120]
	ldr	r1, .L17+12
	ldr	r0, .L17+20
	bl	fopen
	str	r0, [fp, #-116]
	sub	r1, fp, #88
	sub	r2, fp, #108
	sub	r3, fp, #68
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L17+24
	ldr	r0, [fp, #-124]
	bl	__isoc99_fscanf
	sub	r3, fp, #88
	ldr	r1, .L17+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	sub	r3, fp, #68
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-128]
	sub	r2, fp, #108
	sub	r3, fp, #68
	str	r3, [sp, #4]
	sub	r3, fp, #88
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-128]
	ldr	r1, .L17+32
	ldr	r0, [fp, #-116]
	bl	fprintf
	b	.L3
.L2:
	mov	r3, #0
	str	r3, [fp, #-128]
.L3:
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-132]
	sub	r1, fp, #88
	sub	r2, fp, #108
	sub	r3, fp, #68
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L17+24
	ldr	r0, [fp, #-124]
	bl	__isoc99_fscanf
	b	.L4
.L15:
	sub	r2, fp, #108
	sub	r3, fp, #68
	str	r3, [sp, #4]
	sub	r3, fp, #88
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-132]
	ldr	r1, .L17+32
	ldr	r0, [fp, #-116]
	bl	fprintf
	sub	r3, fp, #108
	ldr	r1, .L17+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	sub	r2, fp, #108
	ldr	r3, [fp, #-132]
	ldr	r1, .L17+40
	ldr	r0, [fp, #-120]
	bl	fprintf
.L5:
	ldr	r1, .L17+4
	ldr	r0, .L17+44
	bl	fopen
	str	r0, [fp, #-112]
	sub	r3, fp, #28
	sub	r2, fp, #48
	ldr	r1, .L17+48
	ldr	r0, [fp, #-112]
	bl	__isoc99_fscanf
	b	.L6
.L9:
	sub	r2, fp, #48
	sub	r3, fp, #88
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-132]
	add	r3, r3, #3
	str	r3, [fp, #-132]
	b	.L8
.L7:
	sub	r3, fp, #28
	sub	r2, fp, #48
	ldr	r1, .L17+48
	ldr	r0, [fp, #-112]
	bl	__isoc99_fscanf
.L6:
	ldr	r0, [fp, #-112]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
.L8:
	ldr	r0, [fp, #-112]
	bl	fclose
	sub	r3, fp, #88
	ldr	r1, .L17+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-132]
	add	r3, r3, #3
	str	r3, [fp, #-132]
.L10:
	sub	r3, fp, #88
	ldr	r1, .L17+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	sub	r3, fp, #68
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	str	r3, [fp, #-132]
.L11:
	sub	r3, fp, #88
	ldr	r1, .L17+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	sub	r3, fp, #68
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r2, r0
	ldr	r3, [fp, #-132]
	add	r3, r3, r2
	str	r3, [fp, #-132]
.L12:
	sub	r3, fp, #88
	ldr	r1, .L17+64
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldrb	r3, [fp, #-68]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L14
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	b	.L13
.L14:
	sub	r3, fp, #68
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-132]
	add	r3, r2, r3
	sub	r3, r3, #3
	str	r3, [fp, #-132]
.L13:
	sub	r1, fp, #88
	sub	r2, fp, #108
	sub	r3, fp, #68
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L17+24
	ldr	r0, [fp, #-124]
	bl	__isoc99_fscanf
.L4:
	sub	r3, fp, #88
	ldr	r1, .L17+68
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	sub	r2, fp, #108
	sub	r3, fp, #68
	str	r3, [sp, #4]
	sub	r3, fp, #88
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-132]
	ldr	r1, .L17+32
	ldr	r0, [fp, #-116]
	bl	fprintf
	ldr	r0, .L17+72
	bl	puts
	ldr	r0, [fp, #-124]
	bl	fclose
	ldr	r0, [fp, #-116]
	bl	fclose
	ldr	r0, [fp, #-120]
	bl	fclose
	nop
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC18
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
