	.file	"271732.c"
	.intel_syntax noprefix
	.text
	.globl	myoptab
	.data
	.align 32
	.type	myoptab, @object
	.size	myoptab, 60
myoptab:
	.string	"LDA"
	.zero	6
	.string	"00"
	.zero	7
	.string	"JMP"
	.zero	6
	.string	"01"
	.zero	7
	.string	"STA"
	.zero	6
	.string	"02"
	.zero	7
	.globl	mysymtab
	.bss
	.align 32
	.type	mysymtab, @object
	.size	mysymtab, 160
mysymtab:
	.zero	160
	.globl	startaddr
	.align 4
	.type	startaddr, @object
	.size	startaddr, 4
startaddr:
	.zero	4
	.globl	locctr
	.align 4
	.type	locctr, @object
	.size	locctr, 4
locctr:
	.zero	4
	.globl	symcount
	.align 4
	.type	symcount, @object
	.size	symcount, 4
symcount:
	.zero	4
	.globl	length
	.align 4
	.type	length, @object
	.size	length, 4
length:
	.zero	4
	.globl	line
	.align 16
	.type	line, @object
	.size	line, 20
line:
	.zero	20
	.globl	label
	.align 8
	.type	label, @object
	.size	label, 8
label:
	.zero	8
	.globl	opcode
	.align 8
	.type	opcode, @object
	.size	opcode, 8
opcode:
	.zero	8
	.globl	operand
	.align 8
	.type	operand, @object
	.size	operand, 8
operand:
	.zero	8
	.globl	programname
	.align 8
	.type	programname, @object
	.size	programname, 10
programname:
	.zero	10
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"input.txt"
.LC2:
	.string	"w"
.LC3:
	.string	"inter.txt"
.LC4:
	.string	"LOCATION LABEL\tOPERAND\tOPCODE"
	.align 8
.LC5:
	.string	"_____________________________________"
.LC6:
	.string	"START"
.LC7:
	.string	"\n %d\t %s\t%s\t %s"
.LC8:
	.string	"\n %d\t %s \t%s\t %s"
.LC9:
	.string	"%s %s %s\n"
.LC10:
	.string	"END"
.LC11:
	.string	"\n %d\t\t%s"
	.text
	.globl	PASS1
	.type	PASS1, @function
PASS1:
.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, 16
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	esi, 20
	lea	rdi, line[rip]
	call	fgets@PLT
	mov	eax, 0
	call	READ_LINE
	lea	rsi, .LC6[rip]
	lea	rdi, opcode[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	lea	rdi, operand[rip]
	call	atoi@PLT
	mov	DWORD PTR startaddr[rip], eax
	mov	eax, DWORD PTR startaddr[rip]
	mov	DWORD PTR locctr[rip], eax
	lea	rsi, label[rip]
	lea	rdi, programname[rip]
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, line[rip]
	call	fputs@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	esi, 20
	lea	rdi, line[rip]
	call	fgets@PLT
	jmp	.L3
.L2:
	mov	BYTE PTR programname[rip], 0
	mov	DWORD PTR startaddr[rip], 0
	mov	DWORD PTR locctr[rip], 0
.L3:
	mov	eax, DWORD PTR locctr[rip]
	lea	r8, operand[rip]
	lea	rcx, opcode[rip]
	lea	rdx, label[rip]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L6:
	mov	eax, 0
	call	READ_LINE
	mov	eax, DWORD PTR locctr[rip]
	lea	r8, operand[rip]
	lea	rcx, opcode[rip]
	lea	rdx, label[rip]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR label[rip]
	test	al, al
	je	.L5
	mov	eax, 0
	call	chk_label
.L5:
	mov	eax, 0
	call	chk_opcode
	mov	rax, QWORD PTR -8[rbp]
	lea	r8, operand[rip]
	lea	rcx, opcode[rip]
	lea	rdx, label[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	esi, 20
	lea	rdi, line[rip]
	call	fgets@PLT
.L4:
	lea	rsi, .LC10[rip]
	lea	rdi, line[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR locctr[rip]
	lea	rdx, line[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, line[rip]
	call	fputs@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	PASS1, .-PASS1
	.globl	READ_LINE
	.type	READ_LINE, @function
READ_LINE:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	BYTE PTR -16[rbp], 0
	movzx	eax, BYTE PTR -16[rbp]
	mov	BYTE PTR -24[rbp], al
	movzx	eax, BYTE PTR -24[rbp]
	mov	BYTE PTR -32[rbp], al
	movzx	eax, BYTE PTR -32[rbp]
	mov	BYTE PTR operand[rip], al
	movzx	eax, BYTE PTR operand[rip]
	mov	BYTE PTR opcode[rip], al
	movzx	eax, BYTE PTR opcode[rip]
	mov	BYTE PTR label[rip], al
	mov	DWORD PTR -52[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, line[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	je	.L9
	mov	eax, DWORD PTR -48[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -48[rbp], edx
	mov	edx, DWORD PTR -52[rbp]
	movsx	rdx, edx
	lea	rcx, line[rip]
	movzx	edx, BYTE PTR [rdx+rcx]
	cdqe
	mov	BYTE PTR -40[rbp+rax], dl
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	mov	BYTE PTR -40[rbp+rax], 0
	lea	rdx, -24[rbp]
	lea	rax, -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rdx, -32[rbp]
	lea	rax, -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rdx, -40[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	DWORD PTR -48[rbp], 0
	add	DWORD PTR -44[rbp], 1
.L10:
	add	DWORD PTR -52[rbp], 1
.L8:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, line[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L11
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -40[rbp+rax], 0
	lea	rdx, -24[rbp]
	lea	rax, -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rdx, -32[rbp]
	lea	rax, -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rdx, -40[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	cmp	DWORD PTR -44[rbp], 2
	je	.L12
	cmp	DWORD PTR -44[rbp], 2
	jg	.L17
	cmp	DWORD PTR -44[rbp], 0
	je	.L14
	cmp	DWORD PTR -44[rbp], 1
	je	.L15
	jmp	.L17
.L14:
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, opcode[rip]
	call	strcpy@PLT
	jmp	.L13
.L15:
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, opcode[rip]
	call	strcpy@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, operand[rip]
	call	strcpy@PLT
	jmp	.L13
.L12:
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, label[rip]
	call	strcpy@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, opcode[rip]
	call	strcpy@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, operand[rip]
	call	strcpy@PLT
	nop
.L13:
.L17:
	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
.LFE7:
	.size	READ_LINE, .-READ_LINE
	.globl	chk_label
	.type	chk_label, @function
chk_label:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L19
.L22:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, mysymtab[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, label[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, mysymtab[rip+12]
	mov	DWORD PTR [rdx+rax], -1
	mov	DWORD PTR -4[rbp], 1
	jmp	.L21
.L20:
	add	DWORD PTR -8[rbp], 1
.L19:
	mov	eax, DWORD PTR symcount[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L22
.L21:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L24
	mov	eax, DWORD PTR symcount[rip]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, mysymtab[rip]
	add	rax, rdx
	lea	rsi, label[rip]
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR symcount[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR symcount[rip], edx
	mov	edx, DWORD PTR locctr[rip]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	lea	rax, mysymtab[rip+12]
	mov	DWORD PTR [rcx+rax], edx
.L24:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	chk_label, .-chk_label
	.section	.rodata
.LC12:
	.string	"WORD"
.LC13:
	.string	"RESW"
.LC14:
	.string	"RESB"
	.text
	.globl	chk_opcode
	.type	chk_opcode, @function
chk_opcode:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L26
.L29:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, myoptab[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, opcode[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L27
	mov	eax, DWORD PTR locctr[rip]
	add	eax, 3
	mov	DWORD PTR locctr[rip], eax
	mov	DWORD PTR -4[rbp], 1
	jmp	.L28
.L27:
	add	DWORD PTR -8[rbp], 1
.L26:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L29
.L28:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L33
	lea	rsi, .LC12[rip]
	lea	rdi, opcode[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L31
	mov	eax, DWORD PTR locctr[rip]
	add	eax, 3
	mov	DWORD PTR locctr[rip], eax
	jmp	.L33
.L31:
	lea	rsi, .LC13[rip]
	lea	rdi, opcode[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L32
	lea	rdi, operand[rip]
	call	atoi@PLT
	mov	edx, eax
	mov	eax, edx
	add	eax, eax
	add	edx, eax
	mov	eax, DWORD PTR locctr[rip]
	add	eax, edx
	mov	DWORD PTR locctr[rip], eax
	jmp	.L33
.L32:
	lea	rsi, .LC14[rip]
	lea	rdi, opcode[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L33
	lea	rdi, operand[rip]
	call	atoi@PLT
	mov	edx, DWORD PTR locctr[rip]
	add	eax, edx
	mov	DWORD PTR locctr[rip], eax
.L33:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	chk_opcode, .-chk_opcode
	.section	.rodata
.LC15:
	.string	"\n The length is: %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	PASS1
	mov	eax, DWORD PTR locctr[rip]
	mov	edx, DWORD PTR startaddr[rip]
	sub	eax, edx
	mov	DWORD PTR length[rip], eax
	mov	eax, DWORD PTR length[rip]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"271732.c"
	.text
	.global	myoptab
	.data
	.align	2
	.type	myoptab, %object
	.size	myoptab, 60
myoptab:
	.ascii	"LDA\000"
	.space	6
	.ascii	"00\000"
	.space	7
	.ascii	"JMP\000"
	.space	6
	.ascii	"01\000"
	.space	7
	.ascii	"STA\000"
	.space	6
	.ascii	"02\000"
	.space	7
	.comm	mysymtab,160,4
	.comm	startaddr,4,4
	.comm	locctr,4,4
	.global	symcount
	.bss
	.align	2
	.type	symcount, %object
	.size	symcount, 4
symcount:
	.space	4
	.comm	length,4,4
	.comm	line,20,4
	.comm	label,8,4
	.comm	opcode,8,4
	.comm	operand,8,4
	.comm	programname,10,4
	.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	"inter.txt\000"
	.align	2
.LC4:
	.ascii	"LOCATION LABEL\011OPERAND\011OPCODE\000"
	.align	2
.LC5:
	.ascii	"_____________________________________\000"
	.align	2
.LC6:
	.ascii	"START\000"
	.align	2
.LC7:
	.ascii	"\012 %d\011 %s\011%s\011 %s\000"
	.align	2
.LC8:
	.ascii	"\012 %d\011 %s \011%s\011 %s\000"
	.align	2
.LC9:
	.ascii	"%s %s %s\012\000"
	.align	2
.LC10:
	.ascii	"END\000"
	.align	2
.LC11:
	.ascii	"\012 %d\011\011%s\000"
	.text
	.align	2
	.global	PASS1
	.syntax unified
	.arm
	.fpu softvfp
	.type	PASS1, %function
PASS1:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r1, .L7
	ldr	r0, .L7+4
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r1, .L7+8
	ldr	r0, .L7+12
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r0, .L7+16
	bl	puts
	ldr	r0, .L7+20
	bl	printf
	ldr	r2, [fp, #-12]
	mov	r1, #20
	ldr	r0, .L7+24
	bl	fgets
	bl	READ_LINE
	ldr	r1, .L7+28
	ldr	r0, .L7+32
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L7+36
	bl	atoi
	mov	r3, r0
	ldr	r2, .L7+40
	str	r3, [r2]
	ldr	r3, .L7+40
	ldr	r3, [r3]
	ldr	r2, .L7+44
	str	r3, [r2]
	ldr	r1, .L7+48
	ldr	r0, .L7+52
	bl	strcpy
	ldr	r1, [fp, #-8]
	ldr	r0, .L7+24
	bl	fputs
	ldr	r2, [fp, #-12]
	mov	r1, #20
	ldr	r0, .L7+24
	bl	fgets
	b	.L3
.L2:
	ldr	r3, .L7+52
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L7+40
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L7+44
	mov	r2, #0
	str	r2, [r3]
.L3:
	ldr	r3, .L7+44
	ldr	r1, [r3]
	ldr	r3, .L7+36
	str	r3, [sp]
	ldr	r3, .L7+32
	ldr	r2, .L7+48
	ldr	r0, .L7+56
	bl	printf
	b	.L4
.L6:
	bl	READ_LINE
	ldr	r3, .L7+44
	ldr	r1, [r3]
	ldr	r3, .L7+36
	str	r3, [sp]
	ldr	r3, .L7+32
	ldr	r2, .L7+48
	ldr	r0, .L7+60
	bl	printf
	ldr	r3, .L7+48
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	bl	chk_label
.L5:
	bl	chk_opcode
	ldr	r3, .L7+36
	str	r3, [sp]
	ldr	r3, .L7+32
	ldr	r2, .L7+48
	ldr	r1, .L7+64
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r2, [fp, #-12]
	mov	r1, #20
	ldr	r0, .L7+24
	bl	fgets
.L4:
	ldr	r1, .L7+68
	ldr	r0, .L7+24
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L7+44
	ldr	r3, [r3]
	ldr	r2, .L7+24
	mov	r1, r3
	ldr	r0, .L7+72
	bl	printf
	ldr	r1, [fp, #-8]
	ldr	r0, .L7+24
	bl	fputs
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r0, [fp, #-12]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	line
	.word	.LC6
	.word	opcode
	.word	operand
	.word	startaddr
	.word	locctr
	.word	label
	.word	programname
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	PASS1, .-PASS1
	.section	.rodata
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	READ_LINE
	.syntax unified
	.arm
	.fpu softvfp
	.type	READ_LINE, %function
READ_LINE:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	strb	r3, [fp, #-16]
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	strb	r3, [fp, #-24]
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	strb	r3, [fp, #-32]
	ldrb	r2, [fp, #-32]	@ zero_extendqisi2
	ldr	r3, .L20+4
	strb	r2, [r3]
	ldr	r3, .L20+4
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L20+8
	strb	r2, [r3]
	ldr	r3, .L20+8
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L20+12
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L10
.L13:
	ldr	r2, .L20+16
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L11
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	str	r2, [fp, #-48]
	ldr	r1, .L20+16
	ldr	r2, [fp, #-52]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-36]
	b	.L12
.L11:
	sub	r2, fp, #40
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r2, fp, #24
	sub	r3, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r2, fp, #32
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r2, fp, #40
	sub	r3, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L12:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L10:
	ldr	r2, .L20+16
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-36]
	sub	r2, fp, #24
	sub	r3, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r2, fp, #32
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r2, fp, #40
	sub	r3, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	beq	.L14
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	bgt	.L19
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-44]
	cmp	r3, #1
	beq	.L17
	b	.L19
.L16:
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L20+8
	bl	strcpy
	b	.L15
.L17:
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L20+8
	bl	strcpy
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L20+4
	bl	strcpy
	b	.L15
.L14:
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L20+12
	bl	strcpy
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L20+8
	bl	strcpy
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L20+4
	bl	strcpy
	nop
.L15:
.L19:
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC12
	.word	operand
	.word	opcode
	.word	label
	.word	line
	.size	READ_LINE, .-READ_LINE
	.align	2
	.global	chk_label
	.syntax unified
	.arm
	.fpu softvfp
	.type	chk_label, %function
chk_label:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L23
.L26:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #4
	ldr	r2, .L29
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L29+4
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	ldr	r2, .L29
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3, #12]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L25
.L24:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L23:
	ldr	r3, .L29+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L26
.L25:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L28
	ldr	r3, .L29+8
	ldr	r3, [r3]
	lsl	r3, r3, #4
	ldr	r2, .L29
	add	r3, r3, r2
	ldr	r1, .L29+4
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L29+8
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L29+8
	str	r2, [r1]
	ldr	r2, .L29+12
	ldr	r2, [r2]
	ldr	r1, .L29
	lsl	r3, r3, #4
	add	r3, r1, r3
	str	r2, [r3, #12]
.L28:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	mysymtab
	.word	label
	.word	symcount
	.word	locctr
	.size	chk_label, .-chk_label
	.section	.rodata
	.align	2
.LC13:
	.ascii	"WORD\000"
	.align	2
.LC14:
	.ascii	"RESW\000"
	.align	2
.LC15:
	.ascii	"RESB\000"
	.text
	.align	2
	.global	chk_opcode
	.syntax unified
	.arm
	.fpu softvfp
	.type	chk_opcode, %function
chk_opcode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L32
.L35:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L40
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L40+4
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	ldr	r3, .L40+8
	ldr	r3, [r3]
	add	r3, r3, #3
	ldr	r2, .L40+8
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L34
.L33:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L32:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L35
.L34:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L39
	ldr	r1, .L40+12
	ldr	r0, .L40+4
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	ldr	r3, .L40+8
	ldr	r3, [r3]
	add	r3, r3, #3
	ldr	r2, .L40+8
	str	r3, [r2]
	b	.L39
.L37:
	ldr	r1, .L40+16
	ldr	r0, .L40+4
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r0, .L40+20
	bl	atoi
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r3, .L40+8
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L40+8
	str	r3, [r2]
	b	.L39
.L38:
	ldr	r1, .L40+24
	ldr	r0, .L40+4
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	ldr	r0, .L40+20
	bl	atoi
	mov	r2, r0
	ldr	r3, .L40+8
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L40+8
	str	r3, [r2]
.L39:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	myoptab
	.word	opcode
	.word	locctr
	.word	.LC13
	.word	.LC14
	.word	operand
	.word	.LC15
	.size	chk_opcode, .-chk_opcode
	.section	.rodata
	.align	2
.LC16:
	.ascii	"\012 The length is: %d\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	PASS1
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, .L44+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, .L44+8
	str	r3, [r2]
	ldr	r3, .L44+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L44+12
	bl	printf
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	locctr
	.word	startaddr
	.word	length
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
