	.file	"39255.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter string (a or b): "
.LC1:
	.string	"%s"
.LC2:
	.string	"Accepted "
.LC3:
	.string	"Rejected "
	.align 8
.LC4:
	.string	"Do you want to continue(y/n): "
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 136
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -133[rbp], 65
.L19:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -132[rbp], 0
	jmp	.L2
.L16:
	movsx	eax, BYTE PTR -133[rbp]
	cmp	eax, 68
	je	.L3
	cmp	eax, 68
	jg	.L4
	cmp	eax, 67
	je	.L5
	cmp	eax, 67
	jg	.L4
	cmp	eax, 65
	je	.L6
	cmp	eax, 66
	je	.L7
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	cmp	al, 97
	jne	.L8
	mov	BYTE PTR -133[rbp], 66
	jmp	.L22
.L8:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	cmp	al, 98
	jne	.L22
	mov	BYTE PTR -133[rbp], 67
	jmp	.L22
.L7:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	cmp	al, 97
	jne	.L10
	mov	BYTE PTR -133[rbp], 66
	jmp	.L23
.L10:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	cmp	al, 98
	jne	.L23
	mov	BYTE PTR -133[rbp], 68
	jmp	.L23
.L5:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	cmp	al, 97
	jne	.L12
	mov	BYTE PTR -133[rbp], 67
	jmp	.L24
.L12:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	cmp	al, 98
	jne	.L24
	mov	BYTE PTR -133[rbp], 67
	jmp	.L24
.L3:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	cmp	al, 97
	jne	.L14
	mov	BYTE PTR -133[rbp], 66
	jmp	.L25
.L14:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	cmp	al, 98
	jne	.L25
	mov	BYTE PTR -133[rbp], 68
	jmp	.L25
.L22:
	nop
	jmp	.L4
.L23:
	nop
	jmp	.L4
.L24:
	nop
	jmp	.L4
.L25:
	nop
.L4:
	add	DWORD PTR -132[rbp], 1
.L2:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rbx, eax
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L16
	cmp	BYTE PTR -133[rbp], 66
	jne	.L17
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L18
.L17:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L18:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -134[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -134[rbp]
	cmp	al, 121
	je	.L19
	mov	eax, 0
	mov	rdx, QWORD PTR -24[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"39255.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter string (a or b): \000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"Accepted \000"
	.align	2
.LC3:
	.ascii	"Rejected \000"
	.align	2
.LC4:
	.ascii	"Do you want to continue(y/n): \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 = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #65
	strb	r3, [fp, #-113]
.L20:
	ldr	r0, .L27+4
	bl	printf
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L27+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L2
.L17:
	ldrb	r3, [fp, #-113]	@ zero_extendqisi2
	sub	r3, r3, #65
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L8:
	sub	r2, fp, #108
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L9
	mov	r3, #66
	strb	r3, [fp, #-113]
	b	.L23
.L9:
	sub	r2, fp, #108
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L23
	mov	r3, #67
	strb	r3, [fp, #-113]
	b	.L23
.L7:
	sub	r2, fp, #108
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L11
	mov	r3, #66
	strb	r3, [fp, #-113]
	b	.L24
.L11:
	sub	r2, fp, #108
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L24
	mov	r3, #68
	strb	r3, [fp, #-113]
	b	.L24
.L6:
	sub	r2, fp, #108
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L13
	mov	r3, #67
	strb	r3, [fp, #-113]
	b	.L25
.L13:
	sub	r2, fp, #108
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L25
	mov	r3, #67
	strb	r3, [fp, #-113]
	b	.L25
.L4:
	sub	r2, fp, #108
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L15
	mov	r3, #66
	strb	r3, [fp, #-113]
	b	.L26
.L15:
	sub	r2, fp, #108
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L26
	mov	r3, #68
	strb	r3, [fp, #-113]
	b	.L26
.L23:
	nop
	b	.L3
.L24:
	nop
	b	.L3
.L25:
	nop
	b	.L3
.L26:
	nop
.L3:
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L2:
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	bhi	.L17
	ldrb	r3, [fp, #-113]	@ zero_extendqisi2
	cmp	r3, #66
	bne	.L18
	ldr	r0, .L27+12
	bl	puts
	b	.L19
.L18:
	ldr	r0, .L27+16
	bl	puts
.L19:
	ldr	r0, .L27+20
	bl	printf
	sub	r3, fp, #114
	mov	r1, r3
	ldr	r0, .L27+8
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L20
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.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
