	.file	"753061.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Ingresa una frase de tres palabras: "
	.align 8
.LC1:
	.string	"\nLa frase sin la palabra de en medio es: "
.LC2:
	.string	"%s %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
	sub	rsp, 336
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -336[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getword
	lea	rax, -224[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getword
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getword
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -112[rbp]
	lea	rax, -336[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	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
.L5:
	call	getchar@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 32
	je	.L5
	cmp	BYTE PTR -1[rbp], 9
	je	.L5
	movsx	eax, BYTE PTR -1[rbp]
	mov	edi, eax
	call	is_letter
	test	eax, eax
	jne	.L6
	movzx	eax, BYTE PTR -1[rbp]
	jmp	.L7
.L6:
	mov	rdx, QWORD PTR stdin[rip]
	movsx	eax, BYTE PTR -1[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
	jmp	.L8
.L10:
	movsx	eax, BYTE PTR -1[rbp]
	mov	edi, eax
	call	is_letter
	test	eax, eax
	je	.L8
	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
.L8:
	call	getchar@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], -1
	je	.L9
	movsx	eax, BYTE PTR -1[rbp]
	mov	edi, eax
	call	is_letter
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -28[rbp], edx
	cmp	eax, 1
	jne	.L10
.L9:
	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]
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getword, .-getword
	.globl	is_letter
	.type	is_letter, @function
is_letter:
.LFB8:
	.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	.L12
	cmp	BYTE PTR -4[rbp], 122
	jle	.L13
.L12:
	cmp	BYTE PTR -4[rbp], 64
	jle	.L14
	cmp	BYTE PTR -4[rbp], 90
	jg	.L14
.L13:
	mov	eax, 1
	jmp	.L16
.L14:
	mov	eax, 0
.L16:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"753061.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Ingresa una frase de tres palabras: \000"
	.align	2
.LC1:
	.ascii	"\012La frase sin la palabra de en medio es: \000"
	.align	2
.LC2:
	.ascii	"%s %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 = 304
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #304
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L4+4
	bl	printf
	sub	r3, fp, #308
	mov	r1, #100
	mov	r0, r3
	bl	getword
	sub	r3, fp, #208
	mov	r1, #100
	mov	r0, r3
	bl	getword
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	getword
	ldr	r0, .L4+8
	bl	printf
	sub	r2, fp, #108
	sub	r3, fp, #308
	mov	r1, r3
	ldr	r0, .L4+12
	bl	printf
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.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
.L7:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L7
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L7
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_letter
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	b	.L9
.L8:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L13
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	ungetc
	b	.L10
.L12:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	bl	is_letter
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r2, [fp, #-5]
	strb	r2, [r3]
.L10:
	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	.L11
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	str	r2, [fp, #-20]
	cmp	r3, #1
	bne	.L12
.L11:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L13
	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
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	stdin
	.size	getword, .-getword
	.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	.L16
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L17
.L16:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L18
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L18
.L17:
	mov	r3, #1
	b	.L20
.L18:
	mov	r3, #0
.L20:
	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
