	.file	"864664.c"
	.intel_syntax noprefix
	.text
	.globl	input
	.bss
	.align 32
	.type	input, @object
	.size	input, 100
input:
	.zero	100
	.globl	len
	.data
	.align 4
	.type	len, @object
	.size	len, 4
len:
	.long	-1
	.globl	stack
	.bss
	.align 32
	.type	stack, @object
	.size	stack, 100
stack:
	.zero	100
	.globl	top
	.data
	.align 4
	.type	top, @object
	.size	top, 4
top:
	.long	-1
	.section	.rodata
.LC0:
	.string	"\t\t"
.LC1:
	.string	"$\t\t%s\n"
	.text
	.globl	display
	.type	display, @function
display:
.LFB0:
	.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
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, stack[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR top[rip]
	cmp	DWORD PTR -8[rbp], eax
	jle	.L3
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, input[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L4:
	mov	eax, DWORD PTR len[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L5
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	display, .-display
	.section	.rodata
.LC2:
	.string	"REDUCE"
	.text
	.globl	checkForReduce
	.type	checkForReduce, @function
checkForReduce:
.LFB1:
	.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
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 1
	jmp	.L7
.L11:
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR top[rip]
	sub	eax, 2
	cdqe
	lea	rdx, stack[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 83
	jne	.L8
	mov	eax, DWORD PTR top[rip]
	sub	eax, 1
	cdqe
	lea	rdx, stack[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 43
	jne	.L8
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, stack[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 83
	jne	.L8
	mov	eax, DWORD PTR -20[rbp]
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	display
	mov	eax, DWORD PTR top[rip]
	sub	eax, 2
	cdqe
	lea	rdx, stack[rip]
	mov	BYTE PTR [rax+rdx], 83
	mov	eax, DWORD PTR top[rip]
	sub	eax, 2
	mov	DWORD PTR top[rip], eax
	mov	DWORD PTR -4[rbp], 1
.L8:
	mov	eax, DWORD PTR top[rip]
	sub	eax, 2
	cdqe
	lea	rdx, stack[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 83
	jne	.L9
	mov	eax, DWORD PTR top[rip]
	sub	eax, 1
	cdqe
	lea	rdx, stack[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 45
	jne	.L9
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, stack[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 83
	jne	.L9
	mov	eax, DWORD PTR -20[rbp]
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	display
	mov	eax, DWORD PTR top[rip]
	sub	eax, 2
	cdqe
	lea	rdx, stack[rip]
	mov	BYTE PTR [rax+rdx], 83
	mov	eax, DWORD PTR top[rip]
	sub	eax, 2
	mov	DWORD PTR top[rip], eax
	mov	DWORD PTR -4[rbp], 1
.L9:
	mov	eax, DWORD PTR top[rip]
	sub	eax, 2
	cdqe
	lea	rdx, stack[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 40
	jne	.L10
	mov	eax, DWORD PTR top[rip]
	sub	eax, 1
	cdqe
	lea	rdx, stack[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 83
	jne	.L10
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, stack[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 41
	jne	.L10
	mov	eax, DWORD PTR -20[rbp]
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	display
	mov	eax, DWORD PTR top[rip]
	sub	eax, 2
	cdqe
	lea	rdx, stack[rip]
	mov	BYTE PTR [rax+rdx], 83
	mov	eax, DWORD PTR top[rip]
	sub	eax, 2
	mov	DWORD PTR top[rip], eax
	mov	DWORD PTR -4[rbp], 1
.L10:
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, stack[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 105
	jne	.L7
	mov	eax, DWORD PTR -20[rbp]
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	display
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, stack[rip]
	mov	BYTE PTR [rax+rdx], 83
	mov	DWORD PTR -4[rbp], 1
.L7:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	checkForReduce, .-checkForReduce
	.section	.rodata
.LC3:
	.string	"Enter the input:"
.LC4:
	.string	"%s"
.LC5:
	.string	"Stack\t\tInput\t\tAction"
.LC6:
	.string	"SHIFT"
.LC7:
	.string	"ACCEPTED"
.LC8:
	.string	"REJECTED"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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, .LC3[rip]
	call	puts@PLT
	lea	rsi, input[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	nop
.L13:
	mov	eax, DWORD PTR len[rip]
	add	eax, 1
	mov	DWORD PTR len[rip], eax
	mov	eax, DWORD PTR len[rip]
	cdqe
	lea	rdx, input[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L13
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	DWORD PTR top[rip], eax
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, stack[rip]
	mov	BYTE PTR [rax+rdx], 36
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -4[rbp]
	lea	rsi, .LC6[rip]
	mov	edi, eax
	call	display
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	DWORD PTR top[rip], eax
	mov	ecx, DWORD PTR top[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, input[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, stack[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	edi, eax
	call	checkForReduce
	add	DWORD PTR -4[rbp], 1
.L14:
	mov	eax, DWORD PTR len[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L15
	mov	eax, DWORD PTR top[rip]
	cmp	eax, 1
	jne	.L16
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, stack[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 83
	jne	.L16
	mov	eax, DWORD PTR -4[rbp]
	lea	rsi, .LC7[rip]
	mov	edi, eax
	call	display
	jmp	.L17
.L16:
	mov	eax, DWORD PTR -4[rbp]
	lea	rsi, .LC8[rip]
	mov	edi, eax
	call	display
.L17:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"864664.c"
	.text
	.comm	input,100,4
	.global	len
	.data
	.align	2
	.type	len, %object
	.size	len, 4
len:
	.word	-1
	.comm	stack,100,4
	.global	top
	.align	2
	.type	top, %object
	.size	top, 4
top:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\011\011\000"
	.align	2
.LC1:
	.ascii	"$\011\011%s\012\000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L3:
	ldr	r2, .L6
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, .L6+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L3
	ldr	r0, .L6+8
	bl	printf
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L4
.L5:
	ldr	r2, .L6+12
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r3, .L6+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L5
	ldr	r1, [fp, #-20]
	ldr	r0, .L6+20
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	stack
	.word	top
	.word	.LC0
	.word	input
	.word	len
	.word	.LC1
	.size	display, .-display
	.section	.rodata
	.align	2
.LC2:
	.ascii	"REDUCE\000"
	.text
	.align	2
	.global	checkForReduce
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkForReduce, %function
checkForReduce:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L9
.L13:
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L14
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #83
	bne	.L10
	ldr	r3, .L14
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L10
	ldr	r3, .L14
	ldr	r3, [r3]
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #83
	bne	.L10
	ldr	r1, .L14+8
	ldr	r0, [fp, #-16]
	bl	display
	ldr	r3, .L14
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L14+4
	mov	r1, #83
	strb	r1, [r2, r3]
	ldr	r3, .L14
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L14
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, .L14
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #83
	bne	.L11
	ldr	r3, .L14
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L11
	ldr	r3, .L14
	ldr	r3, [r3]
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #83
	bne	.L11
	ldr	r1, .L14+8
	ldr	r0, [fp, #-16]
	bl	display
	ldr	r3, .L14
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L14+4
	mov	r1, #83
	strb	r1, [r2, r3]
	ldr	r3, .L14
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L14
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-8]
.L11:
	ldr	r3, .L14
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #40
	bne	.L12
	ldr	r3, .L14
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #83
	bne	.L12
	ldr	r3, .L14
	ldr	r3, [r3]
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #41
	bne	.L12
	ldr	r1, .L14+8
	ldr	r0, [fp, #-16]
	bl	display
	ldr	r3, .L14
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L14+4
	mov	r1, #83
	strb	r1, [r2, r3]
	ldr	r3, .L14
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L14
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r3, .L14
	ldr	r3, [r3]
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #105
	bne	.L9
	ldr	r1, .L14+8
	ldr	r0, [fp, #-16]
	bl	display
	ldr	r3, .L14
	ldr	r3, [r3]
	ldr	r2, .L14+4
	mov	r1, #83
	strb	r1, [r2, r3]
	mov	r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L13
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	top
	.word	stack
	.word	.LC2
	.size	checkForReduce, .-checkForReduce
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Enter the input:\000"
	.align	2
.LC4:
	.ascii	"%s\000"
	.align	2
.LC5:
	.ascii	"Stack\011\011Input\011\011Action\000"
	.align	2
.LC6:
	.ascii	"SHIFT\000"
	.align	2
.LC7:
	.ascii	"ACCEPTED\000"
	.align	2
.LC8:
	.ascii	"REJECTED\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L23
	bl	puts
	ldr	r1, .L23+4
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	nop
.L17:
	ldr	r3, .L23+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L23+12
	str	r3, [r2]
	ldr	r3, .L23+12
	ldr	r3, [r3]
	ldr	r2, .L23+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L23+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L23+16
	str	r3, [r2]
	ldr	r3, .L23+16
	ldr	r3, [r3]
	ldr	r2, .L23+20
	mov	r1, #36
	strb	r1, [r2, r3]
	ldr	r0, .L23+24
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L18
.L19:
	ldr	r1, .L23+28
	ldr	r0, [fp, #-8]
	bl	display
	ldr	r3, .L23+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L23+16
	str	r3, [r2]
	ldr	r3, .L23+16
	ldr	r3, [r3]
	ldr	r1, .L23+4
	ldr	r2, [fp, #-8]
	add	r2, r1, r2
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, .L23+20
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r0, r3
	bl	checkForReduce
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L18:
	ldr	r3, .L23+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L19
	ldr	r3, .L23+16
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L20
	ldr	r3, .L23+16
	ldr	r3, [r3]
	ldr	r2, .L23+20
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #83
	bne	.L20
	ldr	r1, .L23+32
	ldr	r0, [fp, #-8]
	bl	display
	b	.L21
.L20:
	ldr	r1, .L23+36
	ldr	r0, [fp, #-8]
	bl	display
.L21:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC3
	.word	input
	.word	.LC4
	.word	len
	.word	top
	.word	stack
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
