	.file	"533685.c"
	.intel_syntax noprefix
	.text
	.globl	debug
	.bss
	.align 4
	.type	debug, @object
	.size	debug, 4
debug:
	.zero	4
	.globl	optab
	.align 32
	.type	optab, @object
	.size	optab, 280
optab:
	.zero	280
	.globl	dyntabds
	.align 32
	.type	dyntabds, @object
	.size	dyntabds, 640
dyntabds:
	.zero	640
	.text
	.globl	tobin
	.type	tobin, @function
tobin:
.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	DWORD PTR -164[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -164[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	mov	DWORD PTR -144[rbp+rax*4], edx
	mov	eax, DWORD PTR -164[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -164[rbp], eax
	add	DWORD PTR -160[rbp], 1
.L2:
	cmp	DWORD PTR -164[rbp], 0
	jne	.L3
	sub	DWORD PTR -160[rbp], 1
	mov	DWORD PTR -156[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	mov	edx, DWORD PTR -144[rbp+rax*4]
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	mov	DWORD PTR -80[rbp+rax*4], edx
	sub	DWORD PTR -160[rbp], 1
	add	DWORD PTR -156[rbp], 1
.L4:
	cmp	DWORD PTR -160[rbp], 0
	jns	.L5
	sub	DWORD PTR -156[rbp], 1
	mov	DWORD PTR -160[rbp], 0
	jmp	.L6
.L7:
	mov	rdx, QWORD PTR -152[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	QWORD PTR -152[rbp], rax
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	mov	eax, DWORD PTR -80[rbp+rax*4]
	cdqe
	add	QWORD PTR -152[rbp], rax
	add	DWORD PTR -160[rbp], 1
.L6:
	mov	eax, DWORD PTR -160[rbp]
	cmp	eax, DWORD PTR -156[rbp]
	jle	.L7
	mov	rax, QWORD PTR -152[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	tobin, .-tobin
	.section	.rodata
	.align 8
.LC0:
	.string	"\n\nConverting the Source code to binary with memory address...."
	.align 8
.LC1:
	.string	"\n\nCreating the BINARY_MEM.txt file...\n"
.LC2:
	.string	"w"
.LC3:
	.string	"BINARY_MEM.txt"
.LC4:
	.string	"Error creating file!!"
.LC5:
	.string	"DYNTAB.txt"
	.align 8
.LC6:
	.string	"Error creating dynamic table!!"
.LC7:
	.string	"r"
.LC8:
	.string	"ASMCODE.vic"
	.align 8
.LC9:
	.string	"Error opening ASMCODE.vic file"
.LC10:
	.string	"BINARY.txt"
.LC11:
	.string	"%s %09d\n"
.LC12:
	.string	"%04d "
.LC13:
	.string	"%09d\n"
.LC14:
	.string	"%09d"
	.align 8
.LC15:
	.string	"\n Error: Opcode \"%s\" not found in OPTAB at memory address %04d"
.LC16:
	.string	"\nINSTRUCTION:"
.LC17:
	.string	"\nOpcode:%s"
.LC18:
	.string	"\noperand1\topernad2\toperand3"
.LC19:
	.string	"\n%03d\t\t%03d\t\t%03d"
.LC20:
	.string	"\nFlag registers:"
.LC21:
	.string	"\nError flag:%d "
.LC22:
	.string	"Comparison flag:%d%d"
.LC23:
	.string	" Zero flag:%d"
.LC24:
	.string	"%04d 0100111 %03d %06ld\n"
	.align 8
.LC25:
	.string	"\nError writing machine code to BINARY_MEM.txt file"
.LC26:
	.string	"0100111%03d%06ld"
	.align 8
.LC27:
	.string	"\nError writing machine code to BINARY.txt file"
.LC28:
	.string	"%04d %07d %03d %03d %03d\n"
.LC29:
	.string	"%07d%03d%03d%03d"
.LC30:
	.string	"%04d %07d %03d %06d\n"
.LC31:
	.string	"%07d%03d%06d"
.LC32:
	.string	"jmp"
.LC33:
	.string	"%04d 0101000 %09d\n"
.LC34:
	.string	"0101000%09d"
.LC35:
	.string	"jmg"
.LC36:
	.string	"%04d 0101001 %09d\n"
.LC37:
	.string	"0101001%09d"
.LC38:
	.string	"jge"
.LC39:
	.string	"%04d 0101010 %09d\n"
.LC40:
	.string	"0101010%09d"
.LC41:
	.string	"jml"
.LC42:
	.string	"%04d 0101011 %09d\n"
.LC43:
	.string	"0101011%09d"
.LC44:
	.string	"jle"
.LC45:
	.string	"%04d 0101100 %09d\n"
.LC46:
	.string	"0101100%09d"
.LC47:
	.string	"mvi"
	.align 8
.LC48:
	.string	"\n Error: Register \" %c \" not found at memory address %04d"
.LC49:
	.string	"%d"
	.text
	.globl	convert_to_bin
	.type	convert_to_bin, @function
convert_to_bin:
.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, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -160[rbp], 0
	mov	DWORD PTR -156[rbp], 0
	mov	DWORD PTR -152[rbp], 0
	mov	DWORD PTR -148[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	DWORD PTR -288[rbp], 0
	mov	DWORD PTR -260[rbp], 16
	mov	DWORD PTR -284[rbp], 0
	mov	DWORD PTR -280[rbp], 0
	mov	DWORD PTR -276[rbp], 0
	mov	DWORD PTR -272[rbp], 0
	mov	DWORD PTR -268[rbp], 0
	mov	DWORD PTR -256[rbp], 0
	mov	DWORD PTR -264[rbp], 0
	mov	BYTE PTR -72[rbp], 0
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -200[rbp], rax
	cmp	QWORD PTR -200[rbp], 0
	jne	.L11
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	lea	rsi, .LC2[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -192[rbp], rax
	cmp	QWORD PTR -192[rbp], 0
	jne	.L12
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	lea	rsi, .LC7[rip]
	lea	rdi, .LC8[rip]
	call	fopen@PLT
	mov	QWORD PTR -184[rbp], rax
	cmp	QWORD PTR -184[rbp], 0
	jne	.L13
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	lea	rsi, .LC2[rip]
	lea	rdi, .LC10[rip]
	call	fopen@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	jne	.L15
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L85:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -301[rbp], al
	lea	rax, -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -252[rbp], eax
	cmp	BYTE PTR -301[rbp], 35
	jne	.L16
	lea	rax, -64[rbp]
	mov	WORD PTR [rax], 32
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -301[rbp], al
	jmp	.L17
.L18:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -252[rbp], eax
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	movzx	edx, BYTE PTR -301[rbp]
	mov	BYTE PTR -64[rbp+rax], dl
	mov	eax, DWORD PTR -252[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -64[rbp+rax], 0
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -301[rbp], al
.L17:
	cmp	BYTE PTR -301[rbp], 58
	jne	.L18
	add	DWORD PTR -272[rbp], 1
	mov	eax, DWORD PTR -272[rbp]
	mov	edi, eax
	call	tobin
	mov	QWORD PTR -168[rbp], rax
	add	QWORD PTR -168[rbp], 100000000
	mov	rcx, QWORD PTR -168[rbp]
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -192[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edx, DWORD PTR -288[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -176[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -268[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, dyntabds[rip]
	add	rdx, rax
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	eax, DWORD PTR -268[rbp]
	cdqe
	sal	rax, 6
	mov	rcx, rax
	lea	rdx, dyntabds[rip+56]
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -260[rbp]
	add	DWORD PTR -288[rbp], eax
	add	DWORD PTR -268[rbp], 1
	jmp	.L15
.L16:
	cmp	BYTE PTR -301[rbp], 59
	jne	.L19
	mov	DWORD PTR -296[rbp], 0
	jmp	.L20
.L22:
	mov	eax, DWORD PTR -296[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, optab[rip]
	add	rdx, rax
	lea	rax, -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
	mov	DWORD PTR -276[rbp], 1
	mov	eax, DWORD PTR -296[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, optab[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -292[rbp], eax
	mov	eax, DWORD PTR -296[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, optab[rip+16]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -280[rbp], eax
.L21:
	add	DWORD PTR -296[rbp], 1
.L20:
	cmp	DWORD PTR -296[rbp], 9
	jle	.L22
	cmp	DWORD PTR -276[rbp], 0
	jne	.L23
	mov	edx, DWORD PTR -288[rbp]
	lea	rax, -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L23:
	mov	eax, DWORD PTR debug[rip]
	test	eax, eax
	je	.L24
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rax, -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	ecx, DWORD PTR -152[rbp]
	mov	edx, DWORD PTR -156[rbp]
	mov	eax, DWORD PTR -160[rbp]
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -136[rbp]
	mov	eax, DWORD PTR -140[rbp]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
.L24:
	cmp	DWORD PTR -280[rbp], 2
	jne	.L25
	cmp	DWORD PTR -264[rbp], 1
	jne	.L25
	mov	ecx, DWORD PTR -160[rbp]
	mov	rsi, QWORD PTR -248[rbp]
	mov	edx, DWORD PTR -288[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	r8, rsi
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	jne	.L26
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
.L26:
	mov	edx, DWORD PTR -160[rbp]
	mov	rcx, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR -176[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	jne	.L27
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
.L27:
	mov	DWORD PTR -264[rbp], 0
	jmp	.L28
.L25:
	cmp	DWORD PTR -280[rbp], 3
	jne	.L29
	mov	esi, DWORD PTR -152[rbp]
	mov	r8d, DWORD PTR -156[rbp]
	mov	edi, DWORD PTR -160[rbp]
	mov	ecx, DWORD PTR -292[rbp]
	mov	edx, DWORD PTR -288[rbp]
	mov	rax, QWORD PTR -200[rbp]
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	test	eax, eax
	jne	.L30
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
.L30:
	mov	edi, DWORD PTR -152[rbp]
	mov	esi, DWORD PTR -156[rbp]
	mov	ecx, DWORD PTR -160[rbp]
	mov	edx, DWORD PTR -292[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	r9d, edi
	mov	r8d, esi
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	jne	.L28
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L28
.L29:
	cmp	DWORD PTR -280[rbp], 2
	jne	.L28
	mov	edi, DWORD PTR -156[rbp]
	mov	esi, DWORD PTR -160[rbp]
	mov	ecx, DWORD PTR -292[rbp]
	mov	edx, DWORD PTR -288[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	r9d, edi
	mov	r8d, esi
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	esi, DWORD PTR -156[rbp]
	mov	ecx, DWORD PTR -160[rbp]
	mov	edx, DWORD PTR -292[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	r8d, esi
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L28:
	mov	BYTE PTR -72[rbp], 0
	lea	rax, -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -252[rbp], eax
	mov	DWORD PTR -284[rbp], 0
	mov	eax, DWORD PTR -260[rbp]
	add	DWORD PTR -288[rbp], eax
	mov	DWORD PTR -276[rbp], 0
	jmp	.L15
.L19:
	lea	rax, -72[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L31
	mov	QWORD PTR -240[rbp], 0
	lea	rax, -64[rbp]
	mov	WORD PTR [rax], 32
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -301[rbp], al
	jmp	.L32
.L33:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -252[rbp], eax
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	movzx	edx, BYTE PTR -301[rbp]
	mov	BYTE PTR -64[rbp+rax], dl
	mov	eax, DWORD PTR -252[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -64[rbp+rax], 0
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -301[rbp], al
.L32:
	cmp	BYTE PTR -301[rbp], 59
	jne	.L33
	mov	DWORD PTR -296[rbp], 0
	jmp	.L34
.L37:
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, dyntabds[rip]
	add	rdx, rax
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L35
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, dyntabds[rip+56]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -240[rbp], rax
	jmp	.L36
.L35:
	add	DWORD PTR -296[rbp], 1
.L34:
	mov	eax, DWORD PTR -296[rbp]
	cmp	eax, DWORD PTR -268[rbp]
	jl	.L37
.L36:
	mov	rcx, QWORD PTR -240[rbp]
	mov	edx, DWORD PTR -288[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR -176[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	BYTE PTR -72[rbp], 0
	jmp	.L15
.L31:
	lea	rax, -72[rbp]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L38
	mov	QWORD PTR -232[rbp], 0
	lea	rax, -64[rbp]
	mov	WORD PTR [rax], 32
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -301[rbp], al
	jmp	.L39
.L40:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -252[rbp], eax
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	movzx	edx, BYTE PTR -301[rbp]
	mov	BYTE PTR -64[rbp+rax], dl
	mov	eax, DWORD PTR -252[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -64[rbp+rax], 0
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -301[rbp], al
.L39:
	cmp	BYTE PTR -301[rbp], 59
	jne	.L40
	mov	DWORD PTR -296[rbp], 0
	jmp	.L41
.L44:
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, dyntabds[rip]
	add	rdx, rax
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L42
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, dyntabds[rip+56]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -232[rbp], rax
	jmp	.L43
.L42:
	add	DWORD PTR -296[rbp], 1
.L41:
	mov	eax, DWORD PTR -296[rbp]
	cmp	eax, DWORD PTR -268[rbp]
	jl	.L44
.L43:
	mov	rcx, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR -288[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR -232[rbp]
	mov	rax, QWORD PTR -176[rbp]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	BYTE PTR -72[rbp], 0
	jmp	.L15
.L38:
	lea	rax, -72[rbp]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L45
	mov	QWORD PTR -224[rbp], 0
	lea	rax, -64[rbp]
	mov	WORD PTR [rax], 32
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -301[rbp], al
	jmp	.L46
.L47:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -252[rbp], eax
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	movzx	edx, BYTE PTR -301[rbp]
	mov	BYTE PTR -64[rbp+rax], dl
	mov	eax, DWORD PTR -252[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -64[rbp+rax], 0
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -301[rbp], al
.L46:
	cmp	BYTE PTR -301[rbp], 59
	jne	.L47
	mov	DWORD PTR -296[rbp], 0
	jmp	.L48
.L51:
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, dyntabds[rip]
	add	rdx, rax
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L49
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, dyntabds[rip+56]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -224[rbp], rax
	jmp	.L50
.L49:
	add	DWORD PTR -296[rbp], 1
.L48:
	mov	eax, DWORD PTR -296[rbp]
	cmp	eax, DWORD PTR -268[rbp]
	jl	.L51
.L50:
	mov	rcx, QWORD PTR -224[rbp]
	mov	edx, DWORD PTR -288[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR -176[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	BYTE PTR -72[rbp], 0
	jmp	.L15
.L45:
	lea	rax, -72[rbp]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L52
	mov	QWORD PTR -216[rbp], 0
	lea	rax, -64[rbp]
	mov	WORD PTR [rax], 32
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -301[rbp], al
	jmp	.L53
.L54:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -252[rbp], eax
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	movzx	edx, BYTE PTR -301[rbp]
	mov	BYTE PTR -64[rbp+rax], dl
	mov	eax, DWORD PTR -252[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -64[rbp+rax], 0
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -301[rbp], al
.L53:
	cmp	BYTE PTR -301[rbp], 59
	jne	.L54
	mov	DWORD PTR -296[rbp], 0
	jmp	.L55
.L58:
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, dyntabds[rip]
	add	rdx, rax
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L56
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, dyntabds[rip+56]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -216[rbp], rax
	jmp	.L57
.L56:
	add	DWORD PTR -296[rbp], 1
.L55:
	mov	eax, DWORD PTR -296[rbp]
	cmp	eax, DWORD PTR -268[rbp]
	jl	.L58
.L57:
	mov	rcx, QWORD PTR -216[rbp]
	mov	edx, DWORD PTR -288[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC42[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR -176[rbp]
	lea	rsi, .LC43[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	BYTE PTR -72[rbp], 0
	jmp	.L15
.L52:
	lea	rax, -72[rbp]
	lea	rsi, .LC44[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L59
	mov	QWORD PTR -208[rbp], 0
	lea	rax, -64[rbp]
	mov	WORD PTR [rax], 32
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -301[rbp], al
	jmp	.L60
.L61:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -252[rbp], eax
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	movzx	edx, BYTE PTR -301[rbp]
	mov	BYTE PTR -64[rbp+rax], dl
	mov	eax, DWORD PTR -252[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -64[rbp+rax], 0
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -301[rbp], al
.L60:
	cmp	BYTE PTR -301[rbp], 59
	jne	.L61
	mov	DWORD PTR -296[rbp], 0
	jmp	.L62
.L65:
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, dyntabds[rip]
	add	rdx, rax
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L63
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, dyntabds[rip+56]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -208[rbp], rax
	jmp	.L64
.L63:
	add	DWORD PTR -296[rbp], 1
.L62:
	mov	eax, DWORD PTR -296[rbp]
	cmp	eax, DWORD PTR -268[rbp]
	jl	.L65
.L64:
	mov	rcx, QWORD PTR -208[rbp]
	mov	edx, DWORD PTR -288[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC45[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR -176[rbp]
	lea	rsi, .LC46[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	BYTE PTR -72[rbp], 0
	jmp	.L15
.L59:
	cmp	BYTE PTR -301[rbp], 96
	jle	.L66
	cmp	BYTE PTR -301[rbp], 122
	jg	.L66
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	movzx	edx, BYTE PTR -301[rbp]
	mov	BYTE PTR -72[rbp+rax], dl
	mov	eax, DWORD PTR -252[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -72[rbp+rax], 0
	lea	rax, -72[rbp]
	lea	rsi, .LC47[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
	mov	DWORD PTR -264[rbp], 1
	jmp	.L15
.L66:
	cmp	BYTE PTR -301[rbp], 32
	jne	.L68
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -301[rbp], al
	cmp	BYTE PTR -301[rbp], 65
	jne	.L69
	mov	DWORD PTR -160[rbp], 1
	jmp	.L15
.L69:
	cmp	BYTE PTR -301[rbp], 66
	jne	.L70
	mov	DWORD PTR -160[rbp], 10
	jmp	.L15
.L70:
	cmp	BYTE PTR -301[rbp], 67
	jne	.L71
	mov	DWORD PTR -160[rbp], 11
	jmp	.L15
.L71:
	cmp	BYTE PTR -301[rbp], 68
	jne	.L72
	mov	DWORD PTR -160[rbp], 100
	jmp	.L15
.L72:
	cmp	DWORD PTR -256[rbp], 0
	jne	.L15
	movsx	eax, BYTE PTR -301[rbp]
	mov	edx, DWORD PTR -288[rbp]
	mov	esi, eax
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L68:
	cmp	BYTE PTR -301[rbp], 44
	jne	.L73
	cmp	DWORD PTR -284[rbp], 0
	jne	.L73
	cmp	DWORD PTR -264[rbp], 0
	je	.L74
	lea	rdx, -300[rbp]
	mov	rax, QWORD PTR -184[rbp]
	lea	rsi, .LC49[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -300[rbp]
	mov	edi, eax
	call	tobin
	mov	QWORD PTR -248[rbp], rax
	jmp	.L15
.L74:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -301[rbp], al
	cmp	BYTE PTR -301[rbp], 65
	jne	.L75
	mov	DWORD PTR -156[rbp], 1
	jmp	.L76
.L75:
	cmp	BYTE PTR -301[rbp], 66
	jne	.L77
	mov	DWORD PTR -156[rbp], 10
	jmp	.L76
.L77:
	cmp	BYTE PTR -301[rbp], 67
	jne	.L78
	mov	DWORD PTR -156[rbp], 11
	jmp	.L76
.L78:
	cmp	BYTE PTR -301[rbp], 68
	jne	.L79
	mov	DWORD PTR -156[rbp], 100
	jmp	.L76
.L79:
	cmp	DWORD PTR -256[rbp], 0
	jne	.L76
	movsx	eax, BYTE PTR -301[rbp]
	mov	edx, DWORD PTR -288[rbp]
	mov	esi, eax
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	printf@PLT
.L76:
	mov	DWORD PTR -284[rbp], 1
	jmp	.L15
.L73:
	cmp	BYTE PTR -301[rbp], 44
	jne	.L15
	cmp	DWORD PTR -284[rbp], 1
	jne	.L15
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -301[rbp], al
	cmp	BYTE PTR -301[rbp], 65
	jne	.L80
	mov	DWORD PTR -152[rbp], 1
	jmp	.L81
.L80:
	cmp	BYTE PTR -301[rbp], 66
	jne	.L82
	mov	DWORD PTR -152[rbp], 10
	jmp	.L81
.L82:
	cmp	BYTE PTR -301[rbp], 67
	jne	.L83
	mov	DWORD PTR -152[rbp], 11
	jmp	.L81
.L83:
	cmp	BYTE PTR -301[rbp], 68
	jne	.L84
	mov	DWORD PTR -152[rbp], 100
	jmp	.L81
.L84:
	cmp	DWORD PTR -256[rbp], 0
	jne	.L81
	movsx	eax, BYTE PTR -301[rbp]
	mov	edx, DWORD PTR -288[rbp]
	mov	esi, eax
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	printf@PLT
.L81:
	mov	DWORD PTR -284[rbp], 0
.L15:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L85
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L86
	call	__stack_chk_fail@PLT
.L86:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	convert_to_bin, .-convert_to_bin
	.section	.rodata
.LC50:
	.string	"OPTAB.dat"
.LC51:
	.string	"\nLoading the OPTAB..."
.LC52:
	.string	"\nOPTAB loaded..."
	.align 8
.LC53:
	.string	"\n|  OPCODE   |    mcode     |    No of operands    |"
.LC54:
	.string	"\n%s"
.LC55:
	.string	"\t\t%07d"
.LC56:
	.string	"\t\t\t%d"
	.text
	.globl	load_optab
	.type	load_optab, @function
load_optab:
.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	QWORD PTR -8[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	lea	rsi, .LC7[rip]
	lea	rdi, .LC50[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC51[rip]
	call	puts@PLT
	jmp	.L88
.L90:
	add	DWORD PTR -12[rbp], 1
.L88:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 280
	mov	esi, 1
	lea	rdi, optab[rip]
	call	fread@PLT
	test	rax, rax
	je	.L89
	cmp	DWORD PTR -12[rbp], 12
	jle	.L90
.L89:
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR debug[rip]
	test	eax, eax
	je	.L91
	lea	rdi, .LC53[rip]
	call	puts@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L92
.L93:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, optab[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC54[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, optab[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC55[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, optab[rip+16]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC56[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L92:
	cmp	DWORD PTR -12[rbp], 12
	jle	.L93
.L91:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	load_optab, .-load_optab
	.section	.rodata
.LC57:
	.string	"OPTAB.txt"
	.align 8
.LC58:
	.string	"could not create OPTAB.txt file"
	.align 8
.LC59:
	.string	"\n|OPCODE\t|   MACHINE CODE  |    No.of operands"
.LC60:
	.string	"\n|%s\t|\t%07d\t  |\t\t%d    "
	.text
	.globl	create_optab_file
	.type	create_optab_file, @function
create_optab_file:
.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	QWORD PTR -8[rbp], 0
	lea	rsi, .LC2[rip]
	lea	rdi, .LC57[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L95
	lea	rdi, .LC58[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L96
.L95:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC59[rip]
	call	fwrite@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L97
.L98:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, optab[rip+16]
	mov	edi, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, optab[rip+12]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	lea	rcx, optab[rip]
	lea	rsi, [rax+rcx]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edi
	mov	ecx, edx
	mov	rdx, rsi
	lea	rsi, .LC60[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -12[rbp], 1
.L97:
	cmp	DWORD PTR -12[rbp], 12
	jle	.L98
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L96:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	create_optab_file, .-create_optab_file
	.section	.rodata
.LC61:
	.string	"\n\nChecking for OPTAB file..."
	.align 8
.LC62:
	.string	"\nOPTAB file does not exist!!\nCreating a new OPTAB file"
	.align 8
.LC63:
	.string	"\nError writing opcodes to file!"
.LC64:
	.string	"\n\nInitialising the OPTAB..."
.LC65:
	.string	"optab[11].mcode=%d"
	.text
	.globl	initialise
	.type	initialise, @function
initialise:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	lea	rdi, .LC61[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -16[rbp], 0
	lea	rsi, .LC7[rip]
	lea	rdi, .LC50[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L100
	mov	QWORD PTR -8[rbp], 0
	lea	rsi, .LC2[rip]
	lea	rdi, .LC50[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC62[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR optab[rip], 6579297
	mov	DWORD PTR optab[rip+12], 100000
	mov	DWORD PTR optab[rip+16], 3
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 280
	mov	esi, 1
	lea	rdi, optab[rip]
	call	fwrite@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L101
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L101:
	lea	rdi, .LC64[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR optab[rip+20], 6452595
	mov	DWORD PTR optab[rip+32], 100001
	mov	DWORD PTR optab[rip+36], 3
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 280
	mov	esi, 1
	lea	rdi, optab[rip]
	call	fwrite@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L102
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L102:
	mov	DWORD PTR optab[rip+40], 7107949
	mov	DWORD PTR optab[rip+52], 100010
	mov	DWORD PTR optab[rip+56], 3
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 280
	mov	esi, 1
	lea	rdi, optab[rip]
	call	fwrite@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L103
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L103:
	mov	DWORD PTR optab[rip+60], 7760228
	mov	DWORD PTR optab[rip+72], 100011
	mov	DWORD PTR optab[rip+76], 3
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 280
	mov	esi, 1
	lea	rdi, optab[rip]
	call	fwrite@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L104
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L104:
	mov	DWORD PTR optab[rip+80], 7761773
	mov	DWORD PTR optab[rip+92], 100100
	mov	DWORD PTR optab[rip+96], 2
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 280
	mov	esi, 1
	lea	rdi, optab[rip]
	call	fwrite@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L105
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L105:
	mov	DWORD PTR optab[rip+100], 6582125
	mov	DWORD PTR optab[rip+112], 100101
	mov	DWORD PTR optab[rip+116], 3
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 280
	mov	esi, 1
	lea	rdi, optab[rip]
	call	fwrite@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L106
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L106:
	mov	DWORD PTR optab[rip+120], 1886220131
	mov	BYTE PTR optab[rip+124], 0
	mov	DWORD PTR optab[rip+132], 100110
	mov	DWORD PTR optab[rip+136], 2
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 280
	mov	esi, 1
	lea	rdi, optab[rip]
	call	fwrite@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L107
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L107:
	mov	DWORD PTR optab[rip+140], 6911597
	mov	DWORD PTR optab[rip+152], 100111
	mov	DWORD PTR optab[rip+156], 2
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 280
	mov	esi, 1
	lea	rdi, optab[rip]
	call	fwrite@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L108
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L108:
	mov	DWORD PTR optab[rip+160], 7368042
	mov	DWORD PTR optab[rip+172], 101000
	mov	DWORD PTR optab[rip+176], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 280
	mov	esi, 1
	lea	rdi, optab[rip]
	call	fwrite@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L109
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L109:
	mov	DWORD PTR optab[rip+180], 6778218
	mov	DWORD PTR optab[rip+192], 101001
	mov	DWORD PTR optab[rip+196], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 280
	mov	esi, 1
	lea	rdi, optab[rip]
	call	fwrite@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L110
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L110:
	mov	DWORD PTR optab[rip+200], 6645610
	mov	DWORD PTR optab[rip+212], 101010
	mov	DWORD PTR optab[rip+216], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 280
	mov	esi, 1
	lea	rdi, optab[rip]
	call	fwrite@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L111
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L111:
	mov	DWORD PTR optab[rip+220], 7105898
	mov	DWORD PTR optab[rip+232], 101011
	mov	DWORD PTR optab[rip+236], 1
	mov	eax, DWORD PTR optab[rip+232]
	mov	esi, eax
	lea	rdi, .LC65[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 280
	mov	esi, 1
	lea	rdi, optab[rip]
	call	fwrite@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L112
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L112:
	mov	DWORD PTR optab[rip+240], 6646890
	mov	DWORD PTR optab[rip+252], 101100
	mov	DWORD PTR optab[rip+256], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 280
	mov	esi, 1
	lea	rdi, optab[rip]
	call	fwrite@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L113
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L113:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L100:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	initialise, .-initialise
	.section	.rodata
	.align 8
.LC66:
	.string	"\n\nReading the code from file...\n"
	.align 8
.LC67:
	.string	"\nError opening code file: ASMCODE.txt"
	.text
	.globl	printcode
	.type	printcode, @function
printcode:
.LFB11:
	.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	rdi, .LC66[rip]
	call	puts@PLT
	lea	rsi, .LC7[rip]
	lea	rdi, .LC8[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L116
	lea	rdi, .LC67[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L117:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	putchar@PLT
.L116:
	cmp	DWORD PTR -12[rbp], -1
	jne	.L117
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	printcode, .-printcode
	.section	.rodata
	.align 8
.LC68:
	.string	"\nError opening code file: ASMCODE.vic"
.LC69:
	.string	"MEMCODE.txt"
	.align 8
.LC70:
	.string	"\nError opening Memory addressed code file: MEMCODE.txt"
	.align 8
.LC71:
	.string	"\n\nAssigning memory address to code (Address begins from 0000)...\n"
.LC72:
	.string	"\n%04d "
	.text
	.globl	assign_memaddr
	.type	assign_memaddr, @function
assign_memaddr:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	lea	rsi, .LC7[rip]
	lea	rdi, .LC8[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L120
	lea	rdi, .LC68[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L120:
	lea	rsi, .LC2[rip]
	lea	rdi, .LC69[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L121
	lea	rdi, .LC70[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L121:
	lea	rdi, .LC71[rip]
	call	puts@PLT
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -20[rbp], 16
	mov	DWORD PTR -24[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -20[rbp]
	add	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -32[rbp], eax
	jmp	.L122
.L127:
	cmp	DWORD PTR -32[rbp], 10
	je	.L123
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	putchar@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	putc@PLT
.L123:
	cmp	DWORD PTR -32[rbp], 59
	je	.L124
	cmp	DWORD PTR -32[rbp], 58
	jne	.L125
.L124:
	mov	DWORD PTR -24[rbp], 1
.L125:
	cmp	DWORD PTR -24[rbp], 0
	je	.L126
	mov	DWORD PTR -24[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC72[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC72[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -20[rbp]
	add	DWORD PTR -28[rbp], eax
.L126:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -32[rbp], eax
.L122:
	cmp	DWORD PTR -32[rbp], -1
	jne	.L127
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	assign_memaddr, .-assign_memaddr
	.globl	verify_code
	.type	verify_code, @function
verify_code:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	verify_code, .-verify_code
	.section	.rodata
	.align 8
.LC73:
	.string	"\n***************************************************************************"
	.align 8
.LC74:
	.string	"\n\t\t\tASSEMBLY LANGUAGE EMULATER\n"
	.align 8
.LC75:
	.string	"\n***************************************************************************\n"
	.align 8
.LC76:
	.string	"Please press enter to continue..."
.LC77:
	.string	"Error printing the code!!"
	.align 8
.LC78:
	.string	"Error assigning memory addresses!!"
.LC79:
	.string	"Error loading the optab"
	.align 8
.LC80:
	.string	"Error converting instructions to binary"
	.align 8
.LC81:
	.string	"\n||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"
	.align 8
.LC82:
	.string	"\n----------------------Assembly completed successfully--------------------------"
	.align 8
.LC83:
	.string	"\nNOTE: Please run the binrun.exe to view the result of the instruction"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC73[rip]
	call	puts@PLT
	lea	rdi, .LC74[rip]
	call	puts@PLT
	lea	rdi, .LC75[rip]
	call	puts@PLT
	lea	rdi, .LC76[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	getch@PLT
	mov	eax, 0
	call	printcode
	test	eax, eax
	je	.L131
	lea	rdi, .LC77[rip]
	mov	eax, 0
	call	printf@PLT
.L131:
	mov	eax, 0
	call	assign_memaddr
	test	eax, eax
	je	.L132
	lea	rdi, .LC78[rip]
	mov	eax, 0
	call	printf@PLT
.L132:
	mov	eax, 0
	call	initialise
	mov	eax, 0
	call	load_optab
	test	eax, eax
	je	.L133
	lea	rdi, .LC79[rip]
	mov	eax, 0
	call	printf@PLT
.L133:
	mov	eax, 0
	call	create_optab_file
	mov	eax, 0
	call	convert_to_bin
	test	eax, eax
	je	.L134
	lea	rdi, .LC80[rip]
	mov	eax, 0
	call	printf@PLT
.L134:
	lea	rdi, .LC81[rip]
	call	puts@PLT
	lea	rdi, .LC82[rip]
	call	puts@PLT
	lea	rdi, .LC81[rip]
	call	puts@PLT
	lea	rdi, .LC83[rip]
	call	puts@PLT
	mov	eax, 0
	call	getch@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	"533685.c"
	.text
	.global	debug
	.bss
	.align	2
	.type	debug, %object
	.size	debug, 4
debug:
	.space	4
	.comm	optab,280,4
	.comm	dyntabds,560,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tobin
	.syntax unified
	.arm
	.fpu softvfp
	.type	tobin, %function
tobin:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L2
.L3:
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	mov	r2, r3
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-132]
	ldr	r3, [fp, #-152]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L2:
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-148]
	sub	r3, r3, #1
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-144]
	b	.L4
.L5:
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	ldr	r3, [fp, #-144]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-68]
	ldr	r3, [fp, #-148]
	sub	r3, r3, #1
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-144]
.L4:
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	bge	.L5
	ldr	r3, [fp, #-144]
	sub	r3, r3, #1
	str	r3, [fp, #-144]
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L6
.L7:
	ldr	r2, [fp, #-140]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-68]
	mov	r2, r3
	ldr	r3, [fp, #-140]
	add	r3, r3, r2
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L6:
	ldr	r2, [fp, #-148]
	ldr	r3, [fp, #-144]
	cmp	r2, r3
	ble	.L7
	ldr	r3, [fp, #-140]
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.size	tobin, .-tobin
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012\012Converting the Source code to binary with m"
	.ascii	"emory address....\000"
	.align	2
.LC2:
	.ascii	"\012\012Creating the BINARY_MEM.txt file...\012\000"
	.align	2
.LC3:
	.ascii	"w\000"
	.align	2
.LC4:
	.ascii	"BINARY_MEM.txt\000"
	.align	2
.LC5:
	.ascii	"Error creating file!!\000"
	.align	2
.LC6:
	.ascii	"DYNTAB.txt\000"
	.align	2
.LC7:
	.ascii	"Error creating dynamic table!!\000"
	.align	2
.LC8:
	.ascii	"r\000"
	.align	2
.LC9:
	.ascii	"ASMCODE.vic\000"
	.align	2
.LC10:
	.ascii	"Error opening ASMCODE.vic file\000"
	.align	2
.LC11:
	.ascii	"BINARY.txt\000"
	.align	2
.LC12:
	.ascii	"%s %09d\012\000"
	.align	2
.LC13:
	.ascii	"%04d \000"
	.align	2
.LC14:
	.ascii	"%09d\012\000"
	.align	2
.LC15:
	.ascii	"%09d\000"
	.align	2
.LC16:
	.ascii	"\012 Error: Opcode \"%s\" not found in OPTAB at mem"
	.ascii	"ory address %04d\000"
	.align	2
.LC17:
	.ascii	"\012INSTRUCTION:\000"
	.align	2
.LC18:
	.ascii	"\012Opcode:%s\000"
	.align	2
.LC19:
	.ascii	"\012operand1\011opernad2\011operand3\000"
	.align	2
.LC20:
	.ascii	"\012%03d\011\011%03d\011\011%03d\000"
	.align	2
.LC21:
	.ascii	"\012Flag registers:\000"
	.align	2
.LC22:
	.ascii	"\012Error flag:%d \000"
	.align	2
.LC23:
	.ascii	"Comparison flag:%d%d\000"
	.align	2
.LC24:
	.ascii	" Zero flag:%d\000"
	.align	2
.LC25:
	.ascii	"%04d 0100111 %03d %06ld\012\000"
	.align	2
.LC26:
	.ascii	"\012Error writing machine code to BINARY_MEM.txt fi"
	.ascii	"le\000"
	.align	2
.LC27:
	.ascii	"0100111%03d%06ld\000"
	.align	2
.LC28:
	.ascii	"\012Error writing machine code to BINARY.txt file\000"
	.align	2
.LC29:
	.ascii	"%04d %07d %03d %03d %03d\012\000"
	.align	2
.LC30:
	.ascii	"%07d%03d%03d%03d\000"
	.align	2
.LC31:
	.ascii	"%04d %07d %03d %06d\012\000"
	.align	2
.LC32:
	.ascii	"%07d%03d%06d\000"
	.align	2
.LC33:
	.ascii	"jmp\000"
	.align	2
.LC34:
	.ascii	"%04d 0101000 %09d\012\000"
	.align	2
.LC35:
	.ascii	"0101000%09d\000"
	.align	2
.LC36:
	.ascii	"jmg\000"
	.align	2
.LC37:
	.ascii	"%04d 0101001 %09d\012\000"
	.align	2
.LC38:
	.ascii	"0101001%09d\000"
	.align	2
.LC39:
	.ascii	"jge\000"
	.align	2
.LC40:
	.ascii	"%04d 0101010 %09d\012\000"
	.align	2
.LC41:
	.ascii	"0101010%09d\000"
	.align	2
.LC42:
	.ascii	"jml\000"
	.align	2
.LC43:
	.ascii	"%04d 0101011 %09d\012\000"
	.align	2
.LC44:
	.ascii	"0101011%09d\000"
	.align	2
.LC45:
	.ascii	"jle\000"
	.align	2
.LC46:
	.ascii	"%04d 0101100 %09d\012\000"
	.align	2
.LC47:
	.ascii	"0101100%09d\000"
	.align	2
.LC48:
	.ascii	"mvi\000"
	.align	2
.LC49:
	.ascii	"\012 Error: Register \" %c \" not found at memory a"
	.ascii	"ddress %04d\000"
	.align	2
.LC50:
	.ascii	"%d\000"
	.align	2
.LC51:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	convert_to_bin
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_to_bin, %function
convert_to_bin:
	@ args = 0, pretend = 0, frame = 248
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	ldr	r3, .L89
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L89+4
	bl	printf
	sub	r3, fp, #148
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	sub	r3, fp, #132
	mov	r2, #64
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-232]
	mov	r3, #16
	str	r3, [fp, #-180]
	mov	r3, #0
	str	r3, [fp, #-228]
	mov	r3, #0
	str	r3, [fp, #-224]
	mov	r3, #0
	str	r3, [fp, #-220]
	mov	r3, #0
	str	r3, [fp, #-216]
	mov	r3, #0
	str	r3, [fp, #-212]
	mov	r3, #0
	str	r3, [fp, #-176]
	mov	r3, #0
	str	r3, [fp, #-208]
	mov	r3, #0
	strb	r3, [fp, #-68]
	ldr	r0, .L89+8
	bl	puts
	ldr	r1, .L89+12
	ldr	r0, .L89+16
	bl	fopen
	str	r0, [fp, #-172]
	ldr	r3, [fp, #-172]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L89+20
	bl	printf
.L13:
	ldr	r1, .L89+12
	ldr	r0, .L89+24
	bl	fopen
	str	r0, [fp, #-168]
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L89+28
	bl	printf
.L14:
	ldr	r1, .L89+32
	ldr	r0, .L89+36
	bl	fopen
	str	r0, [fp, #-164]
	ldr	r3, [fp, #-164]
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L89+40
	bl	printf
.L15:
	ldr	r1, .L89+12
	ldr	r0, .L89+44
	bl	fopen
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	bne	.L17
	ldr	r0, .L89+20
	bl	printf
	b	.L17
.L87:
	ldr	r0, [fp, #-164]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-245]
	sub	r3, fp, #68
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-156]
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L18
	sub	r3, fp, #60
	mov	r2, #32
	strh	r2, [r3]	@ movhi
	ldr	r0, [fp, #-164]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-245]
	b	.L19
.L20:
	sub	r3, fp, #60
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-156]
	sub	r2, fp, #60
	ldr	r3, [fp, #-156]
	add	r3, r2, r3
	ldrb	r2, [fp, #-245]
	strb	r2, [r3]
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-56]
	ldr	r0, [fp, #-164]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-245]
.L19:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L20
	ldr	r3, [fp, #-216]
	add	r3, r3, #1
	str	r3, [fp, #-216]
	ldr	r0, [fp, #-216]
	bl	tobin
	str	r0, [fp, #-152]
	ldr	r2, [fp, #-152]
	ldr	r3, .L89+48
	add	r3, r2, r3
	str	r3, [fp, #-152]
	sub	r2, fp, #60
	ldr	r3, [fp, #-152]
	ldr	r1, .L89+52
	ldr	r0, [fp, #-168]
	bl	fprintf
	ldr	r2, [fp, #-232]
	ldr	r1, .L89+56
	ldr	r0, [fp, #-172]
	bl	fprintf
	ldr	r2, [fp, #-152]
	ldr	r1, .L89+60
	ldr	r0, [fp, #-172]
	bl	fprintf
	ldr	r2, [fp, #-152]
	ldr	r1, .L89+64
	ldr	r0, [fp, #-160]
	bl	fprintf
	ldr	r2, [fp, #-212]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L89+68
	add	r3, r3, r2
	sub	r2, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r1, .L89+68
	ldr	r2, [fp, #-212]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #52
	ldr	r2, [fp, #-152]
	str	r2, [r3]
	ldr	r2, [fp, #-232]
	ldr	r3, [fp, #-180]
	add	r3, r2, r3
	str	r3, [fp, #-232]
	ldr	r3, [fp, #-212]
	add	r3, r3, #1
	str	r3, [fp, #-212]
	b	.L17
.L18:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #59
	bne	.L21
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L22
.L24:
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L89+72
	add	r2, r3, r2
	sub	r3, fp, #68
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	mov	r3, #1
	str	r3, [fp, #-220]
	ldr	r1, .L89+72
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #12
	ldr	r3, [r3]
	str	r3, [fp, #-236]
	ldr	r1, .L89+72
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #16
	ldr	r3, [r3]
	str	r3, [fp, #-224]
.L23:
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L22:
	ldr	r3, [fp, #-240]
	cmp	r3, #9
	ble	.L24
	ldr	r3, [fp, #-220]
	cmp	r3, #0
	bne	.L25
	sub	r3, fp, #68
	ldr	r2, [fp, #-232]
	mov	r1, r3
	ldr	r0, .L89+76
	bl	printf
	mov	r0, #0
	bl	exit
.L25:
	ldr	r3, .L89+80
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L26
	ldr	r0, .L89+84
	bl	puts
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L89+88
	bl	printf
	ldr	r0, .L89+92
	bl	puts
	ldr	r1, [fp, #-148]
	ldr	r2, [fp, #-144]
	ldr	r3, [fp, #-140]
	ldr	r0, .L89+96
	bl	printf
	ldr	r0, .L89+100
	bl	printf
	ldr	r3, [fp, #-132]
	mov	r1, r3
	ldr	r0, .L89+104
	bl	printf
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-124]
	mov	r1, r3
	ldr	r0, .L89+108
	bl	printf
	ldr	r3, [fp, #-120]
	mov	r1, r3
	ldr	r0, .L89+112
	bl	printf
	mov	r0, #10
	bl	putchar
.L26:
	ldr	r3, [fp, #-224]
	cmp	r3, #2
	bne	.L27
	ldr	r3, [fp, #-208]
	cmp	r3, #1
	bne	.L27
	ldr	r2, [fp, #-148]
	ldr	r3, [fp, #-204]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-232]
	ldr	r1, .L89+116
	ldr	r0, [fp, #-172]
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	ldr	r0, .L89+120
	bl	printf
.L28:
	ldr	r2, [fp, #-148]
	ldr	r3, [fp, #-204]
	ldr	r1, .L89+124
	ldr	r0, [fp, #-160]
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	ldr	r0, .L89+128
	bl	printf
.L29:
	mov	r3, #0
	str	r3, [fp, #-208]
	b	.L30
.L27:
	ldr	r3, [fp, #-224]
	cmp	r3, #3
	bne	.L31
	ldr	r3, [fp, #-148]
	ldr	r2, [fp, #-144]
	ldr	r1, [fp, #-140]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-236]
	ldr	r2, [fp, #-232]
	ldr	r1, .L89+132
	ldr	r0, [fp, #-172]
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	ldr	r0, .L89+120
	bl	printf
.L32:
	ldr	r1, [fp, #-148]
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-140]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r1
	ldr	r2, [fp, #-236]
	ldr	r1, .L89+136
	ldr	r0, [fp, #-160]
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r0, .L89+128
	bl	printf
	b	.L30
.L31:
	ldr	r3, [fp, #-224]
	cmp	r3, #2
	bne	.L30
	ldr	r3, [fp, #-148]
	ldr	r2, [fp, #-144]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-236]
	ldr	r2, [fp, #-232]
	ldr	r1, .L89+140
	ldr	r0, [fp, #-172]
	bl	fprintf
	ldr	r2, [fp, #-148]
	ldr	r3, [fp, #-144]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-236]
	ldr	r1, .L89+144
	ldr	r0, [fp, #-160]
	bl	fprintf
.L30:
	mov	r3, #0
	strb	r3, [fp, #-68]
	sub	r3, fp, #68
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-228]
	ldr	r2, [fp, #-232]
	ldr	r3, [fp, #-180]
	add	r3, r2, r3
	str	r3, [fp, #-232]
	mov	r3, #0
	str	r3, [fp, #-220]
	b	.L17
.L21:
	sub	r3, fp, #68
	ldr	r1, .L89+148
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	mov	r3, #0
	str	r3, [fp, #-200]
	sub	r3, fp, #60
	mov	r2, #32
	strh	r2, [r3]	@ movhi
	ldr	r0, [fp, #-164]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-245]
	b	.L34
.L35:
	sub	r3, fp, #60
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-156]
	sub	r2, fp, #60
	ldr	r3, [fp, #-156]
	add	r3, r2, r3
	ldrb	r2, [fp, #-245]
	strb	r2, [r3]
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-56]
	ldr	r0, [fp, #-164]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-245]
.L34:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #59
	bne	.L35
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L36
.L39:
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L89+68
	add	r2, r3, r2
	sub	r3, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	ldr	r1, .L89+68
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #52
	ldr	r3, [r3]
	str	r3, [fp, #-200]
	b	.L38
.L37:
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L36:
	ldr	r2, [fp, #-240]
	ldr	r3, [fp, #-212]
	cmp	r2, r3
	blt	.L39
.L38:
	ldr	r3, [fp, #-200]
	ldr	r2, [fp, #-232]
	ldr	r1, .L89+152
	ldr	r0, [fp, #-172]
	bl	fprintf
	ldr	r2, [fp, #-200]
	ldr	r1, .L89+156
	ldr	r0, [fp, #-160]
	bl	fprintf
	mov	r3, #0
	strb	r3, [fp, #-68]
	b	.L17
.L33:
	sub	r3, fp, #68
	ldr	r1, .L89+160
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
	mov	r3, #0
	str	r3, [fp, #-196]
	sub	r3, fp, #60
	mov	r2, #32
	strh	r2, [r3]	@ movhi
	ldr	r0, [fp, #-164]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-245]
	b	.L41
.L42:
	sub	r3, fp, #60
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-156]
	sub	r2, fp, #60
	ldr	r3, [fp, #-156]
	add	r3, r2, r3
	ldrb	r2, [fp, #-245]
	strb	r2, [r3]
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-56]
	ldr	r0, [fp, #-164]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-245]
.L41:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #59
	bne	.L42
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L43
.L46:
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L89+68
	add	r2, r3, r2
	sub	r3, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	ldr	r1, .L89+68
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #52
	ldr	r3, [r3]
	str	r3, [fp, #-196]
	b	.L45
.L44:
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L43:
	ldr	r2, [fp, #-240]
	ldr	r3, [fp, #-212]
	cmp	r2, r3
	blt	.L46
.L45:
	ldr	r3, [fp, #-196]
	ldr	r2, [fp, #-232]
	ldr	r1, .L89+164
	ldr	r0, [fp, #-172]
	bl	fprintf
	ldr	r2, [fp, #-196]
	ldr	r1, .L89+168
	ldr	r0, [fp, #-160]
	bl	fprintf
	mov	r3, #0
	strb	r3, [fp, #-68]
	b	.L17
.L40:
	sub	r3, fp, #68
	ldr	r1, .L89+172
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L47
	mov	r3, #0
	str	r3, [fp, #-192]
	sub	r3, fp, #60
	mov	r2, #32
	strh	r2, [r3]	@ movhi
	ldr	r0, [fp, #-164]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-245]
	b	.L48
.L49:
	sub	r3, fp, #60
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-156]
	sub	r2, fp, #60
	ldr	r3, [fp, #-156]
	add	r3, r2, r3
	ldrb	r2, [fp, #-245]
	strb	r2, [r3]
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-56]
	ldr	r0, [fp, #-164]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-245]
.L48:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #59
	bne	.L49
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L50
.L53:
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L89+68
	add	r2, r3, r2
	sub	r3, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	ldr	r1, .L89+68
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #52
	ldr	r3, [r3]
	str	r3, [fp, #-192]
	b	.L52
.L51:
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L50:
	ldr	r2, [fp, #-240]
	ldr	r3, [fp, #-212]
	cmp	r2, r3
	blt	.L53
.L52:
	ldr	r3, [fp, #-192]
	ldr	r2, [fp, #-232]
	ldr	r1, .L89+176
	ldr	r0, [fp, #-172]
	bl	fprintf
	ldr	r2, [fp, #-192]
	ldr	r1, .L89+180
	ldr	r0, [fp, #-160]
	bl	fprintf
	mov	r3, #0
	strb	r3, [fp, #-68]
	b	.L17
.L47:
	sub	r3, fp, #68
	ldr	r1, .L89+184
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	mov	r3, #0
	str	r3, [fp, #-188]
	sub	r3, fp, #60
	mov	r2, #32
	strh	r2, [r3]	@ movhi
	ldr	r0, [fp, #-164]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-245]
	b	.L55
.L56:
	sub	r3, fp, #60
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-156]
	sub	r2, fp, #60
	ldr	r3, [fp, #-156]
	add	r3, r2, r3
	ldrb	r2, [fp, #-245]
	strb	r2, [r3]
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-56]
	ldr	r0, [fp, #-164]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-245]
.L55:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #59
	bne	.L56
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L57
.L60:
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L89+68
	add	r2, r3, r2
	sub	r3, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L58
	ldr	r1, .L89+68
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #52
	ldr	r3, [r3]
	str	r3, [fp, #-188]
	b	.L59
.L58:
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L57:
	ldr	r2, [fp, #-240]
	ldr	r3, [fp, #-212]
	cmp	r2, r3
	blt	.L60
.L59:
	ldr	r3, [fp, #-188]
	ldr	r2, [fp, #-232]
	ldr	r1, .L89+188
	ldr	r0, [fp, #-172]
	bl	fprintf
	ldr	r2, [fp, #-188]
	ldr	r1, .L89+192
	ldr	r0, [fp, #-160]
	bl	fprintf
	mov	r3, #0
	strb	r3, [fp, #-68]
	b	.L17
.L54:
	sub	r3, fp, #68
	ldr	r1, .L89+196
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L61
	mov	r3, #0
	str	r3, [fp, #-184]
	sub	r3, fp, #60
	mov	r2, #32
	strh	r2, [r3]	@ movhi
	ldr	r0, [fp, #-164]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-245]
	b	.L62
.L63:
	sub	r3, fp, #60
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-156]
	sub	r2, fp, #60
	ldr	r3, [fp, #-156]
	add	r3, r2, r3
	ldrb	r2, [fp, #-245]
	strb	r2, [r3]
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-56]
	ldr	r0, [fp, #-164]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-245]
.L62:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #59
	bne	.L63
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L64
.L67:
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L89+68
	add	r2, r3, r2
	sub	r3, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L65
	ldr	r1, .L89+68
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #52
	ldr	r3, [r3]
	str	r3, [fp, #-184]
	b	.L66
.L65:
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L64:
	ldr	r2, [fp, #-240]
	ldr	r3, [fp, #-212]
	cmp	r2, r3
	blt	.L67
.L66:
	ldr	r3, [fp, #-184]
	ldr	r2, [fp, #-232]
	ldr	r1, .L89+200
	ldr	r0, [fp, #-172]
	bl	fprintf
	ldr	r2, [fp, #-184]
	ldr	r1, .L89+204
	ldr	r0, [fp, #-160]
	bl	fprintf
	mov	r3, #0
	strb	r3, [fp, #-68]
	b	.L17
.L61:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L68
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L68
	sub	r2, fp, #68
	ldr	r3, [fp, #-156]
	add	r3, r2, r3
	ldrb	r2, [fp, #-245]
	strb	r2, [r3]
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-64]
	sub	r3, fp, #68
	ldr	r1, .L89+208
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	mov	r3, #1
	str	r3, [fp, #-208]
	b	.L17
.L68:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L70
	ldr	r0, [fp, #-164]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-245]
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #65
	bne	.L71
	mov	r3, #1
	str	r3, [fp, #-148]
	b	.L17
.L71:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #66
	bne	.L72
	mov	r3, #10
	str	r3, [fp, #-148]
	b	.L17
.L72:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #67
	bne	.L73
	mov	r3, #11
	str	r3, [fp, #-148]
	b	.L17
.L73:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #68
	bne	.L74
	mov	r3, #100
	str	r3, [fp, #-148]
	b	.L17
.L74:
	ldr	r3, [fp, #-176]
	cmp	r3, #0
	bne	.L17
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	ldr	r2, [fp, #-232]
	mov	r1, r3
	ldr	r0, .L89+212
	bl	printf
	b	.L17
.L70:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #44
	bne	.L75
	ldr	r3, [fp, #-228]
	cmp	r3, #0
	bne	.L75
	ldr	r3, [fp, #-208]
	cmp	r3, #0
	beq	.L76
	sub	r3, fp, #244
	mov	r2, r3
	ldr	r1, .L89+216
	ldr	r0, [fp, #-164]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-244]
	mov	r0, r3
	bl	tobin
	str	r0, [fp, #-204]
	b	.L17
.L76:
	ldr	r0, [fp, #-164]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-245]
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #65
	bne	.L77
	mov	r3, #1
	str	r3, [fp, #-144]
	b	.L78
.L77:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #66
	bne	.L79
	mov	r3, #10
	str	r3, [fp, #-144]
	b	.L78
.L79:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #67
	bne	.L80
	mov	r3, #11
	str	r3, [fp, #-144]
	b	.L78
.L80:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #68
	bne	.L81
	mov	r3, #100
	str	r3, [fp, #-144]
	b	.L78
.L81:
	ldr	r3, [fp, #-176]
	cmp	r3, #0
	bne	.L78
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	ldr	r2, [fp, #-232]
	mov	r1, r3
	ldr	r0, .L89+212
	bl	printf
.L78:
	mov	r3, #1
	str	r3, [fp, #-228]
	b	.L17
.L75:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #44
	bne	.L17
	ldr	r3, [fp, #-228]
	cmp	r3, #1
	bne	.L17
	ldr	r0, [fp, #-164]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-245]
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #65
	bne	.L82
	mov	r3, #1
	str	r3, [fp, #-140]
	b	.L83
.L82:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #66
	bne	.L84
	mov	r3, #10
	str	r3, [fp, #-140]
	b	.L83
.L84:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #67
	bne	.L85
	mov	r3, #11
	str	r3, [fp, #-140]
	b	.L83
.L85:
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	cmp	r3, #68
	bne	.L86
	mov	r3, #100
	str	r3, [fp, #-140]
	b	.L83
.L86:
	ldr	r3, [fp, #-176]
	cmp	r3, #0
	bne	.L83
	ldrb	r3, [fp, #-245]	@ zero_extendqisi2
	ldr	r2, [fp, #-232]
	mov	r1, r3
	ldr	r0, .L89+212
	bl	printf
.L83:
	mov	r3, #0
	str	r3, [fp, #-228]
.L17:
	ldr	r0, [fp, #-164]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L87
	ldr	r0, [fp, #-164]
	bl	fclose
	ldr	r0, [fp, #-160]
	bl	fclose
	ldr	r0, [fp, #-172]
	bl	fclose
	ldr	r0, [fp, #-168]
	bl	fclose
	nop
	ldr	r2, .L89
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L88
	bl	__stack_chk_fail
.L88:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.word	.LC51
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	100000000
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	dyntabds
	.word	optab
	.word	.LC16
	.word	debug
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.size	convert_to_bin, .-convert_to_bin
	.section	.rodata
	.align	2
.LC52:
	.ascii	"OPTAB.dat\000"
	.align	2
.LC53:
	.ascii	"\012Loading the OPTAB...\000"
	.align	2
.LC54:
	.ascii	"\012OPTAB loaded...\000"
	.align	2
.LC55:
	.ascii	"\012|  OPCODE   |    mcode     |    No of operands "
	.ascii	"   |\000"
	.align	2
.LC56:
	.ascii	"\012%s\000"
	.align	2
.LC57:
	.ascii	"\011\011%07d\000"
	.align	2
.LC58:
	.ascii	"\011\011\011%d\000"
	.text
	.align	2
	.global	load_optab
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_optab, %function
load_optab:
	@ 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]
	ldr	r1, .L98
	ldr	r0, .L98+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r0, .L98+8
	bl	puts
	b	.L92
.L94:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L92:
	ldr	r3, [fp, #-8]
	mov	r2, #280
	mov	r1, #1
	ldr	r0, .L98+12
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	beq	.L93
	ldr	r3, [fp, #-12]
	cmp	r3, #12
	ble	.L94
.L93:
	ldr	r0, .L98+16
	bl	printf
	ldr	r3, .L98+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L95
	ldr	r0, .L98+24
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L96
.L97:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L98+12
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L98+28
	bl	printf
	ldr	r1, .L98+12
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L98+32
	bl	printf
	ldr	r1, .L98+12
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L98+36
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L96:
	ldr	r3, [fp, #-12]
	cmp	r3, #12
	ble	.L97
.L95:
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L99:
	.align	2
.L98:
	.word	.LC8
	.word	.LC52
	.word	.LC53
	.word	optab
	.word	.LC54
	.word	debug
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.size	load_optab, .-load_optab
	.section	.rodata
	.align	2
.LC59:
	.ascii	"OPTAB.txt\000"
	.align	2
.LC60:
	.ascii	"could not create OPTAB.txt file\000"
	.align	2
.LC61:
	.ascii	"\012|OPCODE\011|   MACHINE CODE  |    No.of operand"
	.ascii	"s\000"
	.align	2
.LC62:
	.ascii	"\012|%s\011|\011%07d\011  |\011\011%d    \000"
	.text
	.align	2
	.global	create_optab_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_optab_file, %function
create_optab_file:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r1, .L105
	ldr	r0, .L105+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L101
	ldr	r0, .L105+8
	bl	printf
	b	.L102
.L101:
	ldr	r3, [fp, #-8]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L105+12
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L103
.L104:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L105+16
	add	r1, r3, r2
	ldr	r0, .L105+16
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #12
	ldr	r0, [r3]
	ldr	ip, .L105+16
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, ip, r3
	add	r3, r3, #16
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, .L105+20
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L103:
	ldr	r3, [fp, #-12]
	cmp	r3, #12
	ble	.L104
	ldr	r0, [fp, #-8]
	bl	fclose
.L102:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L106:
	.align	2
.L105:
	.word	.LC3
	.word	.LC59
	.word	.LC60
	.word	.LC61
	.word	optab
	.word	.LC62
	.size	create_optab_file, .-create_optab_file
	.section	.rodata
	.align	2
.LC63:
	.ascii	"\012\012Checking for OPTAB file...\000"
	.align	2
.LC64:
	.ascii	"\012OPTAB file does not exist!!\012Creating a new O"
	.ascii	"PTAB file\000"
	.align	2
.LC65:
	.ascii	"\012Error writing opcodes to file!\000"
	.align	2
.LC66:
	.ascii	"\012\012Initialising the OPTAB...\000"
	.align	2
.LC67:
	.ascii	"comp\000"
	.align	2
.LC68:
	.ascii	"optab[11].mcode=%d\000"
	.text
	.align	2
	.global	initialise
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialise, %function
initialise:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r0, .L122
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r1, .L122+4
	ldr	r0, .L122+8
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L108
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, .L122+12
	ldr	r0, .L122+8
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r0, .L122+16
	bl	printf
	ldr	r3, .L122+20
	ldr	r2, .L122+24
	str	r2, [r3]
	ldr	r3, .L122+20
	ldr	r2, .L122+28
	str	r2, [r3, #12]
	ldr	r3, .L122+20
	mov	r2, #3
	str	r2, [r3, #16]
	ldr	r3, [fp, #-12]
	mov	r2, #280
	mov	r1, #1
	ldr	r0, .L122+20
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L109
	ldr	r0, .L122+32
	bl	printf
	mov	r0, #1
	bl	exit
.L109:
	ldr	r0, .L122+36
	bl	printf
	ldr	r3, .L122+40
	ldr	r2, .L122+44
	str	r2, [r3]
	ldr	r3, .L122+20
	ldr	r2, .L122+48
	str	r2, [r3, #32]
	ldr	r3, .L122+20
	mov	r2, #3
	str	r2, [r3, #36]
	ldr	r3, [fp, #-12]
	mov	r2, #280
	mov	r1, #1
	ldr	r0, .L122+20
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L110
	ldr	r0, .L122+32
	bl	printf
	mov	r0, #1
	bl	exit
.L110:
	ldr	r3, .L122+52
	ldr	r2, .L122+56
	str	r2, [r3]
	ldr	r3, .L122+20
	ldr	r2, .L122+60
	str	r2, [r3, #52]
	ldr	r3, .L122+20
	mov	r2, #3
	str	r2, [r3, #56]
	ldr	r3, [fp, #-12]
	mov	r2, #280
	mov	r1, #1
	ldr	r0, .L122+20
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L111
	ldr	r0, .L122+32
	bl	printf
	mov	r0, #1
	bl	exit
.L111:
	ldr	r3, .L122+64
	ldr	r2, .L122+68
	str	r2, [r3]
	ldr	r3, .L122+20
	ldr	r2, .L122+72
	str	r2, [r3, #72]
	ldr	r3, .L122+20
	mov	r2, #3
	str	r2, [r3, #76]
	ldr	r3, [fp, #-12]
	mov	r2, #280
	mov	r1, #1
	ldr	r0, .L122+20
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L112
	ldr	r0, .L122+32
	bl	printf
	mov	r0, #1
	bl	exit
.L112:
	ldr	r3, .L122+76
	ldr	r2, .L122+80
	str	r2, [r3]
	ldr	r3, .L122+20
	ldr	r2, .L122+84
	str	r2, [r3, #92]
	ldr	r3, .L122+20
	mov	r2, #2
	str	r2, [r3, #96]
	ldr	r3, [fp, #-12]
	mov	r2, #280
	mov	r1, #1
	ldr	r0, .L122+20
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L113
	ldr	r0, .L122+32
	bl	printf
	mov	r0, #1
	bl	exit
.L113:
	ldr	r3, .L122+88
	ldr	r2, .L122+92
	str	r2, [r3]
	ldr	r3, .L122+20
	ldr	r2, .L122+96
	str	r2, [r3, #112]
	ldr	r3, .L122+20
	mov	r2, #3
	str	r2, [r3, #116]
	ldr	r3, [fp, #-12]
	mov	r2, #280
	mov	r1, #1
	ldr	r0, .L122+20
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L114
	ldr	r0, .L122+32
	bl	printf
	mov	r0, #1
	bl	exit
.L114:
	ldr	r3, .L122+100
	ldr	r2, .L122+104
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	ldr	r3, .L122+20
	ldr	r2, .L122+108
	str	r2, [r3, #132]
	ldr	r3, .L122+20
	mov	r2, #2
	str	r2, [r3, #136]
	ldr	r3, [fp, #-12]
	mov	r2, #280
	mov	r1, #1
	ldr	r0, .L122+20
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L115
	ldr	r0, .L122+32
	bl	printf
	mov	r0, #1
	bl	exit
.L115:
	ldr	r3, .L122+112
	ldr	r2, .L122+116
	str	r2, [r3]
	ldr	r3, .L122+20
	ldr	r2, .L122+120
	str	r2, [r3, #152]
	ldr	r3, .L122+20
	mov	r2, #2
	str	r2, [r3, #156]
	ldr	r3, [fp, #-12]
	mov	r2, #280
	mov	r1, #1
	ldr	r0, .L122+20
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L116
	ldr	r0, .L122+32
	bl	printf
	mov	r0, #1
	bl	exit
.L116:
	ldr	r3, .L122+124
	ldr	r2, .L122+128
	str	r2, [r3]
	ldr	r3, .L122+20
	ldr	r2, .L122+132
	str	r2, [r3, #172]
	ldr	r3, .L122+20
	mov	r2, #1
	str	r2, [r3, #176]
	ldr	r3, [fp, #-12]
	mov	r2, #280
	mov	r1, #1
	ldr	r0, .L122+20
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L117
	ldr	r0, .L122+32
	bl	printf
	mov	r0, #1
	bl	exit
.L117:
	ldr	r3, .L122+136
	ldr	r2, .L122+140
	str	r2, [r3]
	ldr	r3, .L122+20
	ldr	r2, .L122+144
	str	r2, [r3, #192]
	ldr	r3, .L122+20
	mov	r2, #1
	str	r2, [r3, #196]
	ldr	r3, [fp, #-12]
	mov	r2, #280
	mov	r1, #1
	ldr	r0, .L122+20
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L118
	ldr	r0, .L122+32
	bl	printf
	mov	r0, #1
	bl	exit
.L118:
	ldr	r3, .L122+148
	ldr	r2, .L122+152
	str	r2, [r3]
	ldr	r3, .L122+20
	ldr	r2, .L122+156
	str	r2, [r3, #212]
	ldr	r3, .L122+20
	mov	r2, #1
	str	r2, [r3, #216]
	ldr	r3, [fp, #-12]
	mov	r2, #280
	mov	r1, #1
	ldr	r0, .L122+20
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L119
	ldr	r0, .L122+32
	bl	printf
	mov	r0, #1
	bl	exit
.L119:
	ldr	r3, .L122+160
	ldr	r2, .L122+164
	str	r2, [r3]
	ldr	r3, .L122+20
	ldr	r2, .L122+168
	str	r2, [r3, #232]
	ldr	r3, .L122+20
	mov	r2, #1
	str	r2, [r3, #236]
	ldr	r3, .L122+20
	ldr	r3, [r3, #232]
	mov	r1, r3
	ldr	r0, .L122+172
	bl	printf
	ldr	r3, [fp, #-12]
	mov	r2, #280
	mov	r1, #1
	ldr	r0, .L122+20
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L120
	ldr	r0, .L122+32
	bl	printf
	mov	r0, #1
	bl	exit
.L120:
	ldr	r3, .L122+176
	ldr	r2, .L122+180
	str	r2, [r3]
	ldr	r3, .L122+20
	ldr	r2, .L122+184
	str	r2, [r3, #252]
	ldr	r3, .L122+20
	mov	r2, #1
	str	r2, [r3, #256]
	ldr	r3, [fp, #-12]
	mov	r2, #280
	mov	r1, #1
	ldr	r0, .L122+20
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L121
	ldr	r0, .L122+32
	bl	printf
	mov	r0, #1
	bl	exit
.L121:
	ldr	r0, [fp, #-12]
	bl	fclose
.L108:
	ldr	r0, [fp, #-16]
	bl	fclose
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L123:
	.align	2
.L122:
	.word	.LC63
	.word	.LC8
	.word	.LC52
	.word	.LC3
	.word	.LC64
	.word	optab
	.word	6579297
	.word	100000
	.word	.LC65
	.word	.LC66
	.word	optab+20
	.word	6452595
	.word	100001
	.word	optab+40
	.word	7107949
	.word	100010
	.word	optab+60
	.word	7760228
	.word	100011
	.word	optab+80
	.word	7761773
	.word	100100
	.word	optab+100
	.word	6582125
	.word	100101
	.word	optab+120
	.word	.LC67
	.word	100110
	.word	optab+140
	.word	6911597
	.word	100111
	.word	optab+160
	.word	7368042
	.word	101000
	.word	optab+180
	.word	6778218
	.word	101001
	.word	optab+200
	.word	6645610
	.word	101010
	.word	optab+220
	.word	7105898
	.word	101011
	.word	.LC68
	.word	optab+240
	.word	6646890
	.word	101100
	.size	initialise, .-initialise
	.section	.rodata
	.align	2
.LC69:
	.ascii	"\012\012Reading the code from file...\012\000"
	.align	2
.LC70:
	.ascii	"\012Error opening code file: ASMCODE.txt\000"
	.text
	.align	2
	.global	printcode
	.syntax unified
	.arm
	.fpu softvfp
	.type	printcode, %function
printcode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L129
	bl	puts
	ldr	r1, .L129+4
	ldr	r0, .L129+8
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L126
	ldr	r0, .L129+12
	bl	printf
	mov	r0, #1
	bl	exit
.L127:
	ldr	r0, [fp, #-8]
	bl	getc
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	putchar
.L126:
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L127
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L130:
	.align	2
.L129:
	.word	.LC69
	.word	.LC8
	.word	.LC9
	.word	.LC70
	.size	printcode, .-printcode
	.section	.rodata
	.align	2
.LC71:
	.ascii	"\012Error opening code file: ASMCODE.vic\000"
	.align	2
.LC72:
	.ascii	"MEMCODE.txt\000"
	.align	2
.LC73:
	.ascii	"\012Error opening Memory addressed code file: MEMCO"
	.ascii	"DE.txt\000"
	.align	2
.LC74:
	.ascii	"\012\012Assigning memory address to code (Address b"
	.ascii	"egins from 0000)...\012\000"
	.align	2
.LC75:
	.ascii	"\012%04d \000"
	.text
	.align	2
	.global	assign_memaddr
	.syntax unified
	.arm
	.fpu softvfp
	.type	assign_memaddr, %function
assign_memaddr:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r1, .L141
	ldr	r0, .L141+4
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L132
	ldr	r0, .L141+8
	bl	printf
	mov	r0, #1
	bl	exit
.L132:
	ldr	r1, .L141+12
	ldr	r0, .L141+16
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L133
	ldr	r0, .L141+20
	bl	printf
	mov	r0, #1
	bl	exit
.L133:
	ldr	r0, .L141+24
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #16
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, .L141+28
	bl	printf
	ldr	r2, [fp, #-24]
	ldr	r1, .L141+28
	ldr	r0, [fp, #-12]
	bl	fprintf
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	getc
	str	r0, [fp, #-28]
	b	.L134
.L139:
	ldr	r3, [fp, #-28]
	cmp	r3, #10
	beq	.L135
	ldr	r0, [fp, #-28]
	bl	putchar
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-28]
	bl	putc
.L135:
	ldr	r3, [fp, #-28]
	cmp	r3, #59
	beq	.L136
	ldr	r3, [fp, #-28]
	cmp	r3, #58
	bne	.L137
.L136:
	mov	r3, #1
	str	r3, [fp, #-20]
.L137:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L138
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, .L141+32
	bl	printf
	ldr	r2, [fp, #-24]
	ldr	r1, .L141+32
	ldr	r0, [fp, #-12]
	bl	fprintf
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-24]
.L138:
	ldr	r0, [fp, #-16]
	bl	getc
	str	r0, [fp, #-28]
.L134:
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L139
	ldr	r0, [fp, #-16]
	bl	fclose
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L142:
	.align	2
.L141:
	.word	.LC8
	.word	.LC9
	.word	.LC71
	.word	.LC3
	.word	.LC72
	.word	.LC73
	.word	.LC74
	.word	.LC13
	.word	.LC75
	.size	assign_memaddr, .-assign_memaddr
	.align	2
	.global	verify_code
	.syntax unified
	.arm
	.fpu softvfp
	.type	verify_code, %function
verify_code:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	verify_code, .-verify_code
	.section	.rodata
	.align	2
.LC76:
	.ascii	"\012***********************************************"
	.ascii	"****************************\000"
	.align	2
.LC77:
	.ascii	"\012\011\011\011ASSEMBLY LANGUAGE EMULATER\012\000"
	.align	2
.LC78:
	.ascii	"\012***********************************************"
	.ascii	"****************************\012\000"
	.align	2
.LC79:
	.ascii	"Please press enter to continue...\000"
	.align	2
.LC80:
	.ascii	"Error printing the code!!\000"
	.align	2
.LC81:
	.ascii	"Error assigning memory addresses!!\000"
	.align	2
.LC82:
	.ascii	"Error loading the optab\000"
	.align	2
.LC83:
	.ascii	"Error converting instructions to binary\000"
	.align	2
.LC84:
	.ascii	"\012|||||||||||||||||||||||||||||||||||||||||||||||"
	.ascii	"|||||||||||||||||||||||||||||||||\000"
	.align	2
.LC85:
	.ascii	"\012----------------------Assembly completed succes"
	.ascii	"sfully--------------------------\000"
	.align	2
.LC86:
	.ascii	"\012NOTE: Please run the binrun.exe to view the res"
	.ascii	"ult of the instruction\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
	ldr	r0, .L150
	bl	puts
	ldr	r0, .L150+4
	bl	puts
	ldr	r0, .L150+8
	bl	puts
	ldr	r0, .L150+12
	bl	printf
	bl	getch
	bl	printcode
	mov	r3, r0
	cmp	r3, #0
	beq	.L145
	ldr	r0, .L150+16
	bl	printf
.L145:
	bl	assign_memaddr
	mov	r3, r0
	cmp	r3, #0
	beq	.L146
	ldr	r0, .L150+20
	bl	printf
.L146:
	bl	initialise
	bl	load_optab
	mov	r3, r0
	cmp	r3, #0
	beq	.L147
	ldr	r0, .L150+24
	bl	printf
.L147:
	bl	create_optab_file
	bl	convert_to_bin
	mov	r3, r0
	cmp	r3, #0
	beq	.L148
	ldr	r0, .L150+28
	bl	printf
.L148:
	ldr	r0, .L150+32
	bl	puts
	ldr	r0, .L150+36
	bl	puts
	ldr	r0, .L150+32
	bl	puts
	ldr	r0, .L150+40
	bl	puts
	bl	getch
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L151:
	.align	2
.L150:
	.word	.LC76
	.word	.LC77
	.word	.LC78
	.word	.LC79
	.word	.LC80
	.word	.LC81
	.word	.LC82
	.word	.LC83
	.word	.LC84
	.word	.LC85
	.word	.LC86
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
