	.file	"955333.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"input.txt"
.LC2:
	.string	"w"
.LC3:
	.string	"symtab.txt"
.LC4:
	.string	"intermediate_file.txt"
.LC5:
	.string	"program_length.txt"
.LC6:
	.string	"%s %s %x"
.LC7:
	.string	"START"
.LC8:
	.string	"-\t%s\t%s\t%x\n"
.LC9:
	.string	"%s %s"
.LC10:
	.string	"%s"
.LC11:
	.string	"END"
.LC12:
	.string	"\n%x\t%s\t%s\t%s\n"
.LC13:
	.string	"\n-\t%s\t%s\t%s\n"
.LC14:
	.string	"-"
.LC15:
	.string	"\n%x\t%s\n"
.LC16:
	.string	"optab.txt"
.LC17:
	.string	"%s %x"
.LC18:
	.string	"WORD"
.LC19:
	.string	"RESW"
.LC20:
	.string	"BYTE"
.LC21:
	.string	"RESB"
.LC22:
	.string	"%s%s"
.LC23:
	.string	"Program length = %x"
.LC24:
	.string	"%x"
	.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, 192
	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 -168[rbp], rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -160[rbp], rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -152[rbp], rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -144[rbp], rax
	lea	rsi, -188[rbp]
	lea	rcx, -128[rbp]
	lea	rdx, -96[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	r8, rsi
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rax, -128[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR -188[rbp]
	mov	DWORD PTR -176[rbp], eax
	mov	eax, DWORD PTR -176[rbp]
	mov	DWORD PTR -180[rbp], eax
	mov	ecx, DWORD PTR -188[rbp]
	lea	rdx, -128[rbp]
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, DWORD PTR -188[rbp]
	lea	rcx, -128[rbp]
	lea	rdx, -96[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	r8d, esi
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L3
.L2:
	mov	DWORD PTR -180[rbp], 0
.L3:
	lea	rcx, -128[rbp]
	lea	rdx, -96[rbp]
	mov	rax, QWORD PTR -168[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	jmp	.L4
.L17:
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -168[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rax, -128[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L5
	lea	rdi, -64[rbp]
	lea	rsi, -128[rbp]
	lea	rcx, -96[rbp]
	mov	edx, DWORD PTR -180[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rsi, -64[rbp]
	lea	rcx, -128[rbp]
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	r8, rsi
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L5:
	lea	rsi, -64[rbp]
	lea	rcx, -128[rbp]
	lea	rdx, -96[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	r8, rsi
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rcx, -64[rbp]
	lea	rdx, -128[rbp]
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	lea	rax, -96[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L7
	lea	rcx, -96[rbp]
	mov	edx, DWORD PTR -180[rbp]
	mov	rax, QWORD PTR -160[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L7:
	lea	rsi, .LC0[rip]
	lea	rdi, .LC16[rip]
	call	fopen@PLT
	mov	QWORD PTR -136[rbp], rax
	lea	rcx, -184[rbp]
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	jmp	.L8
.L11:
	lea	rdx, -32[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	add	DWORD PTR -180[rbp], 3
	jmp	.L10
.L9:
	lea	rcx, -184[rbp]
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
.L8:
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L11
.L10:
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -128[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
	add	DWORD PTR -180[rbp], 3
	jmp	.L13
.L12:
	lea	rax, -128[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L14
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -188[rbp], eax
	mov	edx, DWORD PTR -188[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	DWORD PTR -180[rbp], eax
	jmp	.L13
.L14:
	lea	rax, -128[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
	movzx	eax, BYTE PTR -64[rbp]
	cmp	al, 88
	jne	.L16
	add	DWORD PTR -180[rbp], 1
	jmp	.L13
.L16:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	eax, 2
	mov	DWORD PTR -172[rbp], eax
	mov	eax, DWORD PTR -172[rbp]
	add	DWORD PTR -180[rbp], eax
	jmp	.L13
.L15:
	lea	rax, -128[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L13
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -188[rbp], eax
	mov	eax, DWORD PTR -188[rbp]
	add	DWORD PTR -180[rbp], eax
.L13:
	lea	rcx, -128[rbp]
	lea	rdx, -96[rbp]
	mov	rax, QWORD PTR -168[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
.L4:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L17
	lea	rax, -128[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR -180[rbp]
	sub	eax, DWORD PTR -176[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -180[rbp]
	sub	eax, DWORD PTR -176[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -144[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L18:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"955333.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	"intermediate_file.txt\000"
	.align	2
.LC5:
	.ascii	"program_length.txt\000"
	.align	2
.LC6:
	.ascii	"%s %s %x\000"
	.align	2
.LC7:
	.ascii	"START\000"
	.align	2
.LC8:
	.ascii	"-\011%s\011%s\011%x\012\000"
	.align	2
.LC9:
	.ascii	"%s %s\000"
	.align	2
.LC10:
	.ascii	"%s\000"
	.align	2
.LC11:
	.ascii	"END\000"
	.align	2
.LC12:
	.ascii	"\012%x\011%s\011%s\011%s\012\000"
	.align	2
.LC13:
	.ascii	"\012-\011%s\011%s\011%s\012\000"
	.align	2
.LC14:
	.ascii	"-\000"
	.align	2
.LC15:
	.ascii	"\012%x\011%s\012\000"
	.align	2
.LC16:
	.ascii	"optab.txt\000"
	.align	2
.LC17:
	.ascii	"%s %x\000"
	.align	2
.LC18:
	.ascii	"WORD\000"
	.align	2
.LC19:
	.ascii	"RESW\000"
	.align	2
.LC20:
	.ascii	"BYTE\000"
	.align	2
.LC21:
	.ascii	"RESB\000"
	.align	2
.LC22:
	.ascii	"%s%s\000"
	.align	2
.LC23:
	.ascii	"Program length = %x\000"
	.align	2
.LC24:
	.ascii	"%x\000"
	.align	2
.LC25:
	.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, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L20+4
	ldr	r0, .L20+8
	bl	fopen
	str	r0, [fp, #-112]
	ldr	r1, .L20+12
	ldr	r0, .L20+16
	bl	fopen
	str	r0, [fp, #-108]
	ldr	r1, .L20+12
	ldr	r0, .L20+20
	bl	fopen
	str	r0, [fp, #-104]
	ldr	r1, .L20+12
	ldr	r0, .L20+24
	bl	fopen
	str	r0, [fp, #-100]
	sub	r1, fp, #88
	sub	r2, fp, #68
	sub	r3, fp, #128
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L20+28
	ldr	r0, [fp, #-112]
	bl	__isoc99_fscanf
	sub	r3, fp, #88
	ldr	r1, .L20+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-128]
	sub	r2, fp, #88
	sub	r1, fp, #68
	ldr	r0, .L20+36
	bl	printf
	ldr	r3, [fp, #-128]
	sub	r1, fp, #88
	sub	r2, fp, #68
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L20+36
	ldr	r0, [fp, #-104]
	bl	fprintf
	b	.L3
.L2:
	mov	r3, #0
	str	r3, [fp, #-120]
.L3:
	sub	r3, fp, #88
	sub	r2, fp, #68
	ldr	r1, .L20+40
	ldr	r0, [fp, #-112]
	bl	__isoc99_fscanf
	b	.L4
.L17:
	sub	r3, fp, #48
	mov	r2, r3
	ldr	r1, .L20+44
	ldr	r0, [fp, #-112]
	bl	__isoc99_fscanf
	sub	r3, fp, #88
	ldr	r1, .L20+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	sub	r2, fp, #68
	sub	r3, fp, #48
	str	r3, [sp, #4]
	sub	r3, fp, #88
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-120]
	ldr	r1, .L20+52
	ldr	r0, [fp, #-104]
	bl	fprintf
	sub	r1, fp, #88
	sub	r2, fp, #68
	sub	r3, fp, #48
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-120]
	ldr	r0, .L20+52
	bl	printf
	b	.L6
.L5:
	sub	r1, fp, #88
	sub	r2, fp, #68
	sub	r3, fp, #48
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L20+56
	ldr	r0, [fp, #-104]
	bl	fprintf
	sub	r3, fp, #48
	sub	r2, fp, #88
	sub	r1, fp, #68
	ldr	r0, .L20+56
	bl	printf
.L6:
	sub	r3, fp, #68
	ldr	r1, .L20+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #68
	ldr	r2, [fp, #-120]
	ldr	r1, .L20+64
	ldr	r0, [fp, #-108]
	bl	fprintf
.L7:
	ldr	r1, .L20+4
	ldr	r0, .L20+68
	bl	fopen
	str	r0, [fp, #-96]
	sub	r3, fp, #124
	sub	r2, fp, #28
	ldr	r1, .L20+72
	ldr	r0, [fp, #-96]
	bl	__isoc99_fscanf
	b	.L8
.L11:
	sub	r2, fp, #28
	sub	r3, fp, #88
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-120]
	add	r3, r3, #3
	str	r3, [fp, #-120]
	b	.L10
.L9:
	sub	r3, fp, #124
	sub	r2, fp, #28
	ldr	r1, .L20+72
	ldr	r0, [fp, #-96]
	bl	__isoc99_fscanf
.L8:
	ldr	r0, [fp, #-96]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
.L10:
	ldr	r0, [fp, #-96]
	bl	fclose
	sub	r3, fp, #88
	ldr	r1, .L20+76
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-120]
	add	r3, r3, #3
	str	r3, [fp, #-120]
	b	.L13
.L12:
	sub	r3, fp, #88
	ldr	r1, .L20+80
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	sub	r3, fp, #48
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-128]
	ldr	r2, [fp, #-128]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-120]
	add	r3, r2, r3
	str	r3, [fp, #-120]
	b	.L13
.L14:
	sub	r3, fp, #88
	ldr	r1, .L20+84
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldrb	r3, [fp, #-48]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L16
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
	b	.L13
.L16:
	sub	r3, fp, #48
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #2
	str	r3, [fp, #-92]
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	str	r3, [fp, #-120]
	b	.L13
.L15:
	sub	r3, fp, #88
	ldr	r1, .L20+88
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	sub	r3, fp, #48
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-120]
	add	r3, r2, r3
	str	r3, [fp, #-120]
.L13:
	sub	r3, fp, #88
	sub	r2, fp, #68
	ldr	r1, .L20+92
	ldr	r0, [fp, #-112]
	bl	__isoc99_fscanf
.L4:
	ldr	r0, [fp, #-112]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	sub	r3, fp, #88
	ldr	r1, .L20+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-116]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L20+96
	bl	printf
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-116]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L20+100
	ldr	r0, [fp, #-100]
	bl	fprintf
.L18:
	ldr	r0, [fp, #-112]
	bl	fclose
	ldr	r0, [fp, #-108]
	bl	fclose
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC25
	.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
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
