	.file	"23793.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter a sentence: "
.LC1:
	.string	"%c\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
	sub	rsp, 1280
	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, -608[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rax, -608[rbp]
	mov	QWORD PTR -1264[rbp], rax
	mov	DWORD PTR -1276[rbp], 0
	mov	DWORD PTR -1272[rbp], 0
	jmp	.L2
.L6:
	mov	rax, QWORD PTR -1264[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L3
	mov	rax, QWORD PTR -1264[rbp]
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -1272[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -1276[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rbp
	add	rax, rsi
	sub	rax, 1248
	mov	BYTE PTR [rax], cl
	add	DWORD PTR -1272[rbp], 1
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -1272[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -1276[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 1248
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -1276[rbp], 1
	mov	DWORD PTR -1272[rbp], 0
.L4:
	add	QWORD PTR -1264[rbp], 1
.L2:
	mov	rax, QWORD PTR -1264[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L5
	cmp	DWORD PTR -1276[rbp], 29
	jle	.L6
.L5:
	mov	eax, DWORD PTR -1272[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -1276[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 1248
	mov	BYTE PTR [rax], 0
	lea	rcx, -1248[rbp]
	mov	eax, DWORD PTR -1276[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	mov	QWORD PTR -1256[rbp], rax
	jmp	.L7
.L9:
	mov	rax, QWORD PTR -1256[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	QWORD PTR -1256[rbp], 1
.L7:
	mov	rax, QWORD PTR -1256[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	je	.L8
	mov	rax, QWORD PTR -1256[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 63
	je	.L8
	mov	rax, QWORD PTR -1256[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 33
	jne	.L9
.L8:
	mov	edi, 32
	call	putchar@PLT
	mov	rax, QWORD PTR -1256[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1277[rbp], al
	mov	eax, DWORD PTR -1276[rbp]
	sub	eax, 1
	mov	DWORD PTR -1268[rbp], eax
	jmp	.L10
.L14:
	lea	rcx, -1248[rbp]
	mov	eax, DWORD PTR -1268[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	mov	QWORD PTR -1256[rbp], rax
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -1256[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	QWORD PTR -1256[rbp], 1
.L11:
	mov	rax, QWORD PTR -1256[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L12
	cmp	DWORD PTR -1268[rbp], 0
	je	.L13
	mov	edi, 32
	call	putchar@PLT
.L13:
	sub	DWORD PTR -1268[rbp], 1
.L10:
	cmp	DWORD PTR -1268[rbp], 0
	jns	.L14
	movsx	eax, BYTE PTR -1277[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.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	"23793.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter a sentence: \000"
	.align	2
.LC1:
	.ascii	"%c\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1264
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L17+4
	bl	printf
	sub	r3, fp, #608
	mov	r0, r3
	bl	gets
	sub	r3, fp, #608
	str	r3, [fp, #-1260]
	mov	r3, #0
	str	r3, [fp, #-1256]
	mov	r3, #0
	str	r3, [fp, #-1252]
	b	.L2
.L6:
	ldr	r3, [fp, #-1260]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L3
	ldr	r3, [fp, #-1260]
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-1256]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	sub	r3, fp, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-1252]
	add	r3, r2, r3
	sub	r3, r3, #1232
	sub	r3, r3, #4
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-1252]
	add	r3, r3, #1
	str	r3, [fp, #-1252]
	b	.L4
.L3:
	ldr	r2, [fp, #-1256]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	sub	r3, fp, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-1252]
	add	r3, r2, r3
	sub	r3, r3, #1232
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-1256]
	add	r3, r3, #1
	str	r3, [fp, #-1256]
	mov	r3, #0
	str	r3, [fp, #-1252]
.L4:
	ldr	r3, [fp, #-1260]
	add	r3, r3, #1
	str	r3, [fp, #-1260]
.L2:
	ldr	r3, [fp, #-1260]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-1256]
	cmp	r3, #29
	ble	.L6
.L5:
	ldr	r2, [fp, #-1256]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	sub	r3, fp, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-1252]
	add	r3, r2, r3
	sub	r3, r3, #1232
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	sub	r1, fp, #1232
	sub	r1, r1, #4
	sub	r1, r1, #4
	ldr	r2, [fp, #-1256]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	add	r3, r1, r2
	str	r3, [fp, #-1248]
	b	.L7
.L9:
	ldr	r3, [fp, #-1248]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-1248]
	add	r3, r3, #1
	str	r3, [fp, #-1248]
.L7:
	ldr	r3, [fp, #-1248]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L8
	ldr	r3, [fp, #-1248]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #63
	beq	.L8
	ldr	r3, [fp, #-1248]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #33
	bne	.L9
.L8:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-1248]
	ldrb	r3, [r3]
	strb	r3, [fp, #-1261]
	ldr	r3, [fp, #-1256]
	sub	r3, r3, #1
	str	r3, [fp, #-1244]
	b	.L10
.L14:
	sub	r1, fp, #1232
	sub	r1, r1, #4
	sub	r1, r1, #4
	ldr	r2, [fp, #-1244]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	add	r3, r1, r2
	str	r3, [fp, #-1248]
	b	.L11
.L12:
	ldr	r3, [fp, #-1248]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-1248]
	add	r3, r3, #1
	str	r3, [fp, #-1248]
.L11:
	ldr	r3, [fp, #-1248]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-1244]
	cmp	r3, #0
	beq	.L13
	mov	r0, #32
	bl	putchar
.L13:
	ldr	r3, [fp, #-1244]
	sub	r3, r3, #1
	str	r3, [fp, #-1244]
.L10:
	ldr	r3, [fp, #-1244]
	cmp	r3, #0
	bge	.L14
	ldrb	r3, [fp, #-1261]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L17+8
	bl	printf
	mov	r3, #0
	ldr	r2, .L17
	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}
.L18:
	.align	2
.L17:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
