	.file	"896693.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Benvenuto! Questo programma simula il gioco della roulette con numeri interi compresi tra 1 e 36."
	.align 8
.LC2:
	.string	"Quanto vuoi scommettere [tra 2 e 10 euro se puoi permetterteli!]"
.LC3:
	.string	"%f"
	.align 8
.LC6:
	.string	"su che numero vuoi scommettere? [1-36]"
.LC7:
	.string	"%d"
	.align 8
.LC8:
	.string	"E' uscito il numero %d. Congratulazioni hai vinto, il tuo nuovo credito e' %f\n"
	.align 8
.LC9:
	.string	"E' uscito il numero %d. Peccato hai perso, il tuo nuovo credito e' %f\n"
	.align 8
.LC11:
	.string	"Il gioco e' finito. Hai giocato per %d mani e il tuo credito finale e' %f\n"
	.align 8
.LC12:
	.string	"Il gioco e' finito. Hai giocato per %d mani e il tuo credito non e' piu' sufficiente a continuare a giocare.\n"
	.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
	mov	edi, 0
	mov	eax, 0
	call	time@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	srand@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	movss	xmm0, DWORD PTR .LC1[rip]
	movss	DWORD PTR -24[rbp], xmm0
.L2:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movss	xmm1, DWORD PTR -32[rbp]
	movss	xmm0, DWORD PTR .LC4[rip]
	comiss	xmm0, xmm1
	ja	.L2
	movss	xmm0, DWORD PTR -32[rbp]
	comiss	xmm0, DWORD PTR .LC5[rip]
	ja	.L2
	movss	xmm0, DWORD PTR -32[rbp]
	comiss	xmm0, DWORD PTR -24[rbp]
	ja	.L2
.L3:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	jle	.L3
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 36
	jg	.L3
.L7:
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 954437177
	shr	rax, 32
	sar	eax, 3
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 3
	add	eax, ecx
	sal	eax, 2
	mov	ecx, edx
	sub	ecx, eax
	lea	eax, 1[rcx]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jne	.L4
	movss	xmm0, DWORD PTR -32[rbp]
	addss	xmm0, xmm0
	movss	xmm1, DWORD PTR -24[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -24[rbp], xmm0
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -24[rbp]
	movq	rdx, xmm2
	mov	eax, DWORD PTR -12[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L5
.L4:
	movss	xmm1, DWORD PTR -32[rbp]
	movss	xmm0, DWORD PTR -24[rbp]
	subss	xmm0, xmm1
	movss	DWORD PTR -24[rbp], xmm0
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -24[rbp]
	movq	rdx, xmm3
	mov	eax, DWORD PTR -12[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
.L5:
	add	DWORD PTR -20[rbp], 1
	cmp	DWORD PTR -20[rbp], 19
	jg	.L6
	movss	xmm0, DWORD PTR -24[rbp]
	comiss	xmm0, DWORD PTR .LC4[rip]
	jnb	.L7
.L6:
	movss	xmm0, DWORD PTR -24[rbp]
	pxor	xmm1, xmm1
	comiss	xmm0, xmm1
	jbe	.L14
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, DWORD PTR -24[rbp]
	movq	rdx, xmm4
	mov	eax, DWORD PTR -20[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L10
.L14:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC1:
	.long	1120403456
	.align 4
.LC4:
	.long	1073741824
	.align 4
.LC5:
	.long	1092616192
	.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	"896693.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Benvenuto! Questo programma simula il gioco della r"
	.ascii	"oulette con numeri interi compresi tra 1 e 36.\000"
	.align	2
.LC1:
	.ascii	"Quanto vuoi scommettere [tra 2 e 10 euro se puoi pe"
	.ascii	"rmetterteli!]\000"
	.align	2
.LC2:
	.ascii	"%f\000"
	.global	__aeabi_fcmplt
	.global	__aeabi_fcmpgt
	.align	2
.LC3:
	.ascii	"su che numero vuoi scommettere? [1-36]\000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.global	__aeabi_fadd
	.global	__aeabi_f2d
	.align	2
.LC5:
	.ascii	"E' uscito il numero %d. Congratulazioni hai vinto, "
	.ascii	"il tuo nuovo credito e' %f\012\000"
	.global	__aeabi_fsub
	.align	2
.LC6:
	.ascii	"E' uscito il numero %d. Peccato hai perso, il tuo n"
	.ascii	"uovo credito e' %f\012\000"
	.global	__aeabi_fcmpge
	.align	2
.LC7:
	.ascii	"Il gioco e' finito. Hai giocato per %d mani e il tu"
	.ascii	"o credito finale e' %f\012\000"
	.align	2
.LC8:
	.ascii	"Il gioco e' finito. Hai giocato per %d mani e il tu"
	.ascii	"o credito non e' piu' sufficiente a continuare a gi"
	.ascii	"ocare.\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	srand
	ldr	r0, .L15+4
	bl	puts
	ldr	r3, .L15+8
	str	r3, [fp, #-24]	@ float
.L2:
	ldr	r0, .L15+12
	bl	puts
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L15+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-32]	@ float
	mov	r1, #1073741824
	mov	r0, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-32]	@ float
	ldr	r1, .L15+20
	mov	r0, r3
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-32]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
.L3:
	ldr	r0, .L15+24
	bl	puts
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L15+28
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L3
	ldr	r3, [fp, #-28]
	cmp	r3, #36
	bgt	.L3
.L7:
	bl	rand
	mov	r1, r0
	ldr	r3, .L15+32
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L4
	ldr	r3, [fp, #-32]	@ float
	mov	r1, r3
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-12]
	ldr	r0, .L15+36
	bl	printf
	b	.L5
.L4:
	ldr	r3, [fp, #-32]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-12]
	ldr	r0, .L15+40
	bl	printf
.L5:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #19
	bgt	.L6
	mov	r1, #1073741824
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
.L6:
	mov	r1, #0
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-20]
	ldr	r0, .L15+44
	bl	printf
	b	.L10
.L14:
	ldr	r1, [fp, #-20]
	ldr	r0, .L15+48
	bl	printf
.L10:
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC9
	.word	.LC0
	.word	1120403456
	.word	.LC1
	.word	.LC2
	.word	1092616192
	.word	.LC3
	.word	.LC4
	.word	954437177
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
