	.file	"608087.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"Length %d\n"
.LC2:
	.string	"Enter second string: "
.LC3:
	.string	"DIFFERENT"
.LC4:
	.string	"SAME"
.LC5:
	.string	"New string %s\n"
.LC6:
	.string	"Reverse string %s\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	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 328
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -328[rbp], 0
	lea	rax, -288[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	nop
.L2:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L2
	mov	DWORD PTR -324[rbp], 0
	jmp	.L3
.L4:
	add	DWORD PTR -328[rbp], 1
	add	DWORD PTR -324[rbp], 1
.L3:
	mov	eax, DWORD PTR -324[rbp]
	cdqe
	movzx	eax, BYTE PTR -288[rbp+rax]
	test	al, al
	jne	.L4
	mov	eax, DWORD PTR -328[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	nop
.L5:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L5
	mov	DWORD PTR -324[rbp], 0
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -324[rbp]
	cdqe
	movzx	edx, BYTE PTR -288[rbp+rax]
	mov	eax, DWORD PTR -324[rbp]
	cdqe
	movzx	eax, BYTE PTR -224[rbp+rax]
	cmp	dl, al
	jne	.L7
	mov	DWORD PTR -332[rbp], 0
	add	DWORD PTR -324[rbp], 1
	jmp	.L6
.L7:
	mov	DWORD PTR -332[rbp], 1
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L8
.L6:
	mov	eax, DWORD PTR -324[rbp]
	cdqe
	movzx	eax, BYTE PTR -288[rbp+rax]
	test	al, al
	jne	.L9
.L8:
	cmp	DWORD PTR -332[rbp], 0
	jne	.L10
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L10:
	mov	DWORD PTR -324[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -324[rbp]
	cdqe
	movzx	edx, BYTE PTR -288[rbp+rax]
	mov	eax, DWORD PTR -324[rbp]
	cdqe
	mov	BYTE PTR -160[rbp+rax], dl
	add	DWORD PTR -324[rbp], 1
.L11:
	mov	eax, DWORD PTR -324[rbp]
	cdqe
	movzx	eax, BYTE PTR -288[rbp+rax]
	test	al, al
	jne	.L12
	mov	eax, DWORD PTR -324[rbp]
	mov	DWORD PTR -336[rbp], eax
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -336[rbp]
	sub	eax, DWORD PTR -324[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -336[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -336[rbp], edx
	movsx	rdx, ecx
	movzx	edx, BYTE PTR -224[rbp+rdx]
	cdqe
	mov	BYTE PTR -160[rbp+rax], dl
	mov	eax, DWORD PTR -336[rbp]
	cdqe
	mov	BYTE PTR -160[rbp+rax], 0
.L13:
	mov	eax, DWORD PTR -336[rbp]
	sub	eax, DWORD PTR -324[rbp]
	cdqe
	movzx	eax, BYTE PTR -224[rbp+rax]
	test	al, al
	jne	.L14
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, DWORD PTR -328[rbp]
	mov	rdx, rsp
	mov	rbx, rdx
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -320[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -352[rbp], rdx
	mov	QWORD PTR -344[rbp], 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L15:
	cmp	rsp, rdx
	je	.L16
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L15
.L16:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L17
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L17:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -312[rbp], rax
	mov	DWORD PTR -324[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -324[rbp]
	cdqe
	movzx	ecx, BYTE PTR -288[rbp+rax]
	mov	rdx, QWORD PTR -312[rbp]
	mov	eax, DWORD PTR -324[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	add	DWORD PTR -324[rbp], 1
.L18:
	mov	eax, DWORD PTR -324[rbp]
	cmp	eax, DWORD PTR -328[rbp]
	jl	.L19
	mov	rax, QWORD PTR -312[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -328[rbp]
	mov	rdx, rsp
	mov	r12, rdx
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -304[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -368[rbp], rdx
	mov	QWORD PTR -360[rbp], 0
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L20:
	cmp	rsp, rdx
	je	.L21
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L20
.L21:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L22
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L22:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -296[rbp], rax
	mov	DWORD PTR -324[rbp], 0
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -328[rbp]
	sub	eax, DWORD PTR -324[rbp]
	sub	eax, 1
	cdqe
	movzx	ecx, BYTE PTR -288[rbp+rax]
	mov	rdx, QWORD PTR -296[rbp]
	mov	eax, DWORD PTR -324[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	add	DWORD PTR -324[rbp], 1
.L23:
	mov	eax, DWORD PTR -324[rbp]
	cmp	eax, DWORD PTR -328[rbp]
	jl	.L24
	mov	rax, QWORD PTR -296[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsp, r12
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.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	"608087.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"Length %d\012\000"
	.align	2
.LC2:
	.ascii	"Enter second string: \000"
	.align	2
.LC3:
	.ascii	"DIFFERENT\000"
	.align	2
.LC4:
	.ascii	"SAME\000"
	.align	2
.LC5:
	.ascii	"New string %s\012\000"
	.align	2
.LC6:
	.ascii	"Reverse string %s\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #240
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-244]
	sub	r3, fp, #220
	mov	r1, r3
	ldr	r0, .L21+4
	bl	__isoc99_scanf
	nop
.L2:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L2
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L3
.L4:
	ldr	r3, [fp, #-244]
	add	r3, r3, #1
	str	r3, [fp, #-244]
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L3:
	sub	r2, fp, #220
	ldr	r3, [fp, #-240]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L4
	ldr	r1, [fp, #-244]
	ldr	r0, .L21+8
	bl	printf
	ldr	r0, .L21+12
	bl	printf
	sub	r3, fp, #168
	mov	r1, r3
	ldr	r0, .L21+4
	bl	__isoc99_scanf
	nop
.L5:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L5
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L6
.L9:
	sub	r2, fp, #220
	ldr	r3, [fp, #-240]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r1, fp, #168
	ldr	r3, [fp, #-240]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L7
	mov	r3, #0
	str	r3, [fp, #-248]
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
	b	.L6
.L7:
	mov	r3, #1
	str	r3, [fp, #-248]
	ldr	r0, .L21+16
	bl	puts
	b	.L8
.L6:
	sub	r2, fp, #220
	ldr	r3, [fp, #-240]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
.L8:
	ldr	r3, [fp, #-248]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L21+20
	bl	puts
.L10:
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L11
.L12:
	sub	r2, fp, #220
	ldr	r3, [fp, #-240]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #116
	ldr	r3, [fp, #-240]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L11:
	sub	r2, fp, #220
	ldr	r3, [fp, #-240]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-240]
	str	r3, [fp, #-252]
	b	.L13
.L14:
	ldr	r2, [fp, #-252]
	ldr	r3, [fp, #-240]
	sub	r2, r2, r3
	ldr	r3, [fp, #-252]
	add	r1, r3, #1
	str	r1, [fp, #-252]
	sub	r1, fp, #12
	add	r2, r1, r2
	ldrb	r2, [r2, #-156]	@ zero_extendqisi2
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-104]
	sub	r2, fp, #116
	ldr	r3, [fp, #-252]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L13:
	ldr	r2, [fp, #-252]
	ldr	r3, [fp, #-240]
	sub	r3, r2, r3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-156]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
	sub	r3, fp, #116
	mov	r0, r3
	bl	puts
	ldr	ip, [fp, #-244]
	mov	r3, sp
	mov	r4, r3
	sub	r3, ip, #1
	str	r3, [fp, #-236]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-232]
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L15
.L16:
	sub	r2, fp, #220
	ldr	r3, [fp, #-240]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-232]
	ldr	r3, [fp, #-240]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L15:
	ldr	r2, [fp, #-240]
	ldr	r3, [fp, #-244]
	cmp	r2, r3
	blt	.L16
	ldr	r1, [fp, #-232]
	ldr	r0, .L21+24
	bl	printf
	ldr	ip, [fp, #-244]
	mov	r3, sp
	mov	r5, r3
	sub	r3, ip, #1
	str	r3, [fp, #-228]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-224]
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L17
.L18:
	ldr	r2, [fp, #-244]
	ldr	r3, [fp, #-240]
	sub	r3, r2, r3
	sub	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r1, [r3, #-208]	@ zero_extendqisi2
	ldr	r2, [fp, #-224]
	ldr	r3, [fp, #-240]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L17:
	ldr	r2, [fp, #-240]
	ldr	r3, [fp, #-244]
	cmp	r2, r3
	blt	.L18
	ldr	r1, [fp, #-224]
	ldr	r0, .L21+28
	bl	printf
	mov	r3, #0
	mov	sp, r5
	mov	sp, r4
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
