	.file	"838183.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Ingresa una frase:"
.LC1:
	.string	"\nPalabras linea por linea:"
.LC2:
	.string	"\t[%d] %s\n"
	.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
	push	rbx
	sub	rsp, 888
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -888[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L2
.L3:
	movsx	eax, BYTE PTR -889[rbp]
	mov	edi, eax
	call	is_letter
	test	eax, eax
	je	.L2
	mov	ebx, DWORD PTR -888[rbp]
	lea	eax, 1[rbx]
	mov	DWORD PTR -888[rbp], eax
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	alloc_word
	movsx	rdx, ebx
	mov	QWORD PTR -880[rbp+rdx*8], rax
.L2:
	lea	rax, -80[rbp]
	mov	esi, 50
	mov	rdi, rax
	call	getword
	mov	BYTE PTR -889[rbp], al
	cmp	BYTE PTR -889[rbp], 10
	jne	.L3
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	DWORD PTR -884[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -884[rbp]
	cdqe
	mov	rax, QWORD PTR -880[rbp+rax*8]
	mov	edx, DWORD PTR -884[rbp]
	lea	ecx, 1[rdx]
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -884[rbp], 1
.L4:
	mov	eax, DWORD PTR -884[rbp]
	cmp	eax, DWORD PTR -888[rbp]
	jl	.L5
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	getword
	.type	getword, @function
getword:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	nop
.L9:
	call	getchar@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 32
	je	.L9
	cmp	BYTE PTR -1[rbp], 9
	je	.L9
	movsx	eax, BYTE PTR -1[rbp]
	mov	edi, eax
	call	is_letter
	test	eax, eax
	jne	.L10
	movzx	eax, BYTE PTR -1[rbp]
	jmp	.L11
.L10:
	mov	rdx, QWORD PTR stdin[rip]
	movsx	eax, BYTE PTR -1[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
	jmp	.L12
.L14:
	movsx	eax, BYTE PTR -1[rbp]
	mov	edi, eax
	call	is_letter
	test	eax, eax
	je	.L12
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	edx, BYTE PTR -1[rbp]
	mov	BYTE PTR [rax], dl
.L12:
	call	getchar@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], -1
	je	.L13
	movsx	eax, BYTE PTR -1[rbp]
	mov	edi, eax
	call	is_letter
	test	eax, eax
	je	.L13
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -28[rbp], edx
	cmp	eax, 1
	jne	.L14
.L13:
	mov	rdx, QWORD PTR stdin[rip]
	movsx	eax, BYTE PTR -1[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR -1[rax]
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getword, .-getword
	.globl	alloc_word
	.type	alloc_word, @function
alloc_word:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	alloc_word, .-alloc_word
	.globl	is_letter
	.type	is_letter, @function
is_letter:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 96
	jle	.L18
	cmp	BYTE PTR -4[rbp], 122
	jle	.L19
.L18:
	cmp	BYTE PTR -4[rbp], 64
	jle	.L20
	cmp	BYTE PTR -4[rbp], 90
	jg	.L20
.L19:
	mov	eax, 1
	jmp	.L22
.L20:
	mov	eax, 0
.L22:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	is_letter, .-is_letter
	.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	"838183.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Ingresa una frase:\000"
	.align	2
.LC1:
	.ascii	"\012Palabras linea por linea:\000"
	.align	2
.LC2:
	.ascii	"\011[%d] %s\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 472
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #476
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-476]
	ldr	r0, .L8+4
	bl	puts
	b	.L2
.L3:
	ldrb	r3, [fp, #-477]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_letter
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r4, [fp, #-476]
	add	r3, r4, #1
	str	r3, [fp, #-476]
	sub	r3, fp, #68
	mov	r0, r3
	bl	alloc_word
	mov	r2, r0
	lsl	r3, r4, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-456]
.L2:
	sub	r3, fp, #68
	mov	r1, #50
	mov	r0, r3
	bl	getword
	mov	r3, r0
	strb	r3, [fp, #-477]
	ldrb	r3, [fp, #-477]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L3
	ldr	r0, .L8+8
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-472]
	b	.L4
.L5:
	ldr	r3, [fp, #-472]
	add	r1, r3, #1
	ldr	r3, [fp, #-472]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-456]
	mov	r2, r3
	ldr	r0, .L8+12
	bl	printf
	ldr	r3, [fp, #-472]
	add	r3, r3, #1
	str	r3, [fp, #-472]
.L4:
	ldr	r2, [fp, #-472]
	ldr	r3, [fp, #-476]
	cmp	r2, r3
	blt	.L5
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	getword
	.syntax unified
	.arm
	.fpu softvfp
	.type	getword, %function
getword:
	@ 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]
	nop
.L11:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L11
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L11
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_letter
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	b	.L13
.L12:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L17
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	ungetc
	b	.L14
.L16:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_letter
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r2, [fp, #-5]
	strb	r2, [r3]
.L14:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_letter
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	str	r2, [fp, #-20]
	cmp	r3, #1
	bne	.L16
.L15:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L17
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	ungetc
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #-1]	@ zero_extendqisi2
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	stdin
	.size	getword, .-getword
	.align	2
	.global	alloc_word
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_word, %function
alloc_word:
	@ 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
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	strcpy
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	alloc_word, .-alloc_word
	.align	2
	.global	is_letter
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_letter, %function
is_letter:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L22
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L23
.L22:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L24
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L24
.L23:
	mov	r3, #1
	b	.L26
.L24:
	mov	r3, #0
.L26:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_letter, .-is_letter
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
