	.file	"243893931.c"
	.intel_syntax noprefix
	.text
	.globl	maxNum
	.data
	.align 4
	.type	maxNum, @object
	.size	maxNum, 4
maxNum:
	.long	10
	.globl	guessLimit
	.align 4
	.type	guessLimit, @object
	.size	guessLimit, 4
guessLimit:
	.long	5
	.globl	randomNumber
	.bss
	.align 4
	.type	randomNumber, @object
	.size	randomNumber, 4
randomNumber:
	.zero	4
	.globl	counter
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.zero	4
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	setArgs
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.string	"Max Random Number has to be a number!"
	.align 8
.LC1:
	.string	"Guess limit has to be a number!"
.LC2:
	.string	"hm:g:"
	.text
	.globl	setArgs
	.type	setArgs, @function
setArgs:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	jmp	.L4
.L14:
	cmp	DWORD PTR -4[rbp], 109
	je	.L5
	cmp	DWORD PTR -4[rbp], 109
	jg	.L6
	cmp	DWORD PTR -4[rbp], 104
	je	.L7
	cmp	DWORD PTR -4[rbp], 104
	jg	.L6
	cmp	DWORD PTR -4[rbp], 63
	je	.L8
	cmp	DWORD PTR -4[rbp], 103
	je	.L9
	jmp	.L6
.L5:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR maxNum[rip], eax
	jmp	.L4
.L10:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 0
	call	displayHelp
	jmp	.L4
.L9:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	test	rax, rax
	je	.L12
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR guessLimit[rip], eax
	jmp	.L4
.L12:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 0
	call	displayHelp
	jmp	.L4
.L7:
	mov	eax, 0
	call	displayHelp
	jmp	.L4
.L8:
	mov	eax, 0
	call	displayHelp
	jmp	.L4
.L6:
	mov	eax, 0
	call	setNumber
	mov	eax, 0
	call	guess
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, .LC2[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 1
	jne	.L14
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	setArgs, .-setArgs
	.section	.rodata
	.align 8
.LC3:
	.string	"Guess a number between 1 and %i \n"
	.text
	.globl	setNumber
	.type	setNumber, @function
setNumber:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 0
	mov	eax, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	rand@PLT
	mov	ecx, DWORD PTR maxNum[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	add	eax, 1
	mov	DWORD PTR randomNumber[rip], eax
	mov	eax, DWORD PTR maxNum[rip]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	setNumber, .-setNumber
	.section	.rodata
.LC4:
	.string	"random number is: %i \n"
	.text
	.globl	getNumber
	.type	getNumber, @function
getNumber:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR randomNumber[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	getNumber, .-getNumber
	.section	.rodata
	.align 8
.LC5:
	.string	"Game Over. The number was %i \n"
.LC6:
	.string	"try to guess the number: "
.LC7:
	.string	"%i"
	.text
	.globl	guess
	.type	guess, @function
guess:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR counter[rip]
	mov	eax, DWORD PTR guessLimit[rip]
	cmp	edx, eax
	jl	.L19
	mov	eax, DWORD PTR randomNumber[rip]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L19:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR counter[rip]
	add	eax, 1
	mov	DWORD PTR counter[rip], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	compare
.L18:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	guess, .-guess
	.section	.rodata
	.align 8
.LC8:
	.string	"The number is higher than %i. %i tries left.\n"
	.align 8
.LC9:
	.string	"The number is lower than %i. %i tries left.\n"
	.align 8
.LC10:
	.string	"you guessed the number in %i tries!\n"
	.text
	.globl	compare
	.type	compare, @function
compare:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR randomNumber[rip]
	cmp	DWORD PTR -4[rbp], eax
	jge	.L23
	mov	eax, DWORD PTR guessLimit[rip]
	mov	ecx, DWORD PTR counter[rip]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	guess
	jmp	.L26
.L23:
	mov	eax, DWORD PTR randomNumber[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L25
	mov	eax, DWORD PTR guessLimit[rip]
	mov	ecx, DWORD PTR counter[rip]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	guess
	jmp	.L26
.L25:
	mov	eax, DWORD PTR counter[rip]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L26:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	compare, .-compare
	.section	.rodata
	.align 8
.LC11:
	.string	"Usage: guess-game [OPTIONS]..."
	.align 8
.LC12:
	.string	"If no options are given, defaults to max random number 10 and max tries of 5"
	.align 8
.LC13:
	.string	"-m<MAX RANDOM NUMBER>            sets the maximum random number. Default: 10."
	.align 8
.LC14:
	.string	"-g<GUESS LIMIT>                  sets the maximum tries. Default: 5."
	.align 8
.LC15:
	.string	"-h                               displays this help."
	.align 8
.LC16:
	.string	"guess-game on github: <https://github.com/joaopfigueira/guess-game>"
	.text
	.globl	displayHelp
	.type	displayHelp, @function
displayHelp:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE12:
	.size	displayHelp, .-displayHelp
	.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	"243893931.c"
	.text
	.global	maxNum
	.data
	.align	2
	.type	maxNum, %object
	.size	maxNum, 4
maxNum:
	.word	10
	.global	guessLimit
	.align	2
	.type	guessLimit, %object
	.size	guessLimit, 4
guessLimit:
	.word	5
	.comm	randomNumber,4,4
	.global	counter
	.bss
	.align	2
	.type	counter, %object
	.size	counter, 4
counter:
	.space	4
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	setArgs
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Max Random Number has to be a number!\000"
	.align	2
.LC1:
	.ascii	"Guess limit has to be a number!\000"
	.align	2
.LC2:
	.ascii	"hm:g:\000"
	.text
	.align	2
	.global	setArgs
	.syntax unified
	.arm
	.fpu softvfp
	.type	setArgs, %function
setArgs:
	@ 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]
	b	.L4
.L14:
	ldr	r3, [fp, #-8]
	cmp	r3, #109
	beq	.L5
	ldr	r3, [fp, #-8]
	cmp	r3, #109
	bgt	.L6
	ldr	r3, [fp, #-8]
	cmp	r3, #104
	beq	.L7
	ldr	r3, [fp, #-8]
	cmp	r3, #104
	bgt	.L6
	ldr	r3, [fp, #-8]
	cmp	r3, #63
	beq	.L8
	ldr	r3, [fp, #-8]
	cmp	r3, #103
	beq	.L9
	b	.L6
.L5:
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	ldr	r2, .L16+4
	str	r3, [r2]
	b	.L4
.L10:
	ldr	r0, .L16+8
	bl	puts
	bl	displayHelp
	b	.L4
.L9:
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	ldr	r2, .L16+12
	str	r3, [r2]
	b	.L4
.L12:
	ldr	r0, .L16+16
	bl	puts
	bl	displayHelp
	b	.L4
.L7:
	bl	displayHelp
	b	.L4
.L8:
	bl	displayHelp
	b	.L4
.L6:
	bl	setNumber
	bl	guess
	mov	r0, #1
	bl	exit
.L4:
	ldr	r2, .L16+20
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getopt
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L14
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	optarg
	.word	maxNum
	.word	.LC0
	.word	guessLimit
	.word	.LC1
	.word	.LC2
	.size	setArgs, .-setArgs
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Guess a number between 1 and %i \012\000"
	.text
	.align	2
	.global	setNumber
	.syntax unified
	.arm
	.fpu softvfp
	.type	setNumber, %function
setNumber:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r2, r0
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r3, #1
	ldr	r2, .L19+4
	str	r3, [r2]
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+8
	bl	printf
	nop
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	maxNum
	.word	randomNumber
	.word	.LC3
	.size	setNumber, .-setNumber
	.section	.rodata
	.align	2
.LC4:
	.ascii	"random number is: %i \012\000"
	.text
	.align	2
	.global	getNumber
	.syntax unified
	.arm
	.fpu softvfp
	.type	getNumber, %function
getNumber:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L22+4
	bl	printf
	nop
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	randomNumber
	.word	.LC4
	.size	getNumber, .-getNumber
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Game Over. The number was %i \012\000"
	.align	2
.LC6:
	.ascii	"try to guess the number: \000"
	.align	2
.LC7:
	.ascii	"%i\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	guess
	.syntax unified
	.arm
	.fpu softvfp
	.type	guess, %function
guess:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L28+4
	ldr	r2, [r3]
	ldr	r3, .L28+8
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L25
	ldr	r3, .L28+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L28+16
	bl	printf
	b	.L24
.L25:
	ldr	r0, .L28+20
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L28+24
	bl	__isoc99_scanf
	ldr	r3, .L28+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L28+4
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	compare
.L24:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC8
	.word	counter
	.word	guessLimit
	.word	randomNumber
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	guess, .-guess
	.section	.rodata
	.align	2
.LC9:
	.ascii	"The number is higher than %i. %i tries left.\012\000"
	.align	2
.LC10:
	.ascii	"The number is lower than %i. %i tries left.\012\000"
	.align	2
.LC11:
	.ascii	"you guessed the number in %i tries!\012\000"
	.text
	.align	2
	.global	compare
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare, %function
compare:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L31
	ldr	r3, .L35+4
	ldr	r2, [r3]
	ldr	r3, .L35+8
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L35+12
	bl	printf
	bl	guess
	b	.L34
.L31:
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L33
	ldr	r3, .L35+4
	ldr	r2, [r3]
	ldr	r3, .L35+8
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L35+16
	bl	printf
	bl	guess
	b	.L34
.L33:
	ldr	r3, .L35+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L35+20
	bl	printf
.L34:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	randomNumber
	.word	guessLimit
	.word	counter
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	compare, .-compare
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Usage: guess-game [OPTIONS]...\000"
	.align	2
.LC13:
	.ascii	"If no options are given, defaults to max random num"
	.ascii	"ber 10 and max tries of 5\000"
	.align	2
.LC14:
	.ascii	"-m<MAX RANDOM NUMBER>            sets the maximum r"
	.ascii	"andom number. Default: 10.\000"
	.align	2
.LC15:
	.ascii	"-g<GUESS LIMIT>                  sets the maximum t"
	.ascii	"ries. Default: 5.\000"
	.align	2
.LC16:
	.ascii	"-h                               displays this help"
	.ascii	".\000"
	.align	2
.LC17:
	.ascii	"guess-game on github: <https://github.com/joaopfigu"
	.ascii	"eira/guess-game>\000"
	.text
	.align	2
	.global	displayHelp
	.syntax unified
	.arm
	.fpu softvfp
	.type	displayHelp, %function
displayHelp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L38
	bl	puts
	ldr	r0, .L38+4
	bl	puts
	mov	r0, #10
	bl	putchar
	ldr	r0, .L38+8
	bl	puts
	ldr	r0, .L38+12
	bl	puts
	ldr	r0, .L38+16
	bl	puts
	mov	r0, #10
	bl	putchar
	ldr	r0, .L38+20
	bl	puts
	mov	r0, #0
	bl	exit
.L39:
	.align	2
.L38:
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	displayHelp, .-displayHelp
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
