	.file	"232955652.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Press 1 For Concatenate two Strings \nPress 2 For Comparison Check\nPress 3 For a string Reverse "
.LC1:
	.string	"%d"
.LC2:
	.string	"\nWrong Choice"
	.align 8
.LC3:
	.string	"\n Do you wish to continue?Press 1 to continue, 0 to exit "
	.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
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, 16[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -20[rbp], 1
	jmp	.L2
.L8:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 3
	je	.L3
	cmp	eax, 3
	jg	.L4
	cmp	eax, 1
	je	.L5
	cmp	eax, 2
	je	.L6
	jmp	.L4
.L5:
	mov	eax, 0
	call	concatenate
	jmp	.L7
.L6:
	mov	eax, 0
	call	compare@PLT
	jmp	.L7
.L3:
	mov	eax, 0
	call	rev
	jmp	.L7
.L4:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	nop
.L7:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L2:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jg	.L8
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC4:
	.string	"\nEnter the first string: "
	.align 8
.LC5:
	.string	"\nEnter the second string to be concatenated: "
	.align 8
.LC6:
	.string	"\n\n\nThe string after concatenation is: %s "
	.text
	.globl	concatenate
	.type	concatenate, @function
concatenate:
.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, 240
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rax, -224[rbp]
	mov	QWORD PTR -240[rbp], rax
	lea	rax, -112[rbp]
	mov	QWORD PTR -232[rbp], rax
	jmp	.L12
.L13:
	add	QWORD PTR -240[rbp], 1
.L12:
	mov	rax, QWORD PTR -240[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L13
	jmp	.L14
.L15:
	mov	rax, QWORD PTR -232[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -240[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -232[rbp], 1
	add	QWORD PTR -240[rbp], 1
.L14:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L15
	mov	rax, QWORD PTR -240[rbp]
	mov	BYTE PTR [rax], 0
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	concatenate, .-concatenate
	.section	.rodata
.LC7:
	.string	"Enter The String to reverse:\n"
.LC8:
	.string	"%s"
.LC9:
	.string	"\n\nReverse String Is \n\n%s"
	.text
	.globl	rev
	.type	rev, @function
rev:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -128[rbp]
	mov	QWORD PTR -144[rbp], rax
	lea	rax, -64[rbp]
	mov	QWORD PTR -136[rbp], rax
	mov	DWORD PTR -148[rbp], -1
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L19
.L20:
	add	QWORD PTR -144[rbp], 1
	add	DWORD PTR -148[rbp], 1
.L19:
	mov	rax, QWORD PTR -144[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L20
	jmp	.L21
.L22:
	sub	QWORD PTR -144[rbp], 1
	mov	rax, QWORD PTR -144[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -136[rbp], 1
	sub	DWORD PTR -148[rbp], 1
.L21:
	cmp	DWORD PTR -148[rbp], 0
	jns	.L22
	mov	rax, QWORD PTR -136[rbp]
	mov	BYTE PTR [rax], 0
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	rev, .-rev
	.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	"232955652.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Press 1 For Concatenate two Strings \012Press 2 For"
	.ascii	" Comparison Check\012Press 3 For a string Reverse \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"\012Wrong Choice\000"
	.align	2
.LC3:
	.ascii	"\012 Do you wish to continue?Press 1 to continue, 0"
	.ascii	" to exit \000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #4
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L2
.L8:
	ldr	r0, .L11+4
	bl	puts
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L11+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	beq	.L3
	cmp	r3, #3
	bgt	.L4
	cmp	r3, #1
	beq	.L5
	cmp	r3, #2
	beq	.L6
	b	.L4
.L5:
	bl	concatenate
	b	.L7
.L6:
	bl	compare
	b	.L7
.L3:
	bl	rev
	b	.L7
.L4:
	ldr	r0, .L11+12
	bl	puts
	nop
.L7:
	ldr	r0, .L11+16
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L11+8
	bl	__isoc99_scanf
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L8
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\012Enter the first string: \000"
	.align	2
.LC6:
	.ascii	"\012Enter the second string to be concatenated: \000"
	.align	2
.LC7:
	.ascii	"\012\012\012The string after concatenation is: %s \000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	concatenate
	.syntax unified
	.arm
	.fpu softvfp
	.type	concatenate, %function
concatenate:
	@ args = 0, pretend = 0, frame = 216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #216
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L20+4
	bl	printf
	sub	r3, fp, #208
	mov	r0, r3
	bl	gets
	ldr	r0, .L20+8
	bl	printf
	sub	r3, fp, #108
	mov	r0, r3
	bl	gets
	sub	r3, fp, #208
	str	r3, [fp, #-216]
	sub	r3, fp, #108
	str	r3, [fp, #-212]
	b	.L14
.L15:
	ldr	r3, [fp, #-216]
	add	r3, r3, #1
	str	r3, [fp, #-216]
.L14:
	ldr	r3, [fp, #-216]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L15
	b	.L16
.L17:
	ldr	r3, [fp, #-212]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-216]
	strb	r2, [r3]
	ldr	r3, [fp, #-212]
	add	r3, r3, #1
	str	r3, [fp, #-212]
	ldr	r3, [fp, #-216]
	add	r3, r3, #1
	str	r3, [fp, #-216]
.L16:
	ldr	r3, [fp, #-212]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-216]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L20+12
	bl	printf
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC8
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	concatenate, .-concatenate
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Enter The String to reverse:\012\000"
	.align	2
.LC10:
	.ascii	"%s\000"
	.align	2
.LC11:
	.ascii	"\012\012Reverse String Is \012\012%s\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rev
	.syntax unified
	.arm
	.fpu softvfp
	.type	rev, %function
rev:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #112
	str	r3, [fp, #-124]
	sub	r3, fp, #60
	str	r3, [fp, #-120]
	mvn	r3, #0
	str	r3, [fp, #-116]
	ldr	r0, .L29+4
	bl	puts
	sub	r3, fp, #112
	mov	r1, r3
	ldr	r0, .L29+8
	bl	__isoc99_scanf
	b	.L23
.L24:
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L23:
	ldr	r3, [fp, #-124]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L24
	b	.L25
.L26:
	ldr	r3, [fp, #-124]
	sub	r3, r3, #1
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-124]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-120]
	strb	r2, [r3]
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-116]
	sub	r3, r3, #1
	str	r3, [fp, #-116]
.L25:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bge	.L26
	ldr	r3, [fp, #-120]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L29+12
	bl	printf
	mov	r3, #0
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC12
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	rev, .-rev
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
