	.file	"868728.c"
	.intel_syntax noprefix
	.text
	.globl	read_line
	.type	read_line, @function
read_line:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jge	.L2
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
.L2:
	call	getchar@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 10
	jne	.L3
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_line, .-read_line
	.globl	compare_strings
	.type	compare_strings, @function
compare_strings:
.LFB7:
	.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
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compare_strings, .-compare_strings
	.section	.rodata
.LC0:
	.string	" -- No space left --"
.LC1:
	.string	"Enter a word : "
.LC2:
	.string	"\nIn sorted order :"
.LC3:
	.string	" %s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 464
	mov	DWORD PTR -452[rbp], edi
	mov	QWORD PTR -464[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -436[rbp], 0
.L12:
	cmp	DWORD PTR -436[rbp], 50
	jne	.L8
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L9
.L8:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	esi, 20
	mov	rdi, rax
	call	read_line
	lea	rax, -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L17
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -436[rbp]
	cdqe
	mov	QWORD PTR -432[rbp+rax*8], rdx
	mov	eax, DWORD PTR -436[rbp]
	cdqe
	mov	rax, QWORD PTR -432[rbp+rax*8]
	test	rax, rax
	jne	.L11
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -436[rbp]
	cdqe
	mov	rax, QWORD PTR -432[rbp+rax*8]
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -436[rbp], 1
	jmp	.L12
.L17:
	nop
.L9:
	mov	eax, DWORD PTR -436[rbp]
	movsx	rsi, eax
	lea	rax, -432[rbp]
	lea	rcx, compare_strings[rip]
	mov	edx, 8
	mov	rdi, rax
	call	qsort@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -440[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	rax, QWORD PTR -432[rbp+rax*8]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -440[rbp], 1
.L13:
	mov	eax, DWORD PTR -440[rbp]
	cmp	eax, DWORD PTR -436[rbp]
	jl	.L14
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"868728.c"
	.text
	.align	2
	.global	read_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_line, %function
read_line:
	@ 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, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bge	.L2
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
.L2:
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L3
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	read_line, .-read_line
	.align	2
	.global	compare_strings
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare_strings, %function
compare_strings:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	compare_strings, .-compare_strings
	.section	.rodata
	.align	2
.LC0:
	.ascii	" -- No space left --\000"
	.align	2
.LC1:
	.ascii	"Enter a word : \000"
	.align	2
.LC2:
	.ascii	"\012In sorted order :\000"
	.align	2
.LC3:
	.ascii	" %s\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 = 248
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #248
	str	r0, [fp, #-248]
	str	r1, [fp, #-252]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-236]
.L12:
	ldr	r3, [fp, #-236]
	cmp	r3, #50
	bne	.L8
	ldr	r0, .L18+4
	bl	puts
	b	.L9
.L8:
	ldr	r0, .L18+8
	bl	printf
	sub	r3, fp, #32
	mov	r1, #20
	mov	r0, r3
	bl	read_line
	sub	r3, fp, #32
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L17
	sub	r3, fp, #32
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-236]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-228]
	ldr	r3, [fp, #-236]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-228]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L18+4
	bl	puts
	b	.L9
.L11:
	ldr	r3, [fp, #-236]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-228]
	sub	r2, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
	b	.L12
.L17:
	nop
.L9:
	ldr	r1, [fp, #-236]
	sub	r0, fp, #232
	ldr	r3, .L18+12
	mov	r2, #4
	bl	qsort
	ldr	r0, .L18+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L13
.L14:
	ldr	r3, [fp, #-240]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-228]
	mov	r1, r3
	ldr	r0, .L18+20
	bl	printf
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L13:
	ldr	r2, [fp, #-240]
	ldr	r3, [fp, #-236]
	cmp	r2, r3
	blt	.L14
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	compare_strings
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
