	.file	"818832.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n Enter a string: "
.LC1:
	.string	"\n %s is not recognised. \n"
	.align 8
.LC2:
	.string	"%s is accepted under rule 'a' \n"
	.align 8
.LC3:
	.string	"\n %s is accepted under rule 'a*b+' \n"
	.align 8
.LC4:
	.string	"\n %s is accepted under rule 'abb' \n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	jmp	.L2
.L29:
	cmp	DWORD PTR -40[rbp], 6
	ja	.L2
	mov	eax, DWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
.L10:
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -36[rbp], edx
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	mov	BYTE PTR -41[rbp], al
	cmp	BYTE PTR -41[rbp], 97
	jne	.L11
	mov	DWORD PTR -40[rbp], 1
	jmp	.L2
.L11:
	cmp	BYTE PTR -41[rbp], 98
	jne	.L13
	mov	DWORD PTR -40[rbp], 2
	jmp	.L2
.L13:
	mov	DWORD PTR -40[rbp], 6
	jmp	.L2
.L9:
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -36[rbp], edx
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	mov	BYTE PTR -41[rbp], al
	cmp	BYTE PTR -41[rbp], 97
	jne	.L14
	mov	DWORD PTR -40[rbp], 3
	jmp	.L2
.L14:
	cmp	BYTE PTR -41[rbp], 98
	jne	.L16
	mov	DWORD PTR -40[rbp], 4
	jmp	.L2
.L16:
	mov	DWORD PTR -40[rbp], 6
	jmp	.L2
.L8:
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -36[rbp], edx
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	mov	BYTE PTR -41[rbp], al
	cmp	BYTE PTR -41[rbp], 97
	jne	.L17
	mov	DWORD PTR -40[rbp], 6
	jmp	.L2
.L17:
	cmp	BYTE PTR -41[rbp], 98
	jne	.L19
	mov	DWORD PTR -40[rbp], 2
	jmp	.L2
.L19:
	mov	DWORD PTR -40[rbp], 6
	jmp	.L2
.L7:
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -36[rbp], edx
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	mov	BYTE PTR -41[rbp], al
	cmp	BYTE PTR -41[rbp], 97
	jne	.L20
	mov	DWORD PTR -40[rbp], 3
	jmp	.L2
.L20:
	cmp	BYTE PTR -41[rbp], 98
	jne	.L22
	mov	DWORD PTR -40[rbp], 2
	jmp	.L2
.L22:
	mov	DWORD PTR -40[rbp], 6
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -36[rbp], edx
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	mov	BYTE PTR -41[rbp], al
	cmp	BYTE PTR -41[rbp], 97
	jne	.L23
	mov	DWORD PTR -40[rbp], 6
	jmp	.L2
.L23:
	cmp	BYTE PTR -41[rbp], 98
	jne	.L25
	mov	DWORD PTR -40[rbp], 5
	jmp	.L2
.L25:
	mov	DWORD PTR -40[rbp], 6
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -36[rbp], edx
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	mov	BYTE PTR -41[rbp], al
	cmp	BYTE PTR -41[rbp], 97
	jne	.L26
	mov	DWORD PTR -40[rbp], 6
	jmp	.L2
.L26:
	cmp	BYTE PTR -41[rbp], 98
	jne	.L28
	mov	DWORD PTR -40[rbp], 2
	jmp	.L2
.L28:
	mov	DWORD PTR -40[rbp], 6
	jmp	.L2
.L3:
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	test	al, al
	jne	.L29
	cmp	DWORD PTR -40[rbp], 1
	jne	.L30
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L30:
	cmp	DWORD PTR -40[rbp], 2
	je	.L31
	cmp	DWORD PTR -40[rbp], 4
	jne	.L32
.L31:
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L32:
	cmp	DWORD PTR -40[rbp], 5
	jne	.L33
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L33:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"818832.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012 Enter a string: \000"
	.align	2
.LC1:
	.ascii	"\012 %s is not recognised. \012\000"
	.align	2
.LC2:
	.ascii	"%s is accepted under rule 'a' \012\000"
	.align	2
.LC3:
	.ascii	"\012 %s is accepted under rule 'a*b+' \012\000"
	.align	2
.LC4:
	.ascii	"\012 %s is accepted under rule 'abb' \012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r0, .L36+4
	bl	puts
	sub	r3, fp, #28
	mov	r0, r3
	bl	gets
	b	.L2
.L29:
	ldr	r3, [fp, #-36]
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L10:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-24]
	strb	r3, [fp, #-37]
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L11
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L2
.L11:
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L13
	mov	r3, #2
	str	r3, [fp, #-36]
	b	.L2
.L13:
	mov	r3, #6
	str	r3, [fp, #-36]
	b	.L2
.L9:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-24]
	strb	r3, [fp, #-37]
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L14
	mov	r3, #3
	str	r3, [fp, #-36]
	b	.L2
.L14:
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L16
	mov	r3, #4
	str	r3, [fp, #-36]
	b	.L2
.L16:
	mov	r3, #6
	str	r3, [fp, #-36]
	b	.L2
.L8:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-24]
	strb	r3, [fp, #-37]
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L17
	mov	r3, #6
	str	r3, [fp, #-36]
	b	.L2
.L17:
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L19
	mov	r3, #2
	str	r3, [fp, #-36]
	b	.L2
.L19:
	mov	r3, #6
	str	r3, [fp, #-36]
	b	.L2
.L7:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-24]
	strb	r3, [fp, #-37]
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L20
	mov	r3, #3
	str	r3, [fp, #-36]
	b	.L2
.L20:
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L22
	mov	r3, #2
	str	r3, [fp, #-36]
	b	.L2
.L22:
	mov	r3, #6
	str	r3, [fp, #-36]
	b	.L2
.L6:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-24]
	strb	r3, [fp, #-37]
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L23
	mov	r3, #6
	str	r3, [fp, #-36]
	b	.L2
.L23:
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L25
	mov	r3, #5
	str	r3, [fp, #-36]
	b	.L2
.L25:
	mov	r3, #6
	str	r3, [fp, #-36]
	b	.L2
.L5:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-24]
	strb	r3, [fp, #-37]
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L26
	mov	r3, #6
	str	r3, [fp, #-36]
	b	.L2
.L26:
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L28
	mov	r3, #2
	str	r3, [fp, #-36]
	b	.L2
.L28:
	mov	r3, #6
	str	r3, [fp, #-36]
	b	.L2
.L3:
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L36+8
	bl	printf
	mov	r0, #0
	bl	exit
.L2:
	sub	r2, fp, #28
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L29
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	bne	.L30
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L36+12
	bl	printf
.L30:
	ldr	r3, [fp, #-36]
	cmp	r3, #2
	beq	.L31
	ldr	r3, [fp, #-36]
	cmp	r3, #4
	bne	.L32
.L31:
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L36+16
	bl	printf
.L32:
	ldr	r3, [fp, #-36]
	cmp	r3, #5
	bne	.L33
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L36+20
	bl	printf
.L33:
	mov	r3, #0
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
