	.file	"754245.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter a guess: "
.LC1:
	.string	"%d"
.LC2:
	.string	"Too high!"
.LC3:
	.string	"Too low!"
.LC4:
	.string	"Correct!"
.LC5:
	.string	"********************"
.LC6:
	.string	"Answer: %d\n"
.LC7:
	.string	"No. of guesses: %d\n"
.LC8:
	.string	"Play again? (Y/N): "
.LC9:
	.string	"%c"
.LC10:
	.string	"Invalid answer! (%c)\n"
.LC11:
	.string	"Thank you for playing!"
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L9:
	mov	DWORD PTR -16[rbp], 0
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1[rdx]
	mov	DWORD PTR -12[rbp], eax
.L5:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	mov	eax, DWORD PTR -20[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -20[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jle	.L4
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L3
.L4:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L3:
	add	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jne	.L5
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L8:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -21[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	movzx	eax, BYTE PTR -21[rbp]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	BYTE PTR -21[rbp], al
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 89
	je	.L6
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 78
	je	.L6
	movzx	eax, BYTE PTR -21[rbp]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 89
	je	.L7
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 78
	jne	.L8
.L7:
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 89
	je	.L9
	lea	rdi, .LC11[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
.LFE6:
	.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	"754245.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter a guess: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Too high!\000"
	.align	2
.LC3:
	.ascii	"Too low!\000"
	.align	2
.LC4:
	.ascii	"Correct!\000"
	.align	2
.LC5:
	.ascii	"********************\000"
	.align	2
.LC6:
	.ascii	"Answer: %d\012\000"
	.align	2
.LC7:
	.ascii	"No. of guesses: %d\012\000"
	.align	2
.LC8:
	.ascii	"Play again? (Y/N): \000"
	.align	2
.LC9:
	.ascii	"%c\000"
	.align	2
.LC10:
	.ascii	"Invalid answer! (%c)\012\000"
	.align	2
.LC11:
	.ascii	"Thank you for playing!\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L9:
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r1, r0
	ldr	r3, .L12+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-12]
.L5:
	ldr	r0, .L12+8
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L12+12
	bl	__isoc99_scanf
	bl	getchar
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L2
	ldr	r0, .L12+16
	bl	puts
	b	.L3
.L2:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L4
	ldr	r0, .L12+20
	bl	puts
	b	.L3
.L4:
	ldr	r0, .L12+24
	bl	puts
.L3:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L5
	ldr	r0, .L12+28
	bl	puts
	ldr	r1, [fp, #-12]
	ldr	r0, .L12+32
	bl	printf
	ldr	r1, [fp, #-16]
	ldr	r0, .L12+36
	bl	printf
	ldr	r0, .L12+28
	bl	puts
.L8:
	ldr	r0, .L12+40
	bl	puts
	sub	r3, fp, #21
	mov	r1, r3
	ldr	r0, .L12+44
	bl	__isoc99_scanf
	bl	getchar
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #89
	beq	.L6
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #78
	beq	.L6
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L12+48
	bl	printf
.L6:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #89
	beq	.L7
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #78
	bne	.L8
.L7:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #89
	beq	.L9
	ldr	r0, .L12+52
	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	.LC12
	.word	1374389535
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
