	.file	"43110.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\n1.Enter character\n2.Reverse\n3.Exit\nEnter your choice: "
.LC1:
	.string	"%d"
.LC2:
	.string	"\nStack overflows"
.LC3:
	.string	"Enter the character: "
.LC4:
	.string	"%s"
.LC5:
	.string	"\nStack underflows"
.LC6:
	.string	"String:"
.LC7:
	.string	"%c "
.LC8:
	.string	"\nReversed string:"
.LC9:
	.string	"\nWrong choice"
	.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], -1
	mov	DWORD PTR -36[rbp], 20
.L15:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 3
	je	.L2
	cmp	eax, 3
	jg	.L3
	cmp	eax, 1
	je	.L4
	cmp	eax, 2
	je	.L5
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	cmp	DWORD PTR -44[rbp], eax
	jne	.L6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L8
.L6:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -50[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -44[rbp], 1
	movzx	edx, BYTE PTR -50[rbp]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	BYTE PTR -32[rbp+rax], dl
	jmp	.L8
.L5:
	cmp	DWORD PTR -44[rbp], -1
	jne	.L9
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L8
.L9:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	DWORD PTR -40[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -40[rbp], 1
.L11:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L12
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	mov	BYTE PTR -49[rbp], al
	movsx	eax, BYTE PTR -49[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -44[rbp], 1
.L13:
	cmp	DWORD PTR -44[rbp], 0
	jns	.L14
	jmp	.L8
.L2:
	mov	edi, 0
	call	exit@PLT
.L3:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	nop
.L8:
	jmp	.L15
	.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	"43110.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\0121.Enter character\0122.Reverse\0123.Exit\012Ent"
	.ascii	"er your choice: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"\012Stack overflows\000"
	.align	2
.LC3:
	.ascii	"Enter the character: \000"
	.align	2
.LC4:
	.ascii	"%s\000"
	.align	2
.LC5:
	.ascii	"\012Stack underflows\000"
	.align	2
.LC6:
	.ascii	"String:\000"
	.align	2
.LC7:
	.ascii	"%c \000"
	.align	2
.LC8:
	.ascii	"\012Reversed string:\000"
	.align	2
.LC9:
	.ascii	"\012Wrong choice\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #20
	str	r3, [fp, #-32]
.L15:
	ldr	r0, .L17+4
	bl	printf
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L17+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-44]
	cmp	r3, #3
	beq	.L2
	cmp	r3, #3
	bgt	.L3
	cmp	r3, #1
	beq	.L4
	cmp	r3, #2
	beq	.L5
	b	.L3
.L4:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bne	.L6
	ldr	r0, .L17+12
	bl	puts
	b	.L8
.L6:
	ldr	r0, .L17+16
	bl	printf
	sub	r3, fp, #46
	mov	r1, r3
	ldr	r0, .L17+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldrb	r1, [fp, #-46]	@ zero_extendqisi2
	sub	r2, fp, #28
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	b	.L8
.L5:
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L17+24
	bl	puts
	b	.L8
.L9:
	ldr	r0, .L17+28
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L11
.L12:
	sub	r2, fp, #28
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L17+32
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L11:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L12
	ldr	r0, .L17+36
	bl	puts
	b	.L13
.L14:
	sub	r2, fp, #28
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-45]
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L17+32
	bl	printf
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-40]
.L13:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L14
	b	.L8
.L2:
	mov	r0, #0
	bl	exit
.L3:
	ldr	r0, .L17+40
	bl	puts
	nop
.L8:
	b	.L15
.L18:
	.align	2
.L17:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
