	.file	"508388.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"A mathematical boomerang puzzle as invented by the ancient\nmathematician Nicomachus.\n"
	.align 8
.LC1:
	.string	"Think of a number between 1 and 100"
	.align 8
.LC2:
	.string	"Your number divided by %d has a remainder of ? "
.LC3:
	.string	"%d"
.LC4:
	.string	"\n\nSo your number is...\n"
.LC5:
	.string	"\t%d!\n\n"
.LC6:
	.string	"Am I correct? "
.LC7:
	.string	"%s"
.LC8:
	.string	"\nWhat was your number? "
	.align 8
.LC9:
	.string	"%d divided by %d has a remainder of %d, not %d.\n"
	.align 8
.LC10:
	.string	"That's what I said, %d. You had me worried.\n"
.LC11:
	.string	"Yes, I knew it."
	.align 8
.LC12:
	.string	"\nThank you. Would you like to play again? "
.LC13:
	.string	"Good Bye, then."
	.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L9:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	esi, 3
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -68[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	esi, 5
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	esi, 7
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -68[rbp]
	imul	ecx, eax, 70
	mov	edx, DWORD PTR -64[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	add	eax, edx
	add	ecx, eax
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, edx
	sal	eax, 4
	sub	eax, edx
	add	eax, ecx
	mov	DWORD PTR -52[rbp], eax
	jmp	.L2
.L3:
	sub	DWORD PTR -52[rbp], 105
.L2:
	cmp	DWORD PTR -52[rbp], 105
	jg	.L3
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -48[rbp]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	cmp	eax, 121
	je	.L4
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -56[rbp]
	cmp	DWORD PTR -52[rbp], eax
	je	.L5
	mov	edx, DWORD PTR -56[rbp]
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	edx, DWORD PTR -68[rbp]
	cmp	eax, edx
	je	.L6
	mov	edi, DWORD PTR -68[rbp]
	mov	edx, DWORD PTR -56[rbp]
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	esi, DWORD PTR -56[rbp]
	mov	r8d, edi
	mov	ecx, eax
	mov	edx, 3
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	edx, DWORD PTR -56[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	edx, DWORD PTR -64[rbp]
	cmp	eax, edx
	je	.L7
	mov	edi, DWORD PTR -64[rbp]
	mov	edx, DWORD PTR -56[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	esi, DWORD PTR -56[rbp]
	mov	r8d, edi
	mov	ecx, eax
	mov	edx, 5
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -1840700269
	shr	rdx, 32
	add	edx, eax
	sar	edx, 2
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	ecx, edx
	sal	ecx, 3
	sub	ecx, edx
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -60[rbp]
	cmp	edx, eax
	je	.L8
	mov	edi, DWORD PTR -60[rbp]
	mov	edx, DWORD PTR -56[rbp]
	movsx	rax, edx
	imul	rax, rax, -1840700269
	shr	rax, 32
	add	eax, edx
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 3
	sub	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	esi, DWORD PTR -56[rbp]
	mov	r8d, edi
	mov	ecx, eax
	mov	edx, 7
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L5:
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L4:
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L8:
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -48[rbp]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	cmp	eax, 110
	jne	.L9
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"508388.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"A mathematical boomerang puzzle as invented by the "
	.ascii	"ancient\012mathematician Nicomachus.\012\000"
	.align	2
.LC1:
	.ascii	"Think of a number between 1 and 100\000"
	.align	2
.LC2:
	.ascii	"Your number divided by %d has a remainder of ? \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"\012\012So your number is...\012\000"
	.align	2
.LC5:
	.ascii	"\011%d!\012\012\000"
	.align	2
.LC6:
	.ascii	"Am I correct? \000"
	.align	2
.LC7:
	.ascii	"%s\000"
	.align	2
.LC8:
	.ascii	"\012What was your number? \000"
	.align	2
.LC9:
	.ascii	"%d divided by %d has a remainder of %d, not %d.\012"
	.ascii	"\000"
	.align	2
.LC10:
	.ascii	"That's what I said, %d. You had me worried.\012\000"
	.align	2
.LC11:
	.ascii	"Yes, I knew it.\000"
	.align	2
.LC12:
	.ascii	"\012Thank you. Would you like to play again? \000"
	.align	2
.LC13:
	.ascii	"Good Bye, then.\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L12+4
	bl	puts
.L9:
	ldr	r0, .L12+8
	bl	puts
	mov	r1, #3
	ldr	r0, .L12+12
	bl	printf
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, .L12+16
	bl	__isoc99_scanf
	mov	r1, #5
	ldr	r0, .L12+12
	bl	printf
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L12+16
	bl	__isoc99_scanf
	mov	r1, #7
	ldr	r0, .L12+12
	bl	printf
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L12+16
	bl	__isoc99_scanf
	ldr	r0, .L12+20
	bl	puts
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #1
	mov	r2, r3
	mov	r1, r2
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r3, r2, r3
	add	r1, r1, r3
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	add	r3, r1, r3
	str	r3, [fp, #-40]
	b	.L2
.L3:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #105
	str	r3, [fp, #-40]
.L2:
	ldr	r3, [fp, #-40]
	cmp	r3, #105
	bgt	.L3
	ldr	r1, [fp, #-40]
	ldr	r0, .L12+24
	bl	printf
	ldr	r0, .L12+28
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L12+32
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-36]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	cmp	r3, #121
	beq	.L4
	ldr	r0, .L12+36
	bl	printf
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L12+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	beq	.L5
	ldr	r1, [fp, #-44]
	ldr	r3, .L12+40
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	beq	.L6
	ldr	r0, [fp, #-44]
	ldr	r2, [fp, #-44]
	ldr	r3, .L12+40
	smull	ip, r1, r3, r2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	sub	r1, r2, r3
	ldr	r3, [fp, #-56]
	str	r3, [sp]
	mov	r3, r1
	mov	r2, #3
	mov	r1, r0
	ldr	r0, .L12+44
	bl	printf
.L6:
	ldr	r1, [fp, #-44]
	ldr	r3, .L12+48
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	beq	.L7
	ldr	r0, [fp, #-44]
	ldr	r2, [fp, #-44]
	ldr	r3, .L12+48
	smull	r1, r3, r2, r3
	asr	r1, r3, #1
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	sub	r1, r2, r3
	ldr	r3, [fp, #-52]
	str	r3, [sp]
	mov	r3, r1
	mov	r2, #5
	mov	r1, r0
	ldr	r0, .L12+44
	bl	printf
.L7:
	ldr	r2, [fp, #-44]
	ldr	r3, .L12+52
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	sub	r1, r2, r3
	ldr	r3, [fp, #-48]
	cmp	r1, r3
	beq	.L8
	ldr	r0, [fp, #-44]
	ldr	r2, [fp, #-44]
	ldr	r3, .L12+52
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	sub	r1, r2, r3
	ldr	r3, [fp, #-48]
	str	r3, [sp]
	mov	r3, r1
	mov	r2, #7
	mov	r1, r0
	ldr	r0, .L12+44
	bl	printf
	b	.L8
.L5:
	ldr	r1, [fp, #-40]
	ldr	r0, .L12+56
	bl	printf
	b	.L8
.L4:
	ldr	r0, .L12+60
	bl	puts
.L8:
	ldr	r0, .L12+64
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L12+32
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-36]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	cmp	r3, #110
	bne	.L9
	ldr	r0, .L12+68
	bl	printf
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC14
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	1431655766
	.word	.LC9
	.word	1717986919
	.word	-1840700269
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
