	.file	"215767283.c"
	.intel_syntax noprefix
	.text
	.globl	choice
	.bss
	.align 8
	.type	choice, @object
	.size	choice, 8
choice:
	.zero	8
	.globl	small
	.align 8
	.type	small, @object
	.size	small, 11
small:
	.zero	11
	.globl	medium
	.align 16
	.type	medium, @object
	.size	medium, 26
medium:
	.zero	26
	.globl	large
	.align 32
	.type	large, @object
	.size	large, 41
large:
	.zero	41
	.section	.rodata
.LC0:
	.string	""
	.text
	.globl	print_reverse
	.type	print_reverse, @function
print_reverse:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	sub	QWORD PTR -16[rbp], 1
.L2:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jnb	.L3
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	print_reverse, .-print_reverse
	.section	.rodata
	.align 8
.LC1:
	.string	"'Small' = 10 Characters, 'Medium' = 25 Characters, 'Large' = 40 characters."
	.align 8
.LC2:
	.string	"Please input, 'small', 'medium' or 'large' depending on the size of your string."
.LC3:
	.string	"small"
	.align 8
.LC4:
	.string	"The selected option is: '%s' \n"
	.align 8
.LC5:
	.string	"Please input the string that you wish to reverse."
.LC6:
	.string	"medium"
.LC7:
	.string	"large"
	.align 8
.LC8:
	.string	"ERROR: Invalid option selected."
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	mov	esi, 8
	lea	rdi, choice[rip]
	call	fgets@PLT
	lea	rdi, choice[rip]
	call	strlen@PLT
	lea	rdx, -1[rax]
	lea	rax, choice[rip]
	mov	BYTE PTR [rdx+rax], 0
	lea	rsi, .LC3[rip]
	lea	rdi, choice[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	lea	rsi, choice[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	mov	esi, 11
	lea	rdi, small[rip]
	call	fgets@PLT
	lea	rdi, small[rip]
	call	print_reverse
	jmp	.L6
.L5:
	lea	rsi, .LC6[rip]
	lea	rdi, choice[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	lea	rsi, choice[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	mov	esi, 26
	lea	rdi, medium[rip]
	call	fgets@PLT
	lea	rdi, medium[rip]
	call	print_reverse
	jmp	.L6
.L7:
	lea	rsi, .LC7[rip]
	lea	rdi, choice[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	lea	rsi, choice[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	mov	esi, 41
	lea	rdi, large[rip]
	call	fgets@PLT
	lea	rdi, large[rip]
	call	print_reverse
	jmp	.L6
.L8:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L9
.L6:
	mov	eax, 0
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"215767283.c"
	.text
	.comm	choice,8,4
	.comm	small,11,4
	.comm	medium,26,4
	.comm	large,41,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\000"
	.text
	.align	2
	.global	print_reverse
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_reverse, %function
print_reverse:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	strlen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	b	.L2
.L3:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bcs	.L3
	ldr	r0, .L4
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	print_reverse, .-print_reverse
	.section	.rodata
	.align	2
.LC1:
	.ascii	"'Small' = 10 Characters, 'Medium' = 25 Characters, "
	.ascii	"'Large' = 40 characters.\000"
	.align	2
.LC2:
	.ascii	"Please input, 'small', 'medium' or 'large' dependin"
	.ascii	"g on the size of your string.\000"
	.align	2
.LC3:
	.ascii	"small\000"
	.align	2
.LC4:
	.ascii	"The selected option is: '%s' \012\000"
	.align	2
.LC5:
	.ascii	"Please input the string that you wish to reverse.\000"
	.align	2
.LC6:
	.ascii	"medium\000"
	.align	2
.LC7:
	.ascii	"large\000"
	.align	2
.LC8:
	.ascii	"ERROR: Invalid option selected.\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, .L12
	bl	puts
	ldr	r0, .L12+4
	bl	puts
	ldr	r3, .L12+8
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #8
	ldr	r0, .L12+12
	bl	fgets
	ldr	r0, .L12+12
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, .L12+12
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r1, .L12+16
	ldr	r0, .L12+12
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r1, .L12+12
	ldr	r0, .L12+20
	bl	printf
	ldr	r0, .L12+24
	bl	puts
	ldr	r3, .L12+8
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #11
	ldr	r0, .L12+28
	bl	fgets
	ldr	r0, .L12+28
	bl	print_reverse
	b	.L8
.L7:
	ldr	r1, .L12+32
	ldr	r0, .L12+12
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r1, .L12+12
	ldr	r0, .L12+20
	bl	printf
	ldr	r0, .L12+24
	bl	puts
	ldr	r3, .L12+8
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #26
	ldr	r0, .L12+36
	bl	fgets
	ldr	r0, .L12+36
	bl	print_reverse
	b	.L8
.L9:
	ldr	r1, .L12+40
	ldr	r0, .L12+12
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r1, .L12+12
	ldr	r0, .L12+20
	bl	printf
	ldr	r0, .L12+24
	bl	puts
	ldr	r3, .L12+8
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #41
	ldr	r0, .L12+44
	bl	fgets
	ldr	r0, .L12+44
	bl	print_reverse
	b	.L8
.L10:
	ldr	r0, .L12+48
	bl	puts
	mov	r3, #1
	b	.L11
.L8:
	mov	r3, #0
.L11:
	mov	r0, r3
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC2
	.word	stdin
	.word	choice
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	small
	.word	.LC6
	.word	medium
	.word	.LC7
	.word	large
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
