	.file	"59294.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter a sentence, up to 255 characters:"
.LC1:
	.string	"\t%d\n"
.LC2:
	.string	"You said the magic word!"
	.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	rbx
	sub	rsp, 312
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -294[rbp], 1768382829
	mov	WORD PTR -290[rbp], 99
	mov	BYTE PTR -288[rbp], 0
	mov	BYTE PTR -33[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -288[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	BYTE PTR -288[rbp+rax], 0
	mov	DWORD PTR -312[rbp], 0
	mov	DWORD PTR -308[rbp], 0
	mov	DWORD PTR -304[rbp], 0
	mov	DWORD PTR -300[rbp], 0
	jmp	.L2
.L7:
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	movzx	eax, BYTE PTR -288[rbp+rax]
	mov	BYTE PTR -313[rbp], al
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movsx	rax, BYTE PTR -313[rbp]
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	je	.L3
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movsx	rax, BYTE PTR -313[rbp]
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 4
	test	eax, eax
	jne	.L3
	add	DWORD PTR -304[rbp], 1
	mov	eax, DWORD PTR -308[rbp]
	cdqe
	movzx	eax, BYTE PTR -294[rbp+rax]
	cmp	BYTE PTR -313[rbp], al
	jne	.L4
	cmp	DWORD PTR -312[rbp], 0
	jne	.L4
	add	DWORD PTR -308[rbp], 1
	mov	eax, DWORD PTR -308[rbp]
	movsx	rbx, eax
	lea	rax, -294[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	sete	al
	movzx	eax, al
	mov	DWORD PTR -312[rbp], eax
	jmp	.L5
.L4:
	cmp	DWORD PTR -308[rbp], 0
	je	.L5
	mov	eax, DWORD PTR -308[rbp]
	movsx	rbx, eax
	lea	rax, -294[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jnb	.L5
	mov	DWORD PTR -308[rbp], 0
.L5:
	movsx	eax, BYTE PTR -313[rbp]
	mov	edi, eax
	call	putchar@PLT
	jmp	.L6
.L3:
	cmp	DWORD PTR -304[rbp], 0
	je	.L6
	mov	eax, DWORD PTR -304[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -304[rbp], 0
.L6:
	add	DWORD PTR -300[rbp], 1
.L2:
	mov	eax, DWORD PTR -300[rbp]
	movsx	rbx, eax
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L7
	cmp	DWORD PTR -312[rbp], 0
	je	.L8
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L8:
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	mov	rbx, QWORD PTR -8[rbp]
	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	"59294.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Enter a sentence, up to 255 characters:\000"
	.align	2
.LC2:
	.ascii	"\011%d\012\000"
	.align	2
.LC3:
	.ascii	"You said the magic word!\000"
	.align	2
.LC0:
	.ascii	"magic\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 = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L11+4
	sub	r3, fp, #272
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-266]
	mov	r3, #0
	strb	r3, [fp, #-9]
	ldr	r0, .L11+8
	bl	puts
	ldr	r3, .L11+12
	ldr	r2, [r3]
	sub	r3, fp, #264
	mov	r1, #255
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-260]
	mov	r3, #0
	str	r3, [fp, #-288]
	mov	r3, #0
	str	r3, [fp, #-284]
	mov	r3, #0
	str	r3, [fp, #-280]
	mov	r3, #0
	str	r3, [fp, #-276]
	b	.L2
.L7:
	sub	r2, fp, #264
	ldr	r3, [fp, #-276]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-289]
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-289]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	beq	.L3
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-289]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #4
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
	sub	r2, fp, #272
	ldr	r3, [fp, #-284]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-289]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L4
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	str	r3, [fp, #-284]
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-284]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-288]
	b	.L5
.L4:
	ldr	r3, [fp, #-284]
	cmp	r3, #0
	beq	.L5
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-284]
	cmp	r2, r3
	bls	.L5
	mov	r3, #0
	str	r3, [fp, #-284]
.L5:
	ldrb	r3, [fp, #-289]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	b	.L6
.L3:
	ldr	r3, [fp, #-280]
	cmp	r3, #0
	beq	.L6
	ldr	r1, [fp, #-280]
	ldr	r0, .L11+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-280]
.L6:
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
.L2:
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-276]
	cmp	r2, r3
	bhi	.L7
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L11+20
	bl	puts
.L8:
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	stdin
	.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
